ProcessMaker code contributions

Moderator: ArturoRobles

By HeshanKaru1994
#824302
Hi, How to generate dropdown values(array variable ) from using pm tables. (Working sample would be nice)

Thank you
User avatar
By amosbatto
#824326
Can't you figure it out from the example in the documentation?
Code: Select all
@=varDataSource = array();
$result = executeQuery("SELECT MY_VALUE_FIELD, MY_LABEL_FIELD FROM PMT_MY_TABLE");

if (is_array($result)) {
    foreach ($result as $row) {
        @=varDataSource[] = array($row['MY_VALUE_FIELD'], $row['MY_LABEL_FIELD']);
    }
}
User avatar
By amosbatto
#824327
Also, please post these types of questions in the "Developing processes & programming" forum.

This forum is "Community Contributions > Code" and it is for contributing code to the ProcessMaker source code.

Thuộc loại Cụm máy nén giải nhiệt nư[…]

Hiện nay, việc thưởng thức một ly cà ph&eci[…]

Hi there, I want to help but still don't get a f[…]

golden goose system

<b><a href="https://www.goldengoosel[…]