Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

How to make initialize() of contract to trigger based on condition/s.

$
0
0

Hi Experts,

I have a contract which implements sysoperation SysOperationInitializable

The entire MVC works for purh order and purchid is key driving factor in the dialog orchestrated by the MVC.

I want the initialize() in contract  to work only when purch id is changed, in other words the flow should be like below vis a vis my current flow where it calls initialize() each & every time.

Scenario1

1.User goes to purch id form clicks the button which call above MVC.

2. Run the initialize for 1st time.

3.MVC does it work , user is back to purch order form, makes some changes & re run the MVC by re clicking the button.

4.MVC should sense that if it is being re run via the same purch id then DO NOT call iniialize() at contract class by not calling the initialize () i would assume the dialog would load up wih last used values.

   Incase the purch id is changed then MVC should run the initialize() .

Please suggest how can this be achived , nice to have some x++ example shared where it is working like this.

Thanks

Mav


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>