Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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: Open MainView without base table
Gaurang
Posts: 34
 
Open MainView without base tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 13 7:37 AM

We are encountering an issue in Sales Logix Lan (8.0) development. We want to open a MainView without Group and Tabs Visible (covering the complete area). When I create a Minview Form It needs a Base Table to be specified. In our case we don’t have a base entity for the MainView. Currently in SalesLogix default installation on the left navigation pane few options are available (for example Reports, Libraries) open up the MainView without any base table associated. We tried to look for the functions which are called by these toolbox options but could not find them.


 


Can you please help up with our requirement.

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Open MainView without base tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 13 7:56 AM
They don't actually open a main view - they simply call a form that occupies the MDI Window. Whilst the below refers to Main Views - it actually applies to *any* form. In your script you simply call it:

Set MV = Application.MainViews.Add(“System:NameOfForm”, 1, TRUE)

 

To display a MainView, call Application.MainViews.Add(). It takes 3 parameters

View name (e.g. &ldquoersonal:Ticket Details&rdquo

WindowStyle (one of the TxMainViewStyle enumeration values – mvsDefault (0), mvsMDIChild (1), mvsStayOnTop (2)).

OpenExisting


(Boolean) – specifying false always creates a new instance of a particular MainView, specifying true forces SalesLogix to return an existing MainView if a main view with the same name (Family:Name) is already open

 

[Reply][Quote]
Gaurang
Posts: 34
 
Re: Open MainView without base tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 13 9:24 AM

Thanks Mike, it worked like charm

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Open MainView without base tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 May 13 9:25 AM

Great!

[Reply][Quote]
Steve Garner
Posts: 22
 
Re: Open MainView without base tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Dec 13 1:35 PM

Hi,  I have been launching form like this for a long time.   Currently working in v7.2.1.


We are upgrading to 8.0 and I find that the form launches, but the Delphi constants are not recognized - e.g., crHourglass.


Have either of you found this issue?


 


Here is my launch code:


 


option explicit


sub Main


 dim objMSView


 Const MVName = "Ticket:TktLaunch"


 Const MVCaption = "Ticket Launch"' Rev 1.002


 Dim i


 


 'search for existing and use that if open


 for i = 0 to application.MainViews.Count - 1


  if application.MainViews(i).DetailsView.pluginname = MVName then set objMSView = application.MainViews(i)


 next


 


 if isEmpty(objMSView) then set objMSView = application.MainViews.Add(MVName,1,true)


 objMSView.caption = MVCaption


 objMSView.CaptionBarVisible = false


 objMSView.show


 objMSView.maximize


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): 2/21/2025 11:43:10 PM