Hi
Can we access process by any means using HTML Portlets using Java script?
I heard that Java script is not working in ondemand environment, how much is this true?
please help me with these questions.
Thank you
Naveen
naveen_challagulla: Hi Can we access process by any means using HTML Portlets using Java script? I heard that Java script is not working in ondemand environment, how much is this true? please help me with these questions. Thank you Naveen
Hi All,
Any input here for Naveen?
Thanks!
Chris
I have found that only random javascript will work in an html portlet, when you insert it directly into it. The way I get around this is I create a html file in the knowledge store that has all the JS and html in it for the entire portlet. Then I create a html portlet with an iframe in it. Inside the Iframe I link to the html file in the knowledge store. If using v13+ then just open the link from the knowledge store in a new tab and remove everything after the file extension.
Example Below:
https://yourwebsite.ondemand.ca.com/niku/app?action=dms.viewFile&RhXm0r7tSeUqEr=true&fileId=5043428&fileName=webpage.html&filedownload=filedownload&RhXm0r7tSeUqEr=true
Change to:
/niku/app?action=dms.viewFile&RhXm0r7tSeUqEr=true&fileId=5043428&fileName=webpage.html
Place that into the src part of the iframe.
That is how I have done it for probably about 25+ onDemand clients.
Thanks Chris, This helpful for Java script execution in ondemand environment. But my problem is with , How to initiate the process through Java Script. Is this can be achieve through calling webservice like Invoke Action type (Process Invocation)? If Yes, can you provide the sample code for that one?