Skip 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.

Smiple Find and IF script...help a newbie

Featured Replies

hello People!

I am compleatly new to scripting deal = I know nothing smile.gif!

Here is what I am trying to do:

- Sort records based on field called "UPS Date" based on logic that the content of it is either empty or > than CurrentDay

I "attempted" to write it out but no cigar frown.gif

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

Go to Layout ["Waiting List"]

Enter Find Mode[]

Go to Field ["UPS date"]

Insert Text [select,"UPs date",">CurrentDate"]

Pefrom Find[Restore,Repleace Found Set]

--------------------------------------------------------this is it

as I said I really dont know anything about scripts but that they are "nice"....if someone could help that would be "nice" smile.gif

thank you guys!

Try this instead:


Go to Layout ["Waiting List"]

Enter Find Mode[]

#Shouldn't need the go to field step because you specify

# it in the Insert Text step

Insert Text [select,"UPs date",">CurrentDate"]

New Record/Request

Insert Text [select, "UPS date","="]

#Note, don't select "restore" in the following perform find step

Pefrom Find[Replace Found Set] 

  • Author

....still no cigar....the ">CurrentDate" gets inserted as text rather than a ">1/1/2002" form of a date and script stops?

frown.gif

Hi Leb i Sol,

I really don't understand why it doesn't work with the Status(Current date) but have a try with a global field.

Go to Layout ["Waiting List"]

Set field (g_current date, Status(Current date))

Enter Find Mode[]

Insert Text [select,"UPs date",">g_current date"]

New Record/Request

Insert Text [select, "UPS date","="]

Pefrom Find[Replace Found Set]

  • Author

I dont know what to say either....here is a screenshot attached

g_current date = g_currentdate on my screen

msg.jpg

Oh, I should have looked at your script a little closer. Try this:


Go to Layout ["Waiting List"]

Enter Find Mode[]

#Shouldn't need the go to field step because you specify

# it in the Insert Text step

Insert Calculated Result [ Select, UPS date, ">"& DateToText(Status(CurrentDate)) ]

New Record/Request

Insert Text [select, UPS date,"="]

#Note, don't select "restore" in the following perform find step

Pefrom Find[Replace Found Set] 

  • Author

laugh.gif great this worked like a dream!

thanx agin!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.