Hello community,
I'm asking myself how to handle multi value attributes. I'm not much into them and can't find any tutorial how to handle them.
I choose multi value attribute and try to write some values in it and i expect something like "a|b|c" for the values a, b and c.
In the presentation tab i selected MultiSelect for the presentation.
But all I'm getting is an error with : "Value not legal for this attribute:...."

And this is my table for this attribute:

Am I right how to handle multi value attributes?
Grateful
Berkay
Request clarification before answering.
Hi Berkay,
As Steffi says, having an idea of what you want to do would be most helpful.
Here's some generic information that might be of some help while you are gathering those screenshots...
Let us know what you want to do and we can give you some more specific support!
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello folks,
After describing my problem and working on it afterwards it worked!
I could write in the multi value attribute, then read the entire column with uSelect(); and split the values with the split method.
I could sum it up in an array but needed to parse the values to int with pareInt();
This should be it.
Grateful,
Berkay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hay guys,
first of all you guys are awesome! Thanks for the quick answers.
At first i wanted to write data into a multi value attribute then process it. I'm on it to write a UI task to create your own scheduling rules for specific jobs.
I want to write / read the weekdays like in the scheduling rule.
It's like sunday = 1, monday = 2, tuesday = 4, wednesday = 8, ...
Now a user can pick a abitary combination of the weekdays and then a script or another process can add the sum of the weekdays for the entry of the mc_sched_rule table.
Like: Monday + Tuesday = 2 + 4 = 6. This tells us that the job will occur every Monday and Tuesday.
Now I want to process it in the background as numbers. That's why I took multi value attributes.

At first I used the the Value point for Leagal Attribute values:
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
The same error occurred.
Then I tryed an sql query to the mc_weekdays table.
The result wasn't satisfying, because an error occurred and the values in the attribute were over more rows.
Like: Monday (one row)
Monday|Tuesday (one row)
Tuesday (one row)
For the combination Monday and Tuesday.
The last tryout was the best one.
In this one I used Value Help. I defined my own 7 rows for all weekdays and the value for every day.

The value is correct for the attribute to precess it further on. (This error occurred for the values Sunday = 1 and Friday = 32)
But still the error occurred.
I hope I could make this more palpable.
Grateful,
Berkay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.