on 06-06-2006 11:33 AM
Is it possible to insert a blank value while creating a dropdown from a static Simple type?
Hi Bhavana,
1) Add one more entry of blank value (ie: " ") as the 1st element of the static type.
2) Create a attribute in the view context of the dictionary datatype (ie: simple type in which you have value), let say attribute name is Text.
3) In the code set the blank value to this, using this code:
wdContext.currentContextElement().setText(" ");
I hope this should solve your problem.
Regards
Pravesh
PS: Please consider rewarding points if helpful or solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Blank value will not be there and cant be inserted in case of DD by key.
Only in index
but if u want then write the code like this.
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("aaa");
IModifiableSimpleValueSet val=myType.getSVServices().getModifiableSimpleValueSet();
val.put("","");
val.put("B","2");
val.put("C","3");
val.put("D","4");
Regards
Vijay
Message was edited by: Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavana,
But AFAIK and as I can see in refernce manual DropDownByKey always has a blank item.
Best regards, Maksim Rashchynski.
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 | |
10 | |
10 | |
9 | |
7 | |
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.