‎2005 Jun 20 9:45 AM
I would like to write BO create method without dialog.
I have tried:
BEGIN_METHOD CREATE CHANGING CONTAINER.
zsimplytest-id = 1 "id is generated
"that is only for simplify
zsimplytest-bezeichnung = 'created'.
insert zsimplytest.
object-key-id = zsimplytest-id.
commit work.
END_METHOD.When i test this method object is not instantied, only new record is inserted to db table.
What exactly should i do in the method to instatied this object?
Regards
Bogdan
‎2005 Jun 20 3:56 PM
Hi Bogdan,
You will have to return the object reference in the container. Let me know if you need more help.
Cheers,
Ramki.
‎2005 Jun 20 3:56 PM
Hi Bogdan,
You will have to return the object reference in the container. Let me know if you need more help.
Cheers,
Ramki.
‎2005 Jun 21 7:17 AM
Hi Ramki
Thanks for advice. Can you tell me yet how should I do it?
Regards
Bogdan
‎2005 Jun 22 10:18 AM
I have tried return the object reference to container with class name. That take no result. Possibly must it been another name? or must i do something more/else?
regards Bogdan
‎2005 Jun 22 1:15 PM
Bogdan,
I am not exactly sure what your intentions are here or how you are testing your method.
If you wish to have the object reference available in your task container, you can try the follwing:
data: act_obj_ref type swc_object.
swc_create_object act_obj_ref 'MyObject' object-key.
swc_set_element container 'MyObject' act_obj_ref.
Cheers,
Ramki Maley.
‎2005 Jun 23 1:12 PM
Hi Ramki
That was the solution
I have earlier tried to made something like that but not exactly and didn't work. Yet i can create BO i supose
Thanks a lot
Regards Bogdan