I am using a CSV datasource and have created Variables like here, with a list of values:
I want to reference this in my query and so I use the Transform option like below, but it doesnt work. Any idea how I can do it better or right?
Thanks in advance.
Related
I want to use the table obteined by using gtsummary components.
For example, I'd like to use a tbl_svysummary object as a new dataframe. Also, beign able to report a tbl_strata in a word document would be great. Nontheless, I donĀ“t know it this is actually possible.
I'm fairly new to grafana and I am confused how to solve this elegantly:
I have a custom dashboard variable ["device1", "device2", "device3"].
I know how to use the $(variablename) Syntax to query for the currently selected option.
But in an overview dashboard I want to query for all 3 devices from the variable.
Is there a way to use the actual array instead of the currently selected option in queries?
Or is there any other way that I could define a set of values per org by which I then can query?
Thx
In my model I want to loop through the database which contains multiple columns (see example) by an event. The idea behind it is that I want to create dynamic events based on the rows in the database.
But I've no clue how to iterate through a database in anylogic and also was not able to find an example of a loop with a database.
The dummycode of my problem would look something like this:
For order in orderdatabase:
Create order based on (order.name, order.quantity, order.arrivaltime, order.deliverylocation)
Where order in the loop is every row of the database, and the value on which the creation is based based on the different column values of that specific row.
Can somebody give me a simple example of how to create such a loop for this specific problem.
Thanks in advance.
Use the database query wizard:
put your cursor into a code field
this will allow you to open the database wizard
select what you need (in your case, you want the "iterate over returned rows and do something" option
Click ok
adjust the dummy code to make it do what you want
For details and examples, check the example models and the AnyLogic help, explaining all options in detail.
I am using Grafana and InfluxDB with K6. My tests are generating data for some metrics and I am always defining a test-wide tag testrunname which is set to a different value every time.
In Grafana, I want to add a variable in my dashboard, and I want it to be one of all the available values so far added for the tests that I run. Basically the dropdown will have to display all the values of tag testrunname available in the database.
Not having much luck so far.
How to achieve this?
The query is:
SHOW TAG VALUES WITH KEY = "testrunname"
From documentation.
In AppMaker, one my datasources has a simple query script associated with, because I need a filter everytime the datasource is requested. I'm talking about a normal SQL based datasource (not calculated).
Is it normal than this query script is not used when the datasource is used in a Suggest box ? Because it breaks my app (the user is able via the suggest box to select items he's not even supposed to see).
Thanks for your help
The options for a suggest field text box can either be provided explicitly, by binding to the options property, or by specifying a database query on a model using a startsWith filter on a field. You can set the model and field for the latter option below.
So you can try to create calculated model with server script starts with
var name = query.filters.name.startsWith;
name is field of model