Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 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: main view caption
Bill
Posts: 71
 
main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 8:09 AM
I have a custom main view that is called through an active script. When the view opens the caption is displaying the base table (Saleslogix - [Tr_class]). In the properties for the form I have set the caption but it doesn't display. I have tried using Application.MainViews.ActiveView.Caption = "PCS Training" and Application.BasicFunctions.SetCurrentViewCaption "PCS Training" but no luck. I tried setting a global variable for the forms caption and assigning a value to it but that doesn't work either. Any suggestions would be appreciated. I'm guessing it has to be something simple and I am completely overlooking it.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 10:34 AM
When you load the form in a MainView object, you need to set the Caption for the MainView.

Set mv = Application.MainViews.Add...
mv.Caption = "My Caption"

Make sense?
[Reply][Quote]
Bill
Posts: 71
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 10:43 AM
Yes, makes sense to me. I tried it and it still displays Saleslogix - [Tr_class] in the caption. This is what I have in my script that is loading the MainView object.

Set objMv = Application.MainViews.Add("Training:Training Classes_Breakouts", 1, True)
With objMv
.Caption = "PCS Training"
.Refresh
.Show
End With
[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 11:03 AM
I think Bill what you are wanting to do is set the entityname and entitynameplural properties of the mainview. That seems to be what you are saying you need.

They are simple string properties like a label caption and you can specify whatever actual name you want.
[Reply][Quote]
Bill
Posts: 71
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 11:27 AM
That is what I am looking for, but where do I access the entity properties? Is this something that can only be accessed through scripting?
[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Feb 08 11:30 AM
these properties are part of the mainview plugin. open your custom mainview, click on the black bar at the top of the main view, and open the properties window and in the property list you will seen entityname and entitynameplural
[Reply][Quote]
Renee Colwell
Posts: 2
 
Re: main view captionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Aug 09 3:21 PM
That's great, but I need to change these properties programatically. Mainview entitynamesingular will be "blah" for group A and "yuck" for group B. How can I reference those properties programatically? Thanks,
[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): 8/29/2025 1:58:53 PM