2/22/2025 9:00:18 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.
|
|
|
|
New Page for Entity
Posted: 10 Apr 08 4:07 PM
|
I've started working with the Web Client and I am having a hard time figuring out how to make a page for an entity (like the account page for accounts). I apologize if this is very basic. This is what I am doing. I would be very grateful if someone could point out where I am going wrong.
1. I have a table "REM_Building". 2. I made an entity based on that table called "Building". 3. I made a SmartPart for the entity, with a couple fields, which I called "Building Details". 4. I made a Main View based on the Building entity using "Building" as an alias, and added the Building Details Smart Part to it.
Now, this is kind of working. I can make a Group and show a list of all the buildings. However, I'm trying to see the details of one building. In the group, if I enable the "Entity Linked" property of a field, the hyperlink points to a "REM_BUILDING.aspx" page, which doesn't exist.
How would I get the link to point to the page and see the Building Details SmartPart for a single Building? |
|
|
|
Re: New Page for Entity
Posted: 10 Apr 08 8:54 PM
|
I just worked with another partner on this and I havent researched it much, but it seems that when the field is entity linked it expects the target page to be the name of the entity/table.aspx. It uses that assumption to then build the link as entityname.aspx?entityid=AS00000000XY . So what I do is just always name the mainview the same as the entity and I always name the entity the same as the table.
Perhaps someone else on here has actually found where to change the page the entity gets linked to, but from my experience and limited research (none) it either entity linked OR you can choose a URL - which is your other option. |
|
|
|
Re: New Page for Entity
Posted: 11 Apr 08 3:25 PM
|
Hmm...okay, I changed my entity names to match the table names. Now I'm getting:
"Sage.Platform.Repository.RepositoryException: Mapped NHibernate type not found"
Any idea what this means?
|
|
|
|
Re: New Page for Entity
Posted: 11 Apr 08 5:06 PM
|
Delete the entity and recreate it with the same name as the table.
|
|
|
|
Re: New Page for Entity
Posted: 11 Apr 08 5:56 PM
|
I've done that, and I get the same error. I've also tried with the Saleslogix Lead table, and I get the same results.
I think I'm missing a step or doing something wrong initially. |
|
|
|
Re: New Page for Entity
Posted: 14 Apr 08 11:42 AM
|
I figured it out! I had made a new package for my entities, and I guess the page wasn't looking in that package. When I added my entities to the standard package, everything worked.
Now, if I could just figure out why groups use the database tables instead of entities. Seems to defeat the whole point of having an Object-Relational Mapping. |
|
|
|
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!
|
|
|
|
|
|
|
|