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.

Featured Replies

I have a script that finds set based on Field: Date Ordered, where

 

(based on a LaRetta solution)

 

Field: "C_Tax Period": Calculation: Indexed: Year (Date Ordered)"." (Month (Date Ordered)/100)

Field: g_Tax Period: Global  - this appears on the layout with a List Value attached based on c_Tax Period result

 

with a button, Perform Script: Find Tax Period, where

 

Enter Find Mode

Set Field: c_Tax Period; g_Tax Period

Perform Find

 

This gives me all Orders within a defined date range.

 

Question: How can I constrain or modify this found set to all Contacts: Country ="Canada"

 

It seems like I have two Finds but I cannot find the right syntax to constrain the set.

 

Hope this makes sense.

 

Thank you for any suggestions or solutions.

Why don't you do it all at once:

 

Enter Find Mode [ ]

Set Field [ c_Tax Period ; g_Tax Period ]

Set Field [ Country ; "Canada" ]

Perform Find [ ]

 

 

To constrain an existing found set, do:

 

Enter Find Mode [ ]

Set Field [ Country ; "Canada" ]

Constrain Found Set [ ]

  • 3 weeks later...
  • Author

I have an on going topic under the title:

Scripting Search Date Range, range calculated result from text

In this Invoice search, a query is based on a global based on a field calculation used within a script to find records within the month, year and quarter ending - yes a run on sentence.

 

In my Invoice Table setup I have a system for tracking payment against all open invoice. I create three fields Payment 1, Payment 2, Payment 3 and three corresponding date fields Date1 Date 2 Date 3 to accrue the deposit, payment and balance. This might not be the best system but it was all I could figure out to manage the payments.

 

Now what I want is a script that will populate the Date 1 Date 2 and Date 3 with the global.

 

How is this possible.

RDE Test2.fp7.zip

Please do not double post your question.

 

I have merged your two topics.

I create three fields Payment 1, Payment 2, Payment 3 and three corresponding date fields Date1 Date 2 Date 3 to accrue the deposit, payment and balance. This might not be the best system

 

No, it is not a good system, because now you need to create a separate find request for each Date field. You should have another table for Payments, where each payment would be a related record.

 

 

 

 

 

I have merged your two topics.

 

It's actually three topics:

http://fmforums.com/forum/topic/82047-scripting-search-date-range-range-calculated-result-from-text/

Arn't the OPs different?

Sorry, wrong link - fixed now, I hope.

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.