cancel
Showing results for 
Search instead for 
Did you mean: 

How should we handle multivalue property which is kind of Map(Key Value pair)

mitpatoliya
Star Collaborator
Star Collaborator
I am having requirement where I need to maintain one property which is  multivalue property but with each value has two different part. kind of Map(Key Value pair)

I see two options
1) Create new content type with two properties and associate it with main contain
ISSUE:There are going to be too many objects with in repository and it will be difficult to maintain them and I need to go and create object explicitly then associate it with main object.

2) Create property with multiple as true
I need to create new control which could parse multivalue property into multiple text box.
1 REPLY 1

s_palyukh
Star Contributor
Star Contributor
If you don't need to search by this property:

1) Make new string property, set multiple in true
2) Save data in this property as JSON (for example: "{ 'key' : 'value' }")
3) Make custom control where you will parse value of the property and do all what you need