cancel
Showing results for 
Search instead for 
Did you mean: 

How to use same actions for differ pop-up

Former Member
0 Kudos

Hi gurus,

I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.

But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.

Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.

Plz sugges me.

<b>Points will be sured.</b>

Sanket sethi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Take one integer value attribute in the context of view

when you r performing action on POP1 set it's value to 1

when you r performing action on POP2 set it's value to 2

create one method which receives integer argument, say diaplay(int a)

In the action call display(wdContext.currentContextElement().get<intvariable>()) by passing the value in the context attribute

in display() method, Check the value of integer variable..

if it is 1 then perform action related to POP1

if it is 2 then perform action related to POP2

Regards

LakshmiNarayana

Answers (1)

Answers (1)

former_member485701
Active Participant
0 Kudos

Hi,

If you want to keep same actions called for two diff pop-up's.

(1) Create one method in component controller.

(2) Add component controller to the view controller.

(3) now on both actions call this component controller's method.

Like method name in getValue().

then in view's button action call is like this

wdThis.wdgetComponentController.getValue().

I hope this will solve your problem.

Regards,

Praveen