2024 Sep 03 3:23 AM
I cant find anywhere in the tutorials where it shows you how to use the formulas or Java. I just want to be able to use some of my Java script but it never works. I cannot even use the Java node to make a simple log.console message.
2024 Sep 03 7:06 AM
2024 Sep 03 8:58 AM
Check this link for formulas: https://help.sap.com/docs/build-apps/service-guide/formula-functions
For Java example create a button and go into the logic section for the button. Drag over the Javascript node at the bottom and hook up the component tap to the node. Double click the node and replace the sample code in there with console.log('Hello world');
Run it using the preview on the web, open the console log in the browser and tap the button.
2024 Sep 03 12:08 PM
It's console.log().
I created a test app, with button that runs a JavaScript flow function.
The JavaScript includes console.log output, plus it returns some info based on the input.
When you run it and click the button, the console message can be seen.
The console message will be displayed even if the JavaScript crashes, as in this case, where I did not do anything but print out a console message and did not provide the output.
HTH