cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with setting input parameter in model node

Former Member
0 Kudos

Hello experts,

I have imported a rfc function. The model node has the Structure:

-> ZZpc_calender_input (modelNode)

-> portaldata(modelNode)

->attributes

Now I want to set the input attribute of the model node "portaldata". But unfortunately I am not able to do this.

Could anyone please explain how to solve this.

Regards

Marco

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

ZZpc_calender_input (modelNode)

-> portaldata(modelNode)

->attributes

In case the respective cardinalities are 1..1, 0..n for your two nodes. you will need to create the elements in the "portaldata" node.

How this is done is:

1.) You create an object of the Model.

2.) Create an object of the first Node's Model Class and pass the object you created in (1) as a parameter

3.) Create an object of the second Node's Model Class and pass the object you created in (1) as a parameter

4.) Bind the second object to the first Node's Model Object

5.) Set the parameters to the Second Object. This would be the different set***() methods for the portaldata elements.

6.) execute your model

7.) invalidate the node of the root element to populate it with data

I understand the my points may be quite difficult to follow so an excellent tutorial to follow is "Controller Coding Explained".

Please use the above keywords and find the .pdf file in SCN's Library Section.

Hope that this helps.

Thanks.

p256960

Answers (0)