on 01-18-2006 2:14 PM
hi everybody,
The scenario is-
I created a value node(BasicDetails) under the context root node and create value attribute(Number) in the component controller context. I have created two views and named firstview and secondview. The firstview context has been mapped to the controller context whereas the secondview context is not mapped in order to pull the data from the component controller programmatically. The program that I have written was :-
String Number = wdThis.wdGetPOCOMPONENTController().wdGetContext().currentBasicDetailsElement().getNumber();
wdContext.currentBasicDetailsElement().setNumber(Number);
After executing the application iam not able to see the secondview screen itself..
What modification in the program should be made, so that iam able to fetch the data from the Value attribute(Name) and display it on the second view.
thanks in advance.
regards,
dina
You need to add component controller as required controller in view.
Open "secondview". Select tab "properties". Click "Add" of "Required controllers" and select POCOMPONENT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should bind the secondview context to the controller context.
Why do you want to retrieve the values programmatically?
If you want to do some processing, you can programmatically change/convert the secondview context nodevalue in wdDoModifyView().
Good luck,
Roelof
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 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.