Developer forum

Forum » CMS - Standard features » Repository Index - Create new field

Repository Index - Create new field

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

Working with integration and large amounts of attributes being brought over automatically, our integration specialists have the need to store the systemName as IDs to match the ERP. 

 

This is the result https://www.screencast.com/t/og1r9AyiOiu2

 

So I am stuck between a rock and a hard place. How can I direct the integration specialists to give them an ID, and the frontend developer has something meaningful in the backend?
(BTW I compromised in having the TemplateTag field to be the label without special characters - this allowed the frontend developer to have some "context awareness" when requesting the tags)

Looking forward for a solution indecision

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

What is the question or request?

To use labels in the dropdowns?

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

I don't even know if it's a question or a request.

  • If the proper result is a label, then it is a request
  • If the proper result should still be a system field (which I am totally fine with), then should we do something different to be able to do custom fields, category fields and property field definitions be 100% integrated?

 

I am guessing showing labels would be a quicker solution.

 

Best Regards,

Nuno Aguiar

 
Nicolai Pedersen
Reply

Showing labels would help in your scenario - to understand what the field is. The reason for displaying system names is that they are unique and what you understand as an implementer.

Do you have any suggetions to your option 2 - not sure I fully understand what you want to happen... Please explain how that should work and what changes are required.

Thanks, Nicolai

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

That's great for Option 1. I understand where you are comming though.

 

As for option 2, I don't probably need it now. But it is important to let you know why we use Ids in the systemName.
The requirements actually comes from our Integration team. This is associated with large amounts of attributes in the ERP that we need to bring over to DW dynamically. not all ERPs will have a "human" readable Id. They will likely have a lablel (that may change) and a GUID or ID (which is this case).

 

So in our integration when bringing over product field, product category fields and product properties definitions we:

  • Bring the Label from the ERP
  • Set the TemplateTag field from the Label (stripping out special characters) - only on create, never on updates. So if someone fixes a typo on the label (in DW or the ERP), the templates still work as intended
  • We need to leave the SystemName to be "parsable" - for that reason we use the GUID or ID from the ERP

 

This allow us to dynamically create large lists of attributes and in the templates we loop through the fields loop to create specification tables. Unless you know of a better way to handle this that we're not aware of, we'll need option 1 to make sense out of the fields in the repository's index.

 

@Scott Forsyth. Anything you'd like to add to this? Essentially I understand you need an ID to match with the ERP in Integration, but I also need something that's readable to work with in the backend. We've solved for the templates, but the system name is still visible/used at least the repository.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum