2/23/2025 10:57:58 AM
|
|
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!
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.
|
|
|
|
How to determine tab focus in SLX LAN
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? |
|
|
|
Re: How to determine tab focus in SLX LAN
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 |
|
|
|
Re: How to determine tab focus in SLX LAN
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
|
|
|
|
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!
|
|
|
|
|
|
|
|