on 05-23-2007 7:36 AM
Hi,
I need to validate the value selected of DDK, but DDK is in different View.
Somebody knows as making this?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.