Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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.
A suggest control "customerName" which the underlining sql is simply selecting customer_id and customer_name from MySQL

For the moment I am using the following logic to detect whether something is found from the database and I am curious on how the others do it with PM?
Code: Select all
if ($("#customerName").getValue() == $("#customerName").getText()) {
// code for result NOT found
} else {
// code for result found
Sorry for the confusion. The query is simply "SELECT CUSTOMER_ID, CUSTOMER_NAME FROM CUSTOMER"

Let's say the table "CUSTOMER" contains records below

1, 'Steve'
2, 'Mary'
3, 'John'

Name of the Suggest control is customerName

If user input and select 'Steve' on the control $("#customerName").getValue() will return 1 and $("#customerName").getText() returns 'Steve', meaning that the two does not matches.

However, if I input 'Nicholas', both $("#customerName").getValue() and $("#customerName").getText() return 'Nicholas'

nothing will be found and below condition if ($("#customerName").getValue() == $("#customerName").getText()) { will be fullfilled

As you have got seen that after every single updat[…]

issue with processmaker 3.2

Hello! The solution to your question is the foll[…]

BPMN project disappeared

Hi Alex! , maybe you forgot to save your process[…]

mcrypt extension is deprecated!

Hello Ehsan! If you did not find the mcrypt ext[…]