AnsweredAssumed Answered

Set field problems

Question asked by jayGamel on Nov 17, 2015
Latest reply on Nov 18, 2015 by jayGamel

Here's the setup (the files are appropriately related):

file:CUSTOMERS - !@ !New Note script

Set Variable[$cid; Value:Customers::CID]

Perform Script [“newnote” from file: “Notes”]

 

file:NOTES - newnote script

Go to Layout [“New note (Notes)]

New Record/Request

Set Field [Notes::CID; Notes::CID=$cid]    {result is a number - both fields are numbers]

Go to Field [Notes::Note]

Adjust Window [Resize to Fit]

The problem is the new note has the CID of “1” instead of the correct value, such as “1213”. For some reason the local variable $cid is not setting to the value of the record I’m looking at when I run the CUSTOMER script Newnote, that would “1213”. Instead, it is “1”.

What’s happening? I have trouble using the “set field” in a lot of instances. Copy and paste works fine, but leaves the memory loaded with the CID which is aggravating the next time I paste something. And every Filemaker tutorial says use the “set field” over “copy and paste.”

Any help will be appreciated.file

 

running ElCapitan; mac 7,1; 6 gigs; FMPA 11

Outcomes