AnsweredAssumed Answered

Perform Find

Question asked by nolak37 on Apr 23, 2010
Latest reply on Apr 26, 2010 by LaRetta_1

Title

Perform Find

Post

Hello,

 

I ran into a problem with a script that seems to work fine on mac but not windows.

Basically i created a button to run a script to check (find) if that customer has a record in a related table and if not to then create a record there.

 

Script ooks like this:

 

Set Variable [$PT_ID; Value:Pts::PID]

Go to Layout ["imnRecord" (imnRecord)]

Set Error Capture [On]

Perform Find [Restore]

Set Error Capture [Off]

If [Get (FoundCount) = 0]

New Record/Request

Set Field [imnRec::PT_ID;$PT_ID]

Commit Records/Requests []

End If

 

When i try this on a PC i get the layout and all fields are blank even if there are previouse entries there.

After switching to the Mac i press the button and the layout opens still displaying those previouse entries.

 

Not sure where I messed up here.   Thanks in advance for any input.

 

Josh

Outcomes