on 03-02-2006 6:09 AM
hi everyone,
I have written the following code in wdModifyView()
/* ask factory to create anonymous text view */
IWDTextView tv = (IWDTextView) view.createElement(IWDTextView.class, null);
/* bind property for showing text */
tv.bindText("context-attribute-path");
/* add inside parent container */
parent.addChild(tv);
-
i am getting the error parent cannot be resolved
i want complete steps from starting onwards.
kyan................
hi mani,
check this code.
IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDTextView tv = (IWDTextView)view.createElement(IWDTextView.class,"TextView");
cell1.bindText(wdContext.node<URNode>().getNodeInfo().getAttribute("URvalueattribute");
container.addChild(tv);
thanks and regards
Brahmanandam ausali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't take my sample code too literally.
The variable "parent" should contain a reference to the container where you want to insert the text view.
(I hope you replaced "context-attribute-path" by the path to the context attribute that should be displayed in the text view)
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Check this out
wdModifyView()
if (firstTime)
{
IWDTransparentContainer con=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
// CREATION OF TEXTVIEW
IWDTextView textview1=(IWDTextView)view.createElement(IWDTextView.class,"textview");
textview1.setEnabled(true);
textview1.setText("Dynamic created Textview");
con.addChild(textview1);
}
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
u have to get the reference of container i.e parent....
*****
IWDTransparentCOntainer parent=(IWDTransparentContainer)view.getElement("containername ")
then u can add the child i.e UI control in it
parent.addchild(childname);
Regards,
Yash
Message was edited by: Yashpal Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.