cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a New Object from SAP UI5 and sending it to Agentry

dm21
Participant
0 Kudos

Hello,

Could you please let me know if its possible to create a New Object in SAPUI5 screen and then send it back to Agentry ?

I have created a new screen which has a UI5 Plugin screen . I am able to retrieve data from agentry , But I am not able to add a new object from ui5 and send it back to agentry. But editin the already existing data is possible with the plugins given in this link.

https://help.sap.com/viewer/06008dfd510e4e76aa45b2b7d01d570e/2.0.1/en-US/0613620e8679410688b5d21b61c...

Please let me know the Plugin that I need to use to achieve this.

Thanks,

Deepak.M

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Typically you would call runAction from your code to execute a transaction in Agentry to add the new object. The object properties would then reference external values in your Open UI control to retrieve the values from your control to set into the new object in Agentry.

--Bill

dm21
Participant
0 Kudos

Hello Bill,

Thank You for the Reply.

Could you please provide an example with some dummy code ?

Thanks,

Deepak.M

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Look at the rating sample that comes with the Open UI control. The handleSave function sets an external value and then calls an Agentry action. You can open the Agentry project in the Editor to see how the action works.