Posted 8 September 2017, 11:18 am EST
Hello!
I am a real novice when it comes to FarPoint so apologies if the answer to this post is really obvious!
I have been using this excellent post to produce a combo box that is affected by a change to another combo box and this is working! http://www.clubfarpoint.com/Forums/forums/thread/3838.aspx
BUT this is only happening once the first combo box is updated, not when the page is originally loaded, which is as I would expect from the code. I'm not expecting this code to work on the page load, but I'm wondering what I have to add to get this working as well!!
Hopefully some details will make this clearer....
Combobox 1 is a list of countries
Combobox2 is a list of 'cresta' codes, and we only want the codes relevant to the country selected in that row to be shown as options.
The fpspread1 is populated from a SQL Server table and the country and code for each record/row are stored in there. The 2 combo box options are also populated from other SQL tables. When the page is loaded the country and cresta are showing the stored values from the data table, but if I try and update the Cresta column, it doesn't limit the values to the country stored. If I reset the country, it then limits the cresta codes to the new country selected. I've set the intial load of the cresta combo box to pull back ALL records, but I need to change this!
What I need to know is how I can set the initial cresta combo box items to be based on the country stored value, but for each row (which can have different values for Country)?
Any help appreciated!
Thanks,
Helen