VivoQuant
|
Object to manage an eCRF web form. More...
Public Slots | |
void | waitForLoad () |
Lock execution until current page has finished loading. | |
Public Member Functions | |
Object | getElement (string query) |
Gets a specific element from DOM. More... | |
Object | getAllElements (string query) |
Gets a list of element from DOM. More... | |
void | evalJavaScript (string js) |
Allows running custom JavaScript code on the provided page. More... | |
void | updateFormModel () |
Update form model with the values previously set. Use this when evalJavaScript is called to edit the fields. | |
void | setDebug (bool debug) |
Enable/disable HTML source text view. More... | |
void | setQuiet (bool quiet) |
Enable/disable the display of message boxes. More... | |
void | setSelectedDataIndex (int index) |
Sets the data to which the form should be associated with. More... | |
void | clearCredentials () |
Resets the credentials used by the webview. | |
bool | isDigitalSignatureRequired () |
Checks if the digital signature is required or not. More... | |
bool | hasError () |
Checks if the eCRF module has error. More... | |
string | getLastMessage () |
Gets the last success or error message. More... | |
void | enableRefresh (bool enabled) |
Set the refresh button state of the eCRF from. More... | |
void | setReadOnly (bool readOnly) |
Set the eCRF content to be read only. More... | |
void | hide () |
Hides the form. | |
void | show () |
Shows the form (will only work if hide() was previously called) | |
void | cancel () |
Close the form (same behavior as closing the form with the X) | |
Object to manage an eCRF web form.
This object can be used display an iPACS form
See also ScriptMaster::eCRF() to obtain this object.
void enableRefresh | ( | bool | enabled | ) |
Set the refresh button state of the eCRF from.
enabled | True to enable, false otherwise |
void evalJavaScript | ( | string | js | ) |
Allows running custom JavaScript code on the provided page.
js | the custom javascript code |
Object getAllElements | ( | string | query | ) |
Gets a list of element from DOM.
query | The query based on css selectors (see https://www.w3schools.com/cssref/css_selectors.asp) |
Object getElement | ( | string | query | ) |
Gets a specific element from DOM.
query | The query based on css selectors (see https://www.w3schools.com/cssref/css_selectors.asp) |
|
inline |
Gets the last success or error message.
|
inline |
Checks if the eCRF module has error.
bool isDigitalSignatureRequired | ( | ) |
Checks if the digital signature is required or not.
void setDebug | ( | bool | debug | ) |
Enable/disable HTML source text view.
debug | Set to true to enable the debug output |
|
inline |
Enable/disable the display of message boxes.
quiet | Set to true to enable quiet mode |
void setReadOnly | ( | bool | readOnly | ) |
Set the eCRF content to be read only.
readOnly | True to be read only, false otherwise |
void setSelectedDataIndex | ( | int | index | ) |
Sets the data to which the form should be associated with.
index | The DataManager index |