on 11-12-2004 2:20 PM
Hi!
I would like to change the Caption Text of a Tab on runtime. How can I do that?
Bye Markus
Hi Markus
Assign the text property to a context attribute of type string.
you can change the text property in the init method of the view or in any method you create in that view as follows.
wdContext.currentContextElement.set<Context attributename>(<caption text to be displayed>)
Regards
NagaKishore V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. The simplest approach: bind <i>text</i> property of TabHeader to context attribute and manipulate attribute value;
2. More complex: in wdDoModifyView do the following:
final IWDCaption tabHeader = (IWDCaption)view.getElement("<tabHeaderID>");
tabHeader.setText("Whatever you want");
Regards,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.