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.

See before.open.object.set() of the standard Data Access Layer in the Infor ES Programmers Guide (Infor Customer Portal KB2924522). The possibility of extending the query is not supported in the extension.

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)
}