My Members form has a General page with all of the pertinent fields from the Members table. There is a second page called Groups which lists the different Study Groups the displayed member belongs to, based on the GroupMembers table.
I was using a standard Groups form for this page, but the 5 boolean fields in the list of study groups just said “yes” or “no”. To change one at run-time, I need to click on the particular row, which opens up a form with switches (defined as _Checkbox). I need to click one of the switches, then click Save, then click Save on the main form. Way too much work.
I decided on using a Data View instead, as that works for some of my other sub-forms. I created a query which does return the correct data. It uses a parameter with ?. When testing, I modify the Where clause to use an actual guid for the member.
Here’s the part that doesn’t work: I added a parameter to the query called MemberKey (which is one of the column values), and its value is {{five.field.MembersKey}}. I made this query Live. When I run the application, nothing shows up in the Groups sub-form.
NOTE: the singular/plural in the paragraph above is deliberate. I seem to have developed a standard so tables which are named plural (Members) have a plural key (MembersKey) but tables that use these fields have the field defined as singular (MemberKey). Don’t know how smart this is, but it seems to keep things clear.
I’m successfully using this technique in my SetupReports form. In that form, the query depends on the active user’s GUID. In that case, I run a function at startup that loads the active user’s GUID into a variable called UserKey. So that query’s parameter value is {{five.variable.UserKey}}. This one works fine.
I’m wondering if the parameter value for the query is wrong, and perhaps {{five.field.MembersKey}} does not work??? The field MembersKey is present on the general page. Also, running with inspector shows the MembersKey value in several different sections under Variables. It shows under the field, form, stack and metadata sections.
Is it possible to figure out what I’m missing?
I can’t even upload the fdf file, because it’s now too big:
How do I get around the “file too big” error when trying to upload fdf file? I’m sure my application is only going to grow in size. If you can’t solve this last issue, I could instead save the file to Droplr, and instead include a link to the file.
Thanks…