The proc.prompt() function
Use the proc.prompt()
function to display
a prompt for a user to enter a value to the procedure.
Syntax
proc.prompt('question', 'hint');
Parameter | Description |
---|---|
question | It specifies the question in the prompt to a user. |
hint | It specifies the initial value of the parameter. |
Example
/*JavaScript*/
var tableName = proc.prompt('What table do you want to display?', 'Q.STAFF');
proc.exec('DISPLAY ' + tableName);
This example displays
a prompt with the specified question and the hint that a user can
modify and open the required table. In the example, the Q.STAFF
table
opens.