Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Due to public holidays and vacations, longer response times can be expected for inquiries in the forum between May 18, 2024 and June 2, 2024.

data columns displayed

More
10 years 7 months ago #213 by Paulj
data columns displayed was created by Paulj
Hello again,

The "dispaly data" link works fine, however, the columns are displayed unsorted and the title is the LABELs and not the ALIASes. In my form, some LABELs are repeated twice, so it's quite difficult to sort out wich column it is.

Is it possible to have the column sorted ? to display the aliases ?

Thanks

Paul

More
10 years 7 months ago #214 by Administrator AV
Replied by Administrator AV on topic Re:data columns displayed
Hi Paul,

for this you have to change a bit of code. Sorry for that. I will adapt the component in the next update.

to show the aliases you have to open

yourJoomlaInst/administrator/componenten/com_visforms/views/visdata/tmpl/default.php

search for the following code (about line 147)

<?php echo JHtml::_('grid.sort', $rowField->label, 'a.F'. $rowField->id, $listDirn, $listOrder); ?>

and replace it with

<?php echo JHtml::_('grid.sort', $rowField->name, 'a.F'. $rowField->id, $listDirn, $listOrder); ?>


For the ordering open file

yourJoomlaInst/administrator/componenten/com_visforms/models/visdata.php

search for the following code(about lin 269) in public function getDataFields()

$query = ' SELECT * from #__visfields as c where c.fid='.$this->_id.' ';

and replace it with

$query = ' SELECT * from #__visfields as c where c.fid='.$this->_id.' ORDER BY c.ordering ASC ';

Sorry you have to change code in my extension but it's the only way.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
10 years 7 months ago #215 by Paulj
Replied by Paulj on topic Re:data columns displayed
Excellent ! quite doable even for a non-expert !!
Thanks

More
10 years 4 days ago #568 by parashuram
Replied by parashuram on topic Sort columns by name or F1 or as we wish
Hi Aicha

I would like to sort the table while displaying by Name which is set to F1 field. Please suggest.

Thanks

More
10 years 4 days ago #569 by Administrator AV
Replied by Administrator AV on topic Sort columns by name or F1 or as we wish
Hi parashuram,

there is no parameter to set a default sort coloum for data view in frontend. Usually you would have to set the the parameter "show table headings" in the frontend data menu item to yes and users could sort record sets then according to their requirements by clicking on the the table heading of the column they want to sort by.

To make it work as a parameter you can set in backend is much more complicated and would need proper testing. Therefore no code here. Sorry.

Kind regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum