AnsweredAssumed Answered

Layout script trigger

Question asked by hanstrager on Jun 22, 2015
Latest reply on Jun 23, 2015 by hanstrager

Title

Layout script trigger

Post

I have a small database to hold receipts for different project.

I now need a way to easily keep these project separate, and to see if I've re-nvoiced the different companies for what i've spend on their behalf.

I have a 'master' layout where I type in all the information relating to a receipt. Then I thought I'll make another layout for all different companies. I then enter the the 'companyX' layout in list mode which should only show the records relating to companyX. I've tried different things but nothing seems to work.

I've tried to add a script-trigger to the layout with the following script:

Freeze Window

Show All Records

Enter Find Mode [ Specified Find Requests: Find Records; Criteria: Transactions::CLIENT: “ALEX EAGLE” ] [ Restore ]

Perform Find [ Specified Find Requests: Find Records; Criteria: Transactions::CLIENT: “ALEX EAGLE” ] [ Restore ]

Sort Records [ Keep records in sorted order; Specified Sort Order: Transactions::Invoiced; ascending Transactions::DATE; ascending ] [ Restore; No dialog ]

It performs the search, but doesn't stop, and first stops when i press 'esc'. What do I do wrong?

Outcomes