Hey guys, we were kinda fed up with the issues ERPLink was having so one of our MAS 500 developers wrote how to launch MAS 500 screens from .NET. The issue was though that I had to convert it to VBScript to actually put it into SLX. I managed to get it working about 80% but I'm still having an issue I hope someone can help me with
Public Function Customer(sCustID)
Const kWorkSpace = "Customer_PSS"
Dim lRetVal 'As Long
Dim moCustomer 'As Object
CreateFramework kWorkSpace
Set moCustomer = moFramework.GetSystemObject(ktskARCustMnt)
moCustomer.DrillAround sCustID
'frmOpen.Show vbModal
'CleanUpFramework moCustomer, ktskARCustMnt
'Customer = lRetVal
End Function
Using it like so, with those last 3 lines commented out it works fine, however it leaves it open to errors and issues and user's sessions within MAS could get tied up and it would lock down the system entirely.
I need to be able to run the CleanUPFramework which releases the users session from MAS and all of that good stuff. I don't really know the best way to go about this. using the frmOpen.Show vbModal line
freezes SLX in it's current state until they are done with the MAS 500 screen then they can close that form (which is nothing more than an empty window) then the CleanUpFramework runs fine. Issue with this is
2 fold, obviously the annoyance of having that empty little window open every single time they launch a screen that they have to close, also until they are done with the MAS 500 screen they aren't able to do
anything in SLX which isn't acceptable for this. Anyone have any suggestions about what I can do here?