Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Sunday, February 23, 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)
2/23/2025 5:57:20 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!
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: Address Control
Rohan Verghese
Posts: 40
Address Control
Posted: 22 May 08 3:21 PM
I'm trying to use the Address Control. It seems to work for records that were already created, but doesn't work when inserting a new record. For example, I have a field addressId in the main record. I enter a new record and fill out the address, but that field never gets the Id of the associated Address record.
Is there a way to get the address control to automatically save the proper Id, or do I need to write code to save the address properly?
[
Reply
][
Quote
]
Rohan Verghese
Posts: 40
Re: Address Control
Posted: 26 May 08 1:00 PM
It appears that the Address Control does not have any bindings for the Address property of the target entity or a binding for the EntityId of the Address entity. So you can't create the foreign key relationships by default. (Pretty big oversight, imo. These bindings would make the Address Control so much more useful.)
I think I can create the Address instance manually in the OnCreate event for the target entity. However, I'm having trouble setting the EntityId property of the Address.
When is the primary key for a new record generated in the new system? I need to set the EntityId after the primary key is generated, but before the entity record is written to the database. Is there a point or method where I can generate the primary key manually?
[
Reply
][
Quote
]
Rohan Verghese
Posts: 40
Re: Address Control
Posted: 27 May 08 4:10 PM
Got this to work finally. Just noting the steps in case anyone else needs to use the Address Control.
In the OnCreate event for
entity
, you need to add a code snippet:
Quote:
using Sage.Platform;
entity
.Address = EntityFactory.Create<IAddress>();
Then in the OnBeforeInsert event, you have a code snippet:
Quote:
entity
.Address.EntityId =
entity
.Id.ToString();
[
Reply
][
Quote
]
Ryan Farley
Posts: 2265
Re: Address Control
Posted: 27 May 08 6:29 PM
Nice little conversation you've been having with yourself Rohan
Thanks for sharing this, I'm sure this will come in handy!
-Ryan
[
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): 2/23/2025 6:09:55 AM