Hi Albert,
thanks for reply,
more or less that was I wanted. So single to single it’s not possible. So the master/detail approach is not praticable.
A)
I’ve created a form (FORM1) with only a year select field member_year_ref, putting it OnValidate as Global V {member_year_ref} = [ref_members_year];
I imagine to put this single field form at very first top part in evidence of the screen. I don’t know how to put then the main form (FORM2 - with all member details) below it without using a link or a window change.
FORM1
FORM2
B)
I’ll try to use a new select field for the year selecting.
Ok also OnChange it’s good but I also want to propose, first time access, the current year as default.
Let me know if I’m right or not:
-
OnScripInit : $curYear = date(‘Y’); [curYear]= $curYear; this is to propose a default to select year form field --> {member_year_ref} = [curYear];
-
SQL : add a Where condition like WHERE member_year = ‘{member_year_ref}’
Does it work also the first time I access ? OnScriptInit start before of SQL ?
-
If a user changes later the select year field , how can I’ll be sure that form records will be filterd by that new year . Have I to put a sort of requery OnChange field event ? Which is the right sintax ?
-
The member_year field is only available under ‘insert’ mode and not under ‘update’
I hope you’ll understand what I mean ;-))
Bye
Giovannino