I have a form where the student can be marked...

I have a form where the student can be marked as Paid by Cash, Online, or Waiver.

Iโ€™ve created a slice that shows that student and ONLY the paid fields, so the Payment Edit for is nice and short.

This allows me to have an Action called Accept Payment that opens a nice short form with just the payment data in it.

The problem is that when I save the form, itโ€™s trying to add a record not update an existing one.

Im getting an error that says โ€œThere is already a row that the key โ€˜xyzโ€™โ€ โ€ฆ

How can I get the form to update rather than insert?

Thanks again โ€ฆ

1 8 394
8 REPLIES 8

#SOLVED!

tony1
New Member

@David_Hopkins You could make your action use a deep link like this: LINKTOFORM(โ€œyour row idโ€, โ€œYour Form Viewโ€)

@tony Actually, thats how i get to where im atโ€ฆ

Soโ€ฆ

Students table (paid, receipt number) where paid can be cash or online and if online receipt number is required. But students table has 20 other fields as wellโ€ฆ

I created a slice of the students table with just the key, name, paid and receipt number fields. so the Form for it is Name, Paid and Receipt Number. perfect.

Using the LINKTOFORM(sliceformname, [key]) i am able to bring up exactly what I wantโ€ฆ a simple form with Name Paid and Receipt โ€ฆ

Trouble is, when saving that form, i get the notice that โ€œa record with this key already existsโ€ โ€ฆ soโ€ฆ for some reason it seems that the slice is trying to insert rather than update.

The Slice is set to UPDATE only .

hope that adds some clarity.

tony1
New Member

@David_Hopkins Sorry. I misspoke. Try LINKTOROW([key], โ€œsliceformnameโ€) instead.

(LINKTOFORM is used to add a new record, using the provided default values)

@tony OHโ€ฆ that looks like it could itโ€ฆ

checking.

@tony OUTSTANDING Tonyโ€ฆ Great Callโ€ฆ that did exactly what I wantedโ€ฆ

on a side noteโ€ฆ

I was using this . โ€”

LINKTOROW([Name], โ€œPayment Formโ€, [_appname])

โ€” but couldnt get [_appname] to workโ€ฆ suggestions?

tony1
New Member

@David_Hopkins The [_appname] syntax only works in workflow templates, unfortunately. Youโ€™ll have to hard-code the app name. Glad you got it working, though.

tony1
New Member

@David_Hopkins Also, if youโ€™re linking to a row in the same app, you donโ€™t need to include the app name in the LINKTOROW formula.

Top Labels in this Space