cancel
Showing results for 
Search instead for 
Did you mean: 

Generic Pop Up For Multiple Fields

Former Member
0 Kudos

Hello all,

I am trying to implement the following.

I have four input fields for which there will be pop ups for filling data.

Data in pop up will be shown in table. There is only one pop up window which will serve as pop up as per the input field (different)

The table is designed dynamically in the Pop Up view.

There can be different number of columns in the table depending upon the input field. (Designed Dynamically)

The issues surrounding this are:

1) How to determine generically that what number of columns will be displayed in pop up.

2) How to decide dynamically what the will be column header texts for different pop ups.

3) Show data from data (Bind dynamically to node holding data)

4) How to generically decide which column will have the data to be picked up to put in the input field

5) How to decide after close of pop up which is the correct input field to which the data needs to be copied?

Kindly give in ideas.

Regards,

Yogesh Bhatia

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Yogesh,

All your doubts would be cleared in 1 go.

Have four attributes say At1, At2, At3 and At4 for 4 inputfields in view and similarly an attribute At5 in the popup view. Now have same attributes in the context of component controller and map them together. Do the same forAt_Flag attribute of type string. This new attribute is to pass flag from one view to other view via controller through mapping. This will decide that which button for popup has been clicked and the popup should open for which input field to populate at the end. Similarly, it will help you create the table dynamically in popup view as well. Now as the above five attributes are there in view1/popup view and also in the component controller, you can always access the context attribute from any view using mapping and using

wdThis.wdGet<CompController>().getwdContextAPI().currentContextElement().get<AttributeName>();

Hope you get it. All the Best!

Regards,

Tushar Sinha