Before Open Object Set hook

Use this hook to initialize variables for this extension. You can also use this hook to disallow access to the table.

Example:

function extern long before.open.object.set()
{
   if txprcdll0001.pricebooks.blocked() then
           dal.set.error.message("@Pricebooks blocked for maintenance")
           return(DALHOOKERROR)
   endif
   return(0)
}

For more information about before.open.object.set() of the standard Data Access Layer, see the Infor ES Programmers Guide (Infor Customer Portal KB2924522). Extending the query is not supported in the extension.