on 2018 Nov 26 12:53 PM
Hello experts.
I'm trying to copy an instance of a CustomBO.
What I'm trying to do in ABSL is this:
//Get the instance which I want to copy
var instance = MyBO.Retrieve(UUID);
//Pass the instance to Create function
var create = MyBo.Create(instance)
With this approach I'm getting the following error: Parameter type 'Node(MyBO.Root)' is not valid.
Can anyone help?
Thanks.
Hi Marc,
This is some sample code for instance creation.
//Get the instance which I want to copy
var instance = MyBO.Retrieve(UUID);
// define MyBO node
var myBO_element: elementsof MyBO;
// create new instance on MyBO
myBO_element.Field1 = instance.Field1;
myBO_element.Field2 = instance.Field2;
myBO_element.Field3 = instance.Field3;
MyBO.Create(myBO_element);
Hope this helps.
May
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.