11/24/2026 9:08:28 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 use of SalesLogix with mobile devices including SalesLogix mobile and other mobile solutions. View the code of conduct for posting guidelines.
|
|
|
|
Help with Opportunity Add/New Form
Posted: 18 Sep 07 11:28 AM
|
I have added a custom panel to the Opportunity Form to allow me to mass add products to the opportunity. This panel works fine when adding products to an existing opportunity. However, when my panel is used while adding a new opportunity, it does not work because the OpportunityID field is not yet generated by the Bound Object (I think this is done during the save). So, does anyone know how to force a save with a Bound Object (I tried used the BusinessHelper function but it looks like it works only with non-bound business objects) *or* does anyone know how to modify the Save logic on the toolbar to not close the current form?
Thanks in advance for your help/ideas.
William
SLX Mobile 4.5
|
|
|
|
Re: Help with Opportunity Add/New Form
Posted: 26 Sep 07 1:34 PM
|
Save does auto populate any of the fields marked with the TableField(PrimaryKey = true) attribute. It also will copy parent keys into its chidren where the ChildRelationship attribute is used (Direction depends on a property). There is a post save event that is fired that you could catch and get the ID from the businessobject and then do the save on the children.
Mark |
|
|
|
Re: Help with Opportunity Add/New Form
Posted: 26 Sep 07 1:38 PM
|
Mark, thanks. That is what I did - wrote the child records out to the oppproduct table with a bogus oppid, and then in the postsave of the opp I update the oppid with the correct id. I was looking for a cleaner way to do it.
Thanks for the help |
|
|
|
Re: Help with Opportunity Add/New Form
Posted: 27 Sep 07 7:07 AM
|
William,
For your need I would more then likely replace the grid with a listview. Create a new opproduct form that does not bind so that I can have an inmemory collection of the products and then write them out on the initial opportunity save. It is definately more work, but what this does is reduces the amount of sync messages that get sent down to the server. Specifically when you create the opp_product item it writes a message, when you update its ID it again writes a message. Currently there is no detection on the server ensuring that the opportunity exists for an opp product insert but I can see that as being possible through some customizations.
Mark |
|
|
|
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!
|
|
|
|
|
|
|
|