update and read values from browse subform, from checkboxes
Posted: Sun Jan 27, 2019 12:14 am
I have been asked to transfer a Filemaker Pro DB to something opensource. (Os updates have broken FileMaker)
It involves patients and scheduling; most everything is working, except:
They would like to be able to search for patients according to different search criteria, and send them an email.
Some examples would be:
- all friday patients
- all patients in a specific time slot
- all patients from a specific funding source
- all patients in a specific program
Many of the fields I need to search are checkbox fields (multi select would not work, as they are prone to forgetting to hold a CTRL key down when ,multi selecting, causing unnoticed data loss)
I have created a test form, where the idea is to have them enter data for text fields they want to match, check checkboxes for time slots, or for whole days, and build a SQL query by clicking on a button.
I would put the SQL query into a text box to verify it for now, but in the long run, it should update a browse iframe or subform with the results of the query.
If they are happy with that, they can then click on a button to send the email, using text from a text form as the body of the message, and go through the results of the query (possibly swapping in names for #name?) grab the email, and send the message to each person in turn.
Issues that I have run into are:
- I cannot get the value of a query checkbox. $(‘#fri’).val() does not work.
- I cannot update the sqlquery text box. No value shows up.
- I do not get how to update the browse subform or iframe.
- I can’t figure out how to get values out of the query results, row by row
I feel close, but I am a sysadmin, not a programmer. PHP and Javascript are unfamiliar to me.
From reading there forums, I think the browse form iframe or subform needs to be rebuilt with a
$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";
nuRunQuery($s);
I am not sure where to put that (Before Broswe? Before Edit?)
Or how to access the data (Does there browse iframe need to refer to #TABLE_ID# instead of the original table?)
I have attached screen shots which are hopefully complete enough that the answer is obvious. To someone. ( Not me. Sysadmin, not programmer :-/ )
Thx,
Richard F.
It involves patients and scheduling; most everything is working, except:
They would like to be able to search for patients according to different search criteria, and send them an email.
Some examples would be:
- all friday patients
- all patients in a specific time slot
- all patients from a specific funding source
- all patients in a specific program
Many of the fields I need to search are checkbox fields (multi select would not work, as they are prone to forgetting to hold a CTRL key down when ,multi selecting, causing unnoticed data loss)
I have created a test form, where the idea is to have them enter data for text fields they want to match, check checkboxes for time slots, or for whole days, and build a SQL query by clicking on a button.
I would put the SQL query into a text box to verify it for now, but in the long run, it should update a browse iframe or subform with the results of the query.
If they are happy with that, they can then click on a button to send the email, using text from a text form as the body of the message, and go through the results of the query (possibly swapping in names for #name?) grab the email, and send the message to each person in turn.
Issues that I have run into are:
- I cannot get the value of a query checkbox. $(‘#fri’).val() does not work.
- I cannot update the sqlquery text box. No value shows up.
- I do not get how to update the browse subform or iframe.
- I can’t figure out how to get values out of the query results, row by row
I feel close, but I am a sysadmin, not a programmer. PHP and Javascript are unfamiliar to me.
From reading there forums, I think the browse form iframe or subform needs to be rebuilt with a
$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";
nuRunQuery($s);
I am not sure where to put that (Before Broswe? Before Edit?)
Or how to access the data (Does there browse iframe need to refer to #TABLE_ID# instead of the original table?)
I have attached screen shots which are hopefully complete enough that the answer is obvious. To someone. ( Not me. Sysadmin, not programmer :-/ )
Thx,
Richard F.