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.

FMP 11 Security (GetField) problem

Featured Replies

  • Newbies

I have a order type layout (Order Header ) that contains a portal.

The portal contains order lines (Order Line).

Each line can create entries in a table that are related to size (Order Line Size). These are accessed by aliases ( e.g. Order Line Size 8 ).

 

If I login with a user with a privilege set the same as [Full Access] then there is a problem the $Quantity in the OnObjectSave event script.

If I login with [Full Access] then there is no problem.

 

After entering a value (OrderQuantity) in the size (not pressing Enter or Tab) and then selecting a button using the mouse that runs a script outside of the portal then the following occurs.

Note: If I click into a field (not a button) then there is no problem.

 

 

OnObjectValidate calls a script to validate the entry (with in a quantity range depending on the type of order and size).

 

Values checked after the following line has executed -

     Set Variable ( $Quantity ; GetField ( $SourceTable & “::OrderQuantity” ) )

 

see attachment "OnObjectValidate" for data values

 

Note: the value for $Quantity

 

 

OnObjectSave calls a script to maintain some Order & Customer quantities.

 

Values checked after the following line has executed -

     Set Variable ( $Quantity ; GetField ( $SourceTable & “::OrderQuantity” ) )

 

see attachment "OnObjectSave" for data values

 

Note: the value for $Quantity

 

Note: The GetField problem not only occurs with OrderQuantity  but with any field in the relevant Order Line Size table.

 

I'm guessing the problem has something to do with the creation of the "Order Line Size" row which appears to happen between the validate and save events.

 

Any help appreciated.

 

Piece of script added

post-105261-0-93459400-1364865860_thumb.

post-105261-0-07373100-1364865877_thumb.

post-105261-0-65483300-1364866530_thumb.

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.