on 08-16-2009 2:51 PM
Hi,
This has been covered in other threads, but I can't seem to get this to work - please help!
My context node for the model is:
ZGBHEP_GET_GEN_JOB_FOR_MULTPOS_INPUT
---GroupInputT_Positions
-
Gen_Job_Desc
-
Gen_Job_No
-
Position_No
---GroupJobDescOutput
-
GroupOutputT_Positions
-
Gen_Job_Desc
-
Gen_Job_No
-
Position_No
And my code to populate it is:
for(int x = 0; x < wdContext.nodeT_Positions().size(); x++){
IGroupInputT_PositionsNode myNode = wdContext.nodeGroupInputT_Positions();
Zhrobjid newLine = new Zhrobjid();
IGroupInputT_PositionsElement myEl = myNode.createGroupInputT_PositionsElement(newLine);
myEl.setPosition_No(wdContext.nodeT_Positions().getT_PositionsElementAt(x).getObjid());
myNode.addElement(myEl);
}
wdComponentAPI.getMessageManager().reportSuccess("Node val:" + wdContext.nodeGroupInputT_Positions().size());
try {
wdContext.currentZGBHEP_GET_GEN_JOB_FOR_MULTPOS_INPUTElement().modelObject().execute();
wdContext.nodeGroupOutputT_Positions().invalidate();
} catch (WDDynamicRFCExecuteException e) {
wdComponentAPI.getMessageManager().reportException("Error retrieving generic job information", false);
e.printStackTrace();
}
wdComponentAPI.getMessageManager().reportSuccess("Jobs:" + wdContext.nodeGroupOutputT_Positions().size());
-
The centre message shows 60 so I know its added them, but in my back end FBGENDAT shows the table parameter as empty. Any ideas?
Cheers.
Hi Jo,
As I see, both the model node and the Value node has the same structure. In that case try using the copy service API for copying sll the values from ur model node to value node. The statement is
WDCopyService.copyElements(wdContext.node<ModelNodename>,wdContext.node<ValueNodename>);
This should work
Regards,
Poojith M V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solved it by binding it to a List instead!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.