How to fill page field dynamically?

Yabu13Yabu13 Member Posts: 12
edited 2016-07-28 in NAV Three Tier
Hi guys,

I want to select GeneralJournalBatch.Name on a Page. After I select and validate this, I want that another field for the Journal Template Name should be filled automatically.

How can I do this?

I have tried this one in the OnValidate() of the Batch Name field name:
GeneralJournalBatch.GET(BatchNameField);
IF BatchNameField <> '' THEN
   FieldJournalTemplateName := GeneralJournalBatch."Journal Template Name";
CurrPage.UPDATE(TRUE);

Answers

  • mntmnt Member Posts: 1
    try VALIDATE(FieldJournalTemplateName,GeneralJournalBatch."Journal Template Name");
  • Yabu13Yabu13 Member Posts: 12
    Thanks. I have found another solution.
  • archer89archer89 Member Posts: 337
    please describe that solution.
    best regards
    Franz Kalchmair, MVP
    Alias: Jonathan Archer

    please like / agree / verify my answer, if it was helpful for you. thx.
    Blog: http://moxie4nav.wordpress.com/
Sign In or Register to comment.