Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
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 ThreadView:  Search:  
 Author  Thread: LookUp DataBindings Not Working
ulaga
Posts: 28
 
LookUp DataBindings Not WorkingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 May 08 3:13 AM
hi

The following Scenario i applied for creating PropertyCharge Entity,PropertyCharges smartpart and AddEditPropertyCharge Child Dialog.

PropertyCharge Entity:-
Parent Properties:

1.ChargeMaster
This Relationship is represented by joining ChargeMaster.chargemasterid to PropertyCharge.chargemasterid
2.Property
This Relationship is represented by joining Property.Propertyid to PropertyCharge.PropertyId
Child Properties:
No child Properties defined

Property Entity:-

Parent Properties:No Parent Properties defined

Child Properties:
1.PropertyCharges
This Relationship is represented by joining Property.Propertyid to PropertyCharge.PropertyId

ChargeMaster Entity:-

Parent Properties:No Parent Properties defined
Child Properties:
1.PropertyCharge
This Relationship is represented by joining ChargeMaster.chargemasterid to PropertyCharge.chargemasterid


Then i created a new smart part in Property Entity called PropertyCharges.
Here i am displaying the PropertyCharge entity in datagrid.This smart part has small add icon,if i click that add icon it will open another dialog which has a field called
charge type(which is a lookup).The item which i selected in the lookup will get placed in chargetype field.

For this add icon,i have to set the insertchilddialog action,in this property i have to give entitytype as 'PropertyCharge',ParentRelationship Property as 'Property' and also add
smartpart as 'AddEditPropertyCharge'.

Note:-
For the ChargeType Lookup ,the databindings i have mapped 'MainEntity.ChargeMaster.ChargeType'

My Requirement:-When the user clicks the Add icon in PropertyCharges smartpart a child dialog should open which contains a field called 'ChargeType' a LookUp Field.If that lookup
is clicked Lookup dialog should open,there if the user doubleclick a record that record will be placed in ChargeType field.
Eg:-If user selects a record like 'Rent' or 'Furniture' it should be placed in ChargeType Field in the AddEditPropertyCharge Smartpart.

My output :-

But what happens is in chargetype field 'Sage.SalesLogix.Entities.ChargeMaster' is displaying when i select any record in lookup.

Ulaga
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: LookUp DataBindings Not WorkingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 May 08 10:21 AM
Quote:
Originally posted by ulaga

...But what happens is in chargetype field 'Sage.SalesLogix.Entities.ChargeMaster' is displaying when i select any record in lookup.


This is because you have not set a String Expression for the ChargeMaster entity. Open the entity in AA and on the last tab you'll find a place to specify this. You'll enter it in the format of:

${PropertyName}


Where "PropertyName is the name of the property you'd like to display for the entity (this is the "ToString()" override for the entity).

-Ryan
[Reply][Quote]
ulaga
Posts: 28
 
Re: LookUp DataBindings Not WorkingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 May 08 5:23 AM
It's Great .

Working perfectly
[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 | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 5:06:24 AM