cancel
Showing results for 
Search instead for 
Did you mean: 

Get selected value of DDK in diferent View

Former Member
0 Kudos

Hi,

I need to validate the value selected of DDK, but DDK is in different View.

Somebody knows as making this?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Alvaro Vergara ,

Here u face this problem because the view controller is private.So there is no way you can directly access the view context outside the view.

Please try the following :

create the attribute in the custom or the component controller and map it to the view where you are using it.

Once you have made to replicate the existing functionality with the above given way.Now since the component controller is public you can directly access it from any view within the component.

Try the following code:

wdThis.wdGet<Controller Name>.wdGetContext().get<Attribute>;

the above code will fetch you the value in the attribute and similarly you can do other functionality.

Regards

Amit

    • Allocate points as per the Merit

Former Member
0 Kudos

Hi,

As you can select only one value from the DDBk, create a context attribute in first view, component controller and second view.Bind this attribute from both the view to Component controller.

After the value selection in the first view set this value to the above created context attribute.

You can get this value in the second view.

This is altrenate approach if you dont want the context of DDBK to be mapped to the context of seocnd view, else follow Bharathwaj.

Former Member
0 Kudos

Hi ,

You would have used a value attribute for selectedKey property. Create this same value attribute in component controller and in the second view.

Create context mapping between first view and component controller.. and second view and component controller.The value would then be available in both the views.

Regards

Bharathwaj