Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Problem with Eval Custom Field in Transformations View modes: 
User avatar
Member
Member
magnus-tenk - 10/17/2012 12:38:34 PM
   
Problem with Eval Custom Field in Transformations
I am playing with the E-commerce templates "ProductPreviewForThreeColumnsLayout"-transformation.

I can not get it to return any data from Custom Fields like for example
<%# Eval("TvScreenSize") %>

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/18/2012 1:39:03 AM
   
RE:Problem with Eval Custom Field in Transformations
Hi,

How and where is the TvScreenSize field defined?

Best regards,
Juraj Ondrus

User avatar
Member
Member
magnus-tenk - 10/18/2012 2:57:49 AM
   
RE:Problem with Eval Custom Field in Transformations
It's defined in the Document type Products - TV in the E-COmmerce sample site.

I will of course deploy my own version of this. I just selected this product/document and field for your convinence as it is directly from your sample data. I just can't figure out why I only can access the "SKU-fields" but not the Document Fields through Eval(). Am I missing a reference somewhere?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/18/2012 3:04:25 AM
   
RE:Problem with Eval Custom Field in Transformations
Hi,

Thank you for the information - what web part you are using? Well, in the sample site is used product datalist which selects onlu COM_SKU table fields. If you want to use also the document fields, you need to use e.g. repeater or general datalist web part.

Best regards,
Juraj Ondrus

User avatar
Member
Member
magnus-tenk - 10/18/2012 1:55:51 PM
   
RE:Problem with Eval Custom Field in Transformations
Thank you for the clarification. I swapped from the DataList to a Product Datasource and a Repeater and everything is work great. I can access both Product and Document fields.

/Magnus