2/22/2025 4:01:33 PM
|
|
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.
|
|
|
|
"Insert New" Page
Posted: 29 Apr 08 3:45 PM
|
I'm trying to make a page to Insert a new record. I'm using the Insert New Account page as my guide.
I made a smartpart with a few fields and a Save button that invokes the Save Business rule. I then added that smartpart to an Entity Page. When I click the Save button, nothing happens.
I don't think the Id for the entity is being created. Is there something special I should be doing to generate this Id? I've gotten other smartparts to add new records, however these smartparts were dialogs in a main page. |
|
|
|
Re: "Insert New" Page
Posted: 29 Apr 08 4:08 PM
|
Is the record created in the database?
In the scenario you mention, what are you expecting to happen? Normally on an insert page, you not only call the Save business rule, but also use a Redirect to move to the detail page for the newly created record. Sounds like that is the part you've missed? |
|
|
|
Re: "Insert New" Page
Posted: 29 Apr 08 4:59 PM
|
The record is not created in the database.
I've tried with chaining a Redirect, and I get a "Object reference not set to an instance of an object." I've tried without the Redirect as well and I don't get that error, but nothing happens.
I'm expecting the new record to be added to the database. I'm checking for it manually at the moment, and I'll add in the redirect after I get saving working correctly.
One thing about this new setup is that it's pretty hard to convey all the settings, as opposed to showing the VB code. Odds are I have one setting or property incorrect, but I don't know which it could be. |
|
|
|
Re: "Insert New" Page
Posted: 30 Apr 08 3:42 PM
|
Well, I got it to work by making the SmartPart show in mode Insert, and then adding a "?modeid=Insert" to the menu item link.
This is how "Insert Ticket" works. I have no idea why "Insert New Account" is different, or why I can't replicate it. |
|
|
|
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!
|
|
|
|
|
|
|
|