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 Question

Featured Replies

Here is my question. There are many jobs, and each job has many tasks, which may/may not have many sub-tasks, whcih may/may not have many sub-tasks.

disregarding the sub tasks.

the tasks have an id(not primary key, i also have a serial). that is used to identify that task within that job. i need to have these task numbers unique within a given job. but duplicates may exist outside of this job.

What would be the best way to apply this validation and any ideas ont the sub-task structuring would aslo be helpful. Thankyou

Brendan

You could have a calculated field = Job_ID & Sub_ID

With the Sub_Tasks:

Each Sub_Task has a "Belong_To" field and so each Sub_Task belongs to a Sub_Task.

That now means that a Sub_Task can have "child records" ie all The Sub_Tasks that have the belong_to ID of the current Sub_Task.

This will give you any depth of subtasks just like a tree.

Edited by Guest

I have done things like this using a self join on the sub tasks table.

Task ID = Task ID

and

SubTask Number = Subtask Number

Then do a validation by calculation that looks like:

if(isValid(SelfJoin::Field); 0 ; 1)

May not be the best way, but it does work for me.

Edited by Guest

Yes I agree. I have made one with two tables with just with ID's so don't have to self join.

I am new to FM so am still thinking in Access. But have the tricks in theory

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.