{
  "text": "",
  "logic": {
    "load records": {
      "steps": [
        {
          "text": "Search criteria entered?",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "mainScreen[\"searchValue\"]",
            "type": "truthy",
            "and-or": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Search records",
          "answers": {
            "plugin": "Database:get-records",
            "tables": "ATENVUSRD",
            "columns": "id,usrname,initmenu,menulib,initprog,proglib,envname,envchng,disabled,tsadded,adduser,tslstchg,upduser,tsdisabl,disuser",
            "criteria": "usrname LIKE CONCAT(CONCAT('%', ?), '%') OR initmenu LIKE CONCAT(CONCAT('%', ?), '%') OR menulib LIKE CONCAT(CONCAT('%', ?), '%') OR initprog LIKE CONCAT(CONCAT('%', ?), '%') OR proglib LIKE CONCAT(CONCAT('%', ?), '%') OR envname LIKE CONCAT(CONCAT('%', ?), '%')",
            "parameter": "mainScreen[\"searchValue\"]",
            "parameter_2": "mainScreen[\"searchValue\"]",
            "parameter_3": "mainScreen[\"searchValue\"]",
            "parameter_4": "mainScreen[\"searchValue\"]",
            "parameter_5": "mainScreen[\"searchValue\"]",
            "parameter_6": "mainScreen[\"searchValue\"]",
            "add_order_by": false,
            "limit": "5000",
            "skip": "",
            "destination": "Grid",
            "grid": "grid",
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Otherwise",
          "answers": {
            "plugin": "Conditions:else"
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Load all records",
          "answers": {
            "plugin": "Database:get-records",
            "tables": "ATENVUSRD",
            "columns": "id,usrname,initmenu,menulib,initprog,proglib,envname,envchng,disabled,tsadded,adduser,tslstchg,upduser,tsdisabl,disuser",
            "criteria": "",
            "add_order_by": false,
            "limit": "5000",
            "skip": "",
            "destination": "Grid",
            "grid": "grid",
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        }
      ]
    },
    "add button click": {
      "steps": [
        {
          "text": "Set screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "protectUserName": "false"
            },
            "comment": ""
          }
        },
        {
          "text": "Show detail screen for adding a record",
          "answers": {
            "plugin": "Navigation:show-screen",
            "screen": "detailScreen",
            "populate": true,
            "source": "Specify each value individually",
            "screen-values": {
              "idKey": "''",
              "editMode": "false",
              "dialogTitle": "'Add Record'",
              "usrname": "''",
              "UserDescr": "''",
              "initmenu": "''",
              "menulib": "''",
              "initprog": "''",
              "proglib": "''",
              "envname": "''",
              "envchng": "0",
              "adduser": "''",
              "tsadded": "'0001-01-01-00.00.00.000000'",
              "disabled": "0",
              "upduser": "''",
              "tslstchg": "'0001-01-01-00.00.00.000000'",
              "disuser": "''",
              "tsdisabl": "'0001-01-01-00.00.00.000000'"
            },
            "comment": ""
          }
        }
      ]
    },
    "edit icon click": {
      "steps": [
        {
          "text": "Retrieve record",
          "answers": {
            "plugin": "Database:get-record",
            "tables": "ATENVUSRD",
            "columns": "id,usrname,initmenu,menulib,initprog,proglib,envname,envchng,disabled,tsadded,adduser,tslstchg,upduser,tsdisabl,disuser",
            "criteria": "id = ?",
            "parameter": "activeGridRecord[\"id\"]",
            "destination": "Screen",
            "screen": "detailScreen",
            "comment": ""
          }
        },
        {
          "text": "Set screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "UserDescr": "\"User Not Found\"",
              "protectUserName": "true"
            },
            "comment": ""
          }
        },
        {
          "text": "Custom SQL",
          "answers": {
            "plugin": "Database:custom-sql",
            "sql": "SELECT TEXT_DESCRIPTION FROM qsys2.user_info WHERE   \r\nAUTHORIZATION_NAME = ?                    ",
            "parameter": "activeGridRecord[\"usrname\"]",
            "save_result": true,
            "first_record_only": false,
            "destination": "Work variable",
            "work_variable": "record",
            "comment": ""
          }
        },
        {
          "text": "Success?",
          "answers": {
            "plugin": "Conditions:success",
            "not": false,
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Set screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "UserDescr": "record[0].text_description"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Show edit window",
          "answers": {
            "plugin": "Navigation:show-screen",
            "screen": "detailScreen",
            "populate": true,
            "source": "Specify each value individually",
            "screen-values": {
              "idKey": "activeGridRecord[\"id\"]",
              "editMode": "true",
              "dialogTitle": "'Edit Record'"
            },
            "comment": ""
          }
        }
      ]
    },
    "delete icon click": {
      "steps": [
        {
          "text": "Ask to confirm",
          "answers": {
            "plugin": "Navigation:show-message-box",
            "title": "Delete Record",
            "message": "Are you sure?",
            "icon": "question",
            "button1": "Yes",
            "button2": "No",
            "button3": "",
            "button4": "",
            "button5": "",
            "capture_response": true,
            "destination": "Work variable",
            "work_variable": "sure"
          }
        },
        {
          "text": "If sure",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "sure",
            "type": "==",
            "value": "'Yes'",
            "and-or": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Delete record",
          "answers": {
            "plugin": "Database:delete-records",
            "connection": "",
            "table": "ATENVUSRD",
            "criteria": "id = ?",
            "parameter": "activeGridRecord[\"id\"]",
            "results": "",
            "comment": ""
          }
        },
        {
          "text": "Any problems?",
          "answers": {
            "plugin": "Conditions:success",
            "not": true
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Show message",
          "answers": {
            "plugin": "Navigation:show-message-box",
            "title": "Error",
            "message": "Record could not be deleted.\r\n<br/>\r\n<br/>\r\n${_error.message}",
            "icon": "error",
            "button1": "",
            "button2": "",
            "button3": "",
            "button4": "",
            "button5": "",
            "capture_response": false
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "isStructureEnd": true
        }
      ]
    },
    "save button click": {
      "steps": [
        {
          "text": "New Record?",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "detailScreen[\"editMode\"]",
            "type": "==",
            "value": "false",
            "and-or": "",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Record exists?",
          "answers": {
            "plugin": "Database:record-exists",
            "table": "ATENVUSRD",
            "criteria": "usrname = ?",
            "parameter": "detailScreen[\"usrname\"]",
            "not": false,
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Show message",
          "answers": {
            "plugin": "Navigation:show-message-box",
            "title": "Error",
            "message": "Record could not be saved.\r\n<br/>\r\n<br/>\r\nThis user has already been setup",
            "icon": "error",
            "button1": "",
            "button2": "",
            "button3": "",
            "button4": "",
            "button5": "",
            "capture_response": false,
            "comment": ""
          }
        },
        {
          "text": "Stop",
          "answers": {
            "plugin": "Navigation:terminate-routine"
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Generate the UUID",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "tsadded": "pjs.timestamp()",
              "id": "pjs.newUUID()",
              "tslstchg": "pjs.timestamp()",
              "adduser": "pjs.getUser()",
              "upduser": "pjs.getUser()",
              "tsdisabl": "'0001-01-01 00:00:00.000000'"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Otherwise",
          "answers": {
            "plugin": "Conditions:else",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Set changed by user",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "tslstchg": "pjs.timestamp()",
              "upduser": "pjs.getUser()"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Disabled has been changed?",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "detailScreen[\"disabledChanged\"]",
            "type": "==",
            "value": "true",
            "and-or": "",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "is Disabled?",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "detailScreen[\"disabled\"]",
            "type": "==",
            "value": "1",
            "and-or": "",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Set disabled info",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "tslstchg": "pjs.timestamp()",
              "upduser": "pjs.getUser()",
              "disuser": "pjs.getUser()",
              "tsdisabl": "pjs.timestamp()"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Otherwise",
          "answers": {
            "plugin": "Conditions:else",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "clear disabled info",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "disabled": "0",
              "disuser": "''",
              "tsdisabl": "'0001-01-01 00:00:00.000000'"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Update/insert record",
          "answers": {
            "plugin": "Database:update-insert-record",
            "table": "ATENVUSRD",
            "criteria": "id = ?",
            "parameter": "detailScreen[\"idKey\"]",
            "record_source": "From a screen",
            "screen": "detailScreen",
            "results": "",
            "comment": ""
          }
        },
        {
          "text": "Any problems?",
          "answers": {
            "plugin": "Conditions:success",
            "not": true,
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Show message",
          "answers": {
            "plugin": "Navigation:show-message-box",
            "title": "Error",
            "message": "Record could not be saved.\r\n<br/>\r\n<br/>\r\n${_error.message}",
            "icon": "error",
            "button1": "",
            "button2": "",
            "button3": "",
            "button4": "",
            "button5": "",
            "capture_response": false
          }
        },
        {
          "text": "Stop",
          "answers": {
            "plugin": "Navigation:terminate-routine"
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Go back",
          "answers": {
            "plugin": "Navigation:show-screen",
            "screen": "mainScreen",
            "populate": false
          }
        }
      ]
    },
    "cancel button click": {
      "steps": [
        {
          "text": "Go back",
          "answers": {
            "plugin": "Navigation:show-screen",
            "screen": "mainScreen",
            "populate": false,
            "comment": ""
          }
        }
      ]
    },
    "Retrieve OS/400 Profile": {
      "steps": [
        {
          "text": "Custom SQL",
          "answers": {
            "plugin": "Database:custom-sql",
            "sql": "SELECT \r\n  authorization_name, initial_menu_Name, initial_menu_library_name, \r\n  initial_program_name, initial_program_library_Name, status,\r\n  text_description\r\n FROM QSYS2.USER_INFO\r\n Where Authorization_name = ?",
            "parameter": "detailScreen[\"usrname\"]",
            "save_result": true,
            "first_record_only": true,
            "destination": "Work variable",
            "work_variable": "rtnUserInfo",
            "comment": ""
          }
        },
        {
          "text": "No Records",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "rtnUserInfo.length",
            "type": "==",
            "value": "0",
            "and-or": "",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Clear screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "UserDescr": "''",
              "initmenu": "''",
              "initprog": "''",
              "menulib": "''",
              "proglib": "''"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Otherwise",
          "answers": {
            "plugin": "Conditions:else",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Set screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "UserDescr": "rtnUserInfo.text_description",
              "UserErr": "false",
              "initmenu": "rtnUserInfo.initial_menu_name",
              "initprog": "rtnUserInfo.initial_program_name",
              "menulib": "rtnUserInfo.initial_menu_library_name",
              "proglib": "rtnUserInfo.initial_program_library_name"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Initial Program PUILOGIN?",
          "answers": {
            "plugin": "Conditions:comparison",
            "variable": "rtnUserInfo.initial_program_name",
            "type": "==",
            "value": "\"PUILOGIN\"",
            "and-or": "",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Clear Initial Program",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "initprog": "''",
              "proglib": "''"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        }
      ]
    },
    "SuffixId Message": {
      "steps": [
        {
          "text": "Checked?",
          "answers": {
            "plugin": "Client-side:client-side-condition",
            "condition": "getObj('suffixid').checked",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Show suffixid Message",
          "answers": {
            "plugin": "Client-side:show-widget",
            "widget": "suffixidMessage",
            "preview": "",
            "comment": "Notify user of suffixid specifics."
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Otherwise",
          "answers": {
            "plugin": "Client-side:client-side-condition",
            "condition": "!getObj('suffixid').checked",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Hide suffixid Message",
          "answers": {
            "plugin": "Client-side:hide-widget",
            "widget": "suffixidMessage",
            "preview": "",
            "comment": "Hide suffixid message."
          }
        },
        {
          "isStructureEnd": true
        }
      ]
    },
    "exit button click": {
      "steps": [
        {
          "text": "Exit",
          "answers": {
            "plugin": "Navigation:exit-program",
            "comment": ""
          }
        }
      ]
    },
    "screen initialization": {
      "steps": [
        {
          "text": "Load DropDown",
          "answers": {
            "plugin": "Database:get-records",
            "tables": "ATENVIR",
            "columns": "envname,envdesc",
            "criteria": "",
            "add_order_by": true,
            "order_by": "envdesc",
            "limit": "",
            "skip": "",
            "destination": "Work variable",
            "work_variable": "dropdownData",
            "comment": ""
          }
        },
        {
          "text": "Set work variable(s)",
          "answers": {
            "plugin": "Program Data:set-work-variable",
            "work-variable-values": {
              "dOption": "''",
              "dValue": "''"
            },
            "comment": ""
          }
        },
        {
          "text": "Process list",
          "answers": {
            "plugin": "Program Data:process-list",
            "list": "dropdownData",
            "work_variable": "record",
            "comment": ""
          },
          "isStructureStart": true,
          "collapsed": false
        },
        {
          "text": "Set work variable(s)",
          "answers": {
            "plugin": "Program Data:set-work-variable",
            "work-variable-values": {
              "dOption": "dOption + ',' + record[\"envdesc\"]",
              "dValue": "dValue + ',' + record[\"envname\"]"
            },
            "comment": ""
          }
        },
        {
          "isStructureEnd": true
        },
        {
          "text": "Set screen field(s)",
          "answers": {
            "plugin": "Program Data:set-screen-fields",
            "screen": "detailScreen",
            "source": "Specify each value individually",
            "screen-values": {
              "dOptions": "dOption",
              "dValues": "dValue"
            },
            "comment": ""
          }
        }
      ]
    }
  },
  "formats": [
    {
      "screen": {
        "record format name": "mainScreen",
        "initial routine": {
          "routine": "load records",
          "designValue": "load records"
        },
        "description": "List or Search Records",
        "external css": "\\profoundui\\proddata\\css\\plogic.css",
        "external javascript": "\\profoundui\\proddata\\js\\plogic.grids.js"
      },
      "items": [
        {
          "id": "DetailPanel",
          "field type": "layout",
          "template": "css panel",
          "header height": "45px",
          "left": "30px",
          "top": "25px",
          "height": "60px",
          "header theme": "blueprint-white-header",
          "body theme": "blueprint-white-body",
          "z index": "9",
          "css class": "plogic--panel--wide",
          "css class 2": "blueprint-defaults",
          "header text": "5250 User Session Defaults",
          "width": "1445px",
          "has header": "true"
        },
        {
          "id": "Grid",
          "field type": "grid",
          "css class": "blueprint-grid",
          "left": "28px",
          "top": "175px",
          "number of rows": "18",
          "number of columns": "9",
          "column headings": "Actions,User Name,Initial Menu,Initial Menu Library,Initial Program,Initial Program Library,Default Environment Name,Allow Change Environment,Disabled,",
          "column widths": "96,130,130,170,140,195,235,230,92",
          "header height": "35",
          "row height": "33",
          "height": "596px",
          "width": "1419px",
          "border color": "var(--color--grid-border)",
          "record format name": "grid",
          "border width": "1px",
          "sortable columns": "true",
          "movable columns": "true",
          "persist state": "false",
          "show paging controls": "true",
          "show page number": "false",
          "find option": "true",
          "filter option": "true",
          "hide columns option": "true",
          "reset option": "true",
          "row selection": "single",
          "onrowclick": "plogic.grid.rowClick(rrn, rowNumber, event);",
          "description": "Grid of Records",
          "subfile record number": {
            "fieldName": "topRecordNumber",
            "dataLength": "5",
            "decPos": "0",
            "curSym": "",
            "dataType": "zoned",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": ""
          },
          "position at top": "true",
          "subfile return rrn": {
            "fieldName": "topRecordNumber",
            "dataLength": "5",
            "decPos": "0",
            "curSym": "",
            "dataType": "zoned",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": ""
          },
          "resizable columns": "true",
          "export with headings": "true",
          "xlsx export": "true",
          "header font weight": ",,,,,,,,,bold"
        },
        {
          "id": "filterAll",
          "field type": "textbox",
          "css class": "blueprint-defaults",
          "placeholder": "Filter All",
          "float placeholder": "true",
          "left": "30px",
          "top": "135px",
          "height": "25px",
          "width": "1416px",
          "css class 2": "blueprint-textbox",
          "onkeyup": "plogic.grid.setFilter('Grid', this)"
        },
        {
          "id": "GraphicButton1",
          "field type": "graphic button",
          "css class": "blueprint-button",
          "value": "Add",
          "icon position": "left",
          "icon": "material:add",
          "left": "30px",
          "top": "95px",
          "height": "25px",
          "width": "100px",
          "css class 2": "blueprint-alt-defaults",
          "css class 3": "no-icon",
          "onclick": {
            "routine": "add button click",
            "designValue": "add button click"
          }
        },
        {
          "id": "GraphicButton2",
          "field type": "graphic button",
          "css class": "pui-solid-button-no",
          "value": "Back",
          "icon position": "left",
          "icon": "material:keyboard_backspace",
          "left": "140px",
          "top": "95px",
          "height": "25px",
          "width": "100px",
          "css class 2": "blueprint-defaults",
          "onclick": {
            "routine": "exit button click",
            "designValue": "exit button click"
          }
        },
        {
          "id": "EditIcon",
          "field type": "icon",
          "left": "10px",
          "top": "0px",
          "icon": "fontAwesome-solid:edit",
          "cursor": "pointer",
          "tool tip": "Edit record...",
          "onclick": {
            "routine": "edit icon click",
            "designValue": "edit icon click"
          },
          "css class": "color-primary",
          "user defined data": {
            "fieldName": "id",
            "refField": "id ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none"
          },
          "grid": "Grid",
          "column": "0"
        },
        {
          "id": "DeleteIcon",
          "field type": "icon",
          "left": "50px",
          "top": "0px",
          "icon": "material:delete_forever",
          "cursor": "pointer",
          "tool tip": "Delete record...",
          "onclick": {
            "routine": "delete icon click",
            "designValue": "delete icon click"
          },
          "css class": "color-red",
          "user defined data": {
            "fieldName": "id",
            "refField": "id ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none"
          },
          "grid": "Grid",
          "column": "0"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "usrname",
            "refField": "USRNAME ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[usrname]"
          },
          "top": "5px",
          "left": "10px",
          "id": "usrname",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "1"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "initmenu",
            "refField": "INITMENU ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[initmenu]"
          },
          "top": "5px",
          "left": "10px",
          "id": "initialmenu",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "2"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "menulib",
            "refField": "MENULIB ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[menulib]"
          },
          "top": "5px",
          "left": "10px",
          "id": "initialmenulibrary",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "3"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "initprog",
            "refField": "INITPROG ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[initprog]"
          },
          "top": "5px",
          "left": "10px",
          "id": "initialprogram",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "4"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "proglib",
            "refField": "PROGLIB ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[proglib]"
          },
          "top": "5px",
          "left": "10px",
          "id": "initialprogramlibrary",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "5"
        },
        {
          "field type": "output field",
          "css class": "output-field",
          "css class 2": "blueprint-defaults",
          "value": {
            "fieldName": "envname",
            "refField": "ENVNAME ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[envname]"
          },
          "top": "5px",
          "left": "10px",
          "id": "defaultenvironmentname",
          "css class 3": "blueprint-output-field",
          "grid": "Grid",
          "column": "6"
        },
        {
          "field type": "checkbox",
          "css class": "plogic--checkbox-no-label",
          "value": {
            "fieldName": "envchng",
            "refField": "envchng ATENVUSRD",
            "numSep": "false",
            "zeroBalance": "false",
            "numBlankFill": "false",
            "zeroFill": "false",
            "noExtraSpaces": "false",
            "curSym": "",
            "dataType": "reference",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": "",
            "designValue": "[envchng]"
          },
          "top": "5px",
          "left": "calc(50% - 6px)",
          "id": "allowchangeenvironment",
          "checked value": "1",
          "unchecked value": "0",
          "read only": "true",
          "grid": "Grid",
          "column": "7"
        },
        {
          "field type": "checkbox",
          "css class": "plogic--checkbox-no-label",
          "value": {
            "fieldName": "disabled",
            "refField": "DISABLED ATENVUSRD",
            "numSep": "false",
            "zeroBalance": "false",
            "numBlankFill": "false",
            "zeroFill": "false",
            "noExtraSpaces": "false",
            "curSym": "",
            "dataType": "reference",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": "",
            "designValue": "[disabled]"
          },
          "top": "5px",
          "left": "calc(50% - 6px)",
          "id": "disabled",
          "checked value": "1",
          "unchecked value": "0",
          "read only": "true",
          "grid": "Grid",
          "column": "8"
        }
      ]
    },
    {
      "screen": {
        "record format name": "detailScreen",
        "overlay screens": "true",
        "description": "Add / Edit Records",
        "user defined data": {
          "fieldName": "idKey",
          "refField": "id ATENVUSRD",
          "trimLeading": "false",
          "trimTrailing": "true",
          "blankFill": "false",
          "rjZeroFill": "false",
          "dataType": "reference",
          "formatting": "Text",
          "textTransform": "none"
        },
        "user defined data 2": {
          "fieldName": "editMode",
          "customTrue": "",
          "customFalse": "",
          "dataType": "indicator",
          "formatting": "Indicator",
          "indFormat": "true / false"
        },
        "show as window": "true",
        "center window": "true",
        "initial routine": {
          "routine": "screen initialization",
          "designValue": "screen initialization"
        },
        "external css": "\\profoundui\\proddata\\css\\plogic.css"
      },
      "items": [
        {
          "id": "DetailPanel",
          "field type": "layout",
          "template": "css panel",
          "header height": "45px",
          "left": "25px",
          "top": "5px",
          "height": "530px",
          "header theme": "plogic--header",
          "body theme": "plogic--body",
          "z index": "9",
          "css class": "plogic--panel--wide",
          "css class 2": "info",
          "header text": {
            "fieldName": "dialogTitle",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "string",
            "formatting": "Text",
            "textTransform": "capitalize",
            "designValue": "[dialogTitle]"
          },
          "locked in place": "true",
          "onclick": {
            "routine": "SuffixId Message",
            "designValue": "SuffixId Message"
          }
        },
        {
          "id": "username_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "User Name",
          "left": "27px",
          "top": "15px",
          "css class 2": "blueprint-defaults",
          "width": "100px",
          "css class 3": "blueprint-output-field",
          "text align": "left",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "field type": "textbox",
          "float placeholder": "false",
          "allow field exit": "true",
          "width": "140px",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "usrname",
            "refField": "USRNAME ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "uppercase",
            "designValue": "[usrname]"
          },
          "top": "12px",
          "left": "140px",
          "id": "usrname",
          "text transform": "uppercase",
          "onchange": {
            "routine": "Retrieve OS/400 Profile",
            "designValue": "Retrieve OS/400 Profile"
          },
          "css class 2": "blueprint-textbox",
          "read only": {
            "fieldName": "protectUserName",
            "customTrue": "",
            "customFalse": "",
            "dataType": "indicator",
            "formatting": "Indicator",
            "indFormat": "true / false"
          },
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "userDescr",
          "field type": "output field",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "UserDescr",
            "dataLength": "50",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "varchar",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[UserDescr]"
          },
          "left": "295px",
          "top": "12px",
          "css class 2": "blueprint-textbox",
          "width": "200px",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField7",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "id",
            "designValue": "[id]",
            "refField": "ID ATENVUSRD",
            "dataType": "reference",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "formatting": "Text",
            "textTransform": "none"
          },
          "left": "846px",
          "top": "301px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField3",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "adduser",
            "refField": "ADDUSER ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[adduser]"
          },
          "left": "845px",
          "top": "343px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField6",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "tsadded",
            "dataType": "timestamp",
            "formatting": "Time Stamp",
            "timeStampFormat": "m/d/y g:i A",
            "locale": "en_US",
            "designValue": "[tsadded]"
          },
          "left": "1020px",
          "top": "343px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField2",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "upduser",
            "refField": "UPDUSER ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[upduser]"
          },
          "left": "845px",
          "top": "383px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField4",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "tslstchg",
            "refField": "TSLSTCHG ATENVUSRD",
            "dataType": "reference",
            "formatting": "Time Stamp",
            "timeStampFormat": "m/d/y g:i A",
            "locale": "en_US",
            "designValue": "[tslstchg]"
          },
          "left": "1020px",
          "top": "383px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "CancelButton",
          "field type": "graphic button",
          "css class": "plogic--button--tertiary",
          "value": "Cancel",
          "icon position": "left",
          "icon": "material:arrow_back",
          "shortcut key": "F12",
          "bypass validation": "true",
          "left": "20px",
          "top": "430px",
          "width": "140px",
          "css class 2": "plogic--ripple",
          "onclick": {
            "routine": "cancel button click",
            "designValue": "cancel button click"
          },
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "SaveButton",
          "field type": "graphic button",
          "css class": "plogic--button--primary",
          "value": "Save",
          "icon position": "left",
          "icon": "material:save",
          "shortcut key": "F10",
          "left": "173px",
          "top": "429px",
          "width": "140px",
          "css class 2": "plogic--ripple",
          "onclick": {
            "routine": "save button click",
            "designValue": "save button click"
          },
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField1",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "disuser",
            "refField": "DISUSER ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[disuser]"
          },
          "left": "845px",
          "top": "423px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "OutputField5",
          "field type": "textbox",
          "css class": "plogic--output-field",
          "value": {
            "fieldName": "tsdisabl",
            "refField": "TSDISABL ATENVUSRD",
            "dataType": "reference",
            "formatting": "Time Stamp",
            "timeStampFormat": "m/d/y g:i A",
            "locale": "en_US",
            "designValue": "[tsdisabl]"
          },
          "left": "1020px",
          "top": "423px",
          "css class 2": "plogic--constant",
          "visibility": "hidden",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "Layout2",
          "field type": "layout",
          "css class": "blueprint-tab-panel-layout",
          "left": "25px",
          "top": "49px",
          "template": "tab panel",
          "height": "347px",
          "width": "680px",
          "z index": "8",
          "css class 2": "blueprint-defaults ",
          "tab names": "5250 Settings",
          "layout": "DetailPanel",
          "container": "1"
        },
        {
          "id": "initialmenu_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Initial Menu",
          "left": "5px",
          "top": "31px",
          "css class 2": "blueprint-defaults",
          "width": "174px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "textbox",
          "float placeholder": "false",
          "allow field exit": "true",
          "width": "140px",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "initmenu",
            "refField": "INITMENU ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "uppercase",
            "designValue": "[initmenu]"
          },
          "top": "29px",
          "left": "200px",
          "id": "initmenu",
          "text transform": "uppercase",
          "css class 2": "blueprint-textbox",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "initialmenulibrary_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Initial Menu Library",
          "left": "5px",
          "top": "64px",
          "css class 2": "blueprint-defaults",
          "width": "174px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "textbox",
          "float placeholder": "false",
          "allow field exit": "true",
          "width": "140px",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "menulib",
            "refField": "MENULIB ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "uppercase",
            "designValue": "[menulib]"
          },
          "top": "61px",
          "left": "200px",
          "id": "initmenulib",
          "text transform": "uppercase",
          "css class 2": "blueprint-textbox",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "initialprogram_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Initial Program",
          "left": "5px",
          "top": "104px",
          "css class 2": "blueprint-defaults",
          "width": "174px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "textbox",
          "float placeholder": "false",
          "allow field exit": "true",
          "width": "140px",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "initprog",
            "refField": "INITPROG ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "uppercase",
            "designValue": "[initprog]"
          },
          "top": "100px",
          "left": "200px",
          "id": "initprog",
          "text transform": "uppercase",
          "css class 2": "blueprint-textbox",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "initialprogramlibrary_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Initial Program Library",
          "left": "5px",
          "top": "134px",
          "css class 2": "blueprint-defaults",
          "width": "174px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "textbox",
          "float placeholder": "false",
          "allow field exit": "true",
          "width": "140px",
          "css class": "blueprint-defaults",
          "value": {
            "fieldName": "proglib",
            "refField": "PROGLIB ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "uppercase",
            "designValue": "[proglib]"
          },
          "top": "130px",
          "left": "200px",
          "id": "initproglib",
          "text transform": "uppercase",
          "css class 2": "blueprint-textbox",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "defaultenvironmentname_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Default Environment Name",
          "left": "2px",
          "top": "179px",
          "css class 2": "blueprint-defaults",
          "width": "174px",
          "height": "30px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "select box",
          "allow field exit": "true",
          "width": "345px",
          "css class": "blueprint-select-box",
          "value": {
            "fieldName": "envname",
            "refField": "ENVNAME ATENVUSRD",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "reference",
            "formatting": "Text",
            "textTransform": "none",
            "designValue": "[envname]"
          },
          "top": "178px",
          "left": "203px",
          "id": "envname",
          "order by": "ENVDESC",
          "css class 2": "blueprint-defaults",
          "choices": {
            "fieldName": "dOptions",
            "dataLength": "500",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "varchar",
            "formatting": "Text",
            "textTransform": "none"
          },
          "choice values": {
            "fieldName": "dValues",
            "dataLength": "500",
            "trimLeading": "false",
            "trimTrailing": "true",
            "blankFill": "false",
            "rjZeroFill": "false",
            "dataType": "varchar",
            "formatting": "Text",
            "textTransform": "none"
          },
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "allowchangeenvironment_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Allow Change Environment",
          "left": "0px",
          "top": "224px",
          "css class 2": "blueprint-defaults",
          "width": "180px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "checkbox",
          "css class": "plogic--checkbox-no-label",
          "value": {
            "fieldName": "envchng",
            "refField": "envchng ATENVUSRD",
            "numSep": "false",
            "zeroBalance": "false",
            "numBlankFill": "false",
            "zeroFill": "false",
            "noExtraSpaces": "false",
            "curSym": "",
            "dataType": "reference",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": "",
            "designValue": "[envchng]"
          },
          "top": "215px",
          "left": "205px",
          "id": "envchange",
          "checked value": "1",
          "unchecked value": "0",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "id": "disabled_label",
          "field type": "output field",
          "css class": "outputField",
          "value": "Disabled",
          "left": "1px",
          "top": "254px",
          "css class 2": "blueprint-defaults",
          "width": "180px",
          "css class 3": "blueprint-output-field",
          "text align": "right",
          "layout": "Layout2",
          "container": "1"
        },
        {
          "field type": "checkbox",
          "css class": "plogic--checkbox-no-label",
          "value": {
            "fieldName": "disabled",
            "refField": "DISABLED ATENVUSRD",
            "numSep": "false",
            "zeroBalance": "false",
            "numBlankFill": "false",
            "zeroFill": "false",
            "noExtraSpaces": "false",
            "curSym": "",
            "dataType": "reference",
            "formatting": "Number",
            "negNum": "-999.00",
            "units": "",
            "designValue": "[disabled]"
          },
          "top": "243px",
          "left": "205px",
          "id": "disabled",
          "checked value": "1",
          "unchecked value": "0",
          "changed": {
            "fieldName": "disabledChanged",
            "customTrue": "",
            "customFalse": "",
            "dataType": "indicator",
            "formatting": "Indicator",
            "indFormat": "1 / 0"
          },
          "layout": "Layout2",
          "container": "1"
        }
      ]
    }
  ],
  "keywords": [],
  "long name aliases": true
}