Developer forum

Forum » Integration » Database table for Category group field values - type: list box

Database table for Category group field values - type: list box

Davy Capiau
Reply

Hi,

Where can I find the values for list box type fields in the attribute groups?

 

Kr Davy

 


Replies

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

You should be able to find the options in the EcomFieldOption table (and translations in the EcomFieldOptionTranslation table).

/Morten

Votes for this answer: 1
 
Davy Capiau
Reply

Thanks Morten; I have a follow up question:

FieldOptionFieldId sometimes has a special structure ('ProductCategory|Reference_Bike|Wheel_size')  if it's part of a product category. In which table is this constructed? What are the 'rules' for this structure?

I'm asking because I want to import the list option values via an Excel template

 

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

The FieldOptionFieldId for a product category field is constructed like this...

ProductCategory|{category id}|{category field id}

where

{category id} = [EcomProductCategoryField].[FieldCategoryId] (references [EcomProductCategory].[CategoryId])
{category field id} = [EcomProductCategoryField].[FieldId]

So, in your example, "ProductCategory|Reference_Bike|Wheel_size", the "ProductCategory" part is just a prefix, the "Reference_Bike" part is the category id and the "Wheel_size" part is the category field id.

I hope this makes sense.

/Morten

 

You must be logged in to post in the forum