Commit bc622a34 authored by Uma Badkar's avatar Uma Badkar

Upload New File

parent 59a550b9
{
"transaction": {
"actions": [
"add",
"edit"
],
"follow_up_actions": [
"on-add,trigger_email:email(get_role('asset-manager'),'new_asset_request','Include request details and purpose')",
"on-approve,trigger_email:email('EMPLOYEE_ID','request_approved','Notify employee about request approval')",
"on-reject,trigger_email:email('EMPLOYEE_ID','request_rejected','Notify employee about request rejection')"
],
"obj_name": "AMS_asset_requests",
"sql_models": [
{
"sql_model": {
"columns": [
{
"column": {
"col_id": "1",
"col_type": "CHAR",
"db_name": "REQUEST_ID",
"db_size": "12",
"default_function": "",
"default_value": "auto_generate()",
"descr": "Unique request identifier",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Basic",
"heading": "Request ID",
"hidden": "",
"key": true,
"lookup": "",
"mandatory": "true",
"name": "REQUEST_ID",
"protect": "1",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 120,
"x": "10",
"y": "10"
}
},
{
"column": {
"col_id": "2",
"col_type": "CHAR",
"db_name": "EMPLOYEE_ID",
"db_size": "10",
"default_function": "",
"default_value": "",
"descr": "Requesting employee identifier",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Basic",
"heading": "Employee ID",
"hidden": "",
"key": false,
"lookup": "EMPLOYEES(EMP_NAME, EMP_ID)",
"mandatory": "true",
"name": "EMPLOYEE_ID",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 100,
"x": "20",
"y": "20"
}
},
{
"column": {
"col_id": "3",
"col_type": "VARCHAR",
"db_name": "EMP_NAME",
"db_size": "100",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Basic",
"heading": "Employee Name",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": false,
"name": "EMP_NAME",
"protect": "1",
"table_display_name": "",
"table_name": "EMPLOYEES",
"validations": "",
"width": 500,
"x": "30",
"y": "30"
}
},
{
"column": {
"col_id": "4",
"col_type": "CHAR",
"db_name": "DEPARTMENT",
"db_size": "10",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Basic",
"heading": "Department",
"hidden": "",
"key": false,
"lookup": "DEPARTMENTS(DEPT_NAME, DEPT_CODE)",
"mandatory": "true",
"name": "DEPARTMENT",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 100,
"x": "40",
"y": "40"
}
},
{
"column": {
"col_id": "5",
"col_type": "CHAR",
"db_name": "CATEGORY_ID",
"db_size": "12",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Asset",
"heading": "Asset Category",
"hidden": "",
"item_change": "",
"key": false,
"lookup": "AMS_ASSET_CATEGORIES(CATEGORY_NAME, CATEGORY_ID)",
"mandatory": "true",
"name": "CATEGORY_ID",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": [
"must_exist_in('AMS_ASSET_CATEGORIES')"
],
"width": 120,
"x": "50",
"y": "50"
}
},
{
"column": {
"col_id": "6",
"col_type": "VARCHAR",
"db_name": "CATEGORY_NAME",
"db_size": "50",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Asset",
"heading": "Category Name",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": false,
"name": "CATEGORY_NAME",
"protect": "1",
"table_display_name": "Asset categories",
"table_name": "AMS_ASSET_CATEGORIES",
"validations": "",
"width": 500,
"x": "60",
"y": "60"
}
},
{
"column": {
"col_id": "7",
"col_type": "CHAR",
"db_name": "MODEL_ID",
"db_size": "12",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Asset",
"heading": "Asset Model",
"hidden": "",
"key": false,
"lookup": "AMS_ASSET_MODELS(MODEL_NAME, MODEL_ID)",
"mandatory": false,
"name": "MODEL_ID",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": [
"must_exist_in('AMS_ASSET_MODELS')"
],
"width": 120,
"x": "70",
"y": "70"
}
},
{
"column": {
"col_id": "8",
"col_type": "VARCHAR",
"db_name": "MODEL_NAME",
"db_size": "100",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Asset",
"heading": "Model Name",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": false,
"name": "MODEL_NAME",
"protect": "1",
"table_display_name": "Asset models",
"table_name": "AMS_ASSET_MODELS",
"validations": "",
"width": 500,
"x": "80",
"y": "80"
}
},
{
"column": {
"col_id": "9",
"col_type": "VARCHAR",
"db_name": "PURPOSE",
"db_size": "500",
"default_function": "",
"default_value": "",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Details",
"heading": "Purpose",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": "true",
"name": "PURPOSE",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 500,
"x": "90",
"y": "90"
}
},
{
"column": {
"col_id": "10",
"col_type": "NUMBER",
"db_name": "REQUIRED_DURATION",
"db_size": "4",
"default_function": "",
"default_value": "",
"descr": "Duration in months",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Details",
"heading": "Required Duration",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": "true",
"name": "REQUIRED_DURATION",
"protect": "",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 50,
"x": "100",
"y": "100"
}
},
{
"column": {
"col_id": "11",
"col_type": "CHAR",
"db_name": "REQUEST_STATUS",
"db_size": "1",
"default_function": "",
"default_value": "P",
"descr": "",
"edit_mask": {
"mask": "ddlb",
"values": [
{
"data": "P",
"display": "Pending"
},
{
"data": "A",
"display": "Approved"
},
{
"data": "R",
"display": "Rejected"
}
]
},
"expression": "",
"format": "",
"group_name": "Status",
"heading": "Status",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": false,
"name": "REQUEST_STATUS",
"protect": "1",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 50,
"x": "110",
"y": "110"
}
},
{
"column": {
"col_id": "12",
"col_type": "DATE",
"db_name": "REQUEST_DATE",
"db_size": "",
"default_function": "",
"default_value": "today()",
"descr": "",
"edit_mask": "",
"expression": "",
"format": "",
"group_name": "Status",
"heading": "Request Date",
"hidden": "",
"key": false,
"lookup": "",
"mandatory": false,
"name": "REQUEST_DATE",
"protect": "1",
"table_display_name": "Asset requests",
"table_name": "AMS_ASSET_REQUESTS",
"validations": "",
"width": 50,
"x": "120",
"y": "120"
}
}
],
"form_descr": "Employee asset request form",
"form_no": "1",
"form_title": "Asset Request",
"joins": {
"join_predicates": {
"joins": [
{
"main_table": true,
"table": "AMS_ASSET_REQUESTS",
"table_descr": "Asset requests"
},
{
"column": "CATEGORY_ID",
"join_column": "CATEGORY_ID",
"join_table": "AMS_ASSET_REQUESTS",
"join_type": "inner",
"main_table": false,
"table": "AMS_ASSET_CATEGORIES",
"table_descr": "Asset categories"
},
{
"column": "MODEL_ID",
"join_column": "MODEL_ID",
"join_table": "AMS_ASSET_REQUESTS",
"join_type": "left",
"main_table": false,
"table": "AMS_ASSET_MODELS",
"table_descr": "Asset models"
}
]
}
}
}
}
]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment