Iam getting a little confused on how to do a generic select in the onapplicationinit event.
Imagine I have a table called customers with two columns and two rows and customer id is the primary key.
customer_id customer_name
1 John
2 Paul
I know that the generic select would look like this: select customer_id, customer_name from customers;
But what code do I need to put in the onapplicationinit?
I don’t understand on how to select into the form fields.
Like when I say: select customer_id, customer_name from customers; how do I know that customer_id is going to be displayed into the customer_id field on the form and customer_name is going to be displayed into the customer_name field on the form.
It may sound really simple but I don’t know how to ensure that a select is displayed in the correct fields on the form.
Any example would be very useful.
thanks