client events sql statement June 23, 2021, 04:07:24 AM Hi All!! I have select field emp_id from my employee table ( emp_id, name, city )how i can set name and city to textbox when i choose select field (combo box) emp_id?please help i still learning in phprad Quote Selected
Re: client events sql statement Reply #1 – July 04, 2021, 08:08:50 AM @cnmycrl please use the Action Before Add in Page Event to query the record using the id from that select field, and then, use the result to assign to the name and city field, and it will be inserted to your database table. Quote Selected
Re: client events sql statement Reply #2 – July 13, 2021, 06:53:25 AM Thanks!! I will Try it Quote Selected
Re: client events sql statement Reply #3 – July 14, 2021, 03:43:44 AM would you see my link?http://202.150.153.77/regcloud/index.php/s/A7aPlBzKMO0iU8jthis what i meansorry my english or my explanation not clear enough Quote Selected
Re: client events sql statement Reply #4 – July 14, 2021, 04:32:13 PM Hi, phprad does not have the auto fill, what phprad have is auto-suggest. The closest to what you want would be using Page Events. You will have to disable the fields and then on Action Before Add in Page Events, you run a query to get the data you want using the data from no KP field. If you need help with doing that send me your anydesk ID. Quote Selected
Re: client events sql statement Reply #5 – July 29, 2021, 12:15:53 PM Quote from: willvin – July 04, 2021, 08:08:50 AM@cnmycrl please use the Action Before Add in Page Event to query the record using the id from that select field, and then, use the result to assign to the name and city field, and it will be inserted to your database table.Hi Willvin,have you got an example for this? Ho w can I use the resulting fields in the email?TIAtony Quote Selected Last Edit: July 29, 2021, 12:18:30 PM by sweetman
Re: client events sql statement Reply #6 – July 30, 2021, 01:25:43 PM @sweetman there are snippets of code available by the right panel that you can click and get the code, depending on the query you want to run. Quote Selected