14
Views
1
Comments
Is there any way we can save records in out system entities through JavaScript code?

Is there any way we can save records in out system entities through JavaScript code? If yes then can someone share some link or tell how to do it.

Rank: #328

Hi Yash,

Yes this is possible.

You need to create a button which triggers an action that runs your Create / CreateOrUpdate action. Then hide the button using css (display:none;) and simulate a click of that button using js.

You might find the links below useful:

https://www.outsystems.com/forums/discussion/49005/trigger-screen-action-on-javascript/

https://www.outsystems.com/forums/discussion/53193/how-do-i-trigger-a-hidden-button/

https://www.outsystems.com/forums/discussion/27124/how-to-force-a-button-click-using-javascript 

Ossama