on 07-20-2007 11:30 AM
Hi All
We can value help for an Inputfields
Now i want to create a table having inputfields in one column.
How can i have Value Help for the inputfields in table ?
Say i have created context as follows
MratReviewTeam
|__strName
And the code is
IWDAttributeInfo attributeInfoName =
wdContext.getNodeInfo().getAttribute(
IPrivateEvaluation.IMratReviewTeamElement.STR_NAME);
ISimpleTypeModifiable nameType =
attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet nameValueSet =
nameType.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < 40; i++) {
nameValueSet.put("Key_" + i, "Name " + i);
}
for (int iCtr = 0; iCtr < 6; iCtr++) {
IPrivateEvaluation.IMratReviewTeamElement objMratRevEle =
wdContext.nodeMratReviewTeam().createMratReviewTeamElement();
objMratRevEle.setStrName("Key_0");
wdContext.nodeMratReviewTeam().addElement(objMratRevEle);
This way i get a table having simple inputfields with no value help.
Please help me in knowing where i am going wrong.
Regards
Sonal Mangla
}
Hi,
Try what I did.
Create a method to inject any attribute with a dropdown.
You can use this attribute in an Input field or use it in a table.
Hope this help.
Yung siu wai
public void setRespEngineerDropdownValueSet( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo attriInfoName)
{
//@@begin setRespEngineerDropdownValueSet()
ISimpleTypeModifiable reType = attriInfoName.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet = reType.getSVService().getModifiableSimpleValueSet();
valueSet.clear();
for (int i = 0; i < wdContext.nodeName_List_Sel().size(); i++) {
IName_List_SelElement element = wdContext.nodeName_List_Sel().getName_List_SelElementAt(i);
String s3 = element.getPernr();
String s4 = element.getSname();
valueSet.put(s3,s4);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonal,
If u r using the same code,this is the problem.
ISimpleTypeModifiable nameType =
attributeInfo.getModifiableSimpleType();
u have to use attributeInfoName ,instead of attributeInfo as per ur first line of code.
Apart from that u r using EVS,so i don't think its implementation is different in table than a normal input field.
regards
Sumit
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 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.