Filemaker Pro: Create multiple entries of a table with Tab Control

心不动则不痛 提交于 2019-12-12 01:45:02

问题


I'm currently designing a Filemaker Pro database for a clinical trial.

The relationship between my different tables are done. To simplify my issue, let say I've two tables. I've a "info" table with the PatientID and general informations about this patient and I have another table with "day" results. The "info" and "day" tables are linked by a PatientID field. The "day" table has a variable "dayID" for discerning the collecting day of the data. We're going to collect data for this patient eight times (different days). The data consist of around 50 numbers.

I want to represent the entry for this patient with a header with the general info and under that a tab control with 8 tabs. In each tab, I'll have the same formatting/layout where I'll input the data.

So I want to be able to have a new entry in the "day" table for each tab. And for the moment I've failed to do that.

I have the multi-tabs tab control. And in each table, I've the same layout. But when I'm changing the value of variable A in tab "day3", it's changing also the value of variable A in tab "day0", "day1", and so on.

In fact, I've a exact copy of the same entry in "day" table in each tab. And not a new entry.

I've a solution, but not a clean and satisfactory one for me: create duplicates of "day" table for each day (let say "day0", "day1",...) and keep the relationship between them with PatientID.

So my questions are:

- Can we create multiple entries of the same table in different tabs on the same Tab Control ?

- If yes, how can I set a variable in a tab ? (I want to set the variable "dayID" to "day0" in tab "day0" and so on for each tab)


回答1:


Use a portal in each tab, and specify a different (incrementing) initialRow for each each portal. Set Number of rows to 1. Add the relevant day fields to the portal.

So the first tab will show the first related record, second tab will show second, etc.

Sort the relationship by dayId, and pre-generated the appropriate day records.



来源:https://stackoverflow.com/questions/10225004/filemaker-pro-create-multiple-entries-of-a-table-with-tab-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!