System generated commit, initial commit
This commit is contained in:
31
pages/xGen/queries/xgen_test_cal_measurements/metadata.json
Normal file
31
pages/xGen/queries/xgen_test_cal_measurements/metadata.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"gitSyncId": "e3b197954c324fb2bd7ad792_7684a9ec-ae85-4c35-8617-1103064d17ac",
|
||||
"id": "xGen_xgen_test_cal_measurements",
|
||||
"pluginId": "postgres-plugin",
|
||||
"pluginType": "DB",
|
||||
"unpublishedAction": {
|
||||
"actionConfiguration": {
|
||||
"body": "SELECT\n wo_number || '-' || wo_subnumber AS wo,\n measass_product_id AS product_id,\n meas_name AS measurement,\n\tmeasass_value AS measurement_value,\n\tmeas_unit AS measurement_unit,\n\tMAX(CASE WHEN char_name = 'Series' THEN charass_value ELSE NULL END) AS product_type,\n\tMAX(CASE WHEN char_name = 'Input' THEN charass_value ELSE NULL END) AS input_voltage,\n\tMAX(CASE WHEN char_name = 'Output V' THEN charass_value ELSE NULL END) AS output_voltage,\n\tMAX(CASE WHEN char_name = 'Power' THEN charass_value ELSE NULL END) AS power,\n\tMAX(CASE WHEN char_name = 'Model' THEN charass_value ELSE NULL END) AS model,\n\tMAX(CASE WHEN char_name = 'Phase' THEN charass_value ELSE NULL END) AS phase,\n\tMAX(CASE WHEN char_name = 'Com' THEN charass_value ELSE NULL END) AS com,\n\tmeasass_timestamp AS timestamp\nFROM mpe.measass\nJOIN mpe.meas ON meas_id = measass_meas_id\nJOIN wo ON wo_id = measass_wo_id\nLEFT JOIN charass ON wo_id = charass_target_id\nJOIN char ON charass_char_id = char_id\nWHERE char_name in ('Series', 'Input', 'Output V', 'Power', 'Model', 'Phase', 'Com')\nGROUP BY wo, measurement, measurement_value, measurement_unit, product_id, timestamp\nORDER BY wo, measurement\n",
|
||||
"encodeParamsToggle": true,
|
||||
"paginationType": "NONE",
|
||||
"pluginSpecifiedTemplates": [
|
||||
{
|
||||
"value": true
|
||||
}
|
||||
],
|
||||
"timeoutInMillisecond": 10000
|
||||
},
|
||||
"confirmBeforeExecute": false,
|
||||
"datasource": {
|
||||
"id": "xTuple_GoLive",
|
||||
"isAutoGenerated": false,
|
||||
"name": "xTuple_GoLive",
|
||||
"pluginId": "postgres-plugin"
|
||||
},
|
||||
"dynamicBindingPathList": [],
|
||||
"name": "xgen_test_cal_measurements",
|
||||
"pageId": "xGen",
|
||||
"runBehaviour": "AUTOMATIC",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user