The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Help needed regarding GlobalInfoFor
Posted: 17 Jul 06 1:37 PM
|
fiogf49gjkf0d Hello
I have an external application in VB that needs to launch the SalesLogix Application and pop the Account Screen for a specific AccountID. For this I have used the GlobalInfoSet function to set a global variable and its value and invoke a Legacy Script which is in SalesLogix. However when the Legacy Script is getting executed in SalesLogix I get a Type Mismatch Error when calling the "setcurrentaccountid" function with the AccountID that was retrieved using the function GlobalInfoFor. Can someone tell me if I am missing anything. Your help is appreciated.
Thanks
Raju.R
The code is as follows:
CODE IN THE EXTERNAL VB App:
Public Class callSLX Dim SalesLogix Sub LaunchSLX SalesLogix = CreateObject("SalesLogix.ClientObjix") End Sub
Sub btnSendAcct_click() Dim strKeyField As String Dim strAccountID As String strAccountID = txtAcctID.Text strKeyField = "gKeyField" SalesLogix.GlobalInfoSet(strKeyField, strAccountID) SalesLogix.DoInvoke("Basic", "Account:Screen_Pop") End Sub End Class
CODE IN SLX Legacy Script
option explicit
sub main call AccountScreenPop end sub
Sub AccountScreenPop dim strAcctID as String If GlobalInfoExists("gKeyField") then GlobalInfoFor "gKeyField", strAcctID setcurrentaccountid strAcctID end if End Sub |
|
|
|
Re: Help needed regarding GlobalInfoFor
Posted: 18 Jul 06 8:37 AM
|
fiogf49gjkf0d The issue is now resolved. While declaring the SalesLogix object, I changed it to "Dim SalesLogix as SalesLogix.ClientObjix" rather than just "Dim SalesLogix". That took care of the problem.
Thanks Raju.R |
|
|
|
Re: Help needed regarding GlobalInfoFor
Posted: 25 Jul 06 12:20 PM
|
fiogf49gjkf0d I have a question for you. Are you using Active directory integration for the authentication portion of launching the saleslogix application externally? I am currently working on a logon tracking plugin to track the users that login to Saleslogix via integration. Looking to record their windows username and the fact that they signed into the system using this method. Do you know how to obtain this information? Appreciate any info you may wish to share... |
|
|
| |
|
Re: Help needed regarding GlobalInfoFor
Posted: 27 Jul 06 9:06 PM
|
fiogf49gjkf0d Well we have a client that has a small group of users not using authentication. What they are trying to track is the occasions when those users sign into the system as someone else. My thinking was by comapring the NT user account against the slx users signing in we could identify when this occurs. I was then planning to store the data in a table that they could write crystal against.
A workaround yes, but it meets the requirements they have given us for functionality. |
|
|
|