How to access remote Jiwa database
Using this sample
viewtopic.php?f=27&t=491
I have had something in place at a client for a little while now, using 7.0.175. In my case, they're in a Purchase Order & it creates a sales order in the remote database.
They've recently upgraded to 7.2.1 and although the basis of the plugin is still sound, they are getting odd behaviour. I think it is something to do with the SessionIDs. When the transaction has completed in the other database, Jiwa changes the main warehouse and weird stuff happens with the menu.
I know Instance is deprecated so I was wondering what would be the best alternative to the line
And then when getting back to the current session, is this still OK?
Cheers
viewtopic.php?f=27&t=491
I have had something in place at a client for a little while now, using 7.0.175. In my case, they're in a Purchase Order & it creates a sales order in the remote database.
They've recently upgraded to 7.2.1 and although the basis of the plugin is still sound, they are getting odd behaviour. I think it is something to do with the SessionIDs. When the transaction has completed in the other database, Jiwa changes the main warehouse and weird stuff happens with the menu.
I know Instance is deprecated so I was wondering what would be the best alternative to the line
- Code: Select all
Dim databaseSessionID As String = JiwaFinancials.Jiwa.JiwaApplication.Session.Instance.SessionID
And then when getting back to the current session, is this still OK?
- Code: Select all
'Set our session back to the currently logged in database
JiwaFinancials.Jiwa.JiwaApplication.Session.Instance.SessionID = databaseSessionID
Cheers