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.

two serials for two record types

Featured Replies

  • Newbies

i have a script that creates either a panel record or a graphic record depending on what value is chosen from a list before the script is activated. when a new record is created an ID number is assigned to the panel or graphic.

the last part of the id is a number which signifies where in the order of panels or labels the item in particular falls.

the problem is i want the panels and graphics to be linked to different counters but because a serial updates regardless of whether a panel or graphic record has been created i'm having trouble.

i'd appreciate some help.

thanks.

Hi KK

Create a seperate table with 2 fields (numeric).

field 1 NextPanelID,

field 2 nextGraphicID

Create a cartesian('xtype')relationship between this table and the one where your script to create the record is.

In your script you will then be able to set the id field using the relevant next number. eg (loosely)

If record type = 'panel'

setfield 'recordID',your new relationship::nextpanelID)

setfield yournewrelationship::nextpanelID,yournewrelationship::nextpanelID+1

endif

If record type = 'graphic'

setfield 'recordID',your new relationship::nextgraphicID

setfield yournewrelationship::nextgraphicID,yournewrelationship::nextgraphicID+1

endif

A script along these lines will get you the next relevant ID and increase the next relevant ID by 1 as nec.

All you have to do is set the next ID's manually at first

HTH

Phil

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.