Hello,
This is the first time that I work with Web Dynpro Java, I need to add two new fields to OVS. I am working with the ESS (esstrasap~com application) I am triying to modify in the component FCTraCostAssignament the customer controller OVSCostCenter.
I added two fields within the context of OVSCostCenter (GMU and JOB). Within the function initOVS attempt to give them a value for my helper to appear in the fields with these defaults.
Inside initOVS method I modify the source with the following code:
wdContext.currentQueryInElement().setGmu("017");
wdContext.currentQueryInElement().setJob("110");
WDAttributeInfo[] attributeInfos = new IWDAttributeInfo[1];
attributeInfos[0] = attributeInfo;
WDValueServices.addOVSExtension("CC",attributeInfos,wdContext.nodeQueryIn(),wdContext.nodeQueryOut(),new CostCenterContextNotificationListener(attributeInfo.getName()));
There is also a method getQueryInputFields which builds fields through the QueryIn context node, that is the source:
//@@begin getQueryInputFields()
if (queryInputList != null)
return queryInputList;
queryInputList = new ArrayList();
Iterator it = wdContext.nodeQueryIn().getNodeInfo().iterateAttributes();
while (it.hasNext()) {
IWDAttributeInfo ai = (IWDAttributeInfo) it.next();
if (ai.getSimpleType() != null && ai.getSimpleType().getBuiltInType().equals("string")) {
queryInputList.add(ai.getName());
}
}
return queryInputList;
I tried to do everything above but can not appear to me the two new fields. I have read OVS documentation but I dont find the solution.
Can anyone help me?
Thanks in advance and regards.