Project

General

Profile

Feature #3946 » Size.js

Tri Rizqiaty, 10/13/2025 10:47 AM

 
1
var frmForm = Ext.ComponentQuery.query('[name=FORMPMDMAT0001]')[0]; var matFrom = frmForm.getForm(); var k = ''; var l = ''; var cat = matFrom.findField('ProductGroup').getValue(); if (cat != undefined) { Ext.Ajax.request({ async: false, method: 'POST', url: '/UserControl/GetStore', params: { tableName: 'CPCMFILOSUBCATEGORY', param: 'ProductGroup[=]' + cat }, success: function (response) { var results = Ext.decode(response.responseText); k = results.data[0].Category; } }); } var subcat = matFrom.findField('SubCategory').getValue(); if (subcat != undefined) { Ext.Ajax.request({ async: false, method: 'POST', url: '/UserControl/GetStore', params: { tableName: 'CPCMFILOSUBCATEGORY', param: 'SubCategoryCode[=]' + subcat }, success: function (response) { var results = Ext.decode(response.responseText); l = results.data[0].SubCategory; } }); } var m = matFrom.findField('Model').getValue(); if (m != '') { m = '-' + m; } var n = matFrom.findField('Artwork').getValue(); if (n != '') { n = '-' + n; } var o = matFrom.findField('Edition').getValue(); if (o != '') { o = '-' + o; } var p = matFrom.findField('Color').getValue(); if (p != '') { p = '-' + p; } var q = matFrom.findField('Size').getValue(); if (q != '') { q = '-' + q; } matFrom.findField('ExternalID').setValue(k + l + m + n + o + p + q);
(3-3/3)