Options

Is there any way to update Global Variables from subpages ?

Hello

In BC14 is there any way to access and update global variables from subpages ?
I know about UpdatePropagation but I don't think is what I need.
I also read about protected var but this feature it's available for newer versions.

In order to see global variables values on pagepart I have created a global function and called it on openPage CurrPage.BufferList.Page.SetGlobalVars but after making some adjustments, those variables change and I need to send back the changed values in the header.
Is there any way to accomplish this ?

Thank you

Answers

  • Options
    Developer101Developer101 Member Posts: 528
    Why do you want to do this, what is the scenario?
    United Kingdom
  • Options
    daniel_mitrea_1995daniel_mitrea_1995 Member Posts: 26
    there is a customization to a client

    there is a sales inventory page
    here are several filters you can put, defined as variables on the page

    when I make an order from the buffer (buffer list it's a page part), I select the desired quantity for that item, and after clicking ok along with a few other adjustments it should also update global variables from the main page (see attached image)

    now I don't know how to update these variables in the subform.

    ktn1h7o3yy7r.png
  • Options
    daniel_mitrea_1995daniel_mitrea_1995 Member Posts: 26
    I solved it using Single Instance Codeunit
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    @daniel_mitrea_1995 - Single Instance Codeunit will always hold the value until and unless the company the initialized.

    Make Sure you are aware of this.
  • Options
    daniel_mitrea_1995daniel_mitrea_1995 Member Posts: 26
    Yes, I'm aware.. when opening and closing the page, I'm cleaning the values.
Sign In or Register to comment.