Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, April 25, 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!
 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: DataGrid bound to code snippet property error: Could not resolve property
NixDev
Posts: 98
 
DataGrid bound to code snippet property error: Could not resolve propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 10 10:58 AM
I have a datagrid bound to salesorders. I want to display a code snippet property in one of the columns.

The code snippet looks returns a double and looks like this:

result = 0;

(i'm just testing at this point)

The form compiles nicely, but when I try to run it i get the following error:

"could not resolve property: ItemsExtendedPriceSum of: Sage.SalesLogix.Entities.SalesOrder"

Any ideas why this is happening? Is it that I cannot display code snippet properties in datagrids???
[Reply][Quote]
Mike LaSpina
Posts: 116
 
Re: DataGrid bound to code snippet property error: Could not resolve propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Sep 10 1:21 PM
Change the "Use Smart Selection" property on the datasource associated with the grid to "False". This will allow you to use code snip properties in your grid.
[Reply][Quote]
Lori
Posts: 8
 
Re: DataGrid bound to code snippet property error: Could not resolve propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Sep 10 10:50 AM
Here is the detail on Use Smart Selection from the Application Architect help:

Use Smart Selection
Description: Sets a value indicating whether smart selection is enabled. This property applies only to any GetByProperty that is a collection.

To use this property: Select a value from the drop-down list.

- True - the data source builds a query that returns only the fields/properties used in the list. Selecting True enables the Data is Optional property used to specify the direction of queries with joins.

- False - returns all properties of the entity.

True can be used whenever all columns on the grid are mapped to database fields. When a grid column maps to a calculated field defined as a code snippet property, the value must be False. However, if the calculated field was defined in the Administrator, the value can be True.

Default Value:
False

[Reply][Quote]
NixDev
Posts: 98
 
Re: DataGrid bound to code snippet property error: Could not resolve propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Sep 10 2:53 PM
Worked a treat, thanks!
[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): 4/25/2024 2:51:58 PM