cancel
Showing results for 
Search instead for 
Did you mean: 

DoModifyView - Basics

Former Member
0 Kudos

Hi,

I am new to web Dynpro

Can anyone explain the significane and use of ---><b>boolean firstTime</b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

WdDoModifyView method has this parameter and the value of this parameter is TRUE when you run the app for the firstTime.If there are any action triggered in the view ...I mean next time onwards the parameter will be FALSE.

The method will be callled for every serverround trip on your view.

Regards, Anilkumar

Former Member
0 Kudos

Can you explain it a bit further i am not able to understand -what type of actions you are reffering to?

Former Member
0 Kudos

Consider you have a button on your form.

You want to do some action when you click on the button.

So when you click the button , the action associated with the button will be executed.At the time the wdDoModifyView method will be called again by WebDynpro framework.So at the time internally the framework will pass firstTime=FALSE to that method .

Regards,Anilkumar

Answers (1)

Answers (1)

former_member193821
Active Participant
0 Kudos

Hi puneet,

consider the following code

if(firsttime)

{

....

......

}

the code which you have written in if block will be executed only once i.e first time.when ever the WdDoModifyView method is called again the code will will not be executed in the if block.