2/22/2025 8:00:15 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 the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Adding GroupNavigator to custom mainview
Posted: 10 Mar 08 12:04 PM
|
I added a custom mainview based on a custom table (c_project). C_project has a m:1 relationship with account. I added a NavBar item, and have the mainview, AddButton, SaveButton, tabs, etc.. working. The one thing I can not seem get working is the GroupNavigator. I looked at the Opportunity and Ticket mainview and added a groupnavigator object that is similar, however it does not work.
I get an error dump about an invalid reference. Does anyone know how to make this work? |
|
|
|
Re: Adding GroupNavigator to custom mainview
Posted: 10 Mar 08 12:20 PM
|
I've never had an issue with adding it on any of my MainViews. Can you tell us anything else about how you constructed the MainView? Did you do it with the wizard or manually? |
|
|
|
Re: Adding GroupNavigator to custom mainview
Posted: 10 Mar 08 1:13 PM
|
I am using 7.2.1
I used the Wizard to build the base form with the fields I needed, moved things around, changed object types, and formatting, etc...
The table name is gmk_project and I named the Entity GmkProject. My pagealias is Gmk_Project. I did have some issues with some navigation items because some of them wanted to use gmkproject instead of gmk_project. I either specified the url or just change the gmkproject reference to gmk_project.
After adding the GroupNavigator to the Toolbar I get this dump
Server Error in '/SlxClient' Application. --------------------------------------------------------------------------------
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Sage.SalesLogix.Client.GroupBuilder.GroupNavigator.setCurrentID(String entityId) +197 Sage.SalesLogix.Client.GroupBuilder.GroupNavigator.findContext() +18 Sage.SalesLogix.Client.GroupBuilder.GroupNavigator.RenderContents(HtmlTextWriter output) +14 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 Sage.Platform.WebPortal.Workspaces.MainContentWorkspace.renderGroupHeader(ISmartPartInfo info, String grpID, HtmlTextWriter output) +1725 Sage.Platform.WebPortal.Workspaces.MainContentWorkspace.renderRunTime(HtmlTextWriter output) +973 Sage.Platform.WebPortal.Workspaces.MainContentWorkspace.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +236 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +32 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.Page.Render(HtmlTextWriter writer) +26 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
|
|
|
|
Re: Adding GroupNavigator to custom mainview
Posted: 11 Mar 08 7:01 PM
|
I figured out what it does not like... but I have no idea why it does not like it.
I deleted all my Web changes (entities, relationships, forms, pages, etc.) then - created a new entity for the gmk_project table (name=GmkProject, display=Gmk_Project **these are the defaults**) - added a ProjectDetails form to be used as mainview screen - added a New MainView to the portal for my entity - added the ProjectDetails page - deloyed the site The page works - added the GroupNavigator to the ProjectDetails page - deployed the site The page throw the Error mentioned above
I deleted everything then repeated the steps above BUT this time I - created a new entity for the gmk_project table (name=Gmk_Project, display=Gmk_Project)
When I add the GroupNavigator it works.
Anyone got any ideas what is happening going on???
|
|
|
|
Re: Adding GroupNavigator to custom mainview
Posted: 12 Mar 08 10:49 AM
|
I have a ticket open with support for this same issue. At this time you can't rename entities from thier table names without problems. Ypu will also see problems in the recently viewed functionality.
I have not tested in 7.2.2 yet.
Best, Brian |
|
|
|
Re: Adding GroupNavigator to custom mainview
Posted: 12 Mar 08 11:15 AM
|
Brian, Thanks for the informaiton. It is good to know it is not just something I did.
I have not tested in 7.2.2. yet either but I did notice that when you create a new entity, from a table with an underscore in the name, the 7.2.2 defaults are name=C_Project, display=CProject, where as 7.2.1 defaults to name=CProject, display=C_Project .
I tried the renaming route but could not find all the places in the previsouly generated code that needed to be changes.
Now if I could only figure out the cause behind the "An unspecified error occurred" message (see my other post)!! |
|
|
| |
|
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!
|
|
|
|
|
|
|
|