cancel
Showing results for 
Search instead for 
Did you mean: 

Field labels for Value help

ashish_shah
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

ashish_shah
Contributor
0 Kudos

Used the property simpleType.setFieldLabel(arg 0). to set the field label.

Former Member
0 Kudos

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

ashish_shah
Contributor
0 Kudos

Hi Ayyapparaj,

Thanks for providing the solution.

I used the method :

simpleType.setFieldLabel(" Description");

However i can not set any description for the key field.

-> simpleType.setFieldLabel(" Description"); only sets the values fields label.

Can you help on this?

Ashish Shah

Former Member
0 Kudos

Hi,

Try simpleType.setDescription(arg0)

Regards

Ayyapparaj

ashish_shah
Contributor
0 Kudos

Hi Ayyapparaj,

Using simpleType.setDescription(arg0), does not set the key column label

Thanks anyways for the suggestion.

Ashish