• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
      • Overview
      • Execution Environments
      • Security and Formatting Options
      • Base Actions
      • Application Namespace
      • Clipboard Namespace
      • Data Namespace
      • Dictionary Namespace
      • File Namespace
      • Hash Namespace
      • Localhost Namespace
      • Logic Namespace
      • Message Namespace
      • Path Namespace
      • Settings Namespace
      • Sqlite Namespace
      • System Namespace
      • UI Namespace
        • UI Action Invoker Namespace
        • UI.alert Action
        • UI.closeDialog Action
        • UI.enumerateWebViews Action
        • UI.getDisplayOptions Action
        • UI.getInputData Action
        • UI.getMaxDisplayDimensions Action
        • UI.postWebMessage Action
        • UI.setDisplayOptions Action
        • UI.showDialog Action
        • UI.view Action
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

UI.getInputData Action

Format
s = CS.UI.getInputData()
Description
The UI.getInputData action returns the input data associated with the current web view. If no input data exists and multiple web views are showing, then the input data for the topmost web view with input data is returned.
This action has an impact in the following scenarios when input data can be specified:
  • Displaying a HTML dialog using UI.showDialog (or htmldialog).
  • Display a web view using UI.view.
Return Value
The action returns the input data, or undefined if no input data exists.
Exceptions
The action does not throw exceptions.
Example (HTML + JavaScript)
<script>
    const CS = new CSProActionInvoker();

    const input = CS.UI.getInputData();

    if( input.operationTitle ) {
        document.getElementById("title").value = input.operationTitle;
    }
</script>
See also: UI Action Invoker Namespace, UI.showDialog Action, UI.view Action