Skip to main content

I have created an action in a custom screen graph which is responsible for setting some field values base on few complex conditions. These conditions are based on DACs except the main DAC of the screen. Since it does few DB updates can’t use the Row Selected event also. is there any way to call that method just after initialization of the screen?

Note: Topic Should corrected as “How to call an action just after initialization of a custom Screen”

Hi @PDharmasena10 

 

You could use the RowInserted handler, which is called when the record is inserted into the database.

You can repeat these for the DACs that you need to update.

 

Alternatively, if the record is made from an action, you can make use the action to update the values within all the DACs as long as you have them declared as views.

 

Hope this helps,

Aleks


Hi @aiwan 

As I think Row Inserted fires only when new row is inserted. isn’t it? But my requirement is to triggers the action when just after page loads and when page is refreshed.


Yes that’s true, @PDharmasena10 

 

I think I misunderstood your question.

 

If you create a method to update the fields as you need, you should be able to call it in the RowSelected handler; I think using YourGraph.YourView.Update(); in your method will be beneficial, because you cannot create a graph instance within a event handler so just be aware of that.


Reply