【问题标题】:Duplicate Filemaker Record and related Portal Records重复的 Filemaker 记录和相关的门户记录
【发布时间】:2019-03-15 00:34:59
【问题描述】:

我是 Filemaker 新手,所以我需要把它放在那里。

我有一个表 (Gigs) 和相关的门户表 (Gigs_Join),其中歌曲列表显示在门户中。它们通过主表和门户表中的 GigID 连接。

我想复制 Gig 记录和所有相关的门户记录。我知道这必须编写脚本,但就我的生活而言,我无法让它发挥作用。

欢迎提出任何建议!

【问题讨论】:

  • 这个问题更适合专门针对 Filemaker 平台的论坛之一。如果我提供的here 的答案不令人满意,请继续往下看。

标签: database filemaker


【解决方案1】:
Try these steps,
1. Create two Table Occurrences GigsJoin1, GigsJoin2 based on Gigs_Join
2. Create two layouts (GigsJoin1, GigsJoin2) based on above TOs.

3. Write a script with following Steps.
    a. Go to Gigs layout.
    b. Save the Gig ID in a variable (OrigGigID).
    c. Duplicate the Gig record.
    d. Save the new Gig ID in a variable (NewGigID).
    e. Go to the layout GigsJoin1.
    f. Find the records using OrigGigID.
    g. Start Loop
        i. Go to first record
        ii. Copy all the field values in variables.
        iii. Go to layout GigsJoin2.
        iv. Create new record
        v. Set the values from variables.
        vi. Set the GigsID from variable NewGigID
        vii. Go to Layout GigsJoin1
        viii. Go to next record
    e. End Loop

【讨论】:

  • 无需向架构中添加任何内容即可复制数据。
  • 他需要一种方法来保存找到的原始演出相关记录集,并为重复演出创建新的相关记录。可能有几种解决方法,例如循环传送门、使用魔术键创建记录等……但这是更简单直接的方法。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-07
  • 2012-03-25
  • 1970-01-01
  • 2011-07-23
  • 2012-03-30
  • 2018-05-25
相关资源
最近更新 更多