How to get the current form ID from Table in C\Side code?

Simo_baSimo_ba Member Posts: 78
Hi Guys,
here is my Prob ](*,)
From onvalidate trigger on my Table, i need to know wich form is making changes.
Thank you

Comments

  • SavatageSavatage Member Posts: 7,142
    Did you try using code coverage?

    Not clear what you are trying to find.

    If you change something in a table directly it's usually not changing something in a form. The form shows the table fields. :-k
  • tinoruijstinoruijs Member Posts: 1,226
    I think you need to explain yourself a bit more.

    You can also use Debugger. Menu Tools, Debugger; activate "Breakpoints on triggers" and "Active" on run through the process.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • DenSterDenSter Member Posts: 8,305
    The table does not know which form is used to view/modify data.
  • NaviDevNaviDev Member Posts: 365
    :!: You can modify the change log module to incorporate what you want and create a new field something like "Modifier Form No.". Then in your field access the tables of the change log and track which from is making the changes. You get the concept? Good... :mrgreen:
    Navision noob....
  • DenSterDenSter Member Posts: 8,305
    17822 fields in a standard Cronus US database, do you want to program that in every field validation? I don't see that work very well, not to mention what kind of performance something like that would take. Interesting concept though :-k
  • Simo_baSimo_ba Member Posts: 78
    Thanks guys,
Sign In or Register to comment.