This topic is locked

multicolumns in dropdown box

7/1/2023 5:38:00 AM
PHPRunner General questions
F
francesco author

Can you give me some suggestions to have more than one column this in selection boxes? is it just a css task?
appreciate your help
img alt

Admin 7/2/2023

No, this is not a CSS task. It can be handled with the help of Javascript and the best option is to create 'Edit as' plugin for this purpose based on any of examples available on the web.
We will talk about this in one of the upcoming DevClub webinars.

francesco 7/2/2023

thanks for the advice, I found this:
https://github.com/djsmithme/Multi-Column-Select
but creating a plugin exceed my knowledge. Maybe this could be a suggestion for a new plugin in the marketplace, like RecordAudio plugin you created on my input :)

fhumanes 7/3/2023

Hello,
It is understandable to establish that the simplest, for use, is to have a phprunner plugins, but it is much easier to use these possibilities without having to develop the plugin.
In this link I put how it can be used and there is an example of a specific case.
https://fhumanes.com/blog/guias-desarrollo/guia-13-phprunner-nuevos-tipos-de-entradas-de-datos-integracion-de-javascript/
Greetings,
fernando

francesco 7/4/2023

thanks Fernando, you always have an example for everything! I don't know if I can, but your guide is very clear
I will try with this: Multi-column Dropdown

francesco 7/20/2023

Admin just released this plugin that should do what I need:
https://xlinesoft.com/marketplace/multicolumn
Thanks to admin for support and continuous improvement

Admin 7/20/2023

We have created this plugin in our latest DevClub webinar:
https://xlinesoft.com/devclub

fhumanes 7/20/2023

Phenomenal!!!!
I will review the code to learn new techniques.
Thank you so much,
fernando

francesco 7/22/2023

can be used with dependent dropdown boxes?

Admin 7/24/2023

img alt

francesco 7/25/2023

thanks, I will ask for support to insert in my project

fhumanes 9/27/2023

Hello,
I have been reviewing the code of this plugin (to learn) and when I have tried to make it work with the management of the dependency, it seems to me that the code uploaded is incomplete.
In fact, even introducing part of the parameters that seem to be missing, I have not yet operated.
If someone has been able to try it and worked with the management of "dependence", please pass me the code to see what you can miss.
On the other hand, a very valuable functionality that the standard phprunner lookup has is the "Autofill". I don't know if you have given it in classes/audits, but it would be very powerful to include it in the plugins codes.
Greetings,
fernando

francesco 9/28/2023

Hi Fernando, these are some settings that support provided me. See if it can help you.
I think code need some optimization to show a selection box like picture.
`

  1. Page Designer --> orario table --> add page --> add page properties --> Custom CSS:

Add the following code:

.gentleselect-dialog ul{
background-color:white;
}

  1. Events --> Field events... --> tipologia_event --> Server

$sql = "select Operazione from operazione where tipologia=".$params["value"]." order by Operazione";
$rs = DB::Query($sql);
$w = $params["width"]/$_SESSION["settings_columns"];
$txt = "<li style='width:".$w."px;float: left;'> </li>";
while($data = $rs->fetchAssoc())
$txt.= "<li style='width:".$w."px;float: left;'>".$data["Operazione"]."</li>";
$result["txt"] = $txt;

  1. Page Designer --> orario table --> add page --> operazione control --> View as/Edit as --> Add tab --> Multicolumn

Add a new line of code to the very end.

$_SESSION["settings_columns"] = $this->settings["columns"];`

fhumanes 9/28/2023

Thank you,
I think this code does not solve the problems of dependence on another value of the screen.
Thanks for sharing.
Greetings,
fernando