on 08-18-2008 10:03 AM
Hi,
I need to set the State property of my Ip box to required at runtime.
I have bound it to an attribute of type state but when I try to set the value, no option for Normal or Required is shown.
wdContext.currentContextElement().setCustNameMandatory(no option shown here);
Pls Help
TIA
Himanshu
Bind property "state" to a context attribute of DDIC type "State" and change the context attribute value as needed.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can achieve this in wdDoModify Method of a view.
for getting the input box object :--
IWDInputBox ip = (IWDInputBox)view.getElement("<Input Box Id");
When you will get instance of input box element you can set its state at runtime like this:
ip.setState(WDState.REQUIRED)//Some thing like this.
Hope This Help.
Regards,
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
use
IWDInputField input;// Your input field object
input.setState(WDState value);
Ex:
input.setState( WDState.REQUIRED);
Apihttp://help.sap.com/javadocs/NW04s/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/WDState.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.