Developer forum

Forum » Dynamicweb 10 » Field type provider

Field type provider

Rene Poulsen
Rene Poulsen
Reply

Hi,

I'm trying to create a custom FieldTypeProvider in DW10 because I need to have a field for EcomGroups where I can choose a FieldDisplayGroup. I'm having trouble getting a simple field working at all.

UPDATED:
Do any of you have an example of how to create a FieldTypeProvider using a select / dropdown. Just a simple working example (can't find any useful documentation on it).


Replies

 
Rene Poulsen
Rene Poulsen
Reply

Another issue related to my abilities to create a non-working field ;-)
In the EcomProductGroupField table, my fields are not present any more because I tried to delete them. But when I got to Settings > Products > Attributes > Group fields, they are still listed. When I try to delete them, I get an error. It makes sense, as they are not present in the DB. But why do they still show up in the Group fields overview?

 
Rene Poulsen
Rene Poulsen
Reply

And here's a screenshot from the DB:

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It is caused by cache not being updated automatically when doing things on the database.

You can reset the cache - by restarting the solution or resetting cache from Settings => System => Developer => Cache => Service cache:

 
Rene Poulsen
Rene Poulsen
Reply

@Nicolai. Thank you.

Can you provide a simple working example of a Field Type with a select/dropdown actually working? Just with some hardcoded values. I can easily populate the dropdown with whatever I need. But I just need a simple working example of a field to begin with.

 
Rene Poulsen
Rene Poulsen
Reply

@Nicolai - got any simple sample code for a working provider? We need it to work on EomGroups. As mentioned earlier - an example with hardcoded values in the select / dropdown is fine.

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Rene,

I will look into it, and come back to you ..

/Søren

 
Rene Poulsen
Rene Poulsen
Reply

@Søren thank you.

 
Rene Poulsen
Rene Poulsen
Reply

 @Søren Jensen. Any news on this one?

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Rene,

I have now invistigated your above needs of using FieldTypeProvider interface, to build your customize solution.

It is at the moment not possible, because our FieldTypeProvider are based on fetching data, manipulate/customize and present it formated.

But can you explain, what exacly it is you are trying to solve ? 

If you want, we could also make a Team meeting ..

/Søren

 
Rene Poulsen
Rene Poulsen
Reply

Hi Søren,

Ok, well there's not much to about that right now then I guess. Will it be fixed in a future release?

What we need is the ability to choose a Field Display Group (FDG) on eCom groups. The display group will be used to show a list of products - with a name, a price - and fields from the field display group. This way the fields in the list of products can be generic - depending on the group and it's selected FDG. We need this for a customer beacause it doesn't make sense to show the same fields accross the groups of products they have. Any other idea of getting this to work? Only way I can think of is having a textfield where you enter the ID of the FDG, but it's really not intuitive for our customer to have to find the correct ID of the FDG and enter it on a group.

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Rene,

You are able to use individual "Detail page" on Products, depending on where the product are placed in Shop-group-structure ..

It can be set on each Group (look below), so there you are in control of layout and content and also which FieldDisplayGroup to use

I think that would solve your challenge 

/Søren

 
Rene Poulsen
Rene Poulsen
Reply

@Søren this would require way to much setup for our customer. They have 6000+ products.

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Rene,

As you write in previous text ..

"The display group will be used to show a list of products - with a name, a price - and fields from the field display group. This way the fields in the list of products can be generic"

.. is it the Product List screen columns you want to control ?

/Søren

 
Rene Poulsen
Rene Poulsen
Reply

@Søren

I'm not quite sure I understand your question. But when on a product detail page, we want to show other products from a specific group. These products are shown in a list - and we want to show different fields for the products, depending on which group they belong to. That's why a custom field on the groups would really help here :-)

 
Rene Poulsen
Rene Poulsen
Reply

@Søren let me know if it's still not clear what I want to accomplish :-)

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Rene,

Well .. now I think I can see the point ..

You want to control which Fields to show as Columns, from products there related, as List on the product detail page .. 

As below example, taken from a Swift setup

Please let me know, and maybe we should make a Team meeting next week ..

/Søren

 
Rene Poulsen
Rene Poulsen
Reply

@Søren - exactly! :-)

I'm not working mondays, but the rest of the week my calendar is pretty open atm. My email is rp@gotcha.dk. A Teams meating would be great. We are acually using Swift for the solution, but I haven't set up the PIM and Integration, but we can have a look into it and see if we can fix it together.

 

You must be logged in to post in the forum