In the Infor M3 H5 Development Guide 10.0.1, 10.4.0 it is described how to run samples on a Node.js server. By starting StartWebServer.cmd a localhost listening at port 8080I can make it work, when going against an On Prem version ex like: https://server.infor.com:23007/mne/?localScript=http://localhost:8080/H5SampleHelloWorld.js
But how do I run against a Cloud MT URL like: https://mingle-portal.eu1.inforcloudsuite.com/ESPERSEN_TRN/b7d50b9c-96d3-4f55-b390-3f2cd7ae17db?favoriteContext=bookmark%3FMMS100%26fieldNames%3DW1TRNR%2C%2CW1TRTP%2C%2CW1TRSL%2C%2CW1TRSH%2C%2CW1RESP%2C%2CWWFACI%2C100%2CWFTRSL%2C%2CWTTRSL%2C%2CWFTRSH%2C%2CWTTRSH%2C%26includeStartPanel%3DTrue%26source%3DMForms%26requirePanel%3DTrue%26sortingOrder%3D1%26panel%3DB%26tableName%3DMGHEAD%26keys%3DMGCONO%2C780%2CMGTRNR%2C%2B&LogicalId=lid://infor.m3.m3
Regards PR
I found a solution myself. I used Odin SDK Login Utility which is actually ment for Odin SDK. But it works fine along with script development
Hi Ravinborg,
I used Odin SDK as well.
After I run "odin serve --multi-tenant" I go to http://localhost:8080/ and here is what I see.
How do I go to M3 program and make new script?
Thanks,
Kirill
Odin strikes again!
Hi PR,
Thanks for sharing this. I'm just wondering how you are running the js file once your odin serve is started ? are you just browsing http://localhost:8080 or are you using any other URL arguments ?
Many thanks !
When your StartWebServer.cmd is started it is listening at: http://localhost:8080
Then you from your browser can call the H5 instance you want pointing at the local script you want to test.
ex.:
https://m3prdeuc1.m3.eu1.inforcloudsuite.com/mne/?localScript=http://localhost:8080/C036_CCCA_MMS235.js
it this case the H5 instance: https://m3prdeuc1.m3.eu1.inforcloudsuite.com/mne/
and this script:?localScript=http://localhost:8080/C036_CCCA_MMS235.js
(C036_CCCA_MMS235.js)
Thanks for you feedback PR.
Seems that I'm misunderstanding somewhere (or most probably lacking some knowledge!). You specified that you were using odin -serve --multi-tenant but in your last answer you mentioned using StartWebServer.cmd which is starting the webserver using nodejs (and not odin)... So I'm a little bit confused..!
Where am I wrong ?