Developer forum

Forum » Integration » FieldPresentationType use

FieldPresentationType use

Davy Capiau
Reply

Hi team,

 

I'm importing attributes and I came across the header 'FieldPresentationType' in table 'EcomProductCategoryField'.  When I look to the documentation it tells me it's one the values below, if not you can leave empty (source):

  FieldPresentationType
1 RadioButtonList
2 DropDownList
3 MultiSelectList
4 CheckBoxList

But when looking at the demo data and own tests, I can see it's never empty. It often has values like '4' when creating a text field. So I recon I'm missing something?

 

Examples of Date and text field that have FieldPresentationType 4:

 

 


Replies

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply
This post has been marked as an answer

Hi Davy,

In table EcomProductCategoryField you should distinguish between columns FieldType and FieldPresentationType

I grant you that it is not very transparent, but for fields that have OptionValues, the FieldType is 15, and the type of OptionField is defined by FieldPresentationType.

If a field is not an option field, it will still have a default value of 1 in FieldPresentationType (but is just ignored by API).

If a product has any selected options (like from three last rows in screenshot), they are to be found in table EcomProductCategoryFieldValue.

BR
Snedker

 

Votes for this answer: 1
 
Davy Capiau
Reply

Hi Morten,

Thanks for your feedback. It alligns with the documentation, but not what I see in the application.

Since you confirmed it as well, I will just use 1. If I come across issues I'll report it here.

KR

 

You must be logged in to post in the forum