Hello Experts,
I need to check file extension of documents in the precondition class depending on which I would be enabling particular menuitem.
Is this possible in precondition class without acquiring the session.
As I read in WDK development guide that :
"Avoid calling IDfSession.getObject() or performing queries inside queryExecute(). These
calls can seriously degrade performance. Most attribute arguments can be retrieved, as
they are cached by the initial query on the page rather than from a getObject() call. For
example, if the page has a databound control to r_lock_owner, that attribute value is cached.
Your component can check for the existence of the argument value and query only if the
argument was not passed. You can also write trace statements that signal when precondition
arguments are not passed. This will allow you to determine which custom components
are not passing the appropriate arguments."
Is it possible to get the objectName thru params inside the precondition class so that I can perform the preconditions basics.
Regards
Prashant