Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: "Insert New" Page
Rohan Verghese
Posts: 40
 
"Insert New" PageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: "Insert New" PageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
Rohan Verghese
Posts: 40
 
Re: "Insert New" PageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Rohan Verghese
Posts: 40
 
Re: "Insert New" PageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[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): 2/22/2025 4:07:34 PM