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.

Validation of fields only on export - better way?

Featured Replies

Hi everyone,

I have a database which basically tracks the contract status on purchases of units. This data then gets exported and uploaded via ftp to an online settlement calendar for the purchasers to view.

I can't have the field validation "not empty" because the contracts are all at various stages, so a lot of fields wont' be completed. However to be uploaded certain fields must contain a value.

What I am therefore trying to do, is:

Run a script that exports all "valid" records

If invalid records exist, go to a layout displaying those records that got rejected. (would be even better if it could display where it stuffed up since there are sooo many fields).

So i'm guessing perhaps the only way is to do a case statement on blank? or a loop through the fields?... Remember that none of the fields are compulsory until exportation, and even then, that does not include all fields (only those being exported).

Hope that makes sense. I just wanted some guidance on the appropriate way of dealing with it before i wrote a case statement as long as my arm!

Cheers

You may have a calculation return some mark for you to use.

I'd go for something like

Mark = Case(not IsEmpty(field1), "-"),"")&Case(not IsEmpty(field2), "-"),"")&Case(not IsEmpty(field3), "-"),"")&Case(not IsEmpty(field4), "-"),"")....

Then track the number of "-" with Patterncount.

Then, place what should be the valid number of "-" in some global or calculation, establish a relationship from this field to the Mark, and trigger a GTRR that will only show these records that should get exported

There may be other solutions...

Ugo

Actually,

c_Compound =Field1&"-"&Field1&"-"&Field3&"-"&Field4

c_Mark = not Patterncount(c_Compound, "--")

g_Mark = 1

Relationship g_Mark::c_Mark

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.