cancel
Showing results for 
Search instead for 
Did you mean: 

prevent code in wdDoModifyView(..)

Former Member
0 Kudos

Hi,

in my WD I use a linkToAction UI. The problem is that by clicking on this UI also the code in wdDoModifyView(...) will be executed. I write also some piece of code inside my else-node of (firstTime). How can I prevent it?


if (firstTime) {

} else {
   ...my piece of code
}

regards,

Sharam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sharam,

wdDoModifyView(...) will be called whenever there is an event in the View. So, Try avoiding the overloading of wdDoModifyView(...) . Instead you can create a separate method for linkToAction UI and perform the required operation.

Regards,

Jhansi

Former Member
0 Kudos

Hi Sharam,

when the user click on the LinkToAction, fill a boolean variable (i.e. flag = true), then in the wdModify check if the flag is false, in this case execute your code, if flag is false do nothing.

Vito

Former Member
0 Kudos

Hi Jhansi,

Could you please give me an example code how I can do this, perhaps I create all my linkToAction UI's by run time. Unitl now I use the code below:

	
    for (....){
    ......
        IWDAction actionThumbnail = wdThis.wdCreateAction(
		IPrivateDocPreAppView.WDActionEventHandler.HANDLING_THUMBNAILS, "");

	linkToAction.setOnAction(actionThumbnail);			  			  
	linkToAction.mappingOfOnAction().addParameter("value", j);
     .....
     }

regards,

Sharam

Former Member
0 Kudos

Hi Sharam,

If you are generating it dynamically then you need to write the code in wdDoModifyView(..).

Refer to the thread which speaks about the Link to Action UI

Regards,

Jhansi

Answers (0)