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.

Populating Logic File

Featured Replies

Hi all,

I was wondering if anyone would care to share the methods they use to populate their logic file to assure that there is always a record with matching ID to the data.

Also, I am tinkering with the idea of a viewer that would dynamically assign the ID's to the logic file based on the current data record being viewed (the idea being that you would only need a small fraction of the number of data records in the logic file). I have not had much success on this so far, and was wondering if anyone else had tried this approach.

Cheers,

-Raz

Not being a separation expert, can you explain to me the reason for this. It seems to my untrained mind, that you could have the UI file show the data fields directly.

  • Author

I am far from an expert either, but my understanding in a nutshell:

In the SepMod, the data file is just data. All calculations are done in the logic file where conventionaly, there is a duplicate instance of each record in the data file that has no info but just the data records key ID linked as a 1 to 1 to the data file, and a bunch of calc fields. The UI displays data file fields as well as Logic calc fields.

Speaking for myself only, I've never understood the Logic file concept, and I have left my calculation fields in the back end. Obviously, it's impure, but there you have it. Impurity personified. Or, "progress, not perfection."

One thing I'll note is that with the more robust structures in 7, many of the calculations I needed before (e.g., to make filtered joins) are no longer needed, which cuts down on the calcs.

David

Personally, would put the calcs in the Data file as it simplifies the design and maintenance.

That said, I think you could get a record created in a Logic file by using "allow creation of records in this table via this relationship" and setting some field in that Logic file.

  • Author

Thanks! I was thinking about the "allow creation" Idea, but dont want to have to have to run a script each time a new line item was created in a portal. I am considering keeping a buffer of x number of line item logic records, where x would be some number that would be more than enough to accomodate the maximum possible items that would be on an invoice. Each time a new invoice would be created, a script would run creating a logic invoice record and checking to make sure that there were enough logic line items in the buffer.

I am beginning to suspect that no one is using a logic file...

-Raz

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.