Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This function can be used to provide alternate user-defined processing for the runPCCommand() API or STRPCCMD in Genie. Normally, any commands issued this way run on the PC through the PC Command Listener, PC Command Launcher or PC Integration Java applet. If this function is defined on the page, it will call the function. 

The function can return true to indicate that it has handled the command, or false to indicate that it should be handled by the PC Command Listener, Launcher or Applet.

NOTE: In Profound UI version 6, fix pack 7.0 and earlier versions, the return value was ignored.  If a pui.onPCCommand function was defined, the command would only be processed by the function. For backwards compatibility with this release, any function that does not return a value will be considered to have handled the command.

NOTE: Prior to Profound UI version 6, fix pack 8.0 the pui.onPCCommand function would only work with STRPCCMD from a Genie session. Starting with fix pack 8.0, the runPCCommand() API is also supported.  Also, fix pack 8.0 added the second parameter, which will be true if the user specified pause(*YES) or false otherwise.

Example:


pui.onPCCommand = function(command, pause) {

  alert("The command string is: " + command);
  return true;

}


  • No labels