Set-data and List-data not the same type of stored data??
Hi anyone who can help,
I made two page templates:
- The first one uses set-data to set the data Status:
{set-data:Status}green{set-data}
- The second one use a list-data to set the data Status:
{list-data:Status}{list-option}green{list-option}{list-option}orange{list-option}{list-option}red{list-option}{list-data}
I have a page in which I'm doing a report table with this information
{report-info:data:Status}
{report-info:data:Status > trim > equals green> (*g)|render=wiki}{report-info:data:Status > trim > equals orange > (*y) |render=wiki}{report-info:data:Status > trim > equals red >(*r)|render=wiki}
All pages created with my both templates are well listed in the report but
With the first template I have the Status value and the related star
With the second template I only have the Status value.
How can I display may star with input coming from my second template?
Regards,
Cyrille
I made two page templates:
- The first one uses set-data to set the data Status:
{set-data:Status}green{set-data}
- The second one use a list-data to set the data Status:
{list-data:Status}{list-option}green{list-option}{list-option}orange{list-option}{list-option}red{list-option}{list-data}
I have a page in which I'm doing a report table with this information
{report-info:data:Status}
{report-info:data:Status > trim > equals green> (*g)|render=wiki}{report-info:data:Status > trim > equals orange > (*y) |render=wiki}{report-info:data:Status > trim > equals red >(*r)|render=wiki}
All pages created with my both templates are well listed in the report but
With the first template I have the Status value and the related star
With the second template I only have the Status value.
How can I display may star with input coming from my second template?
Regards,
Cyrille
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Hi Cyrille,
I tried to replicate this issue but I got the status and the star in both instances using the following:
{set-data:Status1}red{set-data}
{list-data:Status2}{list-option}green{list-option}{list-option}orange{list-option}{list-option}red{list-option}{list-data}
{report-info:data:Status1}
{report-info:data:Status1 > trim > equals green> (*g)|render=wiki}{report-info:data:Status1 > trim > equals orange > (*y) |render=wiki}{report-info:data:Status1 > trim > equals red >(*r)|render=wiki}
{report-info:data:Status2}
{report-info:data:Status2 > trim > equals green> (*g)|render=wiki}{report-info:data:Status2 > trim > equals orange > (*y) |render=wiki}{report-info:data:Status2 > trim > equals red >(*r)|render=wiki}
Regards,
Oeyvind -
Inappropriate?Just to add to this, Oeyvind's results will happen with the latest version of Scaffolding/Reporting (3.2.x). Older versions will not quite work the same. The reason is that set-data and list-data do in fact save their values as different data types. list-data has multiple types of data that it can contain (content-options, user-options, etc), and as such has different structure. Also, it can be a multiple-select value, which also complicates things. Scaffolding 3.2 simplified things a bit to make things like your example easier.
In your case, to get the list-data example working, just do this add a 'reference:value' key after the data value. Eg:
{report-info:data:Status > reference:value > trim > equals green> (*g)|render=wiki}{report-info:data:Status > trim > equals orange > (*y) |render=wiki}{report-info:data:Status > reference:value > trim > equals red >(*r)|render=wiki}
Hope that helps.
Loading Profile...



EMPLOYEE
EMPLOYEE