on 11-26-2007 7:06 AM
Hi Experts,
For an input filed, i have created a value help using the following code:
IWDAttributeInfo attributeInfo =
wdContext.nodeCtx_vn_GTINSearch().getNodeInfo().getAttribute(
"ZGTYP1");
ISimpleTypeModifiable simpleType =
attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet =
simpleType.getSVServices().getModifiableSimpleValueSet();
valueSet.keySet().removeAll(valueSet.keySet());
for (int j = 0; j < wdContext.nodeCtx_vn_GTINType().size(); j++) {
// <GET THE VALUES OF THE FUNCTION RESULT>
String keyGTINType =
wdContext
.nodeCtx_vn_GTINType()
.getCtx_vn_GTINTypeElementAt(j)
.getZGTYP();
String valueGTINType =
wdContext
.nodeCtx_vn_GTINType()
.getCtx_vn_GTINTypeElementAt(j)
.getZGTYPNAM();
valueSet.put(keyGTINType, keyGTINType + ": " + valueGTINType);
}
Now i want to display the labels to these value help fields.
How can i do that ?
Regards,
Ashish Shah
Used the property simpleType.setFieldLabel(arg 0). to set the field label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the method
simpleType.setColumnLabel(arg0)
Ex:
IWDAttributeInfo attributeInfo =
wdContext.nodeCtx_vn_GTINSearch().getNodeInfo().getAttribute(
"ZGTYP1");
ISimpleTypeModifiable simpleType =
attributeInfo.getModifiableSimpleType(); simpleType.setColumnLabel("arg0")
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 |
---|---|
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.