Automatic updating of layout region text

Asked by Anton

Hi,

I am trying to use Xibo API by Python to update the text content of regions hourly. The content is in a file that is located on Xibo server. So far, I have managed to upload my file so that my data can be found from dataset columns.

However, I could not add the dataset to a layout region. Only the following methods are available for adding to region:
LayoutRegionMediaAdd
LayoutRegionLibraryAdd

So no separate method for adding a dataset. When I try to use LayoutRegionLibraryAdd, I have following error: "You have selected media that you no longer have permission to use. Please reload Library form." I don't know what updating the library form means. I have all permissions for all in both dataset and layout. I use the dataset ID as the media ID for the method.

How would you add a text to a region? is there any simpler way to add a string to be visible on display, like in GUI you can write your own text there.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Garner
Solved:
Last query:
Last reply:
Revision history for this message
Best Dan Garner (dangarner) said :
#1

There isn't an API method for adding a datasetview to a layout, this would be a useful addition to the API... but in your case, why would you want to.

This is the process I think you want:
 * Create your dataset and configure the columns you need to represent your data
 * Create a Layout with a Data Set View on it, set it how you want (or a DataSet Ticker, either is fine).
 * Use the API to update the Data Set
 * The Layout is automatically updated with the new data

Makes sense?

Revision history for this message
Anton (anenq) said :
#2

Thanks Dan Garner, that solved my question.