Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: How to determine tab focus in SLX LAN
Ed Craig
Posts: 1
 
How to determine tab focus in SLX LANYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Oct 08 12:08 PM
Does anyone know how to find what tab is the active tab?

We have developed an external application that updates SLX activities. Turns out non of the BasicFunction refresh commands will update the activies tab. The only solution we have found is to set the visible property of the ativities tab to false and then true. The problem with this solution is that if the user was on a different tab at the time then the activities tab becomes the active tab.

Is there a property like HasFocus for what tab is the active tab?
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: How to determine tab focus in SLX LANYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Oct 08 2:38 PM
you can't get a handle on the activities formS from the Forms Collection and then refresh the grid?

RefreshActivitiesCache (looks like you're already doing this) doesn't refresh the grid but it does refresh the Nav Bar Calendar.

Take a look at Account Detail View :

Sub RefreshDetailsView
Dim objForm
On Error Resume Next
Set objForm = Application.MainViews.ActiveView.Tabs.Item("Account:Details").Form 'DNL
If (Err.Number = 0) Then
' This is done so that the correct time zone can be displayed.
objForm.Script.AXFormChange(Empty)
Set objForm = Nothing
Else
' The "Account:Details" form has not been created yet.
Err.Clear
End If
On Error GoTo 0
End Sub

Opportunity Screen:
Sub AXFormAfterPost(Sender)
RefreshTabMiddleViews "Account:Opportunities", "frmOpportunities" 'DNL
RefreshTabMiddleViews "Account:Opportunities", "grdAccountOpps" 'DNL
RefreshTabMiddleViews "Account:Reseller Opportunities", "frmResellerOpportunities" 'DNL
End Sub

SLX_Common:
Sub RefreshTabMiddleViews(PluginName, ControlName)
Dim Form, MainView
Dim i

On Error Resume Next
For i = 0 To Application.MainViews.Count - 1
Set MainView = Application.MainViews.Item(i)
'Middle View
If Not (MainView.MiddleView Is Nothing) Then
If (MainView.MiddleView.PluginName = PluginName) Then
RefreshControl MainView.MiddleView, ControlName
End If
End If
'Tab
Set Form = MainView.TabsViews(PluginName)
If Not (Form Is Nothing) Then
RefreshControl Form, ControlName
End If
'More Tabs
Set Form = MainView.TabsViews("")
If Not (Form Is Nothing) Then
If Form.PluginName = PluginName Then
RefreshControl Form, ControlName
End If
End If
Next

Set Form = Nothing
Set MainView = Nothing
End Su
[Reply][Quote]
lorenzo
Posts: 35
 
Re: How to determine tab focus in SLX LANYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Apr 12 12:59 PM
fiogf49gjkf0d

Just what i need it.


Thank you very much.


i think i wasn't so far


dim FrmProds



 set frmProds = Application.MainViews.ActiveView.Tabs.Item("Opportunity:Products").Form


 frmProds.refresh


[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): 2/23/2025 11:25:20 AM