Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Two problems!!!!! Dos Problemas!!!!!

Featured Replies

English

Hi, all

1)I have my DB with a some repeting fields, my questions is.

Can I paste the Current date, just with a click? or a tab? this is in a repeting date field

2)In the same DB I have a script to paste some information from 2 fields (pay, date) the script it's to paste this 2 filed in a last repeting field and when the repeting filed it's full send a message i.e.:

SCRIPT

Cut [select, "date"]

Go to Layout ["Payments"]

Set field ["Last(howpay)"]

Paste []

Go to layout ["oroginal layout"]

Cut [select, "date"]

Go to Layout ["Payments"]

Set field ["Last(howpay)"]

Paste []

Go to layout ["Original Layout"]

With this script doesn't work, you know something to do this.

Thanks alot for your help.

---------------------------------------------

Spanish

Espa

The script you have described doesn't really do anything. A Set Field step needs two parameters. The field to be set and the value to set it to. The Set Field step in your script takes the last non-empty value in the field "howpay", but doesn't do anything with it. The Last() statement is useful in TAKING information from the last non-empty repeat not PUTTING information in the last repeat. To do this you will need to test each repeating field repeat and set the first that tests empty.

If(IsEmpty(GetRepetition(howpay,1)))

SetField("howpay"-1, "date)

End If

If(IsEmpty(GetRepetition(howpay,2)))

SetField("howpay"-2, "date)

End If

If(IsEmpty(GetRepetition(howpay,3)))

SetField("howpay"-3, "date)

End If

If(IsEmpty(GetRepetition(howpay,4)))

SetField("howpay"-4, "date)

End If

etc.

You might want to review the use of the Last() and SetField() function in the FM manual or using the built-in help.

-bd

  • Author

I do it but how can I paste my information to the last field?

It's posible

When I paste, the information paste in all the fields

I'm not getting a clear enough picture of what you are doing to answer your question. The script I posted is how you would "paste" to the first open repeat of a repeating field. If this doesn't help, do you mean paste to the last repetition of a repeating field or the last record in a set? Paste to "last field" is not clear. -bd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.