Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By alisoroush7
#829286
hello guys,

i have a dropdown in a grid and i have a table in database. i want to fill the dropdown values from a field in database. what is the sql code for it?

Any comment will be appreciated.
By artreal
#829310
Hi alisoroush7,

In general, you can write a query when you create a dropdown list. This query will help you populate the value in the dropdown list. You can read this page:
https://wiki.processmaker.com/3.1/Dropdown_Control

I am also new and good luck learning.

Best
alisoroush7 wrote: Mon Jun 28, 2021 7:30 am hello guys,

i have a dropdown in a grid and i have a table in database. i want to fill the dropdown values from a field in database. what is the sql code for it?

Any comment will be appreciated.
By Martinboy22
#829320
you can try this one - its working for me
$sql="SELECT * FROM table_name" and display in HTML code in
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>

if you need more help I can write the code for you like I said before, just send me PM

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]