Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Metzlerd, First of all , I wanted to thank you for the module is great and really sorry for my english (I'm argentinian).
I need insert the report parameters with the fixed values, without do an sql consult from database, for example:
<select id="allMonthsOfYear">
<option value="january">January</option>
<option value="febrary">Febrary</option>
<option value="march">March</option>
<option value="april">April</option>
bla bla bla ...
</select>
It's that possible ???
Thank you so much !
Regards.
Comments
Comment #2
jpfrancesconiComment #3
jpfrancesconiComment #4
metzlerd CreditAttribution: metzlerd commentedYes it is quite possible. Although most data blocks in forena are created as SQL data blocks, forena has the ability define data blocks that are constant using XML data blocks as well. An example of an XML data block can be found at:
http://cgit.drupalcode.org/forena/tree/repos/forena_help/switches.xml
These data blocks can be used as data sources for select parameters. In the same folder as your .sql file, create an XML file that expresses the options that you need... something like:
If you named this file "months.xml" and put it in the same folder as your SQL data blocks, you could reference a data soruce of "youdata/months" for the select options of a "select" parameter. Does this make sense to you?
Comment #5
metzlerd CreditAttribution: metzlerd commentedPS: Drupal is an international community.... you never need to apologize for your english skills here. ;)
Dave
Comment #6
jpfrancesconiGod bless you , dear Dave . You've been very helpful.
I hope soon to receive some news from Forena !
When you come to Argentina, you are my guest of honor ;)