Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 Administration Forums - Mobile/PDA/Handhelds
Forum to discuss use of SalesLogix with mobile devices including SalesLogix mobile and other mobile solutions. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Mobile/PDA/Handhelds | New ThreadView:  Search:  
 Author  Thread: Help with Opportunity Add/New Form
William Vespe
Posts: 16
 
Help with Opportunity Add/New FormYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: Help with Opportunity Add/New FormYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
William Vespe
Posts: 16
 
Re: Help with Opportunity Add/New FormYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: Help with Opportunity Add/New FormYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[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 © 2024 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): 11/26/2024 11:56:42 AM