Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, July 6, 2025 
 
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: Need to control the zOrder
Cory Haibloom
Posts: 39
 
Need to control the zOrderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Nov 10 5:05 PM

Is there any way to send SalesLogix "to the back" in the display zOrder?  I am calling an ActiveX control (that I don't have the source code for) that requires input from the user, but annoyingly pops up underneath the SalesLogix window, causing SalesLogix to appear to freeze (since it's waiting for the control to close).  Since I can't modify the ActiveX control so that it does an always on top, I want to either send SLX to the back or minimize it until the ActiveX control does its thing.


Any ideas?


Thanks!


Cory Haibloom

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Need to control the zOrderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 10 8:42 AM
fiogf49gjkf0d

Windows Shell commands? Alt-Tab kinds of stuff?

[Reply][Quote]
Cory Haibloom
Posts: 39
 
Re: Need to control the zOrderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 10 10:11 AM
fiogf49gjkf0d

Not sure what you're thinking of with Windows Shell commands.  At to using Alt-Tab, the activex control doesn't show up in that list so can't be accessed via alt-tab.  I basically need to either tell SalesLogix to launch the control and force it to be on top, or to minimize SLX or put it on the bottom after launching the control

[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Need to control the zOrderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 10 10:34 AM
fiogf49gjkf0d

Can you post the code that you are using to call/display the control?

[Reply][Quote]
Cory Haibloom
Posts: 39
 
Re: Need to control the zOrderYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 10 10:52 AM
fiogf49gjkf0d

Here you go, Phil.  The activex control being called is QBAddCustomer


sub CallQBuzz1()


    Dim strSQL, sString
    Dim objRS
    Dim Form
    Dim sCurrentAccountID
    Dim WshShell
    dim objSLXDB


    sCurrentAccountID = Application.MainViews.ActiveView.CurrentID


    strSQL = "select a.account, c.firstname, c.lastname, a.mainphone, a.fax, c.email, ad.address1, ad.address2, ad.city, " & _
             " ad.state, ad.postalcode from sysdba.account a inner join sysdba.contact c on c.accountid = a.accountid " & _
             " inner join sysdba.address ad on a.addressid = ad.addressid WHERE accountid='" & sCurrentAccountID & "' and c.isprimary='t'"


    If Not IsObject(objSLXDB) Then
       Set objSLXDB = New SLX_DB
    End If


    Set objRS = objSLXDB.GetNewRecordset
    objRS.Open strSQL, objSLXDB.Connection


    If Not (objRS.BOF And objRS.EOF) Then
        objRS.movefirst


        ' now build the string
        sString = sString & "|co=" & objRS.Fields("ACCOUNT").Value
        sString = sString & "|f=" & objRS.Fields("FIRSTNAME").Value
        sString = sString & "|l=" & objRS.Fields("LASTNAME").Value
        sString = sString & "|p=" & objRS.Fields("MAINPHONE").Value
        sString = sString & "|x=" & objRS.Fields("FAX").Value
        sString = sString & "|e=" & objRS.Fields("EMAIL").Value
        sString = sString & "|a1=" & objRS.Fields("ADDRESS1").Value
        sString = sString & "|a2=" & objRS.Fields("ADDRESS2").Value
        sString = sString & "|c=" & objRS.Fields("CITY").Value
        sString = sString & "|s=" & objRS.Fields("STATE").Value
        sString = sString & "|z=" & objRS.Fields("POSTALCODE").Value


    End If


    objRS.Close
    Set objRS = Nothing
    set objSLXDB = nothing


    Dim x
    Dim NewQBID


    Set x = CreateObject("QBAddCustomer.NewCust")


    x.CustomerData = sString


    NewQBID = x.NewQBContact()


    Set x = Nothing


    if NewQBID <> "" then      ' the user created a new QB Customer
       'MsgBox "Created New QuickBooks Customer ID: " & NewQBID
       txtQBLink.Text = NewQBID
       ' Update the UI
       lblQBuzz.Visible = false
       txtQBLink.Visible = true
       btnConvert.Visible = false


    end if


    set Form = nothing


end sub

[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 © 2025 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): 7/6/2025 6:59:34 AM