on 04-30-2008 9:32 AM
Hi,
i have following problem:
I have a context node with cardinality 1:1. This node should be copy to a model node as input for the rfc function. the model node has the cardinality 0:1
I try copy with:
WDCopyService.copyCorresponding(wdContext.nodeContextNode().currentContextNodeElement(),
wdContext.nodeModelNode().currentModelNodeElement());
But wdContext.nodeModelNode().currentModelNodeElement() is NULL after this statement.
I think because of the cardinality 0:1, there is no current...... Element..!?
Hi Christopher,
You can make the cardinality of your context node as 1:1.
If thats not possible... try setting the LeadSelection of your model node to 1.
wdContext.nodeModelNode().setLeadSelection(1);
Then use the CopyService command as u said.
Regards,
Sayan Ghosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
I am not asking you to change the cardinality of model node. Surely u cant do that. I am asking you to change the cardinality of the context value node where you are copying the values from your model node.
Make the cardinality of your context value node same as that of the model node.
Regards,
Sayan Ghosh
yeah, because when cardinality is 0:1 you dont have a element to hold the values,
Thanks
Gopal
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 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.