Filemaker Pro:使用"Tab控件"创建表的多个条目 [英] Filemaker Pro: Create multiple entries of a table with Tab Control

查看:174
本文介绍了Filemaker Pro:使用"Tab控件"创建表的多个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为临床试验设计Filemaker Pro数据库.

我的不同表之间的关系已经完成. 为了简化我的问题,可以说我有两个表. 我有一个带有患者ID"和有关此患者的一般信息的信息"表,而我还有另一个带有日"结果的表. "info"和"day"表通过PatientID字段链接. "day"表具有变量"dayID",用于识别数据的收集日.我们将八次(不同天数)收集该患者的数据.数据由大约50个数字组成.

我想用带有一般信息的标题和带有8个选项卡的选项卡控件来代表该患者的条目.在每个选项卡中,我将具有与输入数据相同的格式/布局.

因此,我希望能够在天"表中为每个选项卡添加一个新条目.目前,我未能做到这一点.

我有多选项卡的选项卡控件.在每个表格中,我都有相同的布局.但是,当我更改选项卡"day3"中的变量A的值时,它也更改了选项卡"day0","day1"中的变量A的值,依此类推.

实际上,我在每个选项卡的天"表中都有相同条目的精确副本.而不是新条目.

我有一个解决方案,但对我来说不是一个干净而令人满意的解决方案:为每天创建"day"表的重复项(让我们说"day0","day1"等),并将它们之间的关系与PatientID保持在一起.

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.

所以我的问题是:

-我们可以在同一选项卡控件的不同选项卡中创建同一表的多个条目吗?

-如果是,如何在标签中设置变量? (我想在选项卡"day0"中将变量"dayID"设置为"day0",以此类推,每个选项卡都依此类推)

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)

推荐答案

在每个选项卡中使用一个门户,并为每个门户指定一个不同的(递增)initialRow.将行数设置为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.

按dayId对关系进行排序,并预先生成适当的日记录.

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

这篇关于Filemaker Pro:使用"Tab控件"创建表的多个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆