v2.47.1 - ISQ query in OI file name

This commit is contained in:
2022-12-06 08:22:00 -07:00
parent 6a63632bc7
commit c4bf1dcf21
6 changed files with 84 additions and 30 deletions

16
Adaptation/.vscode/psn.js vendored Normal file
View File

@ -0,0 +1,16 @@
// (self.length != 0) ?
// self :
// (getContextData('2', 'cds.PRODUCT', '') == '-') ?
// self :
// getContextData('2', 'cds.PRODUCT', '')
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.TENCOR1/pcl/asdf', ''));
function getValue(value, length, product, recipe) {
if (recipe.toUpperCase() === 'asdf')
return 'asdf';
else if (length !== 0 || product === '-')
return value;
else
return product;
}