cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger action only first time on load f scree

0 Likes
3,027

Dear Team,

i embedded my own component in one of standard screen. i bound necessary parameters from standard screen to my screen. configured in port to trigger one event handler which in in turn trigger my action.

this action keeps triggering if do any activity on the screen. however i want this action to be triggered only when it loaded first time

Is there any way to achieve this ?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Likes

somehow this is not working. first of all, system is triggering that action 3 times atleast. i am setting this transient variable on review page of move in GAF and in the action fired by inport of embedded component. when i navigated to 3step and come back to review page, it is holding the value still.

1. does embedded inport triggers the action more than once always when we navigate to it from other screen?

2. nto sure why transient variable is holding the value when it supposed to lose its value when goto step3 and come back to step4. is this because i am on GAF. Please help.

former_member226
Employee
Employee

Since you are using GAF hence it might be causing the issue. In general, the transient variable holds the value for an active transaction i.e. either transaction is active or canceled. Hence I think in the case of GAF system might be considering the whole GAF process (including sub-steps) as a single transaction hence values are shared between different steps.

0 Likes

Thanks Saurabh. will check this and update.

former_member226
Employee
Employee
0 Likes

Hello,

Yes, it should be possible. Using a transient field. it should be possible to control this. You need to set this transient field to TRUE when the action is executed for the first time and then wrap your action logic within a check for this transient field so that the next time logic won't trigger. Something like this:

// Check transient field
if(this.ZtransTemp.isInitial())
{
// Do some business logic
}
else
{
return
}

Thanks

Saurabh