suppose I have two pages, page1 and page2, both read from the same table, table1, I set a source expression for a field in page 1,which is a variable that I declared in the code, I want to set the same source expression for a field in page 2. how could be this done?
If this is a simple calculation then simply copy what you did on page 1 to page 2.
If it's a little more complicated then move the logic into a function onto the table or perhaps a codeunit and call the function from both pages to set the value on the variable you are showing on each page.
Answers
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
If there is some function for this then obviously you can call it from the second page as well with the desired parameters.
The point to be noted is its not a direct field of the table so it needs to be calculated.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
If it's a little more complicated then move the logic into a function onto the table or perhaps a codeunit and call the function from both pages to set the value on the variable you are showing on each page.