Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Sunday, July 6, 2025
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)
7/6/2025 1:29:58 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!
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Set Default for Owner owner lookup on Insert Defect
Steve Knowles
Posts: 657
Set Default for Owner owner lookup on Insert Defect
Posted: 19 May 09 6:10 AM
I am trying to set the owner lookup to a specific team on the insert defect screen. I am able to set a custom owner lookup (a field called reported_by) with this code (lookup shows up on form prepopulated as desired):
newDefect.Reported_by="N6UJ9....";
I can't find Owner listed anywhere in the entity properties. So I made the defects.seccodeid visible as this is where profiler seems to be inserting that field to and am trying to use the following code to populate the existing Owner lookup:
newDefect.Seccodeid="F6UJ9...."; //valid team id
The owner lookup still shows up as owned by 'Everyone' and throws this error on save when I try to set it through code: Invalid index 12 of this OleDbParameterCollection with Count&H12.
To populate the owner lookup I also tried similar things as:
newDefect.Owner="F6UJ9....";
newDefect.Owner.Id="F6UJ9....";
newDefect.Owner=Sage.Platform.EntityFactory.GetById ("F6UJ9....");
newDefect.Owner.Id=Sage.Platform.EntityFactory.GetB yId("F6UJ9....");
newDefect.SeccodeId=Sage.Platform.EntityFactory.Get ById("F6UJ9....");
Any thoughts?
[
Reply
][
Quote
]
Nicolas Galler
Posts: 93
Re: Set Default for Owner owner lookup on Insert Defect
Posted: 19 May 09 10:28 AM
You should see Owner under the Child Properties for the defect... the way to set it would be something like (add angle brackets as needed):
newDefect.Owner = EntityFactory.GetById IOwner ("F6UJ9...")
Don't set the Seccodeid directly because this will confuse NHibernate (this is when you might get errors such as "Invalid index in OleDbParameterCollection" - basically it tries to add the field twice)
At least this is the way it worked with other entities - I have not worked with the Defect entity yet. In my case I have it running as a "Post" step of the OnCreate event (this is on the Opportunity entity though so might be a bit different). Another thought is make sure there isnt a stock SLX business rule that runs after yours and resets it. The default "OnCreate" rule on the Defect entity will set the Owner to Everyone. Also, if you are setting it in an event handler on the form, it is possible that the databinding is overwriting your value. If you do it as an event handler on the entity itself you should not have this problem. Unfortunately these can be very hard to track down!
[
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
|
page cache (param): 7/6/2025 1:53:33 PM