Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Friday, November 22, 2024
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
11/22/2024 3:56:40 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!
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Help with Opportunity Add/New Form
William Vespe
Posts: 16
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
[
Reply
][
Quote
]
Mark Dykun
Posts: 297
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
[
Reply
][
Quote
]
William Vespe
Posts: 16
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
[
Reply
][
Quote
]
Mark Dykun
Posts: 297
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
[
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
|
page cache (param): 11/22/2024 4:20:35 PM