Squiz: How can I loop through multiple Select field metadata options? - squiz

I have a metadata field consisting of a series of checkboxes. I can output them as below:
%globals_asset_metadata_blog.tags%
This outputs the metadata options as such:
item1; item2; item3;
However, I would like to loop through these so I can wrap them in some HTML.
Would anyone know how to achieve this?

Related

How write collection columns values to columns in table in word document in blueprism

I am working in blueprism and I have to loop through a collection to write back certain columns in the collection to a word file (using Business Object: MS Word VBO, and Action: Type Text). The current setup writes the collection columns values at the beginning of the word file. I would like to have those collection columns to be written in a specific table that already exists in my word template file. How can I achieve that?
Current process:
enter image description here
The current way the collection column values are written in word file:
enter image description here
I tried Set Table Cell Value and it solved my problem.

custom rows in react-admin list view

I am using the react-admin list component and want to add a custom layout for specific rows.
Usually, each row is build by the list component using the data from the data-provider. I would like to customize specific rows based on the data of the row. These specific rows should not use the standard layout (and columns), but a specially defined one.
Here is a example, what I am looking for:
The special rows should be selected according to the data object.
Standard data object, which forms a standard row, may look like:
{
id: 127,
Reference: "OEPEE4",
author_id: 12,
...
}
The special entry may look like:
{
id: 128,
isSpecial: true,
text: "Lorem Ipsum ...",
...
}
Does anyone know how to achieve this?
Thanks!
I think the key lies in creating your custom DataGrid component's body and rows, because that way you would be able to check the value of record.isSpecial, as the record is passed to the component. Take a look at this part of the docs.
I tried playing around a bit with a custom DataGridRow (here's the sandbox), and I was able to display only the text when the record has the isSpecial property, although I think you would need to style the cells and the row. Maybe you get some ideas from it. Let me know if it helps.

Blueprism - Extract data from a web page into a collection

I am new to blue prism. I have a scenario where I am giving input (passengers details for traveling) to a travel portal and based on the input its generating a booking reference number, total cost etc. Now I want to read all the outputs into a collection but the problem is data is not tabular (cant use Get Table in read component). Its just the details of travel which are populating into textboxes. Please find attached the screen shot to have more clarity on this.
How to achieve this? Any leads will be appreciated.
Based on the screenshot you've provided, this is part of the Blue Prism Advanced Consolidation Exercise ("BPTravel").
"Get Table" won't work on this data because it is not a table. As you've mentioned, the data is presented in a series of textboxes.
The way to tabularize this data would be to create a Collection in your Process and manually define each of the Field Names in the collection, then read each text field in individually to the correct column in the collection.
Read each text box data into data item. Create a named collection (i.e Collection with pre-defined column name). Loop through the collection.column_name(You will be getting column name as collection by using Utility - Collection Manipulation action and get the column names) and first add a row to collection and assign values to collection fields

How can I change column headers in tables/pivot tables in icCube reporting v6?

Is it possible to change the column headers of tables/pivot tables? By default they are named as the hierarchy/measure.
You can use icCube Table's Cell Renderers to do that.
Cell renderers is a powerful feature of icCube tables, that provides a bunch of opportunities to configure look & feel of your tables.
It can be found under "Data Render Options" category of widget options.
Several Cell Renderers
If you have static order of columns in your table you can create cell renderers for each column bound by it's index:
First column:
Second column:
One Cell Renderer / Javascript Way
This is a dynamic solution and doesn't depend on columns order.
You might want to use "Top Header Text" field to overwrite header label as shown in the picture below:
In this case I've created an alias for header labels with this peace of javascript code:
This solution an code could be expanded to handle as many columns as you need.
P.S.
"Top Header Text" field's expression value suitable for your case:
var header = context.columnLabel()
switch(header){
case 'formatted_date_hierarchy': return 'Date';
case 'product_hierarchy': return 'Product';
default: return header;
}
UPDATE
Here is a Demo Report with first solution.

Set query to search all fields of a dojo datagrid

I have a Dojo DataGrid with several fields. I'm currently setting the query to search one field at a time, like so:
grid.setQuery( {name:"Bob"}, {ignoreCase:true} );
However I would like the query to search all the fields at once. For example say I have three fields titled "name", "friend", "family". Let's say I only want the rows that contain "Bob" in any of the three fields to show in the grid. How would I got about doing that without three separate queries?
Any help is appreciated.
Is your store an ItemFileReadStore or a QueryReadStore?
If ItemFileReadStore you may be able to utilize the AndOrReadStore
http://dojotoolkit.org/reference-guide/dojox/data/AndOrReadStore.html
Otherwise, my best suggestion for a limited fetch store would be to adjust your back-end code to support filtering options such that when the store makes a POST(or GET), you parse out an array of fields that you want to search against, and the result set is returned accordingly.
You'd see something like
start 0
count 25
columnsToQuery : ["name","friend","family"] //or perhaps a CSV string will do
columnOperator : "AND"
columnValue : "Bob"
You'd have to adjust the paradigm as per your business needs, but as long as the server can properly return the result set based on the filtering inputs this approach will work.
The call to generate such a request would be
grid.setQuery({
columnsToQuery : ["name","friend","family"],
columnOperator : "AND",
columnValue : "Bob"
});

Resources