Jump to content

FMP 11 Security (GetField) problem


This topic is 4035 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

This topic is 4035 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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