Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Help needed regarding GlobalInfoFor
Raju
Posts: 18
 
Help needed regarding GlobalInfoForYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Raju
Posts: 18
 
Re: Help needed regarding GlobalInfoForYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
JB
Posts: 11
 
Re: Help needed regarding GlobalInfoForYour last visit to this thread was on 1/1/1970 12:00:00 AM
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...
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Help needed regarding GlobalInfoForYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 3:20 PM
fiogf49gjkf0d
The E1 User Audit utility does this (Free download on this site, see http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=82). It will record the login info and also the Windows/Domain username and the computer name they logged in from.

Would this do what you are looking for?
[Reply][Quote]
JB
Posts: 11
 
Re: Help needed regarding GlobalInfoForYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 8:20:19 AM