InsertQuestion
Syntax
InsertQuestion(sKeyID, sQuestion, sType, GblBool)
Description
The InsertQuestion method passes a question to Diagnostics Framework, which then presents it to the user to obtain an input parameter. You invoke this method within the GetDynamicPrompt method.
Parameters
| Parameter | Description |
|---|---|
|
sKeyID |
Specify as a string a key to identify the question. This value must be unique across all plug-ins that are made available to a user. |
|
sQuestion |
Specify as a string the question you want the user to answer. |
|
sType |
Specify as a string the data type of the response required from the user. Select from the following:
|
|
GblBool |
Specify a Boolean value indicating the scope of the question:
Global questions are asked once per plug-in on the Additional Information prompt page. For example, a plug-in could be defined to gather employee information. The plug-in might contain many application classes that gather specific information (for example, one application class for getting employee paycheck information, and one application class for getting employee addresses). Class level questions are asked only for the current application class. For example, for the paycheck information, you might want to prompt for specific pay periods and for the address information, you might want to prompt for an effective date. |
Returns
A Boolean value: True if the method is successful, False otherwise.