Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, May 6, 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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Add Tabs to modal MainView
awaqxi
Posts: 13
 
Add Tabs to modal MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 11 8:32 AM
fiogf49gjkf0d

Hi everybody!


My question is: can I add tabs to MainView opened modaly (with ShowModal method)?   SLX 6.2


I'd tried different ways:


1) Get MV object by Application.MainViews.Add, add tabs to object and then call ShowModal. Result - form opens modaly, tabs pane shows but there are NO tabs.


Set oMainView = Application.MainViews.Add ( FormName, 0, False )
oMainView.Tabs.Add "Account:Details"
oMainView.ShowModal

2) In opening form in AXFormOpen method loop through Application.MainViews.Item(i), get my form as MV object, add tab. Result the same - form opens modaly, tabs pane shows but there are NO tabs.


dim i
for i=0 to Application.MainViews.Count-1
        if Application.MainViews.Item(i).DetailsView.Name="XYZ" then
           Application.MainViews.Item(i).Tabs.Add "Account:Details"
        end if
    next

3) Get MV object by Application.MainViews.Add, put this object to GlobalInfo, get object from GlobalInfo in AXFormOpen opening form method and tried to add tab - get unexpected error on line with "oMainView.Tabs.Add" - seems like we cannot pass MV object by GlobalInfo.


Set oMainView = Application.MainViews.Add ( FormName, 0, False )
Application.GlobalInfo.Add "Test_MVwTabs_Modal", oMainView
oMainView.ShowModal
...
set oMainView = Application.GlobalInfo.Item ( "Test_MVwTabs_Modal" )
oMainView.Tabs.Add "Account:Details"

It seems like we can add tabs to MV only if it is opened with WindowStyle=1, but in this case we cannot open it modaly... May be someone has another opinion??


The whole task is the following: I have grid with records that represent Accounts and Contacts. If i click on Account - should appear account detail form, if on Contact - the contact detail form.


I wanted to put my grid on MainView DetailView, add to Tabs Account and Contact details forms and switch tabs on grid's OnClick event. But got SLX limitation described above.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Add Tabs to modal MainViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Aug 11 3:53 PM
fiogf49gjkf0d

I don't think you can do any of this....what happens if you have a main view built already.....just don't have a NavBar icon to launch it.....launch it from a script....

[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): 5/6/2024 10:12:49 AM