Forums

format the table

salvok5 04 Feb, 2017
HI, Max
I can achieve this with some function to "Columns classes"?
how can I do ?
Max_admin 04 Feb, 2017
Answer
Hi Salvo,

No, you will need to use some custom CSS, and this is not advised, you better use the "repeater" view, the repeater will loop over all the items in the data provider, you can then open a table in the header and close it in the footer, and add the rows code in the repeater body, you can create a connection copy and try this.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
salvok5 04 Feb, 2017
ok, in the "repeater" on put :

Data provider
{var:richiama_elencogruppo}

Content
<?php
echo $this->get("richiama_elencogruppo.row.docu.SCADENZA");
?>


does not return the value of the field.
Where am I wrong?
Max_admin 04 Feb, 2017
1 Likes
Hi Salvo,

In the code, please replace "richiama_elencogruppo" by the repeater view name, because you are referencing the repeater data now, not the data provider.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
salvok5 04 Feb, 2017
Thanks Max, for his precious advice.
Very soon I will make payment of the library.
salvok5 06 Feb, 2017
you fail to insert on the forum a new topic
salvok5 06 Feb, 2017
hi Max,
you fail to insert on the forum a new topic
therefore I expose the problem on this post

Problem: fill a dropdownlist from a field

I put on Views a dropdown (name-> select5[] id-> select5)

so I inserted Events->Index:
{fn: richiama_atto}
{view:Campi-ricerca}

how I do calling events->index to populate a dropdown from a field in a table ?
Max_admin 06 Feb, 2017
Hi salvo,

what happens exactly when you try to post a new topic ?

You populate a dropdown from a db read function this way:
#1- call the read data function in the event before calling the fields view, make sure the read data function "data" is set to "array of key/value", and write the 2 fields you want in the "Fields list", do NOT mark the "this is an extra fields list".
#2- add the {var:function_name} to the "options" box of the dropdown/checkboxes group or radios.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
salvok5 06 Feb, 2017

Hi salvo,

what happens exactly when you try to post a new topic ?
Best regards,
Max


clinking on "Create new topic" ,
from a blank page and so firm.
salvok5 06 Feb, 2017

You populate a dropdown from a db read function this way:
#1- call the read data function in the event before calling the fields view, make sure the read data function "data" is set to "array of key/value", and write the 2 fields you want in the "Fields list", do NOT mark the "this is an extra fields list".
#2- add the {var:function_name} to the "options" box of the dropdown/checkboxes group or radios.


for my RESULT no good.
I explain to you
I have two fields on the table
TITOLO_SECT and GRUPPO
various records are as follows:

TITOLO_SECT | GRUPPO
Avvisi sindacali | 1
Avvisi momentanei | 1
Delibere momentanei | 2
Delibere Tipo | 2
Delibere Vari | 2
Determine | 3
Determine varie | 3
Determine tipo | 3


should give me have results grouped by GRUPPO field that is on
DropDown must see only 3 extrapolating the first word of TITOLO_SECT field:

Avvisi
Delibere
Determine
Max_admin 08 Feb, 2017
Hi Salvo,

In the dropdown options field, just write this line:
{fn:read_data}{var:read_data}

Now your "read_data" function, must have the "select type" set to key/value pairs, and pagination disabled, and fields to retrieve:

gruppo
titolo_sect

and the "this is an extra fields list" disabled.

But if you want to get the first word only then you will need one extra php function to modify the array data before they re used by the dropdown.

When do you get the blank page when you create the topic ? before or after you write the text ?

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
salvok5 08 Feb, 2017
1 Likes

When do you get the blank page when you create the topic ? before or after you write the text ?


ok, now it's work
This topic is locked and no more replies can be posted.