Issue with FileMaker Pro Buttons and Creating New Records

46 Views Asked by At

I'm tasked with creating a layout that allows users to create a new order. I've written script for this task, however, I can't get it to account for buttons. Neither the "Add_Order_Line" or "Delete_Order_Line" work. Moreover, I'm not sure how to configure a process that saves the entire record (and subsequent related records) and confirms with the user that the order has been saved. I've attached screenshots of my work

Any input is greatly appreciated!

Layout New Order Script Create New Order Line Delete Order Line Data Relationships

2

There are 2 best solutions below

1
user23245124 On

In the relationship graph make sure that you have allow creation of records in this table checked[UI of where the setting is]. This script outlines what's required and the rest you should be able to manage. enter image description here

1
StuSays On

There are two ways to create a record in the portal. 1). easy way, is to go into the relationship graph and tick the Create records from this relation ship. This will give you an empty row, and once you enter something in a field it is created. 2). The other is to copy the ID of the main record and then go to the child layout and create a new record, fill in the data along with the ID of that main record. That is the link. once done your should see the row back in that first layout.