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!
|
|
main view caption
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. |
|
|
|
Re: main view caption
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? |
|
|
|
Re: main view caption
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 |
|
|
|
Re: main view caption
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. |
|
|
|
Re: main view caption
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? |
|
|
|
Re: main view caption
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 |
|
|
|
Re: main view caption
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, |
|
|
|