Form ID

DesmedtSDesmedtS Member Posts: 53
Hello,

Is there a possibility that I can get my form-ID of the form where i'm on at the moment.
I tried the function CurrForm.OBJECTID, but then I get the name.

So for example, if i'm on the salesperson/purchaser card, i want to get the value 5116, which is the specific form.

Thankx in advance

Comments

  • matteo_montanarimatteo_montanari Member Posts: 189
    DesmedtS wrote:
    Is there a possibility that I can get my form-ID of the form where i'm on at the moment.
    I tried the function CurrForm.OBJECTID, but then I get the name.

    So for example, if i'm on the salesperson/purchaser card, i want to get the value 5116, which is the specific form.

    From Help:

    String := Form.OBJECTID([UseNames])
    String
    Data type: text or code

    Form
    Data type: form

    UseNames
    Data type: boolean

    The UseNames parameter is optional. If it is set to TRUE (default value) or if it is empty, the returned string contains references to field names in the table that the record is associated with. If the parameter is set to FALSE, field numbers are used instead.

    Form ID is 0 if you run the form from the Designer but is correctly filled if you run the form from the Object Designer or form Code.

    Bye
    Reno Sistemi Navision Developer
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Have a look at this thread: [SOLVED] ObjectID (integer) of a form
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.