05-31-2017 03:51 PM
The Onbase 16 SDK mentions that there is a function to get the current Onbase Session ID via javascript in an eform:
window.external.GetSessionID();
This does not work when I test this in WorkView. I do see a valid sessionid in document.cookie.
Is there an API function to access the session id like there is documented for eforms, or is document.cookie the best place to get it?
Thanks!
Brian
06-05-2017 09:41 AM
HI Bobby,
In WorkView, external classes are great for viewing external databases in real-time. Since they are read-only, the save button is disabled and calling Screen.SaveObject() is failing silently in my tests. I would like to catch the user modifications and use script to handle the persistence or any other action that would be relevant to the application.
I have found no workview api hook for external classes that can be used to catch user modifications. I can do a client-side action button to call a servlet. JQuery has a post() method for this purpose. Sending the Session ID to the servlet allows the servlet to connect to the AppServer with the sessionID to authorize the action on the external database. This is the same purpose declared in the SDK for the SessionID being available for eForms.
Thank you!
Brian
06-01-2017 05:42 AM
Hi Brian,
Unfortunately we do not expose the session ID from within a WorkView screen at this time.
With this said, would you be able to provide details on what you need the session ID for? What is the use case that you are trying to solve?
Thanks,
06-05-2017 09:41 AM
HI Bobby,
In WorkView, external classes are great for viewing external databases in real-time. Since they are read-only, the save button is disabled and calling Screen.SaveObject() is failing silently in my tests. I would like to catch the user modifications and use script to handle the persistence or any other action that would be relevant to the application.
I have found no workview api hook for external classes that can be used to catch user modifications. I can do a client-side action button to call a servlet. JQuery has a post() method for this purpose. Sending the Session ID to the servlet allows the servlet to connect to the AppServer with the sessionID to authorize the action on the external database. This is the same purpose declared in the SDK for the SessionID being available for eForms.
Thank you!
Brian
06-05-2017 11:06 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.