/**
* control.js - representational metaphor
* Represents a control in the actual XForm. It only manages and stores data
* about its internal structure and properties - the general form structure
* is managed by the DOM.
*/
var multiSelectedControls = {};
var copyPasteCtrlInfo = {};
var extractRecurseData = {};
var controlsWhenSelectTmp = undefined;
var userVariables = {};
var accountVariables = {};
var stackPrevious = [];
var stackPreviousCount = 0;
var controlsTmp = undefined;
var stack = [];
var stackPage = [];
var stackTable = [];
var stackCount = 0;
var stackPageCount = 0;
var stackTableCount = 0;
var serviceLevel = {};
var removeCtrlProperyOfCtrlDeleted = function(){
if($('.ctrlUndoDeleteMark.selected').length>0){
$('.propertiesPaneContent ul.propertyList:visible').empty();
var pageId = $('.ctrlUndoDeleteMark.selected').attr('data-page');
if(pageId && pageId != ''){
if(pageId == $('.jumpToHeader .cboJumpTo').val()){
$('.jumpToHeader .cboJumpTo').val('');
}
}
}
}
var addCboRepeatableColumnField = function(controls, repeatableId, level, startAdd){
var cboRepeatableColumnFieldControl = $('.repeatableColumnField .cboRepeatableColumnField');
var cboRepeatableColumnFieldVals = [];
var i =0;
if(level == 0){
if(cboRepeatableColumnFieldControl.length > 1){
_.each(cboRepeatableColumnFieldControl, function(item){
cboRepeatableColumnFieldVals[i] = $(item).val();
i ++;
});
}else{
cboRepeatableColumnFieldVals[0] = cboRepeatableColumnFieldControl.val();
}
}
if(level == 0){
cboRepeatableColumnFieldControl.empty();
cboRepeatableColumnFieldControl.append($(' '));
}
var start = startAdd;
var skip = false;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP || control.type == CONST_CTRL_TYPE_CTRLTABLE){
if(control.id == repeatableId){
start = true;
}
if(addCboRepeatableColumnField(control.children, repeatableId, level + 1, start)){
skip = true;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID || control.type == CONST_CTRL_TYPE_CTRLTABLE){
addCboRepeatableColumnField(control.children, repeatableId, level + 1, start);
}else {
switch(control.type){
case CONST_CTRL_TYPE_INPUTNUMBERING: //Auto-number
case CONST_CTRL_TYPE_INPUTBARCODE: //Barcode
case CONST_CTRL_TYPE_INPUTCALCULATE: //Calculation
case CONST_CTRL_TYPE_INPUTSELECTONE: //Choose one
case CONST_CTRL_TYPE_INPUTCOUNTER: //Counter
case CONST_CTRL_TYPE_INPUTLOOKUP: //Data lookup
case CONST_CTRL_TYPE_INPUTDATE: //Date/Time
case CONST_CTRL_TYPE_INPUTIMAGE: //Image
case CONST_CTRL_TYPE_INPUTSIGNATURE: //Signature
case CONST_CTRL_TYPE_INPUTSKETCH: //Sketch
case CONST_CTRL_TYPE_INPUT_NUMERIC: //Numeric
case CONST_CTRL_TYPE_INPUTSELECTMANY: //Select Multiple
case CONST_CTRL_TYPE_INPUT_TEXT: //Text
case CONST_CTRL_TYPE_IMAGE_VIEWER: //Image viewer
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboRepeatableColumnFieldControl.append(optionRow);
}
}
}
});
if(level == 0){
if(cboRepeatableColumnFieldControl.length > 1){
i = 0;
_.each(cboRepeatableColumnFieldControl, function(item){
$(item).val(cboRepeatableColumnFieldVals[i]);
i ++;
});
}else{
cboRepeatableColumnFieldControl.val(cboRepeatableColumnFieldVals[0]);
}
}
if(skip || start){
return true;
}else{
return false;
}
}
var inputSourceStack = [];
var inputSourceStackCount = 0;
var findInputSourceCtrlToNode = function(controls, selectedCtrlId, inputSource){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
//addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource);
_.each(control.children, function(controlGrd)
{
if(selectedCtrlId == controlGrd.id){
addNode = true;
}
if(addNode){
return false;
}
if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){
if(inputSource == 'Text widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'Numeric widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Lookup widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'Location widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOCATION){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'Time widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'DateTime widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_DATE_SPACE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'ChooseOne widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}
}else{
if(inputSource == 'Lat/Lon'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOCATION){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'Numeric widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Time widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'DateTime widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_DATE_SPACE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'ChooseOne widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else if(inputSource == 'Text|ChooseOne widget'){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else {
//address
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}
}
});
}else {
if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){
if(inputSource == 'Text widget'){
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Numeric widget'){
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Lookup widget'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}else if(inputSource == 'Location widget'){
if(control.type == CONST_CTRL_TYPE_INPUTLOCATION){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Time widget'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'DateTime widget'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'ChooseOne widget'){
if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Text|ChooseOne widget'){
if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}else{
if(inputSource == 'Lat/Lon'){
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(control.type == CONST_CTRL_TYPE_INPUTLOCATION){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Numeric widget'){
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Time widget'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'DateTime widget'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'ChooseOne widget'){
if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(inputSource == 'Text|ChooseOne widget'){
if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else{
//address
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
}
}
});
if(addNode){
for(var j=i; j>0; j--){
inputSourceStack[inputSourceStackCount] = tmp[j-1];
inputSourceStackCount++;
}
}
return addNode;
}
var conditionStack = [];
var conditionStackCount = 0;
var findTableFieldForRetrieve = function(controls){
var addNode = false;
var tmp = [];
var i = 0;
var sameLevel = false;
_.each(controls, function(controlTmp)
{
if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE ||
controlTmp.type == CONST_CTRL_TYPE_GROUP){
var prefix = '(Table) ';
var addCls = 'table_item';
if(controlTmp.type == CONST_CTRL_TYPE_GROUP){
prefix = '(Repeatable) ';
addCls = 'repeatable_item';
}
_.each(controlTmp.children, function(control)
{
if(control.isRetrieve){
return true;
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(itemControlGrid){
if(itemControlGrid.isRetrieve){
return true;
}
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!itemControlGrid.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, itemControlGrid.id)
.attr('data', controlTmp.id)
.addClass('optionType_string answerQuestionOptions for_retrieve_modify_only ' + addCls)
.text(prefix + itemControlGrid.name);
i++;
}
}else if((itemControlGrid.type == 'inputFacingTable'
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUT_TEXT
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTTRENDS
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
var optionType = 'string';
switch(itemControlGrid.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
default:
optionType = 'string';
break;
}
if(itemControlGrid.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && itemControlGrid.kind == 'String') {
optionType = 'string';
}
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(itemControlGrid.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
tmp[i] = $(' ')
.attr(CONST_VALUE, itemControlGrid.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only ' + addCls)
.text(prefix + itemControlGrid.name);
i++;
}
})
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_string answerQuestionOptions for_retrieve_modify_only ' + addCls)
.text(prefix + control.name);
i++;
}
}else if((control.type == 'inputFacingTable'
|| control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTTRENDS
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
var optionType = 'string';
switch(control.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
default:
optionType = 'string';
break;
}
if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') {
optionType = 'string';
}
if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(control.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only ' + addCls)
.text(prefix + control.name);
i++;
}
});
}
});
if(i > 0){
for(var j=i; j>0; j--){
conditionStack[conditionStackCount] = tmp[j-1];
conditionStackCount++;
}
return true;
}else{
return false;
}
}
var tableFiedStack = [];
var tableFiedStackCount = 0;
var findTableFields = function(controls, kind, endId){
var tmp = [];
var i = 0;
var end = false;
_.each(controls, function(controlTmp)
{
if(end){
return false;
}
if(controlTmp.id == endId){
end = true;
return false;
}
if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE){
_.each(controlTmp.children, function(control)
{
if(end){
return false;
}
if(control.id == endId){
end = true;
return false;
}
if((control.type == 'inputFacingTable'
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTTRENDS
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
var optionType = CONST_STRING_LOWERCASE;
switch(control.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = CONST_NUMBER_LOWERCASE;
break;
default:
optionType = CONST_STRING_LOWERCASE;
break;
}
if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') {
optionType = CONST_STRING_LOWERCASE;
}
if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(control.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = CONST_VALUE_DATE_LOWERCASE;
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE;
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = CONST_VALUE_TIME_LOWERCASE;
break;
}
}
switch(kind){
case CONST_STRING_LOWERCASE:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only')
.text('(Table) ' + control.name);
i++;
break;
case CONST_VALUE_TIME_LOWERCASE:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only')
.text('(Table) ' + control.name);
i++;
break;
case CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only')
.text('(Table) ' + control.name);
i++;
break;
case CONST_NUMBER_LOWERCASE:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only')
.text('(Table) ' + control.name);
i++;
break;
default:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr('data', controlTmp.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only')
.text('(Table) ' + control.name);
i++;
}
}
});
}
});
if(i > 0){
for(var j=i; j>0; j--){
tableFiedStack[tableFiedStackCount] = tmp[j-1];
tableFiedStackCount++;
}
return end;
}else{
return end;
}
}
var findTableFieldForRetrieveModiFy = function(controls, properties){
var addNode = false;
var tmp = [];
var i = 0;
var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : '';
_.each(controls, function(controlTmp)
{
if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE ||
controlTmp.type == CONST_CTRL_TYPE_GROUP){
var prefix = '(Table) ';
var addCls = 'table_item';
if(controlTmp.type == CONST_CTRL_TYPE_GROUP){
prefix = '(Repeatable) ';
addCls = 'repeatable_item';
}
_.each(controlTmp.children, function(control)
{
if(control.isRetrieve){
return true;
}
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
//.addClass('for_retrieve_modify_only hide_in_modify ' + addCls)
.addClass('for_retrieve_modify_only ' + addCls)
.attr('data', controlTmp.id)
.text(prefix + control.name);
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
// Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it
optionRow.addClass('modifyaction_numeric').hide();
} else if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
// Add modifyaction_date class for datetime options use for "Change Date" action and hide it
optionRow.addClass('modifyaction_date').hide();
} else {
// Add modifyaction_none class for options and hide it
optionRow.addClass('modifyaction_none').hide();
}
switch(actionType) {
case CONS_RETRIVE_ACTION_ADD_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACT_VALUE:
case CONS_RETRIVE_ACTION_ADDDAYS_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE:
if(optionRow[0].className == 'modifyaction_numeric'){
optionRow.show();
}
break;
case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE:
if(optionRow[0].className == 'modifyaction_date'){
optionRow.show();
}
break;
default:
optionRow.show();
break;
}
tmp[i] = optionRow;
i++;
});
}
});
if(i > 0){
for(var j=i; j>0; j--){
conditionStack[conditionStackCount] = tmp[j-1];
conditionStackCount++;
}
return true;
}else{
return false;
}
}
var findPreviousItem = function(controls, endId, ctrlType){
var addNode = false;
var tmp = [];
var i = 0;
var addNodeToEndOfGroup = false;
var end = false;
var typeTmp = '';
var kindTmp = '';
if(ctrlType != undefined){
var pos = ctrlType.indexOf('-');
if(pos>=0){
isCheckCtrlKind = true;
typeTmp = ctrlType.substring(0, pos);
kindTmp = ctrlType.substring(pos+1);
if(typeTmp == CONST_CTRL_TYPE_INPUT_NUMERIC){
ctrlType = typeTmp;
isCheckCtrlKind = false;
}else if(typeTmp == CONST_CTRL_TYPE_INPUTCALCULATE){
if(kindTmp == CONST_VALUE_DATE){
ctrlType = CONST_CTRL_TYPE_INPUTDATE;
}else if(kindTmp == 'String'){
ctrlType = CONST_CTRL_TYPE_INPUT_TEXT;
}else{
ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC;
}
isCheckCtrlKind = false;
}else if(typeTmp == CONST_CTRL_TYPE_INPUTTRENDS){
ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC;
isCheckCtrlKind = false;
}else if(typeTmp == CONST_CTRL_TYPE_INPUTBARCODE){
ctrlType = CONST_CTRL_TYPE_INPUT_TEXT;
isCheckCtrlKind = false;
}else if(typeTmp == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
ctrlType = CONST_CTRL_TYPE_INPUTSCORESUMMARY;
isCheckCtrlKind = false;
}
}else{
typeTmp = ctrlType;
switch(typeTmp){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(kindTmp == CONST_VALUE_DATE){
ctrlType = CONST_CTRL_TYPE_INPUTDATE;
}else if(kindTmp == 'String'){
ctrlType = CONST_CTRL_TYPE_INPUT_TEXT;
}else{
ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC;
}
break;
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC;
break;
case CONST_CTRL_TYPE_INPUTSCORESUMMARY:
ctrlType = CONST_CTRL_TYPE_INPUTSCORESUMMARY;
break;
default:
if(isCtrlTextKind(typeTmp)){
ctrlType = CONST_CTRL_TYPE_INPUT_TEXT;
}
break;
}
}
}
_.each(controls, function(control)
{
if(end){
return false;
}
if(endId == control.id){
if(control.parentCtrlType == CONST_CTRL_TYPE_GROUP){
addNodeToEndOfGroup = true;
}
}
if(control.type == CONST_CTRL_TYPE_GROUP && !addNodeToEndOfGroup){
if(findPreviousItem(control.children, endId) == true){
end = true;
return true;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(control1)
{
if(endId == control1.id){
if(control.parentCtrlType == CONST_CTRL_TYPE_GROUP){
addNodeToEndOfGroup = true;
}
}
if(control1.type == CONST_CTRL_TYPE_GROUP){
}else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){
}else if(control1.type == CONST_CTRL_TYPE_CTRLINV){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){
}else if(control1.type == 'inputPageBreak'){
}else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || control1.type == CONST_CTRL_TYPE_INPUTACTION || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
}else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
}else if(control1.type == 'inputLookupMulti'){
}else if(control1.type == 'inputSaveAndSend'){
}else{
if(ctrlType != undefined){
if(isCheckCtrlKind){
var cmp = control1.type + '-' + control1.kind;
if(ctrlType == cmp){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id)
.text('(' + CONST_PREVIOUS + ') ' + control1.name);
i++;
}else{
if(typeTmp == CONST_CTRL_TYPE_INPUTDATE){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind == CONST_VALUE_DATE){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id)
.text('(' + CONST_PREVIOUS + ') ' + control1.name);
i++;
}
break;
}
}
}
}else{
if(ctrlType == control1.type){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id)
.text('(' + CONST_PREVIOUS + ') ' + control1.name);
i++;
}else{
var isTheSame = false;
if(ctrlType == CONST_CTRL_TYPE_INPUT_NUMERIC){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind != CONST_VALUE_DATE){
isTheSame = true;
}
break;
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
isTheSame = true;
break;
}
}else if(ctrlType == CONST_CTRL_TYPE_INPUTDATE){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind == CONST_VALUE_DATE){
isTheSame = true;
}
break;
}
}else if(ctrlType == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind != CONST_VALUE_DATE && control.kind != 'String'){
isTheSame = true;
}
break;
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
case CONST_CTRL_TYPE_INPUT_NUMERIC:
isTheSame = true;
break;
}
}else if(isCtrlTextKind(ctrlType) && isCtrlTextKind(control1.type, control1)){
isTheSame = true;
}
if(isTheSame){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id)
.text('(' + CONST_PREVIOUS + ') ' + control1.name);
i++;
}
}
}
}else{
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id)
.text('(' + CONST_PREVIOUS + ') ' + control1.name);
i++;
}
}
});
}else if(control.type == 'inputPageBreak'){
}else if(control.type == 'inputLabel' || control.type == 'inputInstruction' || control.type == CONST_CTRL_TYPE_INPUTACTION || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
}else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
}else if(control.type == CONST_CTRL_TYPE_INPUTFAX){
}else if(control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}else if(control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
}else if(control.type == 'inputLookupMulti'){
}else if(control.type == 'inputSaveAndSend'){
}else{
if(ctrlType != undefined){
if(isCheckCtrlKind){
var cmp = control1.type + '-' + control1.kind;
if(ctrlType == cmp){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id)
.text('(' + CONST_PREVIOUS + ') ' + control.name);
i++;
}else{
if(typeTmp == CONST_CTRL_TYPE_INPUTDATE){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind == CONST_VALUE_DATE){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id)
.text('(' + CONST_PREVIOUS + ') ' + control.name);
i++;
}
break;
}
}
}
}else{
if(ctrlType == control1.type){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id)
.text('(' + CONST_PREVIOUS + ') ' + control.name);
i++;
}else{
var isTheSame = false;
if(ctrlType == CONST_CTRL_TYPE_INPUT_NUMERIC){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind != CONST_VALUE_DATE){
isTheSame = true;
}
break;
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
isTheSame = true;
break;
}
}else if(ctrlType == CONST_CTRL_TYPE_INPUTDATE){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind == CONST_VALUE_DATE){
isTheSame = true;
}
break;
}
}else if(ctrlType == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
switch(control1.type){
case CONST_CTRL_TYPE_INPUTCALCULATE:
if(control1.kind != CONST_VALUE_DATE && control.kind != 'String'){
isTheSame = true;
}
break;
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
case CONST_CTRL_TYPE_INPUT_NUMERIC:
isTheSame = true;
break;
}
}else if(isCtrlTextKind(ctrlType) && isCtrlTextKind(control1.type, control1)){
isTheSame = true;
}
if(isTheSame){
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id)
.text('(' + CONST_PREVIOUS + ') ' + control.name);
i++;
}
}
}
}else{
tmp[i] = $(' ')
.attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id)
.text('(' + CONST_PREVIOUS + ') ' + control.name);
i++;
}
}
});
if(addNodeToEndOfGroup){
for(var j=i; j>0; j--){
stackPrevious[stackPreviousCount] = tmp[j-1];
stackPreviousCount++;
}
return true;
}else{
if(end){
return true;
}
return false;
}
}
var addCboSkipAnswer = function(cboSkipControl, controls, level, properties){
var cboSkipAnswerConditionVal = cboSkipControl.val();
if(level == 0){
cboSkipControl.empty();
cboSkipControl.append(' ');
}
var start = false;
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP || control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE || control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV || control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboSkipAnswer(cboSkipControl, control.children, level + 1, properties)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboSkipAnswer(cboSkipControl, control.children, level + 1, properties)){
start = true;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start){
if(control.type == 'inputPageBreak' || control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
}else{
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboSkipControl.append(optionRow);
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(control1){
var optionRow = $(' ')
.attr(CONST_VALUE, control1.id)
.text(control1.name);
cboSkipControl.append(optionRow);
})
}
}
}
}
}
});
if(level == 0){
if(endOfForm){
cboSkipControl.append('' + CONST_JUMP_EOF_TEXT + ' ');
}else{
cboSkipControl.append('' + CONST_JUMP_EOG_TEXT + ' ');
}
cboSkipControl.val(cboSkipAnswerConditionVal);
}
return start;
};
function updateSelectedControls(){
var selkectedItems = $('.workspace:visible .multi-selected');
var lastSel = undefined;
if(multiSelectedControls){
lastSel = multiSelectedControls['__LAST_SEL__'];
}
multiSelectedControls = {};
multiSelectedControls['__CTRLS__'] = {};
if(lastSel){
multiSelectedControls['__LAST_SEL__'] = lastSel;
}
if(selkectedItems.length < 2 && selkectedItems.hasClass('selected')){
selkectedItems.removeClass('multi-selected');
return;
}
for(var i=0; i < selkectedItems.length; i++){
var item = $(selkectedItems[i]);
var itemId = item.attr('id');
multiSelectedControls[itemId] = i;
multiSelectedControls['__CTRLS__'][itemId] = item;
}
}
function positionCompare(lastSelected, curSelected){
if(!lastSelected || !curSelected){
return 0;
}
if(lastSelected.offset().top < curSelected.offset().top){
return -1;
}else{
return 1;
}
}
function updateReportDataElementColumnNumber(){
var $ctrlBreakPointDataElements = $('.reportBuilder .ctrlBreakPointData .control.ctrlBreakPointDataElement');
for(var i = 0; i < $ctrlBreakPointDataElements.length; i++){
var $ctrlBreakPointDataElement = $($ctrlBreakPointDataElements[i]);
$ctrlBreakPointDataElement.find('.reportColumnNumber').empty().append('' + (i + 1));
}
}
function removeUnsupportProperty(properties, controlType){
// remove justificationAnswer for all control
switch(controlType){
case CONST_CTRL_TYPE_INPUTSIGNATURE:
case 'inputDraw':
case CONST_CTRL_TYPE_INPUTIMAGE:
case CONST_CTRL_TYPE_INPUTAUDIO:
case CONST_CTRL_TYPE_INPUTVIDEO:
case CONST_CTRL_TYPE_INPUTMEDIA:
case CONST_CTRL_TYPE_INPUTSKETCH:
case CONST_CTRL_TYPE_INPUTLOCATION:
case CONST_CTRL_TYPE_INPUTATTACHMENT:
try{
delete properties.justificationAnswer;
}catch(ex){}
break;
}
}
// The config setting about using "Mobile Required", "Dispatch Required"
function isUsingDispatchRequiredCustom() {
return isVersion(VERSION_ADD_DISPATCH_REQUIRED);
}
// The config for []Not use lookup in Dispatch tab in Build Forms
function isUsingNotUseLKInDispatchCustom() {
return isVersion(VERSION_NOT_USE_LK_IN_DISPATCH_TAB);
}
function removeUnuseVersion(properties) {
_.each(properties, function(property, key)
{
switch(key){
case 'sendReport':
property.version = VERSION_SEND_REPORT;
break;
}
if(property.version){
if(!isVersion(property.version)){
delete properties[key];
}
}
});
}
var ctrlDuplicate = false;
var replaceNonAlphaNumericChar = function(text, dontTrimLRUnd, notIsXMLTag){
if(text == undefined){
return '';
}else{
var ret = ('' + text).replace(/ /g, '').replace(/[^A-Za-z0-9]+/g,'_');
if(!dontTrimLRUnd){
ret = ret.replace(/^_+/,'').replace(/_+$/,'');
}
if(isVersion(VERSION_ADD_X_IF_START_DIGIT)){
if(notIsXMLTag){
return ret;
}
// is is xml tag then add x to the first if ret start with a number or xml
if(ret != "" && !isNaN(ret.charAt(0))){
ret = 'x' + ret;
}else{
if(ret.toLowerCase().startsWith('xml')){
ret = 'x' + ret
}
}
}
return ret;
}
}
var replaceNonAlphaNumericCharForScoreControl = function(text){
if(text == undefined){
return '';
}else{
var ret = ('' + text).replace(/[^A-Za-z0-9. -]+/g,'_');
ret = ret.replace(/^_+/,'').replace(/_+$/,'');
return ret;
}
}
var copyProperties = function(properties, newProperties, donotIgnoreIsOldCtrl){
_.each(properties, function(property, key){
if(!donotIgnoreIsOldCtrl && key == 'isOldCtrl'){
return true;
}
//if( property.toString() === "[object Object]"){
if(jQuery.isPlainObject(property)){
newProperties[key] = jQuery.isArray(property)?[]:{};
if(property.isInsideTheScoreTable && key == 'options'){
copyProperties(property, newProperties[key], true);
}else{
copyProperties(property, newProperties[key], donotIgnoreIsOldCtrl);
}
}else{
//if(property[0] !== undefined && jQuery.isPlainObject(property[0])){
if(jQuery.isArray(property)){
newProperties[key] = [];
copyProperties(property, newProperties[key], donotIgnoreIsOldCtrl);
}else{
newProperties[key] = property;
}
}
});
}
var isHiddenProperty = function(properties, property, key){
if(property.hide_condition_ques && property.hide_condition_ques_val != undefined){
var scqProperty = properties[property.hide_condition_ques];
if(scqProperty){
if(checkValueInObject(scqProperty.value, property.show_condition_ques_val)){
return true;
}
// continue check show_condition_ques 2
}
}
if(property.show_condition_ques && property.show_condition_ques_val != undefined){
//show_condition_ques: 'isIgnoreGrid',
//show_condition_ques_val: true,
var scqProperty = properties[property.show_condition_ques];
if(scqProperty){
if(!checkValueInObject(scqProperty.value, property.show_condition_ques_val)){
return true;
}
// continue check show_condition_ques 2
}
}
if(property.show_condition_ques_2 && property.show_condition_ques_2_val != undefined){
//show_condition_ques_2: 'isIgnoreGrid',
//show_condition_ques_2_val: true,
var scqProperty = properties[property.show_condition_ques_2];
if(scqProperty){
if(!checkValueInObject(scqProperty.value, property.show_condition_ques_2_val)){
return true;
}
// continue check show_condition_ques 3
}
}
if(property.show_condition_ques_3 && property.show_condition_ques_3_val != undefined){
//show_condition_ques_3: 'isIgnoreGrid',
//show_condition_ques_3_val: true,
var scqProperty = properties[property.show_condition_ques_3];
if(scqProperty){
if(!checkValueInObject(scqProperty.value, property.show_condition_ques_3_val)){
return true;
}
}
}
if(property.add_class && (property.add_class.indexOf(CONST_CSS_CLASS_HIDE_SESSION)>=0 || property.add_class.indexOf(CONST_CSS_CLASS_HIDE_SESSION_IMP)>=0)){
return true;
}
return false;
}
var getControlType = function(control){
if($(control).hasClass(CONST_CTRL_TYPE_INPUT_TEXT)){
return CONST_CTRL_TYPE_INPUT_TEXT;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUT_NUMERIC)){
return CONST_CTRL_TYPE_INPUT_NUMERIC;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTTRENDS)){
return CONST_CTRL_TYPE_INPUTTRENDS;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTDATE)){
return CONST_CTRL_TYPE_INPUTDATE;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOCATION)){
return CONST_CTRL_TYPE_INPUTLOCATION;
}else if($(control).hasClass(mdi_kind_inputImage)){
return mdi_kind_inputImage;
}else if($(control).hasClass(mdi_kind_inputAudio)){
return mdi_kind_inputAudio;
}else if($(control).hasClass(mdi_kind_inputVideo)){
return mdi_kind_inputVideo;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTMEDIA)){
return CONST_CTRL_TYPE_INPUTMEDIA;
}else if($(control).hasClass(mdi_kind_inputSketch)){
return mdi_kind_inputSketch;
}else if($(control).hasClass(mdi_kind_inputSignature)){
return mdi_kind_inputSignature;
}else if($(control).hasClass('inputDraw')){
return 'inputDraw';
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTBARCODE)){
return CONST_CTRL_TYPE_INPUTBARCODE;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNFC)){
return CONST_CTRL_TYPE_INPUTNFC;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTFORWARD)){
return CONST_CTRL_TYPE_INPUTFORWARD;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSECUREFORWARD)){
return CONST_CTRL_TYPE_INPUTSECUREFORWARD;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTCOUNTER)){
return CONST_CTRL_TYPE_INPUTCOUNTER;
/*
}else if($(control).hasClass('inputRIF')){
return 'inputRIF';*/
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSELECTONE)){
return CONST_CTRL_TYPE_INPUTSELECTONE;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSCOREONE)){
return CONST_CTRL_TYPE_INPUTSCOREONE;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSELECTMANY)){
return CONST_CTRL_TYPE_INPUTSELECTMANY;
}else if($(control).hasClass(CONST_CTRL_TYPE_GROUP)){
return CONST_CTRL_TYPE_GROUP;
}else if($(control).hasClass('inputPageBreak')){
return 'inputPageBreak';
}else if($(control).hasClass('inputLabel')){
return 'inputLabel';
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSCORESUMMARY)){
return CONST_CTRL_TYPE_INPUTSCORESUMMARY;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNUMBERING)){
return CONST_CTRL_TYPE_INPUTNUMBERING;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNEWPAYMENT)){
return CONST_CTRL_TYPE_INPUTNEWPAYMENT;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNEWPAYMENT)){
return CONST_CTRL_TYPE_INPUTNEWPAYMENT;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTACTION)){
return CONST_CTRL_TYPE_INPUTACTION;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTPAYMENT)){
return CONST_CTRL_TYPE_INPUTPAYMENT;
}else if($(control).hasClass('inputInstruction')){
return 'inputInstruction';
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTEMAILREPORT)){
return CONST_CTRL_TYPE_INPUTEMAILREPORT;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTFAX)){
return CONST_CTRL_TYPE_INPUTFAX;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)){
return CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTAPPROVAL)){
return CONST_CTRL_TYPE_INPUTAPPROVAL;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTCALCULATE)){
return CONST_CTRL_TYPE_INPUTCALCULATE;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP)){
return CONST_CTRL_TYPE_INPUTLOOKUP;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH)){
return CONST_CTRL_TYPE_INPUTLFBLUETOOTH;
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
return CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE;
}else if($(control).hasClass('inputSaveAndSend')){
return 'inputSaveAndSend';
}else if($(control).hasClass('inputLookupMulti')){
return 'inputLookupMulti';
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLTABLE)){
return CONST_CTRL_TYPE_CTRLTABLE;
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLSCHEDULE)){
return CONST_CTRL_TYPE_CTRLSCHEDULE;
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLPOD)){
return CONST_CTRL_TYPE_CTRLPOD;
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLINV)){
return CONST_CTRL_TYPE_CTRLINV;
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLSCORETABLE)){
return CONST_CTRL_TYPE_CTRLSCORETABLE;
}else if($(control).hasClass(CONST_CTRL_TYPE_CTRLGRID)){
return CONST_CTRL_TYPE_CTRLGRID;
}else if($(control).hasClass('inputFacingTable')){
return 'inputFacingTable';
}else if($(control).hasClass(CONST_CTRL_TYPE_INPUTATTACHMENT)){
return CONST_CTRL_TYPE_INPUTATTACHMENT;
}else{
return '';
}
};
var loadGroupChildren = function($root, $controlsProperties, isPrepend)
{
_.each($controlsProperties, function(properties){
/*if(properties.id < 0){
return true;
}*/
if(properties.name && properties.name.indexOf('__Status') >= 0){
return true;
}
if(properties.name && properties.name.indexOf('__AutoID') >= 0){
return true;
}
var $this = $(this);
var newProperties = null;
var type = properties.type;
if(type != ''){
if ((type == CONST_CTRL_TYPE_GROUP) ||
(type == CONST_CTRL_TYPE_CTRLTABLE) ||
(type == CONST_CTRL_TYPE_CTRLSCHEDULE) ||
(type == CONST_CTRL_TYPE_CTRLPOD) ||
(type == CONST_CTRL_TYPE_CTRLINV) ||
(type == CONST_CTRL_TYPE_CTRLSCORETABLE) ||
(type == CONST_CTRL_TYPE_CTRLGRID) ||
(type == 'branch') ||
(type == 'inputPageBreak') ||
(type == 'inputLabel') ||
(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ||
(type == CONST_CTRL_TYPE_INPUTNUMBERING) ||
(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) ||
(type == CONST_CTRL_TYPE_INPUTACTION) ||
(type == CONST_CTRL_TYPE_INPUTPAYMENT) ||
(type == 'inputInstruction') ||
//(type == CONST_CTRL_TYPE_INPUTCALCULATE) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP) ||
(type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) ||
(type == 'inputFacingTable') ||
(type == 'inputLookupMulti') ||
(type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTAPPROVAL) ||
(type == 'inputSaveAndSend') ||
(type == 'ctrlDataSource') ||
(type == 'ctrlHeaderGrid') ||
(type == 'ctrlDataFilter') ||
(type == 'ctrlReportBreakPoint') ||
(type == 'ctrlBreakPointData') ||
(type == 'ctrlBreakPointDataElement') ||
(type == 'ctrlFooterGrid') ||
(type == 'ctrlEmailSchedule')){
newProperties = $.extend(true, {}, $.fn.odkControl.controlProperties[type]);
}else{
newProperties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[type]);
removeUnsupportProperty(newProperties, type);
}
removeUnuseVersion(newProperties);
//copyProperties(properties, newProperties);
_.each(newProperties, function(property, key)
{
//property.value = properties[key];
if(jQuery.isPlainObject(properties[key])){
property.value = jQuery.isArray(properties[key])?[]:{};
copyProperties(properties[key], property.value);
}else{
if(jQuery.isArray(properties[key])){
property.value = [];
copyProperties(properties[key], property.value);
}else{
if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
type == CONST_CTRL_TYPE_INPUTFAX ||
type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) && key == 'defaultValue'){
var value = properties[key];
if(value != undefined){
var contentStartPos = value.indexOf(CONST_DOUBLE_DOLLAR, 0);
if(contentStartPos >= 0){
property.value = value.substring(0, contentStartPos);
property.mailcontent = value.substring(contentStartPos + 2);
}else{
property.value = value;
}
}
if(isVersion(VERSION_EMAIL_REPORT_NEW_DEFAULT)){
property.selectedCtrl = properties[key+'_selectedCtrl'];
}
}else if(type == 'ctrlEmailSchedule' && key == 'reportEmail'){
var value = properties[key];
if(value != undefined){
var contentStartPos = value.indexOf(CONST_DOUBLE_DOLLAR, 0);
if(contentStartPos >= 0){
property.value = value.substring(0, contentStartPos);
property.mailcontent = value.substring(contentStartPos + 2);
}else{
property.value = value;
}
}
}else{
property.value = properties[key];
}
}
}
if(key == 'name' && property.valueinput != undefined){
var controlid = replaceNonAlphaNumericChar(properties.label.eng, true);
if(controlid != property.value){
property.valueinput = property.value;
}
}
});
var idInt = 0;
try{
idInt = parseInt(properties['id']);
}catch(e){
}
var classExt = type;
if(properties.parentCtrlType == CONST_CTRL_TYPE_CTRLINV && idInt <= parseInt(INV_ID_COL_ID)){
newProperties.name.valueinput = newProperties.name.value;
classExt += ' invSpecialCtrl ' + newProperties.name.value;
}else if(properties.parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE && idInt <= parseInt(SCHEDULE_WIDGET_START_TIME_ID)){
newProperties.name.valueinput = newProperties.name.value;
classExt += ' scheduleSpecialCtrl ' + newProperties.name.value;
}else if(idInt <= parseInt(POD_QTY_COL_ID)){
newProperties.name.valueinput = newProperties.name.value;
classExt += ' podSpecialCtrl ' + newProperties.name.value;
}else{
if(properties && properties.dontGenId != true){
newProperties.id.value = utils.seq.getUniqueId();
}
//newProperties.name.valueinput = ''; //CO-205 Copy Fields Bug - Build Forms
if (newProperties.id.ctrlType == 'inputPageBreak'){
newProperties.name.value = 'page_break' + newProperties.id.value;
}
}
var $dupControl = undefined;
if(isPrepend){
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.prependTo($root);
}else{
if($root.parents('.ctrlPOD').length > 0){
if(properties.name && properties.name.indexOf('__Deliver') >= 0){
classExt += ' __Deliver';
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.appendTo($root);
}else{
var insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Comment');
if(insertBeforeCtrl.length==0){
insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Deliver');
}
if(properties.name && properties.name.indexOf('__Comment') >= 0){
classExt += ' __Comment';
}
var replaceCtrl = undefined;
if(properties.replaceCtrlClass){
replaceCtrl = $root.find('.' + properties.replaceCtrlClass);
}
if(replaceCtrl && replaceCtrl.length > 0){
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties);
if(isFirstCtrlInGroup(replaceCtrl)){
$root.find('.' + CONST_CLASS_FIRST_CHILD).removeClass(CONST_CLASS_FIRST_CHILD);
$dupControl.addClass(CONST_CLASS_FIRST_CHILD);
}
if(isLastCtrlInGroup(replaceCtrl)){
$root.find('.' + CONST_CLASS_LAST_CHILD).removeClass(CONST_CLASS_LAST_CHILD);
$dupControl.addClass(CONST_CLASS_LAST_CHILD);
}
replaceCtrl.replaceWith($dupControl);
}else if(insertBeforeCtrl.length > 0){
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.insertBefore(insertBeforeCtrl);
}else{
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.appendTo($root);
}
}
}else if($root.parents('.ctrlINV').length > 0){
if(properties.name && properties.name.indexOf('__Image') >= 0){
classExt += ' __Image';
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.appendTo($root);
}else{
var insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Comment');
if(insertBeforeCtrl.length==0){
insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Image');
}
if(properties.name && properties.name.indexOf('__Comment') >= 0){
classExt += ' __Comment';
}
var replaceCtrl = undefined;
if(properties.replaceCtrlClass){
replaceCtrl = $root.find('.' + properties.replaceCtrlClass);
}
if(replaceCtrl && replaceCtrl.length > 0){
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties);
if(isLastCtrlInGroup(replaceCtrl)){
$root.find('.' + CONST_CLASS_LAST_CHILD).removeClass(CONST_CLASS_LAST_CHILD);
$dupControl.addClass(CONST_CLASS_LAST_CHILD);
}
replaceCtrl.replaceWith($dupControl);
}else if(insertBeforeCtrl.length > 0){
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.insertBefore(insertBeforeCtrl);
}else{
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.appendTo($root);
}
}
$root.find('.control.second-element').removeClass('second-element');
$($root.find('.control')[1]).addClass('second-element');
}else{
$dupControl = $('#templates .control')
.clone()
.addClass(classExt)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties)
.appendTo($root);
}
}
$dupControl.find('.controlErrorMessage').addClass('ctrlId_' + newProperties.id.value);
if (type == CONST_CTRL_TYPE_GROUP){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
if (type == CONST_CTRL_TYPE_CTRLPOD){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
if (type == CONST_CTRL_TYPE_CTRLINV){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
if (type == CONST_CTRL_TYPE_CTRLGRID){
//var groupProperties = odkmaker.data.getCtrlProperties(properties.id);
//loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend);
loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend);
}
}
});
};
// for substitution inside question text
var control_init = function($)
{
// Private methods
var refreshFromProperties = function($this, type, config, properties)
{
var $info = $this.children('.controlInfo');
var $propertyList = $this.children('.propertyList:visible');
/*$('.ctrlDescription .propertiesCtrlName')
.empty();
$('.ctrlDescription .propertiesCtrlExplain')
.empty();*/
$('.propertiesPane:visible h3')
.empty()
.append(msg_properties);
var idInt = 0;
try{
idInt = parseInt(properties.id.value);
}catch(e){
}
if(type == 'ctrlReportBreakPoint'){
if(properties.name.value == 'Report_break_point'){
if(dataNS.currentDataSourceForm && dataNS.currentDataSourceForm.controls && dataNS.currentDataSourceForm.controls[properties.reportBreakPoint.value]){
var fieldProperty = dataNS.currentDataSourceForm.controls[properties.reportBreakPoint.value];
properties.name.value = fieldProperty.db_name || 'Report_break_point';
properties.name.valueinput = properties.name.value;
}
}
}else if (type == 'ctrlDataFilter'){
try {
var fieldId = properties.filterField.value.filterField;
if(!fieldId || fieldId == ''){
properties.name.value = 'Data_filter';
properties.name.valueinput = properties.name.value;
properties.label.value['eng'] = 'Data filter';
}else if(dataNS.currentDataSourceForm && dataNS.currentDataSourceForm.controls && dataNS.currentDataSourceForm.controls[fieldId]){
var fieldProperty = dataNS.currentDataSourceForm.controls[fieldId];
properties.name.value = fieldProperty.db_name || 'Data_filter';
properties.name.valueinput = properties.name.value;
var newLabel = 'Data filter (' + fieldProperty.db_name;
switch(properties.filterField.value.filterCondition){
case CONST_VALUE_EQUAL:
newLabel += ' = ';
break;
case CONST_VALUE_NOT_EQUAL:
newLabel += ' != ';
break;
case CONST_VALUE_LESS_THAN:
newLabel += ' < ';
break;
case CONST_VALUE_LESS_THAN_OR_EQUAL:
newLabel += ' <= ';
break;
case CONST_VALUE_GREATER_THAN:
newLabel += ' > ';
break;
case CONST_VALUE_GREATER_THAN_OR_EQUAL:
newLabel += ' >= ';
break;
default :
newLabel += ' = ';
}
if(properties.filterField.value.filterAnswer && properties.filterField.value.filterAnswer != ''){
var cmpFieldProperty = dataNS.currentDataSourceForm.controls[properties.filterField.value.filterAnswer];
newLabel += cmpFieldProperty.db_name + ') ' + properties.filterJoin.value;
}else{
newLabel += properties.filterField.value.filterAnswerConstant + ') ' + properties.filterJoin.value;
}
properties.label.value['eng'] = newLabel;
}
}catch(e){}
}
$info.children('.controlName').text(properties.name.value);
// show skip, relevance mark
if(isVersion1_1()){
if((isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowSkipCondition && !properties.isShowSkipCondition.value) || properties.skipconds == undefined || properties.skipconds.value == undefined || properties.skipconds.value.length == 0){
$info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if(isVersion(VERSION_NEW_TOOL_LAYOUT) && $('li.isShowSkipCondition.hideSession').length > 0){
$info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$info.children('.controlSkipConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllSkipCondition').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(isVersion(VERSION_SKIP_IF)){
if(properties.isShowSkipIf && properties.isShowSkipIf.value){
$info.children('.controlSkipIfConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$info.children('.controlSkipIfConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if((isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowRelevanceCondition && !properties.isShowRelevanceCondition.value) || properties.relevanceconds == undefined || properties.relevanceconds.value == undefined || properties.relevanceconds.value.length == 0){
$info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if(isVersion(VERSION_NEW_TOOL_LAYOUT) && $('li.isShowRelevanceCondition.hideSession').length > 0){
$info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$info.children('.controlRelevanceConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .removeAllRelevanceCondition').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(isVersion(VERSION_IF_THEN_ELSE)){
if(properties.isShowITE && properties.isShowITE.value){
$info.children('.controlIfThenElse').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$info.children('.controlIfThenElse').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(isVersion(VERSION_READ_ONLY_IF)){
if(properties.isShowReadOnlyIf && properties.isShowReadOnlyIf.value){
$info.children('.controlReadOnlyIf').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$info.children('.controlReadOnlyIf').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
if (type == CONST_CTRL_TYPE_GROUP || type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE || type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV || type == CONST_CTRL_TYPE_CTRLSCORETABLE || type == CONST_CTRL_TYPE_CTRLGRID || type == CONST_CTRL_TYPE_CTRLINV)
{
var controlLabel = undefined;
if (type == CONST_CTRL_TYPE_GROUP){
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_rep_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_rep_label;
}
}else if(type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_table_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_table_label;
}
}else if(type == CONST_CTRL_TYPE_CTRLPOD){
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_pod_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_pod_label;
}
}else if(type == CONST_CTRL_TYPE_CTRLINV){
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_inv_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_inv_label;
}
}else if(type == CONST_CTRL_TYPE_CTRLGRID){
if(properties.isButtonGrid && properties.isButtonGrid.value){
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_button_grid_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_button_grid_label;
}
}else{
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_grid_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_grid_label;
}
}
}else{
controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_ques_label);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_ques_label;
}
}
$info.children('.controlLabel').text(controlLabel);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_rep_label &&
controlLabel !== lbl_no_table_label &&
controlLabel !== lbl_no_ques_label &&
controlLabel !== lbl_no_grid_label &&
controlLabel !== lbl_no_button_grid_label &&
controlLabel !== lbl_no_pod_label){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}else if (type == 'inputPageBreak'){
$info.children('.controlName').text('');
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_page_name);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_page_name;
}
$info.children('.controlLabel').text(controlLabel);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_page_name){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'page_break' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
}else if (type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT || type == 'inputInstruction' || type == 'inputSaveAndSend' )
{
// Fix bug 0019792: Wrong text of Action widget
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
// // Fix bug 0019792: Wrong text of Action widget
// if (type === CONST_CTRL_TYPE_INPUTACTION || type === 'inputSaveAndSend' || type === CONST_CTRL_TYPE_INPUTSCORESUMMARY) {
// controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
// if(trim(controlLabel) == ''){
// controlLabel = lbl_no_caption_text;
// }
// }
$info.children('.controlLabel').text(controlLabel);
if(properties.hint != undefined && properties.hint.value != undefined){
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
} else {
if(properties.hint == undefined){
properties.hint = {};
}
if(properties.hint.value == undefined){
properties.hint.value = {};
}
}
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}else if (type == CONST_CTRL_TYPE_INPUTNUMBERING)
{
// Fix bug 0019594: Wrong text of Auto-number widget
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
if(properties.hint != undefined && properties.hint.value != undefined){
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
} else {
if(properties.hint == undefined){
properties.hint = {};
}
if(properties.hint.value == undefined){
properties.hint.value = {};
}
}
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var $control = $('.propertyList:visible #property_name');
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewTextControl = $('#templates .viewTextControl').clone();
var $textCtrl = $viewTextControl.find('.controlText');
$textCtrl.val(properties['defaultValue'].value);
$propertyList1.append($viewTextControl);
}else if (type == CONST_CTRL_TYPE_INPUTNEWPAYMENT)
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
if(properties.hint != undefined && properties.hint.value != undefined){
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
} else {
if(properties.hint == undefined){
properties.hint = {};
}
if(properties.hint.value == undefined){
properties.hint.value = {};
}
}
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var $control = $('.propertyList:visible #property_name');
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewTextControl = $('#templates .viewTextControl').clone();
$propertyList1.append($viewTextControl);
}else if (type == CONST_CTRL_TYPE_INPUTAPPROVAL)
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
if(properties.hint != undefined && properties.hint.value != undefined){
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
} else {
if(properties.hint == undefined){
properties.hint = {};
}
if(properties.hint.value == undefined){
properties.hint.value = {};
}
}
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}else if (type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
type == CONST_CTRL_TYPE_INPUTFAX ||
type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}else if (type == CONST_CTRL_TYPE_INPUTCALCULATE)
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_label;
}
$info.children('.controlLabel').text(controlLabel);
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var $control = $('.propertyList:visible #property_name');
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}else if (type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == 'inputFacingTable' || type == 'inputLookupMulti')
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_label;
}
$info.children('.controlLabel').text(controlLabel);
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
var $control = $('.propertyList:visible #property_name');
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
if(properties.datasource && properties.datasource.value != ''){
try{
var tableName = lookupdatainf.lookupTables[properties.datasource.value];
var lookupTablesHeaders = lookupdatainf.LookupTablesHeaders[properties.datasource.value];
var colName = '';
var lookupfield = '';
if(properties.lookupfield && properties.lookupfield.value != ''){
lookupfield = properties.lookupfield.value;
if(lookupTablesHeaders && lookupTablesHeaders[lookupfield] && lookupTablesHeaders[lookupfield] != ''){
colName = '(' + lookupTablesHeaders[lookupfield] + ')';
}
}
$propertyList1.find('.datasourceSession').empty().append(tableName + colName);
}catch(ex){
}
}
// CO-1739 - Set dispMobile = true for retrieve
if(properties.isRetrieve && properties.isRetrieve.value) {
properties.dispMobile.value = true;
}
if(properties.keyboardType && properties.keyboardType.value == 'Text'){
properties.lockNumericKeyboard.value = false;
}
}
else if (type == 'ctrlBreakPointDataElement')
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
}
else
{
var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text);
if(trim(controlLabel) == ''){
controlLabel = lbl_no_caption_text;
}
$info.children('.controlLabel').text(controlLabel);
$info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]);
if(properties.name.valueinput == '')
{
if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){
if(controlLabel !== lbl_no_caption_text){
var controlid = replaceNonAlphaNumericChar(controlLabel);
if(isKeyWord(controlid.toLowerCase())){
controlid += 'x';
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}else{
controlid = 'untitled' + properties.id.value;
$info.children('.controlName').text(controlid);
$('.propertyList:visible #property_name').val(controlid);
properties.name.value = controlid;
}
if(properties.name.isOldCtrl){
isSpecialDataChanged = true;
}
}
}else{
var $control = $('.propertyList:visible #property_name');
var controlid;
if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){
controlid = properties.name.value;
}else{
controlid = replaceNonAlphaNumericChar(properties.name.value, true);
}
if(controlid.length > 30){
controlid = controlid.substring(0, 30);
}
if($control.length > 0 && $control.val() !== controlid){
var bkSelectionStart = getSelectionStart($control[0]);
var orlen = $control.val().length;
$control.val(controlid);
bkSelectionStart = bkSelectionStart - (orlen - controlid.length);
setCaretPos($control[0], bkSelectionStart);
}
properties.name.value = controlid;
}
}
if($info.children('.controlName').text().length > 80){
$info.children('.controlName').text($info.children('.controlName').text().substring(0, 80) + '...');
}else if(trim($info.children('.controlName').text()).length == 0){
if (type !== 'inputPageBreak'){
$info.children('.controlName').text('[no name]');
}else{
$info.children('.controlName').text('');
}
}
var $propertyList = $info.children('.controlProperties');
$propertyList.empty();
var ctrlKind = '';
if(type == CONST_CTRL_TYPE_INPUTDATE){
if(properties.kind.value == undefined){
ctrlKind = CONST_VALUE_DATE;
}else{
ctrlKind = properties.kind.value;
}
}
var isInPOD = false;
if(type != CONST_CTRL_TYPE_CTRLPOD){
if(properties && properties.id && properties.id.isInPOD){
isInPOD = true;
properties.id.isInPOD = undefined;
}else if($info.parents('.ctrlPOD').length > 0){
isInPOD = true;
}
}
var isInINV = false;
if(type != CONST_CTRL_TYPE_CTRLINV){
if(properties && properties.id && properties.id.isInINV){
isInINV = true;
properties.id.isInINV = undefined;
}else if($info.parents('.ctrlINV').length > 0){
isInINV = true;
}
}
_.each(properties, function(property, key)
{
if(isInPOD){
return false;
}
if(isInINV){
return false;
}
if(property && property.removeSettingTextBF){
return;
}
if(key == 'defaultImage'){
if((property.value || '') !== ''){
$propertyList.append(
$('Image Uploaded ')
);
}
return;
}
// START CO-2699
if(property.type != undefined && property.type == 'logoType'){
if(property.value == undefined && property.valueIfUndefined){
property.value = property.valueIfUndefined;
} else {
var logoTypeVal = 'WEBSITE';
if(property.value == 'TABLET') {
logoTypeVal = 'TABLET';
}
$('.propertiesPane input.labelLogo[value="' + logoTypeVal + '"]').prop('checked', true);
}
}
// END CO-2699
if(property.hideInControlProperties){
return;
}
if(property.type == undefined || property.type !== 'bool'){
if(property.value == undefined && property.valueIfUndefined){
property.value = property.valueIfUndefined;
}
return;
}
if(key == 'showAsDropdown'){
if($info.parents('.ctrlScoreTable').length > 0){
return;
}
}
switch(key){
case 'isButtonGrid':
case 'isSecureEmail':
case 'isRetrieve':
case 'isSecureForward':
case 'readOnlyWebAppGrp':
case 'requiredWebAppGrp':
case 'hideWebAppGrp':
case 'isOpenFileWidget':
case 'isAttachFormWidget':
return;
case 'showPrintCtrlCaptionColon':
var actCtrlVal = $('#property_imgAction').val();
if(actCtrlVal && actCtrlVal == CONST_ACTION_ZEBRA_PRINT){
}else{
return;
}
break;
case 'isDeleteWhenVarChange':
var actCtrlVal = $('#property_isVariableRepeats').val();
if($('#property_isVariableRepeats')[0] == undefined || $('#property_isVariableRepeats')[0].checked != true){
return;
}else{
}
break;
case 'isShowComma':
if(type == CONST_CTRL_TYPE_INPUTCALCULATE && !(properties.kind == undefined || properties.kind.value == undefined || properties.kind.value == 'Number')){
return;
}
break;
}
if(property.hideVersion != undefined){
if(isVersion(parseFloat(property.hideVersion))){
if(isVersion(VERSION_READ_ONLY_REQUIRED_HIDE_OPTION)){
//for ios
return;
}
if(key == 'isUseDispOnly' && isVersion(VERSION_RESTRICT_OPTION)){
//for ios
}else{
property.value = false;
}
return;
}
}
var propertyValue = property.value;
if(propertyValue == undefined && property.valueIfUndefined){
if(property.valueIfUndefined == 'SystemParam'){
if(property.systemParamIfUndefined){
property.value = authNS.currentUser[property.systemParamIfUndefined];
}
}else{
propertyValue = property.valueIfUndefined;
property.value = propertyValue;
}
}
if(propertyValue != undefined && property.isNagativeValue){
propertyValue = !property.value;
}
if ((property.summary === false) || (propertyValue !== true)){
if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT) && propertyValue == undefined){
}else if(type == 'inputLabel' && (key == 'dispReport' || key == 'dispMobile') && propertyValue == false){
}else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY && (key == 'dispReport' || key == 'dispMobile') && propertyValue == false){
}else if((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) && propertyValue == undefined && (key == 'onClear' || key == 'kbIconPortrait' || key == 'kbIconLanscape' || key == 'openKBPortrait' || key == 'openKBLanscape')){
property.value = true;
}else if((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) && property.type == 'bool' && propertyValue == undefined){
}else if(type == 'inputFacingTable' && property.type == 'bool' && propertyValue == undefined){
}else if(type == 'inputLookupMulti' && property.type == 'bool' && propertyValue == undefined){
}else if((type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE) && property.type == 'bool' && propertyValue == undefined){
}else if(type == CONST_CTRL_TYPE_CTRLPOD && property.type == 'bool' && propertyValue == undefined){
}else if(type == CONST_CTRL_TYPE_CTRLINV && property.type == 'bool' && propertyValue == undefined){
}else if(type == 'inputPageBreak' && property.type == 'bool' && propertyValue == undefined){
}else if(type == CONST_CTRL_TYPE_INPUTSELECTONE && key == 'showAsDropdown' && propertyValue == undefined){
}else if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
type == CONST_CTRL_TYPE_INPUTFAX ||
type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) && (key == 'hideInMobile' || key == 'hideInWeb') && propertyValue == undefined){
}else if(key == 'showGPSInfo' && propertyValue == undefined){
}else if(key == 'turnOffEmail' && propertyValue == undefined){
}else if(key == 'disTrendsBtn' && propertyValue == undefined){
/*}else if(key == 'isOneTimeSignatureCapture'){
if(propertyValue == undefined){
property.value = false;
}*/
}else{
return;
}
}
if(type == CONST_CTRL_TYPE_INPUTDATE && property.type == 'bool' && ctrlKind == CONST_VALUE_DATE && key == 'militaryTime'){
return;
}
if(property.version == 'disable'){
return;
}
if((type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ){
if(!isVersion1_3()){
return;
}
}
if(property.ctrlActive){
if(property.ctrlActive.indexOf(type) < 0){
return;
}
}
if(property.version){
if(!isVersion(property.version)){
return;
}
}
if(!isEnableWhenUserProperty(property.enableWhenUserPropertyValue)){
return;
}
if(property.value == undefined){
switch(key){
case "militaryTime":
property.value = true;
break;
case "autoReturn":
property.value = true;
break;
case "displayPageBreakWA":
property.value = true;
break;
case "autoExpandPageWA":
property.value = false;
break;
case "showAsHM":
property.value = false;
break;
case "jumpOverChkLst":
property.value = true;
break;
case "isShowDuplicateValue":
property.value = false;
break;
case "dispChkLstCol":
property.value = true;
break;
case "dispMobile":
if(type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
property.value = true;
return;
}
property.value = true;
break;
case "dispNFCBtn":
property.value = false;
return;
case "dispKBPortrait":
property.value = true;
break;
case "dispKBLandscape":
property.value = true;
break;
case "isWrapText":
property.value = false;
return;
case "showAsDropdown":
property.value = false;
return;
case "dispReport":
if(type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
property.value = true;
return;
}
property.value = true;
break;
case "isSortLookupList":
property.value = true;
break;
case "equallySpaceColumns":
property.value = true;
break;
case "isAcceptNull":
property.value = true;
break;
case "allowImgSel":
property.value = false;
return;
case "appendComment":
property.value = false;
return;
case "disTrendsBtn":
property.value = true;
break;
case "showGPSInfo":
property.value = true;
break;
case "isAllowEdit":
property.value = true;
break;
case "showDecimalValue":
property.value = true;
break;
default:
property.value = false;
return;
};
}
if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(properties.usechecklist && properties.usechecklist.value !== true){
switch(key){
case "jumpOverChkLst":
return;
break;
case "isShowDuplicateValue":
return;
break;
case "dispChkLstCol":
return;
break;
case "hideRows":
return;
break;
}
}else if(!isFormLoadding && properties.usechecklist && properties.usechecklist.value === true && !$this.hasClass(CONST_DUPLICATING)){
if(!$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
properties.usechecklist.value = false;
return;
}
}
}
if (type == 'inputPageBreak' && properties.displayPageBreakWA !== undefined && properties.displayPageBreakWA.value !== true){
switch(key){
case "autoExpandPageWA":
return;
break;
}
}
if(key == 'dispChkLstCol'){
// don't show this attr
return;
}
var lookupConditionFields;
if(properties.isRetrieve && properties.isRetrieve.value){
lookupConditionFields = properties.lookupConditionFields4R;
}else{
lookupConditionFields = properties.lookupConditionFields;
}
if((key == 'isAcceptNull' || key == 'isEvaluateERT') && (lookupConditionFields == undefined || lookupConditionFields.value == undefined || lookupConditionFields.value[0] == undefined)){
// don't show this attr
return;
}
if(key == 'isShowCmpType' && (lookupConditionFields == undefined || lookupConditionFields.value == undefined || lookupConditionFields.value[0] == undefined)){
// don't show this attr
return;
}
if(key == 'isOneTimeSignatureCapture' && property.value == true){
return;
}
if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) && (key == 'dispReport' || key == 'dispMobile') && property.value == true){
return;
}
if((key == 'isAllRepRequired' || key == 'isRepCountDisplay') && (properties.isVariableRepeats == undefined || !properties.isVariableRepeats.value)){
// don't show this attr
return;
}
if(properties.isVariableNumberRow != undefined && properties.isVariableNumberRow.value){
if(key == 'usechecklist' || key == 'hideRows' || key == 'hideFlag' || key == 'jumpOverChkLst' || key == 'isShowDuplicateValue'){
// don't show this attr
return;
}
}else{
if(key == 'isAllRowRequired' || key == 'isRowCountDisplay'){
// don't show this attr
return;
}
}
/*
hqkhanh delete 12/02/2015
Auto-Stamp currently has a sub option: Allow edit option.
a. Default to always be shown (do not hide this when auto-stamp is checked)
b. Default to checked
if(isVersion(VERSION_ALLOW_EDIT_OPT)){
if(!properties.autoStamp || !properties.autoStamp.value){
if(key == 'isAllowEdit'){
// don't show this attr
return;
}
}
}*/
/*if(isVersion(VERSION_ALLOW_EDIT_OPT) && type == CONST_CTRL_TYPE_INPUTLOCATION){
if(!properties.autoStamp || !properties.autoStamp.value){
if(key == 'isAllowEdit'){
// don't show this attr
return;
}
}
}*/
// Special treating with []Equally space columns and []Fit to screen width
// based on []Column weight
if (key == 'equallySpaceColumns' || key == 'isUtilizingFullScr') {
if (properties.isColumnWeightCustom != undefined && properties.isColumnWeightCustom.value == true) {
// Don't show []Equally space columns and []Fit to screen width when [x]Column weight
return;
}
}
switch(key){
case 'isShowSkipCondition':
case 'isShowRelevanceCondition':
case 'isShowSkipIf':
case 'isShowITE':
case 'isShowReadOnlyIf':
case 'ofDispatchRequired':
return;
}
// $propertyList.append(
// $('' + property.name + ' ')
// );
var appendPropertyName = property.name;
// PCA-270: Remove the replace space function
// // Special treating with replaceSpaceWithHtmlTagNBSP
// if (key == 'replaceSpaceWithHtmlTagNBSP') {
// appendPropertyName = HtmlEncode4Website(property.name);
// }
// bool property append here
var isHidden = isHiddenProperty(properties, property, key);
if(key == 'isCaptionOnTop'){
isHidden = true;
}
if(!isHidden){
if(property['parent_group'] && properties[property['parent_group']] && properties[property['parent_group']].name){
if(!appendPropertyName.startsWith(properties[property['parent_group']].name)){
appendPropertyName = properties[property['parent_group']].name + ' ' + appendPropertyName;
}
}
$propertyList.append(
$('' + appendPropertyName + ' ').addClass("pro_" + key)
);
}
if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)){
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty().append('
');
}
});
if((type == CONST_CTRL_TYPE_INPUTSELECTONE) || (type == CONST_CTRL_TYPE_INPUTSCOREONE) || (type == CONST_CTRL_TYPE_INPUTSELECTMANY)){
$propertyList.append(
$(' ')
);
}
if ((type == CONST_CTRL_TYPE_INPUTSELECTONE) || (type == CONST_CTRL_TYPE_INPUTSCOREONE) || (type == CONST_CTRL_TYPE_INPUTSELECTMANY))
{
var $propertyList1;
if($info.parents('.ctrlScoreTable').length > 0){
$propertyList1 = $info.parents('.ctrlScoreTable').find('.workspaceInner .controlProperties1');
}else if($info.parents('.ctrlGrid').length > 0){
//$propertyList1 = $info.parents('.ctrlGrid').find('.workspaceInner .controlProperties1');
$propertyList1 = $info.children('.controlProperties1');
}else{
$propertyList1 = $info.children('.controlProperties1');
}
$propertyList1.empty();
_.each(properties, function(property)
{
if (property.type !== 'optionsEditor' && property.type !== 'optionsEditorScoreOne')
return;
var $selectionCtrl = $('#templates .viewoptions .selection').clone();
var $translationsList = $selectionCtrl.find('.selection-translations');
var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue');
var $iteThenControl = $('.propertiesPane:visible .thenSession .forSelectField');
var $iteElseControl = $('.propertiesPane:visible .elseSession .forSelectField');
var $forSelecteControl = $('.propertiesPane:visible .hideIfCmpVal .forSelectField, .propertiesPane:visible .skipIfConditions .forSelectField');
var i = 0;
var defaultValueControlVals = [];
if($defaultValueControl.length == 1){
defaultValueControlVals[i] = $defaultValueControl.val();
}else{
_.each($defaultValueControl, function(item)
{
defaultValueControlVals[i] = $(item).val();
i ++;
});
}
var iteThenControlVals = $iteThenControl.val();
var iteElseControlVals = $iteElseControl.val();
i = 0;
var forSelecteControlVals = [];
if($forSelecteControl.length == 1){
forSelecteControlVals[i] = $forSelecteControl.val();
}else{
_.each($forSelecteControl, function(item)
{
forSelecteControlVals[i] = $(item).val();
i ++;
});
}
$defaultValueControl.empty();
$defaultValueControl.append(' ');
$iteThenControl.empty();
$iteThenControl.append(' ');
$iteElseControl.empty();
$iteElseControl.append(' ');
$forSelecteControl.empty();
$forSelecteControl.append(' ');
var theFirst = true;
var defaultValueDeleted = true;
var defaultValueTmp = properties.defaultValue.value;
var isSliderOption = false;
if(isVersion(VERSION_CHOOSE_ONE_SLIDER)){
if(properties.optionKind && properties.optionKind.value == CONST_CHOOSE_ONE_SWITCH){
isSliderOption = true;
}
}
if(isSliderOption){
var valTrue = CONST_SWITCH_1;
var valFalse = CONST_SWITCH_0;
switch(properties.switchOption.value){
case CONST_SWITCH_ON_OFF:
valTrue = CONST_SWITCH_ON;
valFalse = CONST_SWITCH_OFF;
break;
case CONST_SWITCH_YES_NO:
valTrue = CONST_SWITCH_YES;
valFalse = CONST_SWITCH_NO;
break;
case CONST_SWITCH_1_0:
valTrue = CONST_SWITCH_1;
valFalse = CONST_SWITCH_0;
break;
case CONST_SWITCH_CUSTOM:
valTrue = properties.switchCustomOn.value;
valFalse = properties.switchCustomOff.value;
$('ul.propertyList li.options div.optionsEditor').trigger(CONST_BIND_SWITCH_OPTION_CHANGED);
break;
}
if(valTrue == defaultValueTmp || valFalse == defaultValueTmp){
defaultValueDeleted = false;
};
var item = $(' ')
.attr(CONST_VALUE, valTrue)
.text(valTrue);
$defaultValueControl.append(item);
$iteThenControl.append(item.clone());
$iteElseControl.append(item.clone());
$forSelecteControl.append(item.clone());
item = $(' ')
.attr(CONST_VALUE, valFalse)
.text(valFalse);
$defaultValueControl.append(item);
$iteThenControl.append(item.clone());
$iteElseControl.append(item.clone());
$forSelecteControl.append(item.clone());
}else{
var i=0;
_.each(property.value, function(element)
{
if (element.isShowUnderlying !== undefined){
return true;
}
var val = element.text;
var score = element.score;
//_.each(element, function(val, valtype)
//{
if(val != undefined){
var $option;
if (type == CONST_CTRL_TYPE_INPUTSELECTONE){
$option = $('#templates .viewoptions .chooseonce-translation').clone();
}else if (type == CONST_CTRL_TYPE_INPUTSCOREONE){
$option = $('#templates .viewoptions .choosescoreonce-translation').clone();
}else{
$option = $('#templates .viewoptions .choosemultiple-translation').clone();
}
i++;
$option.find('.controlOptionBtnText')
.addClass('Answer_' + i)
.on('option_propertiesUpdated', function(event)
{
/*var id = $(this).attr('class');
id = id.replace('controlOptionBtnText ', '');
$(this).text( $('#' + id).val() || lbl_undefined); */
$('.workspaceScrollArea:visible .selected .controlOptionBtnScoreText').trigger('option_category_propertiesUpdated');
});
$option.find('.controlOptionBtnScoreText')
.addClass('Answer_' + i)
.on('option_category_propertiesUpdated', function(event)
{
/*var id = $(this).attr('class');
id = id.replace('controlOptionBtnScoreText ', '');
$(this).text( ' (' + ($('.ScoreOptionsEditorValueField .' + id).val() || lbl_undefined) + ')');*/
});
/*$option.find('.controlOptionBtnScoreText')
.addClass('Answer_' + i)
.on('option_propertiesUpdated', function(event)
{
var id = $(this).attr('class');
id = id.replace('controlOptionBtnScoreText ', '');
$(this).text( ' Score : ' + ($('#Score_' + id).val() || ''));
});*/
$option.find('.controlOptionBtn').addClass('id__' + replaceNonAlphaNumericChar(element.val));
_.each(odkmaker.i18n.activeLanguages(), function(language)
{
var languageKey = language;
/*if((element.val == undefined && backValue == '') || backValue == element.val){
$option.find('.controlOptionBtn').prop('checked', CONST_VALUE_TRUE_STR);
}*/
$option.find('.controlOptionBtnText').text( val[languageKey] || lbl_undefined);
$option.find('.controlOptionBtnScoreText').text(' (' + (element.val || '') + ')');
//$option.find('.controlOptionBtnScoreText').text( ' Score : ' + (score || ''));
if(theFirst){
//$translationsList.append(' ');
theFirst = false;
}
$translationsList.append($option);
});
}
//});
if(element.val == defaultValueTmp){
defaultValueDeleted = false;
};
var item = $(' ')
.attr(CONST_VALUE, element.val || '')
.text(element.text['eng'] || lbl_undefined);
$defaultValueControl.append(item);
$iteThenControl.append(item.clone());
$iteElseControl.append(item.clone());
$forSelecteControl.append(item.clone());
});
}
if($defaultValueControl.length == 1){
$defaultValueControl.val(defaultValueControlVals[0]);
}else{
i = 0;
_.each($defaultValueControl, function(item)
{
$(item).val(defaultValueControlVals[i]);
i ++;
});
}
$iteThenControl.val(iteThenControlVals);
$iteElseControl.val(iteElseControlVals);
if($forSelecteControl.length == 1){
$forSelecteControl.val(forSelecteControlVals[0]);
}else{
i = 0;
_.each($forSelecteControl, function(item)
{
$(item).val(forSelecteControlVals[i]);
i ++;
});
}
if(defaultValueDeleted){
properties.defaultValue.value = '';
properties.defaultValue.valueinput = '';
}
$propertyList1.append($selectionCtrl);
});
if($info.parents('.ctrlScoreTable').length > 0){
//set default value
var allControls = $info.parents('.ctrlScoreTable').find('.workspaceInner .control');
_.each(allControls, function(controlItem){
var ctrlProperties = $(controlItem).data('odkControl-properties');
if(ctrlProperties.defaultValue.value != ''){
$(controlItem).find('.id__' + replaceNonAlphaNumericChar(ctrlProperties.defaultValue.value)).prop('checked', CONST_VALUE_TRUE_STR);
}
});
}else{
var ctrlProperties = $this.data('odkControl-properties');
if(ctrlProperties.defaultValue.value != ''){
$info.find('.id__' + replaceNonAlphaNumericChar(ctrlProperties.defaultValue.value)).prop('checked', CONST_VALUE_TRUE_STR);
}
}
}
if (type == CONST_CTRL_TYPE_INPUTSCOREONE)
{
if($info.parents('.ctrlScoreTable').length > 0){
//set default value
var allControls = $info.parents('.ctrlScoreTable').find('.workspaceInner .control');
_.each(allControls, function(controlItem){
var ctrlProperties = $(controlItem).data('odkControl-properties');
if(ctrlProperties.scoreCategory.value != ''){
$(controlItem).find('.selection h4').text(ctrlProperties.scoreCategory.value);
}
});
}else{
var $propertyList1 = $info.children('.controlProperties1');
_.each(properties, function(property)
{
if (property.type !== 'textAutoComplete')
return;
var scoreCategory = property.value;
$propertyList1.find('.selection h4').text(scoreCategory);
});
}
}
if (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY)
{
}
if ((type == CONST_CTRL_TYPE_INPUT_TEXT) || (type == CONST_CTRL_TYPE_INPUT_NUMERIC) || (type == CONST_CTRL_TYPE_INPUTTRENDS))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewTextControl = $('#templates .viewTextControl').clone();
var $textCtrl = $viewTextControl.find('.controlText');
if(type == CONST_CTRL_TYPE_INPUT_NUMERIC && properties.kind.value == 'Percent'){
var value = toPercent(parseFloat(properties['defaultValue'].value));/*parseFloat(properties['defaultValue'].value) * 100;
if(isNaN(value)){
value = '';
}else{
value += '%';
}*/
$textCtrl.val(value);
}else{
$textCtrl.val(properties['defaultValue'].value);
}
$propertyList1.append($viewTextControl);
// START CO-2680: Enable/Disable User Custom Format checkbox
if(properties.isCustomFormat && !properties.isCustomFormat.value) {
$('.propertyList .isShowCustomFormat').addClass(CONST_CSS_CLASS_HIDE_SESSION);
} else {
$('.propertyList .isShowCustomFormat').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
if(isVersion(VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION_DISABLE)){
$('.propertyList #property_isCustomFormat').prop('disabled', true);
$('.propertyList .txtCustomFormatVal .editorTextfield').prop('disabled', true);
$('.propertyList #property_isShowCustomFormat').prop('disabled', true);
}
// END CO-2680: Enable/Disable User Custom Format checkbox
}
if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){
if(properties.kind.value == 'Integer'){
properties.defaultValue.kind = 'Integer';
properties.range.kind = 'Integer';
properties.skipconds.kind = 'Integer';
}else if(properties.kind.value == 'Decimal'){
properties.defaultValue.kind = 'Decimal';
properties.range.kind = 'Decimal';
properties.skipconds.kind = 'Decimal';
}else if (properties.kind.value == 'Percent'){
properties.defaultValue.kind = 'Percent';
properties.range.kind = 'Percent';
properties.skipconds.kind = 'Percent';
}
}
if(type == CONST_CTRL_TYPE_INPUTTRENDS){
if(properties.kind.value == 'Integer'){
properties.range.kind = 'Integer';
properties.skipconds.kind = 'Integer';
}else if(properties.kind.value == 'Decimal'){
properties.range.kind = 'Decimal';
properties.skipconds.kind = 'Decimal';
}
}
if ((type == 'inputSaveAndSend'))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(CONST_ACTION_SAVE_AND_SEND);
$propertyList1.append($viewButtonControl);
}
if ((type == CONST_CTRL_TYPE_INPUTLOCATION))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_location);
$propertyList1.append($viewButtonControl);
}
if ((type == mdi_kind_inputImage))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_image);
$propertyList1.append($viewButtonControl);
}
if ((type == mdi_kind_inputAudio))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_audio);
$propertyList1.append($viewButtonControl);
}
if ((type == mdi_kind_inputVideo))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_video);
$propertyList1.append($viewButtonControl);
}
if ((type == CONST_CTRL_TYPE_INPUTATTACHMENT))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_select_attachment);
$propertyList1.append($viewButtonControl);
}
if ((type == CONST_CTRL_TYPE_INPUTMEDIA))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
if(properties.kind.value == mdi_kind_image){
$buttonCtrl.text(lbl_capture_image);
}else if(properties.kind.value == mdi_kind_audio){
$buttonCtrl.text(lbl_capture_audio);
}else if(properties.kind.value == mdi_kind_video){
$buttonCtrl.text(lbl_capture_video);
/*}else if(properties.kind.value == 'Barcode'){
$buttonCtrl.text(lbl_capture_barcode);*/
}else{
$buttonCtrl.text(lbl_capture_media);
}
$propertyList1.append($viewButtonControl);
}
if ((type == mdi_kind_inputSketch))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_draw_sketch);
$propertyList1.append($viewButtonControl);
}
if ((type == mdi_kind_inputSignature))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_draw_sign);
$propertyList1.append($viewButtonControl);
}
if ((type == 'inputDraw'))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
if(properties.kind.value == mdi_kind_sketch){
$buttonCtrl.text(lbl_draw_sketch);
}else if(properties.kind.value == mdi_kind_signature){
$buttonCtrl.text(lbl_draw_sign);
}else{
$buttonCtrl.text(lbl_draw);
}
$propertyList1.append($viewButtonControl);
}
if ((type == CONST_CTRL_TYPE_INPUTBARCODE))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_barcode);
$propertyList1.append($viewButtonControl);
if(properties.kind.value == 'Number'){
properties.defaultValue.kind = 'Number';
properties.length.kind = 'Number';
properties.skipconds.kind = 'Number';
}else{
properties.defaultValue.kind = 'String';
properties.length.kind = 'String';
properties.skipconds.kind = 'String';
}
}
if ((type == CONST_CTRL_TYPE_INPUTNFC))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text(lbl_capture_nfc);
$propertyList1.append($viewButtonControl);
}
if ((type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD))
{
properties.defaultValue.kind = CONST_VALUE_NONE;
}
if ((type == CONST_CTRL_TYPE_INPUTCOUNTER))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewCounterControl = $('#templates .viewCounterControl').clone();
$propertyList1.append($viewCounterControl);
if(properties.counterFormat){
switch(properties.counterFormat.value){
case CONST_TYPE_STARS:
var starsCtrl = $propertyList1.find(CONST_CSS_ID_STARSCTRL);
if(starsCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){
$propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
starsCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
break;
case CONST_TYPE_SLIDER:
var sliderCtrl = $propertyList1.find(CONST_CSS_ID_SLIDERCTRL);
if(sliderCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){
$propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
sliderCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
break;
default:
var arrowsCtrl = $propertyList1.find(CONST_CSS_ID_COUNTERCTRL);
if(arrowsCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){
$propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
arrowsCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
}
}
}
/*
if ((type == 'inputRIF'))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewButtonControl = $('#templates .viewButtonControl').clone();
var $buttonCtrl = $viewButtonControl.find('.controlButton');
$buttonCtrl.text('Capture RIF');
$propertyList1.append($viewButtonControl);
}*/
if ((type == 'inputPageBreak')){
}
if ((type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTLOCATION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewImageControl = $('#templates .viewImageControl').clone();
var $imageCtrl = $viewImageControl.find('img');
var $btnCtrl = $viewImageControl.find('#divImgBtm_0');
if(type == CONST_CTRL_TYPE_INPUTACTION || (type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value)){
if(isVersion(VERSION_ACTION_TYPE)){
if((properties.kind != undefined && properties.kind.value == 'Image') || (properties.btnKind != undefined && properties.btnKind.value == 'Image')){
$btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else{
$btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text);
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
}else{
$btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text);
if($('#property_useImage') !== undefined && $('#property_useImage').length > 0 && $('#property_useImage')[0].checked === false){
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else if(($('#property_useImage') === undefined || $('#property_useImage').length == 0) && (properties.useImage !== undefined && properties.useImage.value == false)){
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else{
$btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
}
}else if(type == CONST_CTRL_TYPE_INPUTPAYMENT){
if(isVersion(VERSION_ACTION_TYPE)){
if(properties.kind != undefined && properties.kind.value == 'Image'){
$btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else{
$btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text);
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
}else{
$btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text);
if($('#property_useImage') !== undefined && $('#property_useImage').length > 0 && $('#property_useImage')[0].checked === false){
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else if(($('#property_useImage') === undefined || $('#property_useImage').length == 0) && (properties.useImage !== undefined && properties.useImage.value == false)){
$imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}else{
$btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
}
}else{
$btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
$imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);
}
if(properties.hintLink.value && properties.hintLink.value.indexOf('/img/filib/')>=0){
$imageCtrl.css('width', '64px');
}else{
$imageCtrl.css('width', CONST_VALUE_INITIAL);
}
$imageCtrl.attr('src', properties.hintLink.value || '/img/photo/noimages.gif');
var $imageCtrlAlign = $viewImageControl.find('.imgAlignment');
if(type != 'inputLabel') {
if(properties.imgJustify.value == 'Left'){
if(!$imageCtrlAlign.hasClass('imgAlignLeft')){
$imageCtrlAlign.removeClass('imgAlignRight');
$imageCtrlAlign.addClass('imgAlignLeft');
}
}else if(properties.imgJustify.value == 'Right'){
if(!$imageCtrlAlign.hasClass('imgAlignRight')){
$imageCtrlAlign.removeClass('imgAlignLeft');
$imageCtrlAlign.addClass('imgAlignRight');
}
}else {
$imageCtrlAlign.removeClass('imgAlignLeft');
$imageCtrlAlign.removeClass('imgAlignRight');
}
}
// START CO-2725
if(type == 'inputLabel' && properties.justificationImage) {
var $imageCtrlAlignImg = $viewImageControl.find('.imgAlignment');
if(properties.justificationImage.value == '0'){
if(!$imageCtrlAlignImg.hasClass('imgAlignLeft')){
$imageCtrlAlignImg.removeClass('imgAlignRight');
$imageCtrlAlignImg.addClass('imgAlignLeft');
}
}else if(properties.justificationImage.value == '2'){
if(!$imageCtrlAlignImg.hasClass('imgAlignRight')){
$imageCtrlAlignImg.removeClass('imgAlignLeft');
$imageCtrlAlignImg.addClass('imgAlignRight');
}
}else {
$imageCtrlAlignImg.removeClass('imgAlignLeft');
$imageCtrlAlignImg.removeClass('imgAlignRight');
}
}
// END CO-2725
$propertyList1.attr('style', '');
$propertyList1.append($viewImageControl);
}
if ((type == CONST_CTRL_TYPE_INPUTNUMBERING))
{
}
if ((type == CONST_CTRL_TYPE_INPUTNEWPAYMENT))
{
}
if ((type == 'inputInstruction'))
{
}
if ((type == 'inputSaveAndSend'))
{
}
if ((type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT))
{
}
if ((type == CONST_CTRL_TYPE_INPUTAPPROVAL))
{
}
if ((type == CONST_CTRL_TYPE_INPUTCALCULATE))
{
}
if ((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE))
{
if(properties.kind.value == 'Number'){
properties.defaultValue.kind = 'Number';
properties.skipconds.kind = 'Number';
}else {
properties.defaultValue.kind = 'String';
properties.skipconds.kind = 'String';
}
}
if ((type == 'inputFacingTable'))
{
}
if ((type == 'inputLookupMulti'))
{
}
if ((type == CONST_CTRL_TYPE_INPUTDATE))
{
var $propertyList1 = $info.children('.controlProperties1');
$propertyList1.empty();
var $viewDateControl = $('#templates .viewDateControl').clone();
if(properties.kind.value == CONST_VALUE_DATE){
properties.defaultValue.kind = CONST_VALUE_DATE_LOWERCASE;
properties.range.kind = CONST_VALUE_DATE_LOWERCASE;
properties.skipconds.kind = CONST_VALUE_DATE_LOWERCASE;
$viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_date');
}else if(properties.kind.value == CONST_VALUE_TIME){
properties.defaultValue.kind = CONST_VALUE_TIME_LOWERCASE;
properties.range.kind = CONST_VALUE_TIME_LOWERCASE;
properties.skipconds.kind = CONST_VALUE_TIME_LOWERCASE;
$viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_time');
}else if(properties.kind.value == CONST_VALUE_DATE_SPACE_TIME){
properties.defaultValue.kind = 'dateTime';
properties.range.kind = 'dateTime';
properties.skipconds.kind = 'dateTime';
$viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_datetime');
}else{
properties.defaultValue.kind = CONST_VALUE_DATE_LOWERCASE;
properties.range.kind = CONST_VALUE_DATE_LOWERCASE;
properties.skipconds.kind = CONST_VALUE_DATE_LOWERCASE;
$viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_date');
}
var $dayCtrl = $viewDateControl.find('.day');
var $monthCtrl = $viewDateControl.find('.month');
var $yearCtrl = $viewDateControl.find('.year');
var $hourCtrl = $viewDateControl.find('.hour');
var $minuteCtrl = $viewDateControl.find('.minute');
var $secondCtrl = $viewDateControl.find('.second');
var $ampmCtrl = $viewDateControl.find('.ampm');
var defaultDate;
if (properties['defaultValue'] == null || properties['defaultValue'].value == ''){
if(properties['defaultValue_tmp'] == null){
properties['defaultValue_tmp'] = {type: 'hidden', value:''};
}
if(properties['defaultValue_tmp'].value == null || properties['defaultValue_tmp'].value == ''){
properties['defaultValue_tmp'].value = (new Date()).toString();
}
defaultDate = new Date(properties['defaultValue_tmp'].value);
}else{
if(properties.kind.value == CONST_VALUE_TIME){
if(properties['defaultValue'].value.indexOf('/')>=0){
defaultDate = new Date(properties['defaultValue'].value);
}else{
defaultDate = new Date('01/01/2011 ' + properties['defaultValue'].value);
}
}else{
defaultDate = new Date(properties['defaultValue'].value);
}
if(isNaN(defaultDate) || defaultDate == 'Invalid Date'){
defaultDate = new Date();
}
}
var month_name=new Array(12);
month_name[0]=lbl_date_jan;
month_name[1]=lbl_date_feb;
month_name[2]=lbl_date_mar;
month_name[3]=lbl_date_apr;
month_name[4]=lbl_date_may;
month_name[5]=lbl_date_jun;
month_name[6]=lbl_date_jul;
month_name[7]=lbl_date_aug;
month_name[8]=lbl_date_sep;
month_name[9]=lbl_date_oct;
month_name[10]=lbl_date_nov;
month_name[11]=lbl_date_dec;
$dayCtrl.val(makeTwoDigitText(defaultDate.getDate()));
$monthCtrl.val(month_name[defaultDate.getMonth()]);
$yearCtrl.val(defaultDate.getFullYear());
$minuteCtrl.val(makeTwoDigitText(defaultDate.getMinutes()));
$secondCtrl.val(makeTwoDigitText(defaultDate.getSeconds()));
if(defaultDate.getHours() > 11){
$ampmCtrl.val('PM');
$hourCtrl.val(makeTwoDigitText(defaultDate.getHours() - 12));
}else{
$ampmCtrl.val('AM');
$hourCtrl.val(makeTwoDigitText(defaultDate.getHours()));
}
$propertyList1.append($viewDateControl);
}
if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
var ctrlTables = $('.control.ctrlTable');
if(!isFormLoadding && ctrlTables.length>0 && !ctrlTables.hasClass(CONST_DUPLICATING)){
for(var i = 0; i < ctrlTables.length; i++){
var ctrlTable = $(ctrlTables[i]);
if(!$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
var parentProperties = ctrlTable.data('odkControl-properties');
if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){
parentProperties.usechecklist.value = false;
ctrlTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove();
}
}
}
}else{
ctrlTables = $('.control.ctrlSchedule');
if(!isFormLoadding && ctrlTables.length>0 && !ctrlTables.hasClass(CONST_DUPLICATING)){
for(var i = 0; i < ctrlTables.length; i++){
var ctrlTable = $(ctrlTables[i]);
if(!$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
var parentProperties = ctrlTable.data('odkControl-properties');
if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){
parentProperties.usechecklist.value = false;
ctrlTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove();
}
}
}
}
}
}else{
var parentTable = $this.parents('.control.ctrlTable');
if(!isFormLoadding && parentTable.length>0 && !parentTable.hasClass(CONST_DUPLICATING)){
if(!$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
var parentProperties = parentTable.data('odkControl-properties');
if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){
parentProperties.usechecklist.value = false;
parentTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove();
}
}
}else{
parentTable = $this.parents('.control.ctrlSchedule');
if(!isFormLoadding && parentTable.length>0 && !parentTable.hasClass(CONST_DUPLICATING)){
if(!$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
var parentProperties = parentTable.data('odkControl-properties');
if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){
parentProperties.usechecklist.value = false;
parentTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove();
}
}
}
}
}
};
var refreshFromViewProperties = function($this, type, config, properties)
{
};
var optionControlName = {
text: function(property, $propertyList) {
},
uiText: function(property, $propertyList) {
},
optionsEditorValueField: function(property, $propertyList) {
},
bool:function(property, $propertyList) {
},
numericRange: function(property, $propertyList) {
},
'enumeration': function(property, $propertyList) {
},
dateRange: function(property, $propertyList) {
},
optionsEditor: function(property, $propertyList) {
var $selectionCtrl = $('#templates .viewoptions .selection').clone();
var $translationsList = $selectionCtrl.find('.selection-translations');
var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue');
var backValue = $defaultValueControl.val();
$defaultValueControl.empty();
$defaultValueControl.append(' ');
_.each(property.value, function(element)
{
if (element.isShowUnderlying !== undefined){
return true;
}
_.each(element, function(val)
{
_.each(odkmaker.i18n.activeLanguages(), function(language)
{
var languageKey = language;
$option.val( val[languageKey] || '');
});
$propertyList.append($selectionCtrl);
});
var item = $(' ')
.attr(CONST_VALUE, element.val || '')
.text(element.text['eng'] || lbl_undefined);
$defaultValueControl.append(item);
});
},
optionsEditorScoreOne: function(property, $propertyList) {
var $selectionCtrl = $('#templates .viewoptions .selection').clone();
var $translationsList = $selectionCtrl.find('.selection-translations');
var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue');
var backValue = $defaultValueControl.val();
$defaultValueControl.empty();
$defaultValueControl.append(' ');
_.each(property.value, function(element)
{
if (element.isShowUnderlying !== undefined){
return true;
}
_.each(element, function(val)
{
_.each(odkmaker.i18n.activeLanguages(), function(language)
{
var languageKey = language;
$option.val( val[languageKey] || '');
});
$propertyList.append($selectionCtrl);
});
var item = $(' ')
.attr(CONST_VALUE, element.val || '')
.text(element.text['eng'] || lbl_undefined);
$defaultValueControl.append(item);
});
},
skipConditionsEditor: function(property, $propertyList) {
},
reportFilterConditionsEditor: function(property, $propertyList) {
},
relevanceConditionsEditor: function(property, $propertyList) {
},
checklistConditionsEditor: function(property, $propertyList) {
},
loopEditor: function(property, $propertyList) {
},
lookupFillEditor: function(property, $propertyList) {
},
parsingInfoEditor: function(property, $propertyList) {
}
};
// gets just the pure data for any one control
var getDataRepresentation = function($control)
{
var data = {};
_.each($control.data('odkControl-properties'), function(property, name)
{
data[name] = property.value;
});
data.type = $control.data('odkControl-type');
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
if(data){
if(data.isShowRelevanceCondition == false){
data.relevanceconds = [];
}
if(data.isShowSkipCondition == false){
data.skipconds = [];
}
}
}
if(isVersion(VERSION_DISPLAY_TYPE_FUNCTION) && data.displayType == CONST_DROPDOWN){
data.showAsDropdown = true;
}
return data;
};
var appendAllExternalForPOD = function(children, data){
/*if(data.stopType == 'multi'){
// Qty column
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_QTY_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Qty';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Qty';
if(data.stopType == 'multi'){
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
}else{
dataTmp.hideInMobile = true;
dataTmp.hideInWeb = true;
dataTmp.hideInPDF = true;
dataTmp.hidePdfWeb = true;
}
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
children.push(dataTmp);
}*/
if(data.showActual){
// Actual column
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_ACTUAL_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Actual';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Actual';
if(data.showActual){
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
}else{
dataTmp.hideInMobile = true;
dataTmp.hideInWeb = true;
dataTmp.hideInPDF = true;
dataTmp.hidePdfWeb = true;
}
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = true;
children.push(dataTmp);
}
var showCommentIfCheck = false;
if(data.showDamaged){
showCommentIfCheck = true;
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_DAMAGED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Damaged';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
/*dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;*/
dataTmp.label.eng = 'Damaged';
children.push(dataTmp);
}
if(data.showReject){
showCommentIfCheck = true;
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_REJECTED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Rejected';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
/*dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;*/
dataTmp.label.eng = 'Rejected';
children.push(dataTmp);
}
if(data.itemPerRow == 'multi'){
// Qty column
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_QTY_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Qty';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Qty';
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
children.push(dataTmp);
}
if(data.manifestMethod == 'button'){
var label = 'Pickup';
if(data.manifestType == 'delivery'){
label = 'Deliver';
}
//ass deliver button
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTACTION]);
properties.id.value = POD_DELIVER_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Deliver';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTACTION;
dataTmp.imgAction = label;
dataTmp.actionBtnText = label;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = label;
children.push(dataTmp);
}
if(showCommentIfCheck && data.showComment){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = POD_COMMENT_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Comment';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Comment';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
children.push(dataTmp);
}
}
var appendAllExternalForINV = function(children, data){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = INV_ID_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__ID';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = 'ID';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
children.push(dataTmp);
if(data.isShowCommentCol){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = INV_COMMENT_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__Comment';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = 'Comment';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
children.push(dataTmp);
}
if(data.isShowImageCol){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTIMAGE]);
properties.id.value = INV_IMAGE_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__Image';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTIMAGE;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = 'Photo';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
children.push(dataTmp);
}
}
var appendAllExternalForScheduleWidget = function(children, data){
// Start Date
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTDATE]);
properties.id.value = utils.seq.getUniqueId();
properties.name.value = 'Start_Date';
properties.kind.vaue = CONST_VALUE_DATE;
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTDATE;
dataTmp.kind = CONST_VALUE_DATE;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE;
dataTmp.label.eng = 'START DATE';
dataTmp.militaryTime = false;
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = false;
dataTmp.dontGenId = true;
children.push(dataTmp);
data.dispatchDate = properties.id.value;
// Start Time
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTDATE]);
properties.id.value = SCHEDULE_WIDGET_START_TIME_ID + data.id;
properties.name.value = 'S' + data.id + '__Start_Time';
properties.kind.vaue = CONST_VALUE_TIME;
properties.useInterval.vaue = true;
properties.minuteInterval.vaue = '15';
properties.militaryTime.vaue = false;
$ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTDATE;
dataTmp.kind = CONST_VALUE_TIME;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE;
dataTmp.label.eng = 'START TIME';
dataTmp.useInterval = true;
dataTmp.minuteInterval = '15'
dataTmp.militaryTime = false;
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = true;
children.push(dataTmp);
//Duration
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTCALCULATE]);
properties.id.value = SCHEDULE_WIDGET_DURATION_ID + data.id;
properties.name.value = 'S' + data.id + '__Duration_Minutes';
$ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTCALCULATE;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE;
dataTmp.label.eng = 'DURATION';
dataTmp.expression = [];
dataTmp.expression.push({text: {operation: "Other value",
operation_other_count: "",
operation_other_part_of_date: "",
operation_other_sum: "",
operation_other_val: "60"},
value: {}})
children.push(dataTmp);
}
// gets the pure data tree for any workspace DOM node
var extractRecurse = function($root, rootType, gridCols, gridEmptyCol)
{
if(!rootType || rootType == ''){
if(isVersion(VERSION_BUILD_FORM_NEW)){
if(extractRecurseData && extractRecurseData.controls){
return extractRecurseData.controls;
}
}
resetUniqueIdForEmptyCell();
}
var result = [];
var isNewRow_Grid = true;
$root.children('.control').each(function()
{
var $this = $(this);
if(gridEmptyCol && isNewRow_Grid && ((result.length % gridCols) % gridEmptyCol) == (gridEmptyCol - 1)){
result.push(makeGridEmptyCell());
isNewRow_Grid = false;
if((result.length % gridCols) == 0){
isNewRow_Grid = true;
}
}
var data = getDataRepresentation($this);
if(rootType && rootType != ''){
data.parentCtrlType = rootType;
}else{
data.parentCtrlType = '';
}
if (data.type == CONST_CTRL_TYPE_GROUP)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_GROUP);
}
else if (data.type == CONST_CTRL_TYPE_CTRLTABLE)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLTABLE);
}
else if (data.type == CONST_CTRL_TYPE_CTRLSCHEDULE)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLSCHEDULE);
}
else if (data.type == CONST_CTRL_TYPE_CTRLPOD)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLPOD);
}
else if (data.type == CONST_CTRL_TYPE_CTRLINV)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLINV);
}
else if (data.type == CONST_CTRL_TYPE_CTRLSCORETABLE)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLSCORETABLE);
}
else if (data.type == CONST_CTRL_TYPE_CTRLGRID)
{
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLGRID, data.loop, data.emptyCol);
}
else if (data.type == 'branch')
{
data.branches = [];
$this.find('.workspaceInner').each(function()
{
var branch = {};
branch.conditions = $(this).data('odkmaker-branchConditions');
branch.children = extractRecurse($(this), 'branch');
data.branches.push(branch);
});
}
result.push(data);
if(gridEmptyCol && (result.length % gridEmptyCol) == (gridEmptyCol - 1)){
result.push(makeGridEmptyCell());
}
if(!isNewRow_Grid && (result.length % gridCols) == 0){
isNewRow_Grid = true;
}
});
if(isVersion(VERSION_BUILD_FORM_NEW)){
if(!rootType || rootType == ''){
extractRecurseData = {
controls: result
}
}
}
return result;
};
var getUniqueIdForEmptyCell = function(){
currentEmptyCellId = currentEmptyCellId + 1;
return currentEmptyCellId;
}
var resetUniqueIdForEmptyCell = function(){
currentEmptyCellId = 0;
}
var makeGridEmptyCell = function(){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties['inputLabel']);
properties.id.value = getUniqueIdForEmptyCell();
properties.name.value = 'AE__' + properties.id.value;
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = 'inputLabel';
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLGRID;
dataTmp.label.eng = '';
return dataTmp;
}
var makeGridEmptyCell = function(){
var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties['inputLabel']);
properties.id.value = utils.seq.getUniqueId();
properties.name.value = 'S' + properties.id.value + '__EmptyCell';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = 'inputLabel';
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLGRID;
dataTmp.label.eng = '';
return dataTmp;
}
var updateCboSkipAnswer = function(type){
var cboSkipAnswers = $('.editors .skipConditionsEditorValueField .cboSkipAnswer');
updateCboCompareType(cboSkipAnswers, type);
};
var updateCboReportFilterAnswer = function(type){
var cboReportFilterAnswers = $('.editors .reportFilterConditionsEditorValueField .cboReportFilterAnswer');
updateCboCompareType(cboReportFilterAnswers, type);
};
var updateCboLookup = function(type){
if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!isVersion2_12()){
var cboLookupConditionField = $('.editors .lookupConditionFieldEditorValueField_2_11 .cboLookupConditionField');
cboLookupConditionField.empty();
}else{
var cboLookupConditionAnswer = $('.editors .lookupConditionFieldEditorValueField .cboLookupConditionAnswer');
cboLookupConditionAnswer.empty();
}
}
};
$.live('.formBuilder .ctrlUndo', 'click', function(event)
{
if($('.workspace:visible .just-paste').length > 0){
var justCtrl = $('.workspace:visible .just-paste');
if(justCtrl.hasClass('first-child')){
justCtrl.next().addClass('first-child');
}else if(justCtrl.hasClass('last-child')){
justCtrl.prev().addClass('last-child');
}
justCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP).removeClass('control');
}else if($('.workspace:visible .ctrlUndoMark').length > 0){
var ctrlUndoMarks = $('.workspace:visible .ctrlUndoMark');
$('.workspace:visible .ctrlRedoMark').remove();
$('.workspace:visible .ctrlUndoDeleteMark').remove();
$('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark');
for(var i=0; i');
ctrlRedoMark.attr('data', ctrlId);
ctrlRedoMark.insertAfter(ctrl);
ctrl.insertAfter(ctrlUndoMark);
ctrlUndoMark.remove();
}
}else if($('.workspace:visible .ctrlUndoDeleteMark').length > 0){
var ctrlUndoDeleteMarks = $('.workspace:visible .ctrlUndoDeleteMark');
for(var i=0; i 0){
var justCtrl = $('.workspace:visible .just-paste');
if(justCtrl.hasClass('first-child')){
justCtrl.next().removeClass('first-child');
}else if(justCtrl.hasClass('last-child')){
justCtrl.prev().removeClass('last-child');
}
justCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP).addClass('control');
}else if($('.workspace:visible .ctrlRedoMark').length > 0){
var ctrlRedoMarks = $('.workspace:visible .ctrlRedoMark');
$('.workspace:visible .ctrlUndoMark').remove();
$('.workspace:visible .ctrlUndoDeleteMark').remove();
$('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark');
for(var i=0; i');
ctrlUndoMark.attr('data', ctrlId);
ctrlUndoMark.insertAfter(ctrl);
ctrl.insertAfter(ctrlRedoMark);
ctrlRedoMark.remove();
}
}else if($('.workspace:visible .ctrlRedoDeleteMark').length > 0){
var ctrlRedoDeleteMarks = $('.workspace:visible .ctrlRedoDeleteMark');
for(var i=0; i $('.workspaceScrollArea:visible').height()){
$('.workspaceScrollArea:visible').scrollTop($('.workspaceScrollArea:visible').scrollTop() + $dupControl.position().top + 150 - $('.workspaceScrollArea:visible').height());
}
if (type == CONST_CTRL_TYPE_GROUP){
if(groupProperties == undefined){
groupProperties = odkmaker.data.getCtrlProperties(properties.id.value);
}
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(groupProperties == undefined){
groupProperties = odkmaker.data.getCtrlProperties(properties.id.value);
}
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
if (type == CONST_CTRL_TYPE_CTRLPOD){
if(groupProperties == undefined){
groupProperties = jQuery.extend({}, odkmaker.data.getCtrlProperties(properties.id.value));
}
var newPODId = newProperties.id.value;
_.each(groupProperties.children, function(itemProperties){
var idInt = 0;
try{
idInt = parseInt(itemProperties['id']);
}catch(e){
}
if(idInt <= parseInt(POD_QTY_COL_ID)){
var name = itemProperties.name;
var arr = name.split('__');
if(!arr[1]){
arr[1] = '';
}
switch(arr[1]){
case 'Qty':
itemProperties['id'] = POD_QTY_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Qty';
break;
case 'Actual':
itemProperties['id'] = POD_ACTUAL_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Actual';
break;
case 'Damaged':
itemProperties['id'] = POD_DAMAGED_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Damaged';
break;
case 'Rejected':
itemProperties['id'] = POD_REJECTED_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Rejected';
break;
case 'Comment':
itemProperties['id'] = POD_COMMENT_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Comment';
break;
case 'Deliver':
itemProperties['id'] = POD_DELIVER_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__Deliver';
break;
case 'ID':
itemProperties['id'] = POD_ID_COL_ID + newPODId;
itemProperties['name'] = 'S' + newPODId + '__ID';
break;
}
}
});
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
if (type == CONST_CTRL_TYPE_CTRLINV){
if(groupProperties == undefined){
groupProperties = jQuery.extend({}, odkmaker.data.getCtrlProperties(properties.id.value));
}
var newINVId = newProperties.id.value;
_.each(groupProperties.children, function(itemProperties){
var idInt = 0;
try{
idInt = parseInt(itemProperties['id']);
}catch(e){
}
if(idInt <= parseInt(INV_ID_COL_ID)){
var name = itemProperties.name;
var arr = name.split('__');
if(!arr[1]){
arr[1] = '';
}
switch(arr[1]){
case 'Comment':
itemProperties['id'] = INV_COMMENT_COL_ID + newINVId;
itemProperties['name'] = 'I' + newINVId + 'A__Comment';
break;
case 'Image':
itemProperties['id'] = INV_IMAGE_COL_ID + newINVId;
itemProperties['name'] = 'I' + newINVId + 'A__Image';
break;
case 'ID':
itemProperties['id'] = INV_ID_COL_ID + newINVId;
itemProperties['name'] = 'I' + newINVId + 'A__ID';
break;
}
}
});
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(groupProperties == undefined){
groupProperties = odkmaker.data.getCtrlProperties(properties.id.value);
}
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
if (type == CONST_CTRL_TYPE_CTRLGRID){
if(groupProperties == undefined){
groupProperties = odkmaker.data.getCtrlProperties(properties.id.value);
}
loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children);
}
selectControl($dupControl, type, null, newProperties, true);
$dupControl.removeClass(CONST_DUPLICATING);
return $dupControl;
};
var selectControl = function($this, type, config, properties, isSetFocus)
{
if(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
type = CONST_CTRL_TYPE_INPUTLOOKUP;
}
/*if($this.hasClass('ctrlDataFilter')){
if($this.prev( ".ctrlDataFilter" ).length >0){
properties.filterField.showJoinCond = true;
}else{
properties.filterField.showJoinCond = false;
}
}*/
if(type == 'ctrlBreakPointDataElement'){
if(properties.kind && properties.kind.value == 'Number'){
if(properties.footerTypeNum){
properties.footerTypeNum.type = 'enumeration_radio';
}
if(properties.footerTypeText){
properties.footerTypeText.type = 'hidden';
}
}else{
if(properties.footerTypeNum){
properties.footerTypeNum.type = 'hidden';
}
if(properties.footerTypeText){
properties.footerTypeText.type = 'enumeration_radio';
}
}
}
var controls = extractRecurse($('.workspace:visible'), '');
controlsTmp = controls;
controlsWhenSelectTmp = controls;
$('.ac_results').hide();
$('.workspace:visible .control').removeClass('selected');
var offsetParent = $this.offsetParent();
var top = $this[0].offsetTop;
while(!offsetParent.hasClass('workspaceScrollArea')){
top += offsetParent[0].offsetTop;
offsetParent = offsetParent.offsetParent();
}
var scrollTop = $('.workspaceScrollArea:visible').scrollTop();
if(top < scrollTop){
$('.workspaceScrollArea:visible').scrollTop(top);
}else{
var wpHeight = $('.workspaceScrollArea:visible').height();
if(top + $this.height() > scrollTop + wpHeight){
if($this.height() >= wpHeight){
$('.workspaceScrollArea:visible').scrollTop(top);
}else{
var tmp = wpHeight - (top - scrollTop);
$('.workspaceScrollArea:visible').scrollTop(scrollTop + $this.height() - tmp);
}
}
}
$this.addClass('selected');
if($this.attr('id') == undefined || $this.attr('id') == ''){
var newId = 'selectedCtrlFocus' + properties.id.value;
$this.attr('id', newId);
}
if(isSetFocus){
window.location.href = '#' + $this.attr('id');
}
var idInt = 0;
try{
idInt = parseInt(properties['id'].value);
}catch(e){
}
if(idInt <= parseInt(POD_QTY_COL_ID)){
//return;
}
updateCboLookup(type);
updateCboSkipAnswer(type);
updateCboReportFilterAnswer(type);
var $propertyList = $('.propertyList:visible').attr('class', 'propertyList');
$propertyList.find('input[name=radio_cal_kind]').off('change')
$('.propertyList:visible').find('input:focus').trigger('change').trigger('blur');
$propertyList.empty();
var attrs = $propertyList[0].attributes;
var attrNames = [];
_.each(attrs, function(attr, i){
switch(attr.name){
case 'id':
case 'class':
break;
default:
attrNames.push(attr.name);
}
});
_.each(attrNames, function(name, i){
$propertyList.removeAttr(name);
});
$('.propertiesPane:visible #propertyListSampleHelp').addClass('hideSession');
$('.ctrlDescription .propertiesCtrlName')
.empty();
$('.ctrlDescription .propertiesCtrlExplain')
.empty();
$('.ctrlDescription .propertiesCtrlHint')
.empty();
var i = 0;
// iterate through non-advanced properties
_.each(properties, function(property, propertyKey)
{
updateRuntimeVersion4ControlProperties(property);
if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT) && propertyKey == 'hintLink'){
if(!isVersion1_1_LCE()){
return;
}
}
if(type == CONST_CTRL_TYPE_INPUT_TEXT
|| type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| type == CONST_CTRL_TYPE_INPUTDATE
|| type == CONST_CTRL_TYPE_INPUTLOOKUP
|| type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
try{
// Gray caption property
if(propertyKey == 'grayCaption'
&& (!isVersion(VERSION_GRAY_CAPTION_TEXT) || !isInsideTheGridFreeForm($this))){
// CO-1977 fix problem with checkbox grayCaption
properties.grayCaption.value = false;
return;
}
// Compare property for Date/Time
if(type == CONST_CTRL_TYPE_INPUTDATE){
if((propertyKey == 'validateValue' && !isVersion(VERSION_DATE_TIME_COMPARE))
|| (propertyKey == 'useCalendarView' && !isVersion(VERSION_DATE_TIME_CALENDAR_VIEW))){
return;
}
}
} catch(e){ }
}
property.ctrlType = type;
if (property.advanced === true)
return;
var editor;
if(propertyKey == 'isDisplayFirstMatching'){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue'));
}else if(propertyKey == 'isAllowEdit' && (type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue'));
}else if(propertyKey == 'isAcceptNull'){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue'));
}else if(propertyKey == 'isEvaluateERT'){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue'));
}else if(propertyKey == 'isShowCmpType'){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue'));
}else{
var insertBeforeClass = undefined;
if(property.insertBefore && property.insertBefore !== ''){
insertBeforeClass = getInsertBeforeValue(property.insertBefore);
}
if(insertBeforeClass && $propertyList.find('li.' + insertBeforeClass).length > 0){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertBefore($propertyList.find('li.' + insertBeforeClass));
}else if(property.insertAfter && property.insertAfter !== ''){
var insertAfterClass = getInsertAfterValue(property.insertAfter);
var insertAfterClassArr = insertAfterClass.split(CONST_COMMA);
for(var i=0; i 0){
break;
}
}
if($propertyList.find('li.' + insertAfterClass).length > 0){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($propertyList.find('li.' + insertAfterClass));
}else{
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList);
}
}else if(property.insertAfterRadioClass){
var insertAfterClass = getInsertAfterValue(property.insertAfterRadioClass);
if($propertyList.find('li.' + insertAfterClass).length > 0){
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($(insertAfterClass));
}else{
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList);
}
}else{
editor = $(' ')
.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($propertyList);
}
}
{
//show property info icon
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
var isIgnoreCheckShowHide = false;
if(propertyKey == 'destinationdataconds'){
if(!properties.isRetrieve || properties.isRetrieve.value == false){
isIgnoreCheckShowHide = true;
}
}
if(!isIgnoreCheckShowHide && !isShowProperty(property, propertyKey)){
switch(propertyKey){
case 'currency':
editor.find('.currency_enumeration').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'phoneFormatKind':
$('.propertyList div.phoneFormatKind').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'txtCustomFormatVal':
$('.propertyList div.txtCustomFormatVal').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'isShowCustomFormat':
$('.propertyList span.isShowCustomFormat').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'grayCaptionText':
$('.propertyList div.grayCaptionText').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'printerSettingFile':
$('li.printerSettingFile .uploadFile').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'paperWidth':
$('li.paperWidth #editorPaperWidth').addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
case 'destinationdataconds':
property.value = [];
editor.addClass(CONST_CSS_CLASS_HIDE_SESSION);
break;
default:
editor.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT && propertyKey == 'grayCaption'){
if('manual' == properties.paymentType.value){
editor.removeClass(CONST_CSS_CLASS_HIDE_SESSION);
} else{
editor.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(propertyKey == 'isCaptionOnTop'){
var gridTypeValue = $('#property_gridType input:radio:checked').val();
if(gridTypeValue !== '2'){
// check if not is caption column based
editor.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(propertyKey == 'grayCaptionText'){
$('.propertyList div.grayCaptionText').find('.propertyHeaderInfo').css(CONST_CSS_KEY_DISPLAY, CONST_VALUE_NONE);
}
if(property.boolFloatChild){
switch(property.type){
case 'bool':
var boolFloatChild = $('
');
if(property.boolFloatChildName){
boolFloatChild.addClass(property.boolFloatChildName);
}
editor.find('.bool').css('float', 'left');
if(editor.find('.bool').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){
boolFloatChild.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
editor.append(boolFloatChild);
break
}
}
var isHideCaption = false;
if(isVersion(property.hideCaptionVersion)){
isHideCaption = true;
}else if(property.hideCaption){
isHideCaption = true;
}
if(!isHideCaption && property.info_icon){
var editorTmp;
var hasParentGroup = false;
var donotAddFloatLeft = false;
if(property.parent_group_name && property.parent_group_name != ''){
editorTmp = $('ul.propertyList .' + property.parent_group_name + ' .' + propertyKey);
hasParentGroup = true;
}else if(property.parent_group && property.parent_group != ''){
editorTmp = $('ul.propertyList .' + property.parent_group + ' .' + propertyKey);
editorTmp.append(' ');
hasParentGroup = true;
}else{
if(property.info_icon_chk_right){
editorTmp = editor.find('.bool .chkGroup');
donotAddFloatLeft = true;
}else{
editorTmp = editor;
}
}
switch(property.type){
case 'bool':
var msgInfoIcon = $('
');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style);
}
if(!hasParentGroup){
if(!donotAddFloatLeft){
editorTmp.find('.bool').css('float', 'left');
}
if(editorTmp.find('.bool').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){
msgInfoIcon.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
editorTmp.append(msgInfoIcon);
}else{
if(!donotAddFloatLeft){
editorTmp.find('.chkGroup').css('float', 'left');
}
if(editorTmp.find('.chkGroup').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){
msgInfoIcon.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
msgInfoIcon.insertAfter(editorTmp.find('.chkGroup'));
}
break;
case 'enumeration':
var msgInfoIcon = $('
');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style);
}
editorTmp.find('h4').css('float', 'left');
msgInfoIcon.insertAfter(editorTmp.find('h4'));
break;
case 'text':
case 'uiText':
case 'enumeration_radio':
case 'textAutoComplete':
if(propertyKey == 'stackedExpand'){
var msgInfoIcon = $('');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style);
}
msgInfoIcon.insertBefore(editorTmp.find('.item_stacked'));
}else if(propertyKey == 'repeatTransitionText' || propertyKey == 'kind' || propertyKey == 'actionGeoTabVehicle'){
var msgInfoIcon = $('');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style);
}
editorTmp.find('legend').append(msgInfoIcon);
}else{
var msgInfoIcon = $('
');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style);
}
editorTmp.find('.propertyHeaderInfo').css('float', 'left');
msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo'));
}
break;
case 'enumeration_bool':
case 'numericFieldRange':
var msgInfoIcon = $('
');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.3em;' + property.icon_style);
}
editorTmp.find('.propertyHeaderInfo').css('float', 'left');
msgInfoIcon.insertAfter(editorTmp.find('.chkGroup'));
break;
case 'parse':
var msgInfoIcon = $('
');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style);
}
editorTmp.find('.propertyHeaderInfo').css('float', 'left');
msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo'));
break;
case 'optionsEditor':
case 'optionsEditorScoreOne':
var msgInfoIcon = $('');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right; padding-top:0.5em; padding-left: 20px;' + property.icon_style);
}
//editorTmp.find('.propertyHeaderInfo').css('float', 'left');
msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo'));
break;
case 'lookupTable':
case 'lookupField':
var msgInfoIcon = $('');
if(property.icon_style){
$(msgInfoIcon[0]).attr('style', 'float:right; padding-top:0.5em; padding-left: 20px;' + property.icon_style);
}
//editorTmp.find('.propertyHeaderInfo').css('float', 'left');
//msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo'));
editorTmp.find('legend').append(msgInfoIcon);
break;
}
if(property.info_msg && property.info_msg != ''){
/*editorTmp.find('.propertyInfo').qtip({
content: property.info_msg,
show: 'mouseover',
hide: { when: 'mouseout', fixed: true },
position: {
corner: {
tooltip: 'bottomRight', // Use the corner...
target: 'topMiddle' // ...and opposite corner
}
},
style: {
width: 330,
name: 'dark',
background: '#000000',
border: {
radius: 3,
width: 3
},
tip: true
}
});*/
editorTmp.find('.propertyInfo').click(function(){
if (property.info_msg instanceof Object) {
if(property.ctrlType == CONST_CTRL_TYPE_CTRLGRID && properties.isButtonGrid && properties.isButtonGrid.value){
showRightPanelHelp(property.info_msg['ctrlButtonGrid']);
}else{
showRightPanelHelp(property.info_msg[property.ctrlType]);
}
}else{
showRightPanelHelp(property.info_msg);
}
});
}
if(property.add_class){
editorTmp.find('.iconInfo').addClass(property.add_class);
}
if(property.info_icon_style){
editorTmp.find('.iconInfo').attr('style', property.info_icon_style);
}
}
}
}
i++;
});
if(type == CONST_CTRL_TYPE_INPUTCALCULATE){
if(properties.kind.value == "Date"){
$('.propertiesPane:visible .currency').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .useCurrentcySymbol').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .isShowComma').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .usePercent').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHM').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHMS').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showDateOnly').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .decPlace').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .addExpressionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsTextMobile').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .negativeGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else if(properties.kind.value == "String"){
$('.propertiesPane:visible .currency').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .useCurrentcySymbol').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .isShowComma').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .usePercent').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHM').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHMS').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showDateOnly').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .decPlace').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .addExpressionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsTextMobile').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .negativeGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$('.propertiesPane:visible .currency').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .useCurrentcySymbol').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .isShowComma').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .usePercent').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHM').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHM').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change');
$('.propertiesPane:visible .showAsHMS').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsHMS').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change');
$('.propertiesPane:visible .showDateOnly').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showDateOnly').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change');
$('.propertiesPane:visible .decPlace').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .decimalPlace').trigger('show_hide_change');
$('.propertiesPane:visible .addExpressionGroup').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .showAsTextMobile').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPane:visible .negativeGroup').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
// Hide the Dispatch Required (in Calculation field)
$('.propertiesPane:visible .dispatchRequired').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
// Fix bug 0022150: [Autonumber] User can input more than 10 characters into "Prefix - Android ONLY" property
else if (type === CONST_CTRL_TYPE_INPUTNUMBERING) {
// Limit character input in AutoNumber (10 characters)
$('.propertiesPane:visible .prefix .editorTextfield').attr('maxlength', 10);
}
// now do advanced properties
if(isVersion1_1()){
if(/*type !== CONST_CTRL_TYPE_GROUP &&
type !== CONST_CTRL_TYPE_CTRLTABLE &&
type !== CONST_CTRL_TYPE_CTRLSCHEDULE &&
type !== CONST_CTRL_TYPE_CTRLPOD &&
type !== CONST_CTRL_TYPE_CTRLINV &&
type !== CONST_CTRL_TYPE_CTRLSCORETABLE &&
type !== CONST_CTRL_TYPE_CTRLGRID && */
type !== 'inputPageBreak' /*&&
type !== 'inputLabel' &&
type !== CONST_CTRL_TYPE_INPUTSCORESUMMARY &&
type !== CONST_CTRL_TYPE_INPUTACTION &&
type !== 'inputInstruction' &&
//type !== CONST_CTRL_TYPE_INPUTCALCULATE &&
type !== CONST_CTRL_TYPE_INPUTLOOKUP &&
type !== CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE &&
type !== 'inputFacingTable' &&
type !== 'inputLookupMulti' &&
type !== CONST_CTRL_TYPE_INPUTEMAILREPORT &&
type !== CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT*/ &&
type !== CONST_CTRL_TYPE_INPUTAPPROVAL &&
type !== CONST_CTRL_TYPE_INPUTNUMBERING /* &&
type !== 'inputSaveAndSend'*//* && authNS.currentUser.ProductOrder != constantProductOrderFree*/){
//if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
}else{
$('
' + lbl_advanced + ' ' +
' ')
.appendTo($propertyList);
}
}
} else {
if(type !== CONST_CTRL_TYPE_GROUP &&
type !== CONST_CTRL_TYPE_CTRLTABLE &&
type !== CONST_CTRL_TYPE_CTRLSCHEDULE &&
type !== CONST_CTRL_TYPE_CTRLPOD &&
type !== CONST_CTRL_TYPE_CTRLINV &&
type !== CONST_CTRL_TYPE_CTRLSCORETABLE &&
type !== CONST_CTRL_TYPE_CTRLGRID &&
type !== 'inputPageBreak' &&
type !== 'inputLabel' &&
type !== CONST_CTRL_TYPE_INPUTSCORESUMMARY &&
//type !== CONST_CTRL_TYPE_INPUTNUMBERING &&
type !== CONST_CTRL_TYPE_INPUTACTION &&
type !== CONST_CTRL_TYPE_INPUTPAYMENT &&
type !== 'inputInstruction' &&
//type !== CONST_CTRL_TYPE_INPUTCALCULATE &&
type !== CONST_CTRL_TYPE_INPUTLOOKUP &&
type !== CONST_CTRL_TYPE_INPUTLFBLUETOOTH &&
type !== CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE &&
type !== 'inputFacingTable' &&
type !== 'inputLookupMulti' &&
type !== CONST_CTRL_TYPE_INPUTEMAILREPORT &&
type !== CONST_CTRL_TYPE_INPUTFAX &&
type !== CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT &&
type !== CONST_CTRL_TYPE_INPUTAPPROVAL &&
type !== 'inputSaveAndSend'){
$('
' + lbl_advanced + ' ' +
' ')
.appendTo($propertyList);
}
}
if (isVersion(VERSION_OPTION_SERABLE_FILED) & (isInsideTheInvoiceTable($this) || isInsideThePOD($this) || isInsideTheGroup($this) || isInsideTheBreakPointData($this))){
var isSearchCtrl = $('.propertyList:visible li.isSearchField');
if(isSearchCtrl.length > 0){
isSearchCtrl.attr('style', 'display:none');
var isSearchCtrlChk = isSearchCtrl.find('.editorCheckbox');
if(properties.isSearchField){
properties.isSearchField.value = false;
}
if(isSearchCtrlChk.length > 0 && isSearchCtrlChk[0].checked){
$('.propertiesPane:visible li.name .editorTextfield').trigger('searchDataNameChange', false);
//$(isSearchCtrlChk[0]).click();
isSearchCtrlChk.prop('checked', false);
}
}
}
var isInTable = isInsideTheInvoiceTable($this);
var isInPOD = isInsideThePOD($this);
var isInGrid = isInsideTheGrid($this);
var isInButtonGrid = isInsideTheButtonGrid($this);
var isInBreakPointData = isInsideTheBreakPointData($this);
if(isVersion(VERSION_ANSWER_BACKGROUND_COLOR)){
if(!isInTable){
$propertyList.find('.background-color').attr('style', 'display:none');
}
}
if(type == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none');
if(!isInButtonGrid){
$propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change');
}
}
if (isInTable || isInPOD || isInGrid || isInButtonGrid || isInBreakPointData){
if(type == CONST_CTRL_TYPE_INPUTSELECTONE){
var showAsDropdown = $propertyList.find('#property_showAsDropdown');
if(showAsDropdown.length > 0){
if(!showAsDropdown[0].checked){
//properties.showAsDropdown.value = true;
$(showAsDropdown[0]).click();
if(properties.showAsDropdown){
properties.showAsDropdown.value = true;
}
}
$(showAsDropdown[0]).prop('disabled', true);
}
}
if($propertyList.find('.isOneTimeSignatureCapture').length > 0){
$propertyList.find('.isOneTimeSignatureCapture div.bool').css(CONST_CSS_KEY_DISPLAY, 'block');
}
if($propertyList.find('.sizeOptions').length > 0){
$propertyList.find('.sizeOptions div.enumeration_radio').css(CONST_CSS_KEY_DISPLAY, 'block');
}
if($propertyList.find('.advanced').length > 0){
$propertyList.find('.advanced').attr('style', 'display:none');
}else{
$propertyList.find('.relevanceConditionsEditor').attr('style', 'display:none');
}
if(isInButtonGrid){
$propertyList.find('.imgJustify').attr('style', 'display:none');
if(type == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial');
}
}else{
if(type == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change');
}
}
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
if(properties.iteConditions && isVersion(properties.iteConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
if(properties.skipIfConditions && isVersion(properties.skipIfConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
$propertyList.find('li.isShowRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$propertyList.find('li.relevanceconds').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){
}else{
$propertyList.find('li.isShowSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$propertyList.find('li.skipconds').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
if(properties.readOnlyIfConditions && isVersion(properties.readOnlyIfConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(isInTable){
var idInt = 0;
try{
idInt = parseInt(properties.id.value);
}catch(e){
}
if(idInt <= parseInt(SCHEDULE_WIDGET_START_TIME_ID)){
//$propertyList.find('li').attr('style', 'display:none');
//$propertyList.find('li.label').attr('style', 'display:list-item');
//$propertyList.find('li.useInterval ').attr('style', 'display:list-item;padding-top:5px;');
$propertyList.find('li.useInterval input, li.name #property_name').prop('disabled', true);
//propertyList.find('li.expression').attr('style', 'display:list-item');
//$propertyList.find('li.expression li').attr('style', 'display:list-item');
}
/*
hqkhanh fix bug 0025998: [Suggestion] Table - Should hide 'Hint' property on widgtes inside Table
*/
$propertyList.find('li.hint').attr('style', 'display:none');
//in talbe
if(properties.apperance && !isVersion(VERSION_ANSWER_BACKGROUND_COLOR)){
//$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
if(isVersion(VERSION_SHOW_SECONDS_COLOR_ANSWER) && properties.answerColor){
}else{
$propertyList.find('.apperance').attr('style', 'display:none');
properties.apperance.value = "Default";
}
}
if(properties.removeAnswerBorder){
$propertyList.find('.removeAnswerBorder').attr('style', 'display:none');
properties.removeAnswerBorder.value = false;
}
if(!isVersion(VERSION_SHADED_HEADING_QUES_INTABLE)){
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
}else{
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings .opt_border_around_heading').attr('style', 'display:none');
}
}
//Fields in a table should not have Hint justification.
if(properties.justificationHint){
$propertyList.find('.justificationHint').attr('style', 'display:none');
}
/*
co-1566, co1567
if(properties.turnOffSelectionOutline){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none');
}*/
}else if(isInPOD){
var idInt = 0;
try{
idInt = parseInt(properties.id.value);
}catch(e){
}
if(idInt <= parseInt(POD_QTY_COL_ID)){
$propertyList.find('li').attr('style', 'display:none');
$propertyList.find('li.label').attr('style', 'list-item');
}
$propertyList.find('li.hint').attr('style', 'display:none');
//in POD
if(properties.apperance){
//$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
$propertyList.find('.apperance').attr('style', 'display:none');
properties.apperance.value = "Default";
}
if(properties.removeAnswerBorder){
$propertyList.find('.removeAnswerBorder').attr('style', 'display:none');
properties.removeAnswerBorder.value = false;
}
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
if($propertyList.find('.hintLink').length > 0){
$propertyList.find('.hintLink').attr('style', 'display:none');
}
if($propertyList.find('.imgJustify').length > 0){
$propertyList.find('.imgJustify').attr('style', 'display:none');
}
if($propertyList.find('.defaultValue').length > 0){
$propertyList.find('.defaultValue').attr('style', 'display:none');
}
if($propertyList.find('.numberOfLine').length > 0){
$propertyList.find('.numberOfLine').attr('style', 'display:none');
}
if($propertyList.find('.readOnlyGroup').length > 0){
$propertyList.find('.readOnlyGroup').attr('style', 'display:none');
}
if($propertyList.find('.requiredGroup').length > 0){
$propertyList.find('.requiredGroup').attr('style', 'display:none');
}
if($propertyList.find('.hideMobileWebGroup').length > 0){
$propertyList.find('.hideMobileWebGroup').attr('style', 'display:none');
}
if($propertyList.find('li.length').length > 0){
$propertyList.find('li.length').attr('style', 'display:none');
}
if($propertyList.find('li.range').length > 0){
$propertyList.find('li.range').attr('style', 'display:none');
}
if($propertyList.find('li.validateValue').length > 0){
$propertyList.find('li.validateValue').attr('style', 'display:none');
}
if($propertyList.find('li.tip').length > 0){
$propertyList.find('li.tip').attr('style', 'display:none');
}
if(properties.readOnly){
var parentProperties = $this.parents('.ctrlPOD').data('odkControl-properties');
if(parentProperties && parentProperties.podDataSource && parentProperties.podDataSource.value == CONST_DS_NONE){
properties.readOnly.value = false;
}else{
properties.readOnly.value = true;
}
}
if(properties.readOnly){
properties.readOnlyDsp.value = true;
}
}else{
//in grid
if(isInsideTheGridFreeForm($this)){
if(properties.id.ctrlType != 'inputLabel'){
/*if(properties.apperance){
$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
properties.apperance.value = "Default";
}*/
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
if($propertyList.find('.shadedButton').length > 0){
$propertyList.find('.shadedButton').attr('style', 'display:none');
}
}
}
}
if(properties.removeSpaceGroup){
$propertyList.find('.removeSpaceGroup').attr('style', 'display:none');
}else{
if(properties.removeSpaceAbove){
$propertyList.find('.removeSpaceAbove').attr('style', 'display:none');
}
if(properties.removeSpaceBelow){
$propertyList.find('.removeSpaceBelow').attr('style', 'display:none');
}
}
}
if(isInsideTheGrid($this)){
if(!isVersion(VERSION_GRID_TYPE_FUNCTION) || isNormalGrid($this.parents('.ctrlGrid'))){
$propertyList.find('.label .required').attr('style', 'display:none');
}
if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTNEWPAYMENT ||
properties.id.ctrlType == CONST_CTRL_TYPE_INPUTNFC ||
properties.id.ctrlType == CONST_CTRL_TYPE_INPUTBARCODE ||
properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLABEL ||
(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value)){
}else{
$propertyList.find('.hintLink').attr('style', 'display:none');
$propertyList.find('.imgJustify').attr('style', 'display:none');
if(properties.hintLink != undefined && properties.hintLink.ctrlType == 'inputLabel'){
properties.hintLink.value = "";
}
}
}
if(isInsideTheButtonGrid($this)){
}
if(isInsideTheScoreTable($this)){
if(properties.showAsDropdown){
$propertyList.find('li.showAsDropdown').attr('style', 'display:none');
properties.showAsDropdown.value = false;
}
if(properties.apperance){
//$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
$propertyList.find('.apperance').attr('style', 'display:none');
properties.apperance.value = "Default";
}
if(properties.removeAnswerBorder){
$propertyList.find('.removeAnswerBorder').attr('style', 'display:none');
properties.removeAnswerBorder.value = false;
}
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
if(properties.removeSpaceGroup){
$propertyList.find('.removeSpaceGroup').attr('style', 'display:none');
}else{
if(properties.removeSpaceAbove){
$propertyList.find('.removeSpaceAbove').attr('style', 'display:none');
}
if(properties.removeSpaceBelow){
$propertyList.find('.removeSpaceBelow').attr('style', 'display:none');
}
}
if(properties.displayType){
$propertyList.find('.displayType, .isIgnoreAcross, .ignoreAcrossScreenSize').attr('style', 'display:none');
properties.isIgnoreAcross.value = false;
}
if(properties.justificationAnswer){
$propertyList.find('.justificationAnswer').attr('style', 'display:none');
}
}
var $advancedList = $propertyList.find('.advancedProperties');
if($advancedList && $advancedList.length > 0){
_.each(properties, function(property, propertyKey)
{
updateRuntimeVersion4ControlProperties(property);
if (property.advanced !== true)
return;
if (property.moreadvanced === true)
return;
if (property.skip === true)
return;
if (property.relevance === true)
return;
if (property.skipcond === true)
return;
$(' ')
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($advancedList);
i++;
});
}
var $advancedSkipList = $propertyList.find('.advancedSkipProperties');
_.each(properties, function(property, propertyKey)
{
updateRuntimeVersion4ControlProperties(property);
if (property.advanced !== true)
return;
if (property.moreadvanced === true)
return;
if (property.skip !== true)
return;
if (property.relevance === true)
return;
if (property.skipcond !== true)
return;
//if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
var $li = $(' ');
$li.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($('li.isShowSkipCondition'))
.find('.skipConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(!isShowProperty(property, propertyKey)){
$li.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}else{
if($advancedSkipList && $advancedSkipList.length > 0){
$(' ')
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($advancedSkipList);
}
}
i++;
});
var $advancedRelevanceList = $propertyList.find('.advancedRelevanceProperties');
_.each(properties, function(property, propertyKey)
{
updateRuntimeVersion4ControlProperties(property);
if (property.advanced !== true)
return;
if (property.moreadvanced === true)
return;
if (property.skip === true)
return;
if (property.relevance !== true)
return;
if (property.relevancecond !== true)
return;
//if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
var $li = $(' ');
$li.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($('li.isShowRelevanceCondition'))
.find('.relevanceConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(!isShowProperty(property, propertyKey)){
$li.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}else{
if($advancedRelevanceList && $advancedRelevanceList.length > 0){
$(' ')
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.appendTo($advancedRelevanceList);
}
}
i++;
});
if(isVersion(VERSION_IF_THEN_ELSE)){
var $iteConditionsList = $propertyList.find('.iteConditionsList');
var propertyKey = 'iteConditions';
var property = properties[propertyKey];
if(property != undefined){
var $li = $(' ');
$li.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($('li.isShowITE'))
.find('.iteConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(!isShowProperty(property, propertyKey)){
$li.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
if(isVersion(VERSION_READ_ONLY_IF)){
var $readOnlyIfConditionsList = $propertyList.find('.readOnlyIfConditionsList');
var propertyKey = 'readOnlyIfConditions';
var property = properties[propertyKey];
if(property != undefined){
var $li = $(' ');
$li.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($('li.isShowReadOnlyIf'))
.find('.readOnlyIfConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(!isShowProperty(property, propertyKey)){
$li.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
if(isVersion(VERSION_SKIP_IF)){
var $skipIfConditionsList = $propertyList.find('.skipIfConditionsList');
var propertyKey = 'skipIfConditions';
var property = properties[propertyKey];
if(property != undefined){
var $li = $(' ');
$li.addClass(propertyKey)
.toggleClass('even', (i % 2) == 0)
.propertyEditor(property, $this, propertyKey)
.insertAfter($('li.isShowSkipIf'))
.find('.skipIfConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(!isShowProperty(property, propertyKey)){
$li.addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
type == CONST_CTRL_TYPE_INPUTFAX ||
type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}
if(type == CONST_CTRL_TYPE_INPUTTRENDS)
{
trendsSourceStack = [];
var findTrendsSourceCtrlToNode = function(controls, selectedCtrlId, isGetTrendsDate, isGrid, ignoreCtlID, isForLastEnteredValue){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(ignoreCtlID && ignoreCtlID == control.id){
return true;
}
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
if(!isGetTrendsDate){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(!isGetTrendsDate){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(!isGetTrendsDate){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(!isGetTrendsDate){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(!isGetTrendsDate){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, true, ignoreCtlID, isForLastEnteredValue);
}else {
if(isGetTrendsDate){
if(control.type == CONST_CTRL_TYPE_INPUTDATE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(isForLastEnteredValue){
switch(control.type){
case CONST_CTRL_TYPE_INPUT_NUMERIC:
case CONST_CTRL_TYPE_INPUTCOUNTER:
case CONST_CTRL_TYPE_INPUTTRENDS:
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
break;
default:
break;
}
}else{
switch(control.type){
case "inputPageBreak":
case "inputLabel":
case CONST_CTRL_TYPE_INPUTSCORESUMMARY:
case CONST_CTRL_TYPE_INPUTMEDIA:
case "inputDraw":
case mdi_kind_inputImage:
case mdi_kind_inputAudio:
case mdi_kind_inputVideo:
case mdi_kind_inputSketch:
case mdi_kind_inputSignature:
case CONST_CTRL_TYPE_CTRLTABLE:
case CONST_CTRL_TYPE_CTRLSCHEDULE:
case CONST_CTRL_TYPE_CTRLPOD:
case CONST_CTRL_TYPE_CTRLINV:
case CONST_CTRL_TYPE_CTRLSCORETABLE:
case CONST_CTRL_TYPE_GROUP:
case CONST_CTRL_TYPE_CTRLGRID:
case CONST_CTRL_TYPE_INPUTAPPROVAL:
case CONST_CTRL_TYPE_INPUTACTION:
case CONST_CTRL_TYPE_INPUTPAYMENT:
case CONST_CTRL_TYPE_INPUTLOCATION:
case CONST_CTRL_TYPE_INPUTATTACHMENT:
break;
default :
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
break;
}
}
}
});
if(selectedCtrlId == CONST_JUMP_EOF_VAL){
addNode = true;
}
if(addNode || isGrid){
for(var j=i; j>0; j--){
trendsSourceStack[trendsSourceStack.length] = tmp[j-1];
}
}
return addNode;
}
var addQuestiontTrendingDate = function(controls, selectedCtrlId){
var cboTrendingDateQues = $('#editorTrendingDate .editorSelect');
var cboTrendingDateQuesVal = cboTrendingDateQues.val();
cboTrendingDateQues.empty();
cboTrendingDateQues.append('' + lbl_trending_date_default + ' ');
trendsSourceStack = [];
var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, true, false, false, false);
if(end){
for(var j=trendsSourceStack.length; j>0; j--){
cboTrendingDateQues.append(trendsSourceStack[j-1].clone());
}
}
cboTrendingDateQues.val(cboTrendingDateQuesVal);
return end;
};
var addQuestiontKeyFieldFilter = function(controls, selectedCtrlId){
var cboKeyFieldFilterQues = $('#editorKeyFieldFilter .editorSelect');
var cboKeyFieldFilterQuesVal = cboKeyFieldFilterQues.val();
cboKeyFieldFilterQues.empty();
cboKeyFieldFilterQues.append('' + lbl_sel_question + ' ');
trendsSourceStack = [];
var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, false, false, false, false);
if(end){
for(var j=trendsSourceStack.length; j>0; j--){
cboKeyFieldFilterQues.append(trendsSourceStack[j-1].clone());
}
}
cboKeyFieldFilterQues.val(cboKeyFieldFilterQuesVal);
return end;
};
var addQuestiontKeyFieldFilter = function(controls, selectedCtrlId){
var cboKeyFieldFilterQues = $('#editorKeyFieldFilter .editorSelect');
var cboKeyFieldFilterQuesVal = cboKeyFieldFilterQues.val();
cboKeyFieldFilterQues.empty();
cboKeyFieldFilterQues.append('' + lbl_sel_question + ' ');
trendsSourceStack = [];
var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, false, false, false, false);
if(end){
for(var j=trendsSourceStack.length; j>0; j--){
cboKeyFieldFilterQues.append(trendsSourceStack[j-1].clone());
}
}
cboKeyFieldFilterQues.val(cboKeyFieldFilterQuesVal);
return end;
};
var addQuestionToLastEnteredValue = function(controls, selectedCtrlId){
var cboLastEnteredValueQues = $('.lastEnteredValue .editorSelect');
var cboLastEnteredValueQuesVal = cboLastEnteredValueQues.val();
cboLastEnteredValueQues.empty();
cboLastEnteredValueQues.append('' + lbl_sel_question + ' ');
trendsSourceStack = [];
var end = findTrendsSourceCtrlToNode(controls, CONST_JUMP_EOF_VAL, false, false, selectedCtrlId, true);
if(end){
for(var j=trendsSourceStack.length; j>0; j--){
cboLastEnteredValueQues.append(trendsSourceStack[j-1].clone());
}
}
cboLastEnteredValueQues.val(cboLastEnteredValueQuesVal);
return end;
};
addQuestiontTrendingDate(controls, properties.id.value);
addQuestiontKeyFieldFilter(controls, properties.id.value);
addQuestionToLastEnteredValue(controls, properties.id.value);
}
if(type == CONST_CTRL_TYPE_INPUTDATE || type == CONST_CTRL_TYPE_INPUTLOCATION || type == CONST_CTRL_TYPE_INPUT_SHIPPING){
var addQuestionAutoStampTrigger = function(controls, selectedCtrlId){
var cboAutoStampTriggerQues = $('#editorAutoStampTrigger2Ques .editorSelect, li.autoRunQuestionTrigger #property_autoRunQuestionTrigger');
var cboAutoStampTriggerPage = $('#editorAutoStampTrigger4Ques .editorSelect');
var cboAutoStampTriggerQuesVals = [];
var cboAutoStampTriggerPageVals = [];
var i = 0;
if(cboAutoStampTriggerQues.length > 1){
_.each(cboAutoStampTriggerQues, function(item){
cboAutoStampTriggerQuesVals[i] = $(item).val();
i ++;
});
}else{
cboAutoStampTriggerQuesVals[0] = cboAutoStampTriggerQues.val();
}
i = 0;
if(cboAutoStampTriggerPage.length > 1){
_.each(cboAutoStampTriggerPage, function(item){
cboAutoStampTriggerPageVals[i] = $(item).val();
i ++;
});
}else{
cboAutoStampTriggerPageVals[0] = cboAutoStampTriggerPage.val();
}
cboAutoStampTriggerQues.empty();
cboAutoStampTriggerQues.append('' + lbl_sel_question + ' ');
cboAutoStampTriggerPage.empty();
cboAutoStampTriggerPage.append('' + lbl_sel_page + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
//var end = findNode(controls, selectedCtrlId, true);
var end = findNode(controls, selectedCtrlId, false, true);
if(end){
for(var j=stackCount; j>0; j--){
cboAutoStampTriggerQues.append(stack[j-1].clone());
}
for(var j=stackPageCount; j>0; j--){
cboAutoStampTriggerPage.append(stackPage[j-1].clone());
}
}
i = 0;
if(cboAutoStampTriggerQues.length > 1){
_.each(cboAutoStampTriggerQues, function(item){
$(item).val(cboAutoStampTriggerQuesVals[i]);
i ++;
});
}else{
cboAutoStampTriggerQues.val(cboAutoStampTriggerQuesVals[0]);
}
i = 0;
if(cboAutoStampTriggerPage.length > 1){
_.each(cboAutoStampTriggerPage, function(item){
$(item).val(cboAutoStampTriggerPageVals[i]);
i ++;
});
}else{
cboAutoStampTriggerPage.val(cboAutoStampTriggerPageVals[0]);
}
return end;
};
addQuestionAutoStampTrigger(controls, properties.id.value);
}
if(type == CONST_CTRL_TYPE_INPUTNUMBERING){
var addQuestionAutoNumTrigger = function(controls, selectedCtrlId){
var cboAutoStampTriggerQues = $('#editorAutoNumTriggerQues .editorSelect');
var cboAutoStampTriggerPage = $('#editorAutoNumTriggerPages .editorSelect');
var cboAutoStampTriggerQuesVal = cboAutoStampTriggerQues.val();
var cboAutoStampTriggerPageVal = cboAutoStampTriggerPage.val();
cboAutoStampTriggerQues.empty();
cboAutoStampTriggerQues.append('' + lbl_sel_question + ' ');
cboAutoStampTriggerPage.empty();
cboAutoStampTriggerPage.append('' + lbl_sel_page + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
//var end = findNode(controls, selectedCtrlId, true);
var end = findNode(controls, selectedCtrlId, false, true);
if(end){
for(var j=stackCount; j>0; j--){
cboAutoStampTriggerQues.append(stack[j-1].clone());
}
for(var j=stackPageCount; j>0; j--){
cboAutoStampTriggerPage.append(stackPage[j-1].clone());
}
}
cboAutoStampTriggerQues.val(cboAutoStampTriggerQuesVal);
cboAutoStampTriggerPage.val(cboAutoStampTriggerPageVal);
return end;
};
addQuestionAutoNumTrigger(controls, properties.id.value);
}
// function for lookup control
var addCboLookupFillField = function(controls, isRetrieveField, level, isStart_forgrid, isStart_fortable, isStart_forgroup){
var cboLookupFillControl = $('.lookupFillEditorValueField .cboLookupFillField');
var forModifyOnly = false;
// START CO-1739 Add options for modify fields
if(isRetrieveField) {
cboLookupFillControl = $('.lookupRetrieveModifyFieldEditorValueField .cboLookupRetrieveFillField');
if(properties.modifyFieldsAction && properties.modifyFieldsAction.value && properties.modifyFieldsAction.value == 'clear'){
$('.lookupRetrieveModifyFields').find('.clearactionselected').hide();
}
if(cboLookupFillControl.parents('.isModifyOnly').length>0){
forModifyOnly = true;
}
}
// END CO-1739 Add options for modify fields
var cboLookupFillFieldVals = [];
var i =0;
if(level == 0){
if(cboLookupFillControl.length > 1){
_.each(cboLookupFillControl, function(item){
cboLookupFillFieldVals[i] = $(item).val();
i ++;
});
}else{
cboLookupFillFieldVals[0] = cboLookupFillControl.val();
}
}
if(level == 0){
cboLookupFillControl.empty();
cboLookupFillControl.append($(' '));
// CO-1379 When click on question - Add action control and add option constant
if(isRetrieveField) {
var optionRow1 = $(' ')
.attr(CONST_VALUE, CONS_RETRIVE_ACTION_CONSTANT_VALUE)
.addClass('retrieveconstantfields')
.text(CONS_RETRIVE_ACTION_CONSTANT_TEXT).hide();
if(properties.modifyFieldsAction && properties.modifyFieldsAction.value) {
var modifyActionVal = properties.modifyFieldsAction.value;
if(modifyActionVal != CONS_RETRIVE_ACTION_CLEAR_VALUE && modifyActionVal != CONS_RETRIVE_ACTION_REPLACE_VALUE && modifyActionVal != ''){
optionRow1.show();
}
}
cboLookupFillControl.append(optionRow1);
/*cboLookupFillControl.parents('.lookupRetrieveModifyFields').find('.lookupRetrieveModifyFieldsAction').removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);*/
}
// CO-1379 When click on question - Add action control and add option constant
}
var start = false;
if(isStart_forgrid || isStart_fortable || isStart_forgroup){
start = true;
}
if(isRetrieveField) {
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
var parentCtrlType = control.parentCtrlType;
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){
//skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){
//skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){
//skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){
//skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){
//skip = true;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1, false, false, true)){
//skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){
if(addCboLookupFillField(control.children, isRetrieveField, level + 1, false, true, false)){
//skip = false;
start = true;
endOfForm = false;
}
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(!skip){
_.each(control.children, function(itemControlGrid)
{
if(start == false && itemControlGrid.id == properties.id.value){
start = true;
}else{
if (start && itemControlGrid.type != CONST_CTRL_TYPE_GROUP && itemControlGrid.type != CONST_CTRL_TYPE_CTRLTABLE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLSCHEDULE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLPOD && itemControlGrid.type != CONST_CTRL_TYPE_CTRLINV && itemControlGrid.type != CONST_CTRL_TYPE_CTRLSCORETABLE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLGRID){
if (itemControlGrid.type == 'branch'
|| itemControlGrid.type == 'inputPageBreak'
|| itemControlGrid.type == 'inputLabel'
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
|| itemControlGrid.type == 'inputInstruction'
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| itemControlGrid.type == 'inputFacingTable'
|| itemControlGrid.type == 'inputLookupMulti'
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| itemControlGrid.type == 'inputSaveAndSend'
|| itemControlGrid.type == mdi_kind_inputImage
|| itemControlGrid.type == mdi_kind_inputAudio
|| itemControlGrid.type == mdi_kind_inputVideo
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTMEDIA
|| itemControlGrid.type == mdi_kind_inputSketch
|| itemControlGrid.type == mdi_kind_inputSignature
|| itemControlGrid.type == 'inputDraw'
|| itemControlGrid.isRetrieve
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var addOpt = true;
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTACTION && itemControlGrid.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && itemControlGrid.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){
addOpt = false;
}
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}
if(addOpt){
var optName;
if(parentCtrlType == CONST_CTRL_TYPE_GROUP){
optName = '(Repeatable) ' + itemControlGrid.name;
}else if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){
optName = '(Table) ' + itemControlGrid.name;
}else{
optName = itemControlGrid.name;
}
var optionRow = $(' ')
.attr(CONST_VALUE, itemControlGrid.id)
.text(optName);
if(isStart_fortable){
optionRow.attr('data', 'table');
}else if(isStart_forgroup){
optionRow.attr('data', 'repeatable');
}
if(isRetrieveField) {
var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : '';
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
// Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it
optionRow.addClass('modifyaction_numeric').hide();
} else if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) {
// Add modifyaction_date class for datetime options use for "Change Date" action and hide it
optionRow.addClass('modifyaction_date').hide();
} else {
// Add modifyaction_none class for options and hide it
optionRow.addClass('modifyaction_none').hide();
}
switch(actionType) {
case CONS_RETRIVE_ACTION_ADD_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACT_VALUE:
case CONS_RETRIVE_ACTION_ADDDAYS_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE:
if(optionRow[0].className == 'modifyaction_numeric'){
optionRow.show();
}
break;
case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE:
if(optionRow[0].className == 'modifyaction_date'){
optionRow.show();
}
break;
default:
optionRow.show();
break;
}
// CO-2359 Allow calculation in modify field of retrieve widget
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
cboLookupFillControl.append(optionRow);
}
}
// CO-2359 Allow calculation in modify field of retrieve widget
if(itemControlGrid.type != CONST_CTRL_TYPE_INPUTCALCULATE) {
cboLookupFillControl.append(optionRow);
}
}
}
}
}
});
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
//|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
//|| control.type == CONST_CTRL_TYPE_INPUTACTION
|| control.type == 'inputInstruction'
// || control.type == CONST_CTRL_TYPE_INPUTCALCULATE // CO-2359 Allow calculation in modify field of retrieve widget
// || control.type == CONST_CTRL_TYPE_INPUTLOOKUP // CO-3487 Add ability to use lookup control as destination field
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.isRetrieve
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var addOpt = true;
if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && control.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){
addOpt = false;
}
if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}
if(addOpt){
var optName;
if(parentCtrlType == CONST_CTRL_TYPE_GROUP){
optName = '(Repeatable) ' + control.name;
}else if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){
optName = '(Table) ' + control.name;
}else{
optName = control.name;
}
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(optName);
if(isStart_fortable){
optionRow.attr('data', 'table');
}else if(isStart_forgroup){
optionRow.attr('data', 'repeatable');
}
// CO-1379 - Filter question for Fields controls
// Add: numeric fields
// Subtract: numeric fields
// Add days / Subtract days / Change date: date fields
/*
var CONS_RETRIVE_ACTION_CONSTANT_VALUE = 'constant';
var CONS_RETRIVE_ACTION_CONSTANT_TEXT = 'Constant';
var CONS_RETRIVE_ACTION_CLEAR_VALUE = 'clear';
var CONS_RETRIVE_ACTION_CLEAR_TEXT = 'Clear';
var CONS_RETRIVE_ACTION_REPLACE_VALUE = 'replace';
var CONS_RETRIVE_ACTION_REPLACE_TEXT = 'Replace';
var CONS_RETRIVE_ACTION_ADD_VALUE = 'add';
var CONS_RETRIVE_ACTION_ADD_TEXT = 'Add';
var CONS_RETRIVE_ACTION_SUBTRACT_VALUE = 'subtract';
var CONS_RETRIVE_ACTION_SUBTRACT_TEXT = 'Subtract';
var CONS_RETRIVE_ACTION_ADDDAYS_VALUE = 'adddays';
var CONS_RETRIVE_ACTION_ADDDAYS_TEXT = 'Add days';
var CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE = 'subtractdays';
var CONS_RETRIVE_ACTION_SUBTRACTDAYS_TEXT = 'Subtract days';
var CONS_RETRIVE_ACTION_CHANGEDATE_VALUE = 'changedate';
var CONS_RETRIVE_ACTION_CHANGEDATE_TEXT = 'Change date';
*/
if(isRetrieveField) {
var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : '';
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
// Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it
optionRow.addClass('modifyaction_numeric').hide();
} else if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
// Add modifyaction_date class for datetime options use for "Change Date" action and hide it
optionRow.addClass('modifyaction_date').hide();
} else {
// Add modifyaction_none class for options and hide it
optionRow.addClass('modifyaction_none').hide();
}
switch(actionType) {
case CONS_RETRIVE_ACTION_ADD_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACT_VALUE:
case CONS_RETRIVE_ACTION_ADDDAYS_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE:
if(optionRow[0].className == 'modifyaction_numeric'){
optionRow.show();
}
break;
case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE:
if(optionRow[0].className == 'modifyaction_date'){
optionRow.show();
}
break;
default:
optionRow.show();
break;
}
// CO-2359 Allow calculation in modify field of retrieve widget
if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
//if(!(forModifyOnly && parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE)){
cboLookupFillControl.append(optionRow);
//}
}
}
// CO-2359 Allow calculation in modify field of retrieve widget
if(control.type != CONST_CTRL_TYPE_INPUTCALCULATE) {
//if(!(forModifyOnly && parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE)){
cboLookupFillControl.append(optionRow);
//}
}
}
}
}
}
}
});
/*if(isRetrieveField && forModifyOnly) {
conditionStack = [];
conditionStackCount = 0;
var end = findTableFieldForRetrieveModiFy(controls, properties);
if(end){
for(var j=conditionStackCount; j>0; j--){
cboLookupFillControl.append(conditionStack[j-1].clone());
}
}
}*/
// CO-4086 Add user variables as destination field targets start
if(isVersion(VERSION_ADD_USER_VARIABLE_4_DES)){
appendUserVariableWithClass(cboLookupFillControl, CONST_VARIABLE_KIND_EDIT);
}
// CO-4086 Add user variables as destination field targets end
if(level == 0){
if(cboLookupFillControl.length > 1){
i = 0;
_.each(cboLookupFillControl, function(item){
$(item).val(cboLookupFillFieldVals[i]);
i ++;
});
}else{
cboLookupFillControl.val(cboLookupFillFieldVals[0]);
}
cboLookupFillControl.trigger('destination_field_style_change');
if(isRetrieveField) {
var table_id = $($('.propertiesPane .propertyList .cboLookupValue')[0].selectedOptions).attr('data');
if(table_id != undefined){
//cboLookupFillControl.find('option.for_retrieve_modify_only[data="' + table_id + '"]').removeClass('hide_in_modify');
//cboLookupFillControl.find('option.for_retrieve_modify_only[data!="' + table_id + '"]').addClass('hide_in_modify');
};
}
}
// CO-1739 Filter combobox of tablefields
if(isRetrieveField) {
var cboTableFieldsContainer = cboLookupFillControl.parents('.lookupRetrieveModifyFields').find('.cboLookupRetrieveTableField');
cboTableFieldsContainer.find('.tableFieldsOptions').hide();
var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : 'replace';
switch(actionType) {
case CONS_RETRIVE_ACTION_ADD_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACT_VALUE:
cboTableFieldsContainer.find('.' + CONST_KB_TYPE_NO.toLowerCase()).show();
// Only numeric fields
break;
case CONS_RETRIVE_ACTION_ADDDAYS_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE:
// Date:Time fields
cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_LOWERCASE.toLowerCase()).show();
cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE.toLowerCase()).show();
break;
case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE:
// Only Date fields
cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_LOWERCASE.toLowerCase()).show();
break;
break;
default:
cboTableFieldsContainer.find('.tableFieldsOptions').show();
break;
}
}
// CO-1739 Filter combobox of tablefields
return start;
};
// function for action destination field
var addCboActionDestinationFillField = function(controls, ctrlId){
var cboActionDestinationFillControl = $('.actionDestinationFillEditorValueField .cboActionDestinationFillField');
var cboActionDestinationFillFieldVals = [];
var i =0;
if(cboActionDestinationFillControl.length > 1){
_.each(cboActionDestinationFillControl, function(item){
cboActionDestinationFillFieldVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillFieldVals[0] = cboActionDestinationFillControl.val();
}
cboActionDestinationFillControl.empty();
cboActionDestinationFillControl.append($(' '));
destinationFieldStack = [];
destinationFieldStackCount = 0;
findDestinationField(controls, ctrlId, 0, false);
for(var j=destinationFieldStackCount; j>0; j--){
cboActionDestinationFillControl.append(destinationFieldStack[j-1].clone());
}
// CO-4086 Add user variables as destination field targets start
if(isVersion(VERSION_ADD_USER_VARIABLE_4_DES)){
appendUserVariableWithClass(cboActionDestinationFillControl, CONST_VARIABLE_KIND_EDIT);
}
// CO-4086 Add user variables as destination field targets end
if(cboActionDestinationFillControl.length > 1){
i = 0;
_.each(cboActionDestinationFillControl, function(item){
$(item).val(cboActionDestinationFillFieldVals[i]);
i ++;
});
}else{
cboActionDestinationFillControl.val(cboActionDestinationFillFieldVals[0]);
}
};
// function for lookup control
var addCboParseDestinationFiled = function(controls, level, isStart_forgrid){
var cboParseDestinationFiledControl = $('.parseDestinationField .cboParseDestinationFiled');
var cboParseDestinationFiledVals = [];
var i =0;
if(level == 0){
if(cboParseDestinationFiledControl.length > 1){
_.each(cboParseDestinationFiledControl, function(item){
cboParseDestinationFiledVals[i] = $(item).val();
i ++;
});
}else{
cboParseDestinationFiledVals[0] = cboParseDestinationFiledControl.val();
}
}
if(level == 0){
cboParseDestinationFiledControl.empty();
cboParseDestinationFiledControl.append($(' '));
}
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboParseDestinationFiled(control.children, level + 1)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboParseDestinationFiled(control.children, level + 1, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
/*if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
//|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
//|| control.type == CONST_CTRL_TYPE_INPUTACTION
|| control.type == 'inputInstruction'
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{*/
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || (isVersion(VERSION_ADD_LOOKUP_DESTINATION_BARCODE) && control.type == CONST_CTRL_TYPE_INPUTLOOKUP)){
var addOpt = true;
if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && control.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){
addOpt = false;
}
if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}
if(addOpt){
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboParseDestinationFiledControl.append(optionRow);
}
}
}
}
}
});
if(level == 0){
if(cboParseDestinationFiledControl.length > 1){
i = 0;
_.each(cboParseDestinationFiledControl, function(item){
$(item).val(cboParseDestinationFiledVals[i]);
i ++;
});
}else{
cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]);
}
}
return start;
};
// function for text control
var addCboTextParseDestinationFiled = function(controls, level, isStart_forgrid){
var cboParseDestinationFiledControl = $('.textParseDestinationField .cboTextParseDestinationField');
var cboParseDestinationFiledVals = [];
var i =0;
if(level == 0){
if(cboParseDestinationFiledControl.length > 1){
_.each(cboParseDestinationFiledControl, function(item){
cboParseDestinationFiledVals[i] = $(item).val();
i ++;
});
}else{
cboParseDestinationFiledVals[0] = cboParseDestinationFiledControl.val();
}
}
if(level == 0){
cboParseDestinationFiledControl.empty();
cboParseDestinationFiledControl.append($(' '));
}
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboTextParseDestinationFiled(control.children, level + 1)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboTextParseDestinationFiled(control.children, level + 1, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_CTRLTABLE || (isVersion(VERSION_ADD_LOOKUP_DESTINATION_BARCODE) && control.type == CONST_CTRL_TYPE_INPUTLOOKUP)){
var addOpt = true;
if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && control.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){
addOpt = false;
}
if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}
var isTable = false;
if(control.type == CONST_CTRL_TYPE_CTRLTABLE){
isTable = true;
}
if(addOpt){
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name)
.data('data-table', isTable);
cboParseDestinationFiledControl.append(optionRow);
}
}
}
}
}
});
if(level == 0){
if(cboParseDestinationFiledControl.length > 1){
i = 0;
_.each(cboParseDestinationFiledControl, function(item){
$(item).val(cboParseDestinationFiledVals[i]);
i ++;
});
}else{
cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]);
}
cboParseDestinationFiledControl.trigger('show_hide_table_field');
}
return start;
};
// function for lookup control
var addCboParseDestinationFiled4POD = function(controls, ctrlPODId){
var cboParseDestinationFiledControl = $('.parseDestinationField .cboParseDestinationFiled');
var cboParseDestinationFiledVals = [];
if(cboParseDestinationFiledControl.length > 1){
var i =0;
_.each(cboParseDestinationFiledControl, function(item){
cboParseDestinationFiledVals[i] = $(item).val();
i ++;
});
}else{
cboParseDestinationFiledVals[0] = cboParseDestinationFiledControl.val();
}
cboParseDestinationFiledControl.empty();
cboParseDestinationFiledControl.append($(' '));
_.each(controls, function(control)
{
if(ctrlPODId == control.id){
_.each(control.children, function(controlPOD)
{
var optionRow = $(' ')
.attr(CONST_VALUE, controlPOD.id)
.text(controlPOD.name);
cboParseDestinationFiledControl.append(optionRow);
});
}
});
if(cboParseDestinationFiledControl.length > 1){
i = 0;
_.each(cboParseDestinationFiledControl, function(item){
$(item).val(cboParseDestinationFiledVals[i]);
i ++;
});
}else{
cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]);
}
};
if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == 'inputLookupMulti' || type == 'inputFacingTable'){
$this.off('Update-CboLookupFillField').on('Update-CboLookupFillField', function(event){
if(properties.isRetrieve && properties.isRetrieve.value){
addCboLookupFillField(controls, true, 0);
addCboLookupFillField(controls, false, 0);
} else {
addCboLookupFillField(controls, false, 0);
}
}).trigger('Update-CboLookupFillField');
}else if(type == CONST_CTRL_TYPE_CTRLPOD){
addCboPODFillField(controls, properties.id.value);
}
// Fix bug 0022156: Barcode-NFC Parsing : Pls hiding Parse checkbox of NFC
// Fix bug 0022213: Form always waiting when user Open / Open special form
// if(isVersion(VERSION_NFC_BAR_PARSE) && (type == CONST_CTRL_TYPE_INPUTBARCODE || type == CONST_CTRL_TYPE_INPUTNFC)){
if( (isVersion(VERSION_NFC_BAR_PARSE) && type == CONST_CTRL_TYPE_INPUTBARCODE)
|| ( isVersion(VERSION_NFC_PARSE_ONLY) && type == CONST_CTRL_TYPE_INPUTNFC)
|| ( type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH)){
addCboParseDestinationFiled(controls, 0);
}
if( (isVersion(VERSION_TEXT_PARSE) && type == CONST_CTRL_TYPE_INPUT_TEXT) ||
(isVersion(VERSION_BC_LENGTH_PARSE) && type == CONST_CTRL_TYPE_INPUTBARCODE) ||
(isVersion(VERSION_NFC_LENGTH_PARSE) && type == CONST_CTRL_TYPE_INPUTNFC)){
addCboTextParseDestinationFiled(controls, 0);
}
if(isVersion(VERSION_NFC_BAR_PARSE_POD) && type == CONST_CTRL_TYPE_CTRLPOD){
addCboParseDestinationFiled4POD(controls, properties.id.value);
}
// function for lookup control
var addCboLookupSearchField = function(controls, level){
var cboLookupSearchControl = $('.lookupEditorValueField .cboLookupSearchField');
var cboLookupSearchFieldVals = [];
var i =0;
if(level == 0){
if(cboLookupSearchControl.length > 1){
_.each(cboLookupSearchControl, function(item){
cboLookupSearchFieldVals[i] = $(item).val();
i ++;
});
}else{
cboLookupSearchFieldVals[0] = cboLookupSearchControl.val();
}
}
if(level == 0){
cboLookupSearchControl.empty();
cboLookupSearchControl.append($(' '));
}
var start = false;
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboLookupSearchField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTACTION
|| control.type == CONST_CTRL_TYPE_INPUTPAYMENT
|| control.type == 'inputInstruction'
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboLookupSearchControl.append(optionRow);
}
}
}
}
});
if(level == 0){
if(cboLookupSearchControl.length > 1){
i = 0;
_.each(cboLookupSearchControl, function(item){
$(item).val(cboLookupSearchFieldVals[i]);
i ++;
});
}else{
cboLookupSearchControl.val(cboLookupSearchFieldVals[0]);
}
}
return start;
};
if(type == 'inputLookupMulti'){
addCboLookupSearchField(controls, 0);
}
if(type == CONST_CTRL_TYPE_CTRLREPEATABLESUMMARY){
var repeatableID = $('li.repeatable .editorSelect').val();
addCboRepeatableColumnField(controls, repeatableID, 0, false);
}
///////////////////////////////////////////////////////////////
// function for lookup control
var findConditionFieldToNode = function(controls, endId, level){
var addNode = false;
var tmp = [];
var i = 0;
var sameLevel = false;
_.each(controls, function(control)
{
var parentCtrlType = control.parentCtrlType;
var optName;
if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){
optName = '(Table) ' + control.name;
}else{
optName = control.name;
}
if(endId == control.id){
addNode = true;
sameLevel = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findConditionFieldToNode(control.children, endId, level + 1);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findConditionFieldToNode(control.children, endId, level + 1);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findConditionFieldToNode(control.children, endId, level + 1);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findConditionFieldToNode(control.children, endId, level + 1);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findConditionFieldToNode(control.children, endId, level + 1);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(itemControlGrid)
{
var optName;
if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){
optName = '(Table) ' + itemControlGrid.name;
}else{
optName = itemControlGrid.name;
}
if(endId == itemControlGrid.id){
addNode = true;
sameLevel = true;
}
if(addNode){
return false;
}
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!itemControlGrid.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, itemControlGrid.id)
.addClass('optionType_string answerQuestionOptions')// CO-1868
.addClass(parentCtrlType)
.text(optName);
i++;
}
}else if((itemControlGrid.type == 'inputFacingTable'
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUT_TEXT
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTTRENDS
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
// CO-1868
var optionType = 'string';
switch(itemControlGrid.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
default:
optionType = 'string';
break;
}
// START CO-2704: Fix problem with calculation number/string
if(itemControlGrid.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && itemControlGrid.kind == 'String') {
optionType = 'string';
}
// END CO-2704: Fix problem with calculation number/string
if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(itemControlGrid.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
// CO-1868
tmp[i] = $(' ')
.attr(CONST_VALUE, itemControlGrid.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions')
.addClass(parentCtrlType)
.text(optName);
i++;
}
});
//addNode = findConditionFieldToNode(control.children, endId, level + 1, true);
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.addClass('optionType_string answerQuestionOptions')// CO-1868
.addClass(parentCtrlType)
.text(optName);
i++;
}
}else if((control.type == 'inputFacingTable'
|| control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTTRENDS
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
// CO-1868
var optionType = 'string';
switch(control.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
default:
optionType = 'string';
break;
}
// START CO-2704: Fix problem with calculation number/string
if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') {
optionType = 'string';
}
// END CO-2704: Fix problem with calculation number/string
if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(control.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
// CO-1868
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions')
.addClass(parentCtrlType)
.text(optName);
i++;
}
});
/*if(isGridCtrl){
sameLevel = true;
}
if(addNode || isGridCtrl){*/
if(addNode){
if(level == 0 || sameLevel){
for(var j=i; j>0; j--){
conditionStack[conditionStackCount] = tmp[j-1];
conditionStackCount++;
}
}
return addNode;
}else{
return false;
}
}
var addCboLookupConditionField_2_11 = function(controls, level, endId){
var cboLookupConditionField = $('.lookupConditionFieldEditorValueField_2_11 .cboLookupConditionField');
var cboLookupConditionFieldVals = [];
var i =0;
if(level == 0){
if(cboLookupConditionField.length > 1){
_.each(cboLookupConditionField, function(item){
cboLookupConditionFieldVals[i] = $(item).val();
i ++;
});
}else{
cboLookupConditionFieldVals[0] = cboLookupConditionField.val();
}
}
if(level == 0){
cboLookupConditionField.empty();
cboLookupConditionField.append($(' '));
}
conditionStack = [];
conditionStackCount = 0;
var end = findConditionFieldToNode(controls, properties.id.value, 0);
if(end){
for(var j=conditionStackCount; j>0; j--){
cboLookupConditionField.append(conditionStack[j-1].clone());
}
}
if(level == 0){
if(cboLookupConditionField.length > 1){
i = 0;
_.each(cboLookupConditionField, function(item){
$(item).val(cboLookupConditionFieldVals[i]);
i ++;
});
}else{
cboLookupConditionField.val(cboLookupConditionFieldVals[0]);
}
}
};
var addCboLookupConditionField = function(controls, level, endId, isLookupRetrieve){
if(!isVersion2_12()){
addCboLookupConditionField_2_11(controls, level, endId);
return;
}
var cboLookupConditionAnswer = $('.cboLookupConditionAnswer');
//$('.lookupConditionFieldEditorValueField .cboLookupConditionAnswer');
var cboLookupConditionFieldVals = [];
var forModifyOnly = false;
if(cboLookupConditionAnswer.parents('.isModifyOnly').length>0){
forModifyOnly = true;
}
/*var isLookupRetrieve = false;
if(cboLookupConditionAnswer.parents('.inputLookupRetrieve').length>0){
isLookupRetrieve = true;
}*/
var i =0;
if(level == 0){
if(cboLookupConditionAnswer.length > 1){
_.each(cboLookupConditionAnswer, function(item){
cboLookupConditionFieldVals[i] = $(item).val();
i ++;
});
}else{
cboLookupConditionFieldVals[0] = cboLookupConditionAnswer.val();
}
}
if(level == 0){
cboLookupConditionAnswer.empty();
cboLookupConditionAnswer.append($(' '));
}
conditionStack = [];
conditionStackCount = 0;
var end = findConditionFieldToNode(controls, properties.id.value, 0);
if(end){
for(var j=conditionStackCount; j>0; j--){
if(isLookupRetrieve && forModifyOnly && $(conditionStack[j-1]).hasClass(CONST_CTRL_TYPE_CTRLTABLE)){
continue;
}
cboLookupConditionAnswer.append(conditionStack[j-1].clone());
}
}
if(isLookupRetrieve){
conditionStack = [];
conditionStackCount = 0;
var end = findTableFieldForRetrieve(controls);
if(end){
for(var j=conditionStackCount; j>0; j--){
cboLookupConditionAnswer.append(conditionStack[j-1].clone());
}
}
}
if(level == 0){
if(cboLookupConditionAnswer.length > 1){
i = 0;
var lookupConditionFields;
if(properties.isRetrieve && properties.isRetrieve.value){
lookupConditionFields = properties.lookupConditionFields4R;
}else{
lookupConditionFields = properties.lookupConditionFields;
}
_.each(cboLookupConditionAnswer, function(item){
// START CO-2746: Lookup Condition Changes not Sticking
// START CO-2704: Fix problem with calculation number/string
var selectedQuestionID = cboLookupConditionFieldVals[i];
/*
// hqk delete for CO-4909: Lookup condition will not save source field
var selectedQuestionCtrl = odkmaker.data.getCtrlProperties(cboLookupConditionFieldVals[i]);
if(selectedQuestionCtrl && selectedQuestionCtrl.kind == 'Number' && selectedQuestionCtrl.type.toLowerCase() == 'inputcalculate') {
selectedQuestionID = null;
if(lookupConditionFields && lookupConditionFields.value && lookupConditionFields.value[i] && lookupConditionFields.value[i].text && lookupConditionFields.value[i].text.val)
{
lookupConditionFields.value[i].text.val = '';
}
}
// END CO-2704: Fix problem with calculation number/string
*/
// CO-1868
var answerType = (lookupConditionFields.value[i] && lookupConditionFields.value[i].condAnswerType && lookupConditionFields.value[i].condAnswerType.val) ? lookupConditionFields.value[i].condAnswerType.val : '';
var compareType = (lookupConditionFields.value[i] && lookupConditionFields.value[i].condCompareType && lookupConditionFields.value[i].condCompareType.val) ? lookupConditionFields.value[i].condCompareType.val : '';
var objCtrl = $('#underlyingValueEdit_lookupconditionfield__ConditionField' + (i+1));
showHideConditionFollowing(answerType, compareType, objCtrl);
// CO-1868
// CO-1868 Fix underlying value checkbox when open form
// If CompareType is not String or Answer is constant or other question is not select/choose one then hide Underlying
var orderAnswerLUVal = (lookupConditionFields.value[i] && lookupConditionFields.value[i].text) ? lookupConditionFields.value[i].text.val : '';
var selectedControlTemp = getSelectedControl(orderAnswerLUVal);
// if(selectedControl != null){ // CO-1868 Remove selected control checking
var otherSelectedQuestionType = selectedControlTemp ? selectedControlTemp.type : '';
/* if((compareType != 'string') || (otherSelectedQuestionType != CONST_CTRL_TYPE_INPUTSELECTONE) || (answerType == '')) {
$('.lookupConditionFieldEditorValueField .UsingUnderlyValue').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.lookupConditionFieldEditorValueField .txtLookupConditionFieldUsingUnderlyValue').prop('checked', false);
if(lookupConditionFields.value[i] && lookupConditionFields.value[i].usingUnderlyValue) {
lookupConditionFields.value[i].usingUnderlyValue = {
val: false
}
}
} */
// END CO-1868 Fix underlying value checkbox when open form
// END CO-2746: Lookup Condition Changes not Sticking
$(item).val(selectedQuestionID);
i ++;
});
}else{
cboLookupConditionAnswer.val(cboLookupConditionFieldVals[0]);
}
}
};
if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == 'inputFacingTable'){
var isLookupRetrieve = false;
if(properties && properties.isRetrieve){
isLookupRetrieve = properties.isRetrieve.value;
}
addCboLookupConditionField(controls, 0, undefined, isLookupRetrieve);
}
var addCboGpsCompareField = function(controls, level, endId){
var cboGpsCompareField = $('.gpsCompareField .cboGpsCompareField');
var cboGpsCompareFieldVal = '';
var i =0;
if(level == 0){
cboGpsCompareFieldVal = cboGpsCompareField.val();
cboGpsCompareField.empty();
cboGpsCompareField.append($(' '));
}
conditionStack = [];
conditionStackCount = 0;
var end = findConditionFieldToNode(controls, properties.id.value, 0);
if(end){
for(var j=conditionStackCount; j>0; j--){
cboGpsCompareField.append(conditionStack[j-1].clone());
}
}
if(level == 0){
cboGpsCompareField.val(cboGpsCompareFieldVal);
}
};
var addCboGpsDestinationField = function(controls, level, isStart_forgrid){
var cboGpsDestinationField = $('.gpsDestinationField .cboGpsDestinationField');
var cboGpsDestinationFieldVal = '';
var i =0;
if(level == 0){
cboGpsDestinationFieldVal = cboGpsDestinationField.val();
cboGpsDestinationField.empty();
cboGpsDestinationField.append($(' '));
}
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboGpsDestinationField(control.children, level + 1)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboGpsDestinationField(control.children, level + 1, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
|| control.type == 'inputInstruction'
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var addOpt = false;
switch(control.type){
case CONST_CTRL_TYPE_INPUT_NUMERIC:
addOpt = true;
break;
}
/*
var addOpt = true;
if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP){
addOpt = false;
}
if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}*/
if(addOpt){
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboGpsDestinationField.append(optionRow);
}
}
}
}
}
});
if(level == 0){
cboGpsDestinationField.val(cboGpsDestinationFieldVal);
}
return start;
};
var addCboGpsDestinationField4GetAddress = function(controls, level, isStart_forgrid){
var cboGpsDestinationField = $('.gpsDestinationField4GetAddress .cboGpsDestinationField4GetAddress');
var cboGpsDestinationFieldVal = '';
var i =0;
if(level == 0){
cboGpsDestinationFieldVal = cboGpsDestinationField.val();
cboGpsDestinationField.empty();
cboGpsDestinationField.append($(' '));
}
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboGpsDestinationField4GetAddress(control.children, level + 1, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
|| control.type == 'inputInstruction'
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var addOpt = false;
switch(control.type){
case CONST_CTRL_TYPE_INPUT_TEXT:
addOpt = true;
break;
}
if(addOpt){
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboGpsDestinationField.append(optionRow);
}
}
}
}
}
});
if(level == 0){
cboGpsDestinationField.val(cboGpsDestinationFieldVal);
}
return start;
};
if(type == CONST_CTRL_TYPE_INPUTLOCATION){
addCboGpsCompareField(controls, 0);
addCboGpsDestinationField(controls, 0);
addCboGpsDestinationField4GetAddress(controls, 0);
}
var addCboTimeCompareField = function(controls, level, endId){
var cboTimeCompareField = $('.timeCompareField .cboTimeCompareField');
var cboTimeCompareFieldVal = '';
var i =0;
if(level == 0){
cboTimeCompareFieldVal = cboTimeCompareField.val();
cboTimeCompareField.empty();
cboTimeCompareField.append($(' '));
}
inputSourceStack = [];
inputSourceStackCount = 0;
var end = findInputSourceCtrlToNode(controls, properties.id.value, 'Time widget');
if(end){
for(var j=inputSourceStackCount; j>0; j--){
cboTimeCompareField.append(inputSourceStack[j-1].clone());
}
}
if(level == 0){
cboTimeCompareField.val(cboTimeCompareFieldVal);
}
};
var addCboTimeDestinationField = function(controls, level, isStart_forgrid){
var cboTimeDestinationField = $('.timeDestinationField .cboTimeDestinationField');
var cboTimeDestinationFieldVal = '';
var i =0;
if(level == 0){
cboTimeDestinationFieldVal = cboTimeDestinationField.val();
cboTimeDestinationField.empty();
cboTimeDestinationField.append($(' '));
}
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = true;
start = true;
endOfForm = false;
}
}
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboTimeDestinationField(control.children, level + 1)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(addCboTimeDestinationField(control.children, level + 1, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && control.id == properties.id.value){
start = true;
}else{
if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){
if (control.type == 'branch'
|| control.type == 'inputPageBreak'
|| control.type == 'inputLabel'
|| control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY
|| control.type == 'inputInstruction'
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == 'inputFacingTable'
|| control.type == 'inputLookupMulti'
|| control.type == CONST_CTRL_TYPE_INPUTAPPROVAL
|| control.type == 'inputSaveAndSend'
|| control.type == mdi_kind_inputImage
|| control.type == mdi_kind_inputAudio
|| control.type == mdi_kind_inputVideo
|| control.type == CONST_CTRL_TYPE_INPUTMEDIA
|| control.type == mdi_kind_inputSketch
|| control.type == mdi_kind_inputSignature
|| control.type == 'inputDraw'
|| control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){
}else{
var addOpt = false;
switch(control.type){
case CONST_CTRL_TYPE_INPUT_NUMERIC:
addOpt = true;
break;
}
/*
var addOpt = true;
if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP){
addOpt = false;
}
if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
addOpt = false;
}*/
if(addOpt){
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
cboTimeDestinationField.append(optionRow);
}
}
}
}
}
});
if(level == 0){
cboTimeDestinationField.val(cboTimeDestinationFieldVal);
}
return start;
};
if(type == CONST_CTRL_TYPE_INPUTDATE){
addCboTimeCompareField(controls, 0);
addCboTimeDestinationField(controls, 0);
}
var addCboLookupValue = function(controls, level, endId){
var cboLookupValue = $('li.lookupValue .cboLookupValue');
var cboLookupValueVal = cboLookupValue.val();
var forModifyOnly = false;
if(cboLookupValue.parents('.isModifyOnly').length>0){
forModifyOnly = true;
}
if(level == 0){
cboLookupValue.empty();
cboLookupValue.append($(' '));
}
conditionStack = [];
conditionStackCount = 0;
var end = findConditionFieldToNode(controls, properties.id.value, 0);
if(end){
for(var j=conditionStackCount; j>0; j--){
if(forModifyOnly && $(conditionStack[j-1]).hasClass(CONST_CTRL_TYPE_CTRLTABLE)){
continue;
}
cboLookupValue.append(conditionStack[j-1].clone());
}
}
conditionStack = [];
conditionStackCount = 0;
var end = findTableFieldForRetrieve(controls);
if(end){
for(var j=conditionStackCount; j>0; j--){
cboLookupValue.append(conditionStack[j-1].clone());
}
}
if(level == 0){
if($(cboLookupValue[0].selectedOptions).hasClass('for_retrieve_modify_only')){
$('.propertiesPane .propertyList').addClass('isModifyOnly-table');
}else{
$('.propertiesPane .propertyList').removeClass('isModifyOnly-table');
}
var selectedQuestionID = cboLookupValueVal;
var selectedQuestionCtrl = odkmaker.data.getCtrlProperties(cboLookupValueVal);
if(selectedQuestionCtrl && selectedQuestionCtrl.kind == 'Number' && selectedQuestionCtrl.type.toLowerCase() == 'inputcalculate') {
selectedQuestionID = null;
properties.lookupValue.value.val = '';
}
var compareType = (properties.lookupValue && properties.lookupValue.value && properties.lookupValue.value.condCompareType) ? properties.lookupValue.value.condCompareType : '';
var objCtrl = $('li.lookupValue');
showHideLookupValueConditionFollowing(compareType, objCtrl);
cboLookupValue.val(selectedQuestionID);
var selectedOption = cboLookupValue.find('option:selected');
if(selectedOption.length == 0 || selectedOption.css('display') == 'none' || selectedOption.css("visibility") == "hidden"){
properties.lookupValue.value.val = '';
cboLookupValue.val('');
}
}
};
$this.off('Update-CboLookupValue').on('Update-CboLookupValue', function(event){
if(type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value){
addCboLookupValue(controls, 0);
}
}).trigger('Update-CboLookupValue');
ctrlStack = [];
ctrlStackCount = 0;
var findRootTextFieldToNode = function(controls, selectedCtrlId){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
if(selectedCtrlId != undefined){
addNode = findRootTextFieldToNode(control.children, selectedCtrlId);
}
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(controlGrd)
{
if(selectedCtrlId == controlGrd.id){
addNode = true;
}
if(addNode){
return false;
}
if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
});
}else {
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
});
if(selectedCtrlId == undefined){
addNode = true;
}
if(addNode){
for(var j=i; j>0; j--){
ctrlStack[ctrlStackCount] = tmp[j-1];
ctrlStackCount++;
}
}
return addNode;
}
var addCboEmailReportToField = function(controls, level, endId){
var cboEmailToCtrl = $('.emailReportDefault .cboEmailToCtrl');
var cboEmailToCtrlVal = '';
var i =0;
if(level == 0){
cboEmailToCtrlVal = cboEmailToCtrl.val();
}
if(level == 0){
cboEmailToCtrl.empty();
if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){
cboEmailToCtrl.append('' + lbl_select_opt + ' ');
}
}
ctrlStack = [];
ctrlStackCount = 0;
var end = findRootTextFieldToNode(controls, properties.id.value);
if(end){
for(var j=ctrlStackCount; j>0; j--){
cboEmailToCtrl.append(ctrlStack[j-1].clone());
}
}
if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){
cboEmailToCtrl.append($('Other '));
}
if(level == 0){
cboEmailToCtrl.val(cboEmailToCtrlVal);
if(cboEmailToCtrl.val() != cboEmailToCtrlVal){
cboEmailToCtrl.val('').change();
}
}
};
if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
type == CONST_CTRL_TYPE_INPUTFAX ||
type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
addCboEmailReportToField(controls, 0);
}
var addCboForFaxCtrl = function(controls, level){
var cboFaxFromName = $('.propertiesPane .propertyList .from-name');
var cboFaxToName = $('.propertiesPane .propertyList .fax-to-name');
var cboFaxToCompany = $('.propertiesPane .propertyList .fax-to-company');
var cboOptionalMessage = $('.propertiesPane .propertyList .cboOptionalMessage');
var cboFaxFromNameVal = cboFaxFromName.val();
var cboFaxToNameVal = cboFaxToName.val();
var cboFaxToCompanyVal = cboFaxToCompany.val();
var cboOptionalMessageVal = cboOptionalMessage.val();
cboFaxFromName.empty();
cboFaxFromName.append('' + lbl_select_opt + ' ');
cboFaxToName.empty();
cboFaxToName.append('' + lbl_select_opt + ' ');
cboFaxToCompany.empty();
cboFaxToCompany.append('' + lbl_select_opt + ' ');
cboOptionalMessage.empty();
cboOptionalMessage.append('' + lbl_select_opt + ' ');
ctrlStack = [];
ctrlStackCount = 0;
var end = findRootTextFieldToNode(controls, undefined);
if(end){
for(var j=ctrlStackCount; j>0; j--){
cboFaxFromName.append(ctrlStack[j-1].clone());
cboFaxToName.append(ctrlStack[j-1].clone());
cboFaxToCompany.append(ctrlStack[j-1].clone());
cboOptionalMessage.append(ctrlStack[j-1].clone());
}
}
/*if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){
cboFaxFromName.append($('Other '));
}*/
cboFaxFromName.val(cboFaxFromNameVal);
if(cboFaxFromName.val() != cboFaxFromNameVal){
cboFaxFromName.val('').change();
}
cboFaxToName.val(cboFaxToNameVal);
if(cboFaxToName.val() != cboFaxToNameVal){
cboFaxToName.val('').change();
}
cboFaxToCompany.val(cboFaxToCompanyVal);
if(cboFaxToCompany.val() != cboFaxToCompanyVal){
cboFaxToCompany.val('').change();
}
cboOptionalMessage.val(cboOptionalMessageVal);
if(cboOptionalMessage.val() != cboOptionalMessageVal){
cboOptionalMessage.val('').change();
}
};
if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT && properties && properties.isFaxWidget && properties.isFaxWidget.value == true) ||
type == CONST_CTRL_TYPE_INPUTFAX){
addCboForFaxCtrl(controls, 0);
}
var addCboDuplicateCheckField = function(controls, level, endId){
var cboDuplicateCheckField = $('.propertiesPane .propertyList .duplicateCheckField .cboDuplicateCheckField');
var cboDuplicateCheckFieldVal;
var i =0;
if(level == 0){
cboDuplicateCheckFieldVal = cboDuplicateCheckField.val();
}
if(level == 0){
cboDuplicateCheckField.empty();
cboDuplicateCheckField.append($(' '));
}
ctrlStack = [];
ctrlStackCount = 0;
var end = findRootTextFieldToNode(controls, endId);
if(end){
for(var j=ctrlStackCount; j>0; j--){
cboDuplicateCheckField.append(ctrlStack[j-1].clone());
}
}
if(level == 0){
tableFiedStack = [];
tableFiedStackCount = 0;
findTableFields(controls, CONST_STRING_LOWERCASE, endId);
for(var j=tableFiedStackCount; j>0; j--){
cboDuplicateCheckField.append(tableFiedStack[j-1].clone());
}
cboDuplicateCheckField.val(cboDuplicateCheckFieldVal);
}
};
if(type == CONST_CTRL_TYPE_INPUT_TEXT && isVersion(VERSION_DUPLICAT_CHECK)){
addCboDuplicateCheckField(controls, 0, properties.id.value);
}
///////////////////////////////////////////////////////////////
//function for calcualte control
var calStack = [];
var calStackCount = 0;
var calStackFields4Date = [];
var calStackFields4DateCount = 0;
var calStack4Date = [];
var calStackCount4Date = 0;
var findCalculateToNode = function(controls, controlType, endId, isGrid){
var addNode = false;
var tmp = [];
var tmp4Date = [];
var tmpFields4Date = [];
var i = 0;
var k = 0;
var l = 0;
var addNodeToEndOfGroup = false;
var addClass = '';
_.each(controls, function(control)
{
if(endId == control.id){
if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.parentCtrlType == CONST_CTRL_TYPE_GROUP){
addNodeToEndOfGroup = true;
addClass = CONST_CLS_FOR_PREVIOUS_OPT;
}else{
addNode = true;
}
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP && !addNodeToEndOfGroup){
addNode = findCalculateToNode(control.children, controlType, endId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findCalculateToNode(control.children, controlType, endId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findCalculateToNode(control.children, controlType, endId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findCalculateToNode(control.children, controlType, endId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findCalculateToNode(control.children, controlType, endId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
//addNode = findCalculateToNode(control.children, controlType, endId, true);
_.each(control.children, function(controlInGrid){
if(endId == controlInGrid.id){
addNode = true;
}
if(addNode){
return false;
}
if((controlType == 'Number' || controlType == CONST_VALUE_DATE)){
if(controlInGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC || controlInGrid.type == CONST_CTRL_TYPE_INPUTTRENDS){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
k++;
}
if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
k++;
}
if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE
&& controlInGrid.kind != 'String'){ // not use String Cal for Num Cal expression
if(controlInGrid.kind != CONST_VALUE_DATE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
}else{
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
}
}
if(controlInGrid.type == CONST_CTRL_TYPE_INPUTDATE){// && controlInGrid.kind != CONST_VALUE_TIME){
if(controlInGrid.kind == CONST_VALUE_TIME && !isVersion3_2()){
}else{
var className = '';
if(controlInGrid.kind == CONST_VALUE_TIME){
className = 'ctrlTime';
}else if(controlInGrid.kind == CONST_VALUE_DATE){
className = 'ctrlDate';
}else{
className = 'ctrlDateTime';
}
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.addClass(className)
.text(controlInGrid.name);
k++;
tmpFields4Date[l] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.addClass(className)
.text(controlInGrid.name);
l++;
}
}
}else if(controlType == 'String'){
if(controlInGrid.type == CONST_CTRL_TYPE_INPUT_TEXT
|| controlInGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| controlInGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
k++;
}
else if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE){
if(controlInGrid.kind != CONST_VALUE_DATE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
}else{
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.text(controlInGrid.name);
i++;
}
}
else if(controlInGrid.type == CONST_CTRL_TYPE_INPUTDATE){// && controlInGrid.kind != CONST_VALUE_TIME){
if(controlInGrid.kind == CONST_VALUE_TIME && !isVersion3_2()){
}else{
var className = '';
if(controlInGrid.kind == CONST_VALUE_TIME){
className = 'ctrlTime';
}else if(controlInGrid.kind == CONST_VALUE_DATE){
className = 'ctrlDate';
}else{
className = 'ctrlDateTime';
}
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.addClass(className)
.text(controlInGrid.name);
k++;
tmpFields4Date[l] = $(' ').addClass(addClass)
.attr(CONST_VALUE, controlInGrid.id)
.addClass(className)
.text(controlInGrid.name);
l++;
}
}
}
});
}else if((controlType == 'Number' || controlType == CONST_VALUE_DATE)){
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
k++;
}
if(control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
k++;
}
if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE
&& control.kind != 'String'){ // not use String Cal for Num Cal expression
if(control.kind == CONST_CTRL_KIND_NUMBER){
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
k++;
}
if(control.kind != CONST_VALUE_DATE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else{
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
if(control.type == CONST_CTRL_TYPE_INPUTDATE){// && control.kind != CONST_VALUE_TIME){
if(control.kind == CONST_VALUE_TIME && !isVersion3_2()){
}else{
var className = '';
if(control.kind == CONST_VALUE_TIME){
className = 'ctrlTime';
}else if(control.kind == CONST_VALUE_DATE){
className = 'ctrlDate';
}else{
className = 'ctrlDateTime';
}
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.addClass(className)
.text(control.name);
k++;
tmpFields4Date[l] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.addClass(className)
.text(control.name);
l++;
}
}
}else if(controlType == 'String'){
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP
|| control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH
|| control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
k++;
}
else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){
if(control.kind != CONST_VALUE_DATE){
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else{
tmp[i] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
else if(control.type == CONST_CTRL_TYPE_INPUTDATE){// && control.kind != CONST_VALUE_TIME){
if(control.kind == CONST_VALUE_TIME && !isVersion3_2()){
}else{
var className = '';
if(control.kind == CONST_VALUE_TIME){
className = 'ctrlTime';
}else if(control.kind == CONST_VALUE_DATE){
className = 'ctrlDate';
}else{
className = 'ctrlDateTime';
}
tmp4Date[k] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.addClass(className)
.text(control.name);
k++;
tmpFields4Date[l] = $(' ').addClass(addClass)
.attr(CONST_VALUE, control.id)
.addClass(className)
.text(control.name);
l++;
}
}
}
});
if(addNodeToEndOfGroup){
addNode = true;
}
if(addNode || isGrid){
for(var j=i; j>0; j--){
calStack[calStackCount] = tmp[j-1];
calStackCount++;
}
for(var j=l; j>0; j--){
calStackFields4Date[calStackFields4DateCount] = tmpFields4Date[j-1];
calStackFields4DateCount++;
}
for(var j=k; j>0; j--){
calStack4Date[calStackCount4Date] = tmp4Date[j-1];
calStackCount4Date++;
}
return addNode;
}else{
return false;
}
}
var findCalculateSumToNode = function(controls, controlType, endId, canAddNode){
var addNode = false;
var tmp = [];
var i = 0;
var canAddNodeThisLevel = false;
if(!canAddNode){
_.each(controls, function(control)
{
if(endId == control.id){
canAddNodeThisLevel = true;
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(isVersion8_1()){
_.each(control.children, function(controlGrd)
{
if(endId == controlGrd.id){
canAddNodeThisLevel = true;
}
if(canAddNodeThisLevel){
return false;
}
});
}
}
if(canAddNodeThisLevel){
return false;
}
});
}else{
canAddNodeThisLevel = true;
}
_.each(controls, function(control)
{
if(endId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
//addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel);
if(isVersion8_1()){
_.each(control.children, function(controlGrd)
{
if(endId == controlGrd.id){
addNode = true;
}
if(addNode){
return false;
}
if(controlType == 'Number' && (controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC || controlGrd.type == CONST_CTRL_TYPE_INPUTTRENDS || controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE || controlGrd.type == CONST_CTRL_TYPE_INPUTCOUNTER)){
if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == CONST_VALUE_DATE){
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}else{
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}
}else if(controlType == CONST_VALUE_DATE && controlGrd.type == CONST_CTRL_TYPE_INPUTDATE){
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
}
});
}
}else if(controlType == 'Number' && (control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUTCOUNTER)){
if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == CONST_VALUE_DATE){
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else{
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}else if(controlType == CONST_VALUE_DATE && control.type == CONST_CTRL_TYPE_INPUTDATE){
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
});
//if(addNode){
for(var j=i; j>0; j--){
calStack[calStackCount] = tmp[j-1];
calStackCount++;
}
if(addNode){
return true;
}else{
return false;
}
}
var findCalculate4UseCheckList = function(controls, ctrlId, isTable){
var tmp = [];
var i = 0;
if(isTable == true){
tmp = [];
var ctrlInThisTable = false;
_.each(controls, function(control)
{
if(ctrlId == control.id){
ctrlInThisTable = true;
}else{
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text('(Table) ' + control.name);
i++;
}
});
if(ctrlInThisTable == true){
for(var j=i; j>0; j--){
calStack[calStackCount] = tmp[j-1];
calStackCount++;
}
}
return;
}
_.each(controls, function(control)
{
if(ctrlId == control.id){
return false
}
if(calStackCount > 0){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
findCalculate4UseCheckList(control.children, ctrlId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){
findCalculate4UseCheckList(control.children, ctrlId, true);
}
});
}
var getUseChecklistLookupTable = function(controls, ctrlId, isTable){
var lookupTable = '';
if(isTable == true){
var ctrlInThisTable = false;
lookupTable = controls[0].datasource;
_.each(controls, function(control)
{
if(ctrlId == control.id){
ctrlInThisTable = true;
}
});
if(ctrlInThisTable == true){
return lookupTable;
}
return '';
}
_.each(controls, function(control)
{
if(ctrlId == control.id){
return false
}
if(lookupTable != ''){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
lookupTable = getUseChecklistLookupTable(control.children, ctrlId, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){
lookupTable = getUseChecklistLookupTable(control.children, ctrlId, true);
}
});
return lookupTable;
}
var findCalculateCountToNode = function(controls, controlType, endId, canAddNode){
var addNode = false;
var tmp = [];
var i = 0;
var canAddNodeThisLevel = false;
if(!canAddNode){
_.each(controls, function(control)
{
if(endId == control.id){
canAddNodeThisLevel = true;
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(isVersion8_1()){
_.each(control.children, function(controlGrd)
{
if(endId == controlGrd.id){
canAddNodeThisLevel = true;
}
if(canAddNodeThisLevel){
return false;
}
});
}
}
if(canAddNodeThisLevel){
return false;
}
});
}else{
canAddNodeThisLevel = true;
}
_.each(controls, function(control)
{
if(endId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
//addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel);
if(isVersion8_1()){
_.each(control.children, function(controlGrd)
{
if(endId == controlGrd.id){
addNode = true;
}
if(addNode){
return false;
}
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
});
}
}else if(control.type == 'inputLabel' || control.type == CONST_CTRL_TYPE_INPUTACTION || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
}else{
if(canAddNode){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
});
//if(addNode){
for(var j=i; j>0; j--){
calStack[calStackCount] = tmp[j-1];
calStackCount++;
}
if(addNode){
return true;
}else{
return false;
}
}
var addCboOperationField = function(controls, level){
var cboOperationFields = $('.expressionValueField .cboOperationField');
var cboOperationFields4Str = $('.expressionValueField4String .cboOperationField');
var cboOperationFields4Date = $('.expressionValueField4Date .cboOperationField');
var cboOperationField1 = $('.cboOperationField1');
var cboOperationFields4DateStr = $('.expressionValueField4String .cboOperationPartDateStrValue');
var cboOperationFieldVals = [];
var cboOperationFields4StrVal = [];
/*var cboOperationFields4DateStrVal = [];*/
var cboOperationField1Val = [];
var cboOperationFields4DateVal = [];
var i =0;
if(level == 0){
// number kind
if(cboOperationFields.length > 1){
_.each(cboOperationFields, function(item){
cboOperationFieldVals[i] = $(item).val();
i ++;
});
}else{
cboOperationFieldVals[0] = cboOperationFields.val();
}
// string kind
i = 0;
if(cboOperationFields4Str.length > 1){
_.each(cboOperationFields4Str, function(item){
cboOperationFields4StrVal[i] = $(item).val();
i ++;
});
}else{
cboOperationFields4StrVal[0] = cboOperationFields.val();
}
/*i = 0;
if(cboOperationFields4DateStr.length > 1){
_.each(cboOperationFields4DateStr, function(item){
cboOperationFields4DateStrVal[i] = $(item).val();
i ++;
});
}else{
cboOperationFields4DateStrVal[0] = cboOperationFields.val();
}*/
//cboOperationField1Val = cboOperationField1.val();
i = 0;
if(cboOperationField1.length > 1){
_.each(cboOperationField1, function(item){
cboOperationField1Val[i] = $(item).val();
i ++;
});
}else{
cboOperationField1Val[0] = cboOperationField1.val();
}
i = 0;
if(cboOperationFields4Date.length > 1){
_.each(cboOperationFields4Date, function(item){
cboOperationFields4DateVal[i] = $(item).val();
i ++;
});
}else{
cboOperationFields4DateVal[0] = cboOperationFields4Date.val();
}
//cboOperationFields4DateVal = cboOperationFields4Date.val();
}
if(level == 0){
cboOperationFields.empty();
cboOperationFields.append($(' '));
cboOperationFields4Str.empty();
cboOperationFields4Str.append($(' '));
cboOperationFields4Date.empty();
cboOperationFields4Date.append($(' '));
cboOperationField1.empty();
cboOperationField1.append($(' '));
cboOperationFields4DateStr.empty();
cboOperationFields4DateStr.append($('' + lbl_msg_select_date_time_field + ' '));
cboOperationFields4Str.append($('' + lbl_space + ' '));
if(isVersion(VERSION_NEW_FUNCTION_FOR_TEXT_CALCULATE)){
cboOperationFields4Str.append($('' + lbl_mobile_nickname + ' '));
cboOperationFields4Str.append($('' + lbl_mobile_mobile_id + ' '));
// CO-2252 - Add device id option for drop down list
cboOperationFields4Str.append($('' + lbl_device_mobile_id + ' '));
cboOperationFields4Str.append($('' + lbl_device_mobile_email + ' '));
cboOperationFields4Str.append($('' + lbl_web_user_email + ' '));
}
if(properties.showUserVariable == undefined || properties.showUserVariable.value == true){
appendUserVariable(cboOperationFields, cboOperationFields4Str, [cboOperationFields4Date, cboOperationField1]);
}
if(properties.showAccountVariable == undefined || properties.showAccountVariable.value == true){
appendAccountVariable(cboOperationFields, cboOperationFields4Str);
}
if(isVersion(VERSION_TOOL_NEW_JUSTIFICATION)){
cboOperationFields.append($('' + lbl_day_of_month + ' '));
cboOperationFields.append($('' + lbl_week_number + ' '));
cboOperationFields.append($('' + lbl_month_number + ' '));
cboOperationFields.append($('' + lbl_year_number + ' '));
cboOperationFields4Str.append($('' + lbl_day_name + ' '));
cboOperationFields4Str.append($('' + lbl_week_name + ' '));
cboOperationFields4Str.append($('' + lbl_month_name + ' '));
cboOperationFields4Str.append($('' + lbl_year_number + ' '));
}
if(isVersion(VERSION_START_DURATION_OPTION)){
var isShowSchedulerVariable = true;
if(isVersion(VERSION_START_DURATION_OPTION) && !(properties.showSchedulerVariable == undefined || properties.showSchedulerVariable.value == true)){
isShowSchedulerVariable = false;
}else{
if(!authNS.currentUser.DispatchPlus){
isShowSchedulerVariable = false;
}
}
if(isShowSchedulerVariable){
cboOperationFields.append($('' + lbl_dispatch_duration_hour + ' '));
cboOperationFields.append($('' + lbl_dispatch_duration_minute + ' '));
cboOperationFields.append($('' + lbl_dispatch_duration_total_hour + ' '));
cboOperationFields.append($('' + lbl_dispatch_duration_total_minute + ' '));
cboOperationFields4Date.append($('' + lbl_dispatch_start_date + ' '));
cboOperationFields4Date.append($('' + lbl_dispatch_start_time + ' '));
cboOperationFields4Date.append($('' + lbl_dispatch_start_date_time + ' '));
cboOperationField1.append($('' + lbl_dispatch_start_date + ' '));
cboOperationField1.append($('' + lbl_dispatch_start_time + ' '));
cboOperationField1.append($('' + lbl_dispatch_start_date_time + ' '));
}
}
if(isVersion(VERSION_ADD_TRIP_VAIABLES)){
cboOperationFields.append($('' + lbl_last_trip_miles + ' '));
cboOperationFields.append($('' + lbl_last_trip_km + ' '));
cboOperationFields4Str.append($('' + lbl_last_trip_miles + ' '));
cboOperationFields4Str.append($('' + lbl_last_trip_km + ' '));
cboOperationFields4Str.append($('' + lbl_last_trip_start_time + ' '));
cboOperationFields4Str.append($('' + lbl_last_trip_stop_time + ' '));
cboOperationFields4Date.append($('' + lbl_last_trip_start_time + ' '));
cboOperationFields4Date.append($('' + lbl_last_trip_stop_time + ' '));
cboOperationField1.append($('' + lbl_last_trip_miles + ' '));
cboOperationField1.append($('' + lbl_last_trip_km + ' '));
cboOperationField1.append($('' + lbl_last_trip_start_time + ' '));
cboOperationField1.append($('' + lbl_last_trip_stop_time + ' '));
}
}
calStack = [];
calStackCount = 0;
calStackFields4Date = [];
calStackFields4DateCount = 0;
calStack4Date = [];
calStackCount4Date = 0;
var end = findCalculateToNode(controls, properties.kind.value, properties.id.value, false);
if(end){
for(var j=calStackCount; j>0; j--){
cboOperationFields.append(calStack[j-1].clone());
cboOperationFields4Str.append(calStack[j-1].clone());
}
//if(properties.kind.value == 'String'){
for(var j=calStackFields4DateCount; j>0; j--){
cboOperationFields4Str.append(calStackFields4Date[j-1].clone());
}
//}
for(var j=calStackFields4DateCount; j>0; j--){
cboOperationFields4Date.append(calStackFields4Date[j-1].clone());
cboOperationFields4DateStr.append(calStackFields4Date[j-1].clone());
}
for(var j=calStackCount4Date; j>0; j--){
cboOperationField1.append(calStack4Date[j-1].clone());
}
}
if(level == 0){
cboOperationFields.append($('' + lbl_const + ' '));
cboOperationFields.append($('' + lbl_sum + ' '));
cboOperationFields.append($('' + lbl_count + ' '));
cboOperationFields4Str.append($('' + lbl_const + ' '));
cboOperationField1.append($('' + lbl_const + ' '));
cboOperationFields4Date.append($('' + lbl_sum + ' '));
// number kind
if(cboOperationFields.length > 1){
i = 0;
_.each(cboOperationFields, function(item){
$(item).val(cboOperationFieldVals[i]).trigger('change');
i ++;
});
}else{
cboOperationFields.val(cboOperationFieldVals[0]).trigger('change');
}
// string kind
if(cboOperationFields4Str.length > 1){
i = 0;
_.each(cboOperationFields4Str, function(item){
$(item).val(cboOperationFields4StrVal[i]).trigger('change');
i ++;
});
}else{
cboOperationFields4Str.val(cboOperationFields4StrVal[0]).trigger('change');
}
/*if(cboOperationFields4DateStr.length > 1){
i = 0;
_.each(cboOperationFields4DateStr, function(item){
$(item).val(cboOperationFields4DateStrVal[i]).trigger('change');
i ++;
});
}else{
cboOperationFields4DateStr.val(cboOperationFields4DateStrVal[0]).trigger('change');
}*/
//cboOperationField1.val(cboOperationField1Val).trigger('change');
if(cboOperationField1.length > 1){
i = 0;
_.each(cboOperationField1, function(item){
$(item).val(cboOperationField1Val[i]).trigger('change');
i ++;
});
}else{
cboOperationField1.val(cboOperationField1Val[0]).trigger('change');
}
//cboOperationFields4Date.val(cboOperationFields4DateVal).trigger('change');
if(cboOperationFields4Date.length > 1){
i = 0;
_.each(cboOperationFields4Date, function(item){
$(item).val(cboOperationFields4DateVal[i]).trigger('change');
i ++;
});
}else{
cboOperationFields4Date.val(cboOperationFields4DateVal[0]).trigger('change');
}
}
};
var addCboActionDestinationFillValue = function(controls, ctrlId){
var cboActionDestinationFillValue = $('.actionDestinationFillEditorValueField .cboActionDestinationFillValue');
var cboActionDestinationFillOtherValue = $('.actionDestinationFillEditorValueField .cboActionDestinationFillOtherValue');
var cboActionDestinationFillValueVals = [];
var cboActionDestinationFillOtherValueVals = [];
var i =0;
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
cboActionDestinationFillValueVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillValueVals[0] = cboActionDestinationFillValue.val();
}
if(cboActionDestinationFillOtherValue.length > 1){
i = 0;
_.each(cboActionDestinationFillOtherValue, function(item){
cboActionDestinationFillOtherValueVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillOtherValueVals[0] = cboActionDestinationFillOtherValue.val();
}
cboActionDestinationFillValue.empty();
cboActionDestinationFillValue.append($(' '));
cboActionDestinationFillOtherValue.empty();
cboActionDestinationFillOtherValue.append($(' '));
cboActionDestinationFillValue.append($('' + lbl_mobile_nickname + ' '));
cboActionDestinationFillValue.append($('' + lbl_mobile_mobile_id + ' '));
cboActionDestinationFillValue.append($('' + lbl_device_mobile_id + ' '));
cboActionDestinationFillValue.append($('' + lbl_device_mobile_email + ' '));
cboActionDestinationFillValue.append($('' + lbl_web_user_email + ' '));
appendUserVariableWithClass(cboActionDestinationFillValue);
cboActionDestinationFillValue.append($('' + lbl_day_of_month + ' '));
cboActionDestinationFillValue.append($('' + lbl_week_number + ' '));
cboActionDestinationFillValue.append($('' + lbl_month_number + ' '));
cboActionDestinationFillValue.append($('' + lbl_year_number + ' '));
cboActionDestinationFillValue.append($('' + lbl_day_name + ' name '));
cboActionDestinationFillValue.append($('' + lbl_week_name + ' name '));
cboActionDestinationFillValue.append($('' + lbl_month_name + ' name '));
cboActionDestinationFillValue.append($('' + lbl_year_number + ' name '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_duration_hour + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_duration_minute + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_duration_total_hour + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_duration_total_minute + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_start_date + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_start_time + ' '));
cboActionDestinationFillValue.append($('' + lbl_dispatch_start_date_time + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_lat + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_lon + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_speed + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_current_status_duration + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_is_driving + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_vin + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_license_plate + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_license_state + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_vehicle_name + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_vehicle_make + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_vehicle_model + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_vehicle_year + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_current_address + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_odometer + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_engine_hours + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_fuel_level + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_driver_name + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_driver_email + ' '));
cboActionDestinationFillValue.append($('' + lbl_geotab_current_geotab_zone + ' '));
destinationFieldStack = [];
destinationFieldStackCount = 0;
findDestinationField(controls, ctrlId, 0, true);
for(var j=destinationFieldStackCount; j>0; j--){
cboActionDestinationFillValue.append(destinationFieldStack[j-1].clone());
cboActionDestinationFillOtherValue.append(destinationFieldStack[j-1].clone());
}
cboActionDestinationFillValue.append($('' + lbl_const + ' '));
appendDistinationValue4SendRoute();
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
$(item).val(cboActionDestinationFillValueVals[i]).trigger('change');
i ++;
});
}else{
cboActionDestinationFillValue.val(cboActionDestinationFillValueVals[0]).trigger('change');
}
if(cboActionDestinationFillOtherValue.length > 1){
i = 0;
_.each(cboActionDestinationFillOtherValue, function(item){
$(item).val(cboActionDestinationFillOtherValueVals[i]).trigger('change');
i ++;
});
}else{
cboActionDestinationFillOtherValue.val(cboActionDestinationFillOtherValueVals[0]).trigger('change');
}
};
var addCboOperationSumField = function(controls, level){
var cboOperationFields = $('.expressionValueField .cboOperationValue');
var cboOperationFields4Date = $('.expressionValueField4Date .cboOperationValue');
var cboOperationFieldVals = [];
var cboOperationFieldVals4Date = [];
var i =0;
if(level == 0){
if(cboOperationFields.length > 1){
_.each(cboOperationFields, function(item){
cboOperationFieldVals[i] = $(item).val();
i ++;
});
}else{
cboOperationFieldVals[0] = cboOperationFields.val();
}
if(cboOperationFields4Date.length > 1){
_.each(cboOperationFields4Date, function(item){
cboOperationFieldVals4Date[i] = $(item).val();
i ++;
});
}else{
cboOperationFieldVals4Date[0] = cboOperationFields4Date.val();
}
cboOperationFields.empty();
cboOperationFields.append($(' '));
cboOperationFields4Date.empty();
cboOperationFields4Date.append($(' '));
}
calStack = [];
calStackCount = 0;
var end = findCalculateSumToNode(controls, properties.kind.value, properties.id.value, false);
if(end){
for(var j=calStackCount; j>0; j--){
cboOperationFields.append(calStack[j-1].clone());
}
}
/*calStack = [];
calStackCount = 0;
findCalculate4UseCheckList(controls, properties.id.value, false);
if(calStackCount>0){
for(var j=calStackCount; j>0; j--){
cboOperationFields.append(calStack[j-1].clone());
}
}*/
var lookupTable = getUseChecklistLookupTable(controls, properties.id.value, false);
lookupdatainf.appendLookupTableHeaderToCombo(cboOperationFields, lookupTable);
lookupdatainf.appendLookupTableHeaderToCombo(cboOperationFields4Date, lookupTable);
if(level == 0){
if(cboOperationFields.length > 1){
i = 0;
_.each(cboOperationFields, function(item){
$(item).val(cboOperationFieldVals[i]).trigger('change');
i ++;
});
}else{
cboOperationFields.val(cboOperationFieldVals[0]);
}
if(cboOperationFields4Date.length > 1){
i = 0;
_.each(cboOperationFields4Date, function(item){
$(item).val(cboOperationFieldVals4Date[i]).trigger('change');
i ++;
});
}else{
cboOperationFields4Date.val(cboOperationFieldVals4Date[0]);
}
}
};
var addCboOperationCountField = function(controls, level){
var cboOperationFields = $('.expressionValueField .cboOperationCountValue');
var cboOperationFieldVals = [];
var i =0;
if(level == 0){
if(cboOperationFields.length > 1){
_.each(cboOperationFields, function(item){
cboOperationFieldVals[i] = $(item).val();
i ++;
});
}else{
cboOperationFieldVals[0] = cboOperationFields.val();
}
}
if(level == 0){
cboOperationFields.empty();
cboOperationFields.append($(' '));
}
calStack = [];
calStackCount = 0;
var end = findCalculateCountToNode(controls, properties.kind.value, properties.id.value, false);
if(end){
for(var j=calStackCount; j>0; j--){
cboOperationFields.append(calStack[j-1].clone());
}
}
/*calStack = [];
calStackCount = 0;
findCalculate4UseCheckList(controls, properties.id.value, false);
if(calStackCount>0){
for(var j=calStackCount; j>0; j--){
cboOperationFields.append(calStack[j-1].clone());
}
}*/
var lookupTable = getUseChecklistLookupTable(controls, properties.id.value, false);
lookupdatainf.appendLookupTableHeaderToCombo(cboOperationFields, lookupTable);
if(level == 0){
if(cboOperationFields.length > 1){
i = 0;
_.each(cboOperationFields, function(item){
$(item).val(cboOperationFieldVals[i]).trigger('change');
i ++;
});
}else{
cboOperationFields.val(cboOperationFieldVals[0]);
}
}
};
var addCboOperationPartDateField = function(controls, level){
var cboOperationFields = $('.expressionValueField .cboOperationPartDateValue');
var cboOperationFieldVals = [];
var i =0;
if(level == 0){
if(cboOperationFields.length > 1){
_.each(cboOperationFields, function(item){
cboOperationFieldVals[i] = $(item).val();
i ++;
});
}else{
cboOperationFieldVals[0] = cboOperationFields.val();
}
}
if(level == 0){
cboOperationFields.empty();
cboOperationFields.append($('' + lbl_msg_select_date_time_field + ' '));
}
calStack = [];
calStackCount = 0;
calStackFields4Date = [];
calStackFields4DateCount = 0;
calStack4Date = [];
calStackCount4Date = 0;
var end = findCalculateToNode(controls, properties.kind.value, properties.id.value, false);
if(end){
for(var j=calStackFields4DateCount; j>0; j--){
cboOperationFields.append(calStackFields4Date[j-1].clone());
}
}
if(level == 0){
if(cboOperationFields.length > 1){
i = 0;
_.each(cboOperationFields, function(item){
$(item).val(cboOperationFieldVals[i]).trigger('change');
i ++;
});
}else{
cboOperationFields.val(cboOperationFieldVals[0]);
}
}
};
if(type == CONST_CTRL_TYPE_INPUTCALCULATE){
$this.off('inputCalculate_kind_change_update').on('inputCalculate_kind_change_update', function(event){
var controlsTmp = extractRecurse($('.workspace:visible'), '');
addCboOperationField(controlsTmp, 0);
addCboOperationSumField(controlsTmp, 0);
addCboOperationCountField(controlsTmp, 0);
addCboOperationPartDateField(controlsTmp, 0);
}).trigger('inputCalculate_kind_change_update');
$this.off('inputCalculate_variable_change_update').on('inputCalculate_variable_change_update', function(event){
var controlsTmp = extractRecurse($('.workspace:visible'), '');
addCboOperationField(controlsTmp, 0);
});
}
if((isVersion(VERSION_ACTION_SET_DESTINATION_FIELD) && type == CONST_CTRL_TYPE_INPUTACTION) ||
(isVersion(VERSION_RETRIEVE_MODIFY_SET_DESTINATION_FIELD) &&
type == CONST_CTRL_TYPE_INPUTLOOKUP &&
properties.isRetrieve &&
properties.isRetrieve.value == true)){
addCboActionDestinationFillField(controls, properties.id.value);
addCboActionDestinationFillValue(controls, properties.id.value);
var $actionDestinationFillValue = $('.propertyList:visible').find('.actionDestinationFillEditorValueField');
$actionDestinationFillValue.find('.cboActionDestinationFillField').trigger('change');
}
// CO-4087 Add Get address option to GPS location start
loadLocationDestinationData(controls, properties);
loadAddressData(controls, properties);
// CO-4087 Add Get address option to GPS location end
// CO-4485: Shippo Integration start
loadShippingCombo(controls, properties);
loadShippingDestinationCombo(controls, properties);
// CO-4485: Shippo Integration end
// CO-4561 Add Audit action to Action button start
loadAuditInputQuestion(controls, properties);
loadAuditDataLookup(controls, properties);
loadAuditDestinationQuestion(controls, properties);
// CO-4561 Add Audit action to Action button end
// CO-4896: Add auto stamp image fields start
loadImageAutoStampQuestion(controls, properties);
// CO-4896: Add auto stamp image fields end
// CO-4789:Add Retrieve form actions to action button start
loadActionCloseNRetrieveCbo(controls, properties);
// CO-4789:Add Retrieve form actions to action button end
// CO-4022: Hide if start
var addCboHideIfField = function(controls, ctrlId){
var cboControl = $('.hideIfField .cboHideIfField');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
allControlStack = [];
allControlStackCount = 0;
findAllControl(controls, ctrlId);
for(var j=allControlStackCount; j>0; j--){
cboControl.append(allControlStack[j-1].clone());
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
i ++;
});
}else{
cboControl.val(cboVals[0]);
}
};
if(isVersion(VERSION_HIDE_IF)){
addCboHideIfField(controls, properties.id.value);
}
// CO-4022: Hide if end
// CO-4098 Add route functions to action button start
var addCboRouteField = function(controls, ctrlId){
var cboControl = $('.routeField .cboRouteStop, .routeEditor .cboRouteStart');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
cboControl.append($('Current location '));
appendUserVariable(undefined, cboControl, undefined);
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = {kind: CONST_CTRL_KIND_STRING};
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOCATION] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
i ++;
});
}else{
cboControl.val(cboVals[0]);
}
};
var addCboRouteDistanceField = function(controls, ctrlId){
var cboControl = $('.routeDistance .routeDistanceField .editorSelect');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
//acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
if($(item).val() != cboVals[i]){
$(item).val('').change();
}
i ++;
});
}else{
cboControl.val(cboVals[0]);
if(cboControl.val() != cboVals[0]){
cboControl.val('').change();
}
}
};
var addCboRouteTravelTimeField = function(controls, ctrlId){
var cboControl = $('.routeTravelTime .routeTravelTimeField .editorSelect');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
//acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
if($(item).val() != cboVals[i]){
$(item).val('').change();
}
i ++;
});
}else{
cboControl.val(cboVals[0]);
if(cboControl.val() != cboVals[0]){
cboControl.val('').change();
}
}
};
var addCboRouteMapField = function(controls, ctrlId){
var cboControl = $('.routeMap #property_routeMap');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUTIMAGE] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
if($(item).val() != cboVals[i]){
$(item).val('').change();
}
i ++;
});
}else{
cboControl.val(cboVals[0]);
if(cboControl.val() != cboVals[0]){
cboControl.val('').change();
}
}
};
var addCboArrivalTimeField = function(controls, ctrlId){
var cboControl = $('.arrivalTime #property_arrivalTime');
var cboVals = [];
var i =0;
if(cboControl.length > 1){
_.each(cboControl, function(item){
cboVals[i] = $(item).val();
i ++;
});
}else{
cboVals[0] = cboControl.val();
}
cboControl.empty();
cboControl.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTDATE] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
if(cboControl.length > 1){
i = 0;
_.each(cboControl, function(item){
$(item).val(cboVals[i]);
if($(item).val() != cboVals[i]){
$(item).val('').change();
}
i ++;
});
}else{
cboControl.val(cboVals[0]);
if(cboControl.val() != cboVals[0]){
cboControl.val('').change();
}
}
};
//if(isVersion(VERSION_GOOGLE_MAP_ROUTES)){
addCboRouteField(controls, undefined);
addCboRouteDistanceField(controls, undefined);
addCboRouteTravelTimeField(controls, undefined);
addCboRouteMapField(controls, undefined);
addCboArrivalTimeField(controls, undefined);
//}
// CO-4098 Add route functions to action button end
if(type == CONST_CTRL_TYPE_GROUP){
var addQuestionToRepeatSourceCbo = function(controls, selectedCtrlId){
var cboRepeatSource = $('.repValSourceEditor .editorSelect');
var cboRepeatSourceVal = cboRepeatSource.val();
cboRepeatSource.empty();
// Fix bug 0019233: Should display text '- Select - ' as default in drop down list
// We will use '- Select a question -' instead of '- Select -'
cboRepeatSource.append('' + lbl_sel_question + ' ');
repeatSourceStack = [];
var end = findRepeatSourceCtrlToNode(controls, selectedCtrlId);
if(end){
for(var j=repeatSourceStack.length; j>0; j--){
cboRepeatSource.append(repeatSourceStack[j-1].clone());
}
}
cboRepeatSource.val(cboRepeatSourceVal);
return end;
};
repeatSourceStack = [];
var findRepeatSourceCtrlToNode = function(controls, selectedCtrlId, isGrid){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId, true);
}else {
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){
if(control.kind != undefined && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
});
if(addNode || isGrid){
for(var j=i; j>0; j--){
repeatSourceStack[repeatSourceStack.length] = tmp[j-1];
}
}
return addNode;
}
$('.repValSourceEditor')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToRepeatSourceCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
};
if(type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE || type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV){
var addQuestionToRowSourceCbo = function(controls, selectedCtrlId){
var cboRowSource = $('.rowValSourceEditor .editorSelect');
var cboRowSourceVal = cboRowSource.val();
cboRowSource.empty();
cboRowSource.append('' + lbl_sel_question + ' ');
rowSourceStack = [];
var end = findRowSourceCtrlToNode(controls, selectedCtrlId);
if(end){
for(var j=rowSourceStack.length; j>0; j--){
cboRowSource.append(rowSourceStack[j-1].clone());
}
}
cboRowSource.val(cboRowSourceVal);
return end;
};
rowSourceStack = [];
var findRowSourceCtrlToNode = function(controls, selectedCtrlId, isGrid){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId, true);
}else {
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){
if(control.kind != undefined && control.kind == 'Number'){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
});
if(addNode || isGrid){
for(var j=i; j>0; j--){
rowSourceStack[rowSourceStack.length] = tmp[j-1];
}
}
return addNode;
}
$('.rowValSourceEditor')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToRowSourceCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
};
transStack = [];
var findTransCtrlToNode = function(controls, selectedCtrlId, type, isGrid){
var isSchedule = false;
if(type && type.myIncludes('_schedule')){
isSchedule = true;
type = type.replace('_schedule', '');
}
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
if(isSchedule){
findTransCtrlToNode(control.children, selectedCtrlId, type + '_schedule', true);
}
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
if(type == CONST_CONTAINER_TYPE_REPEAT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(control.type == CONST_CTRL_TYPE_CTRLTABLE && type == CONST_CONTAINER_TYPE_REPEAT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type, true);
}else {
if(type == 'Amount_INT'){
if(/*(control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||*/
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) ||
(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != CONST_CTRL_KIND_DECIMAL && control.kind != CONST_CTRL_KIND_PERCENT) ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Amount'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Subtotal'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Tax'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Description'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String') ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Memo'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Name'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Phone'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != CONST_CTRL_KIND_DATE) ||
(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != 'Decimal')){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'ReceiptEmail'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
control.type == CONST_CTRL_TYPE_INPUTFAX ||
control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Email'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
control.type == CONST_CTRL_TYPE_INPUTFAX ||
control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Invoice'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTNUMBERING){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == CONST_DISPATCHSTATUS){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTDATE ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind !== CONST_VALUE_DATE) ||
control.type == CONST_CTRL_TYPE_INPUTSELECTONE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Date'){
if(isSchedule){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind != CONST_VALUE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else{
if(control.type == CONST_CTRL_TYPE_INPUTDATE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}else if(type == 'Date Time'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == CONST_TYPE_STATUS_TEXT){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && (control.kind == CONST_CTRL_KIND_STRING || control.kind == CONST_CTRL_KIND_NUMBER))){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == CONST_TYPE_TEXT){
if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == CONST_CONTAINER_TYPE_REPEAT){
//ignore question
/*tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;*/
}else if(type == CONST_TYPE_TEXT_WIDGET){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind === 'String')){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
});
if(addNode || isGrid){
for(var j=i; j>0; j--){
transStack[transStack.length] = tmp[j-1];
}
}
return addNode;
}
transResultStack = [];
var findResultCtrlFromNode = function(controls, selectedCtrlId, type, isStart_forgrid){
var addNode = false;
var tmp = [];
var i = 0;
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && selectedCtrlId == control.id){
start = true;
}else{
if(start){
if(type == 'Amount'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
//control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Result'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Trxid'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'AmountCharged'){
if((control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind == 'Decimal') ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'TotalAmountPaid'){
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
/*control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||*/
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'TransactionClientId'){
if(/*control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||*/
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
}
}
});
if(start){
for(var j=i; j>0; j--){
transResultStack[transResultStack.length] = tmp[j-1];
}
}
return start;
}
/*
*Action button property name: “ProPay Amount”
*/
var addQuestionToPP_AmountCbo = function(controls, selectedCtrlId, properties){
var cboPP_Amount = $('#editor_imgActionParamPP_Amount .editorSelect');
var cboPP_AmountVal = cboPP_Amount.val();
cboPP_Amount.empty();
cboPP_Amount.append('' + lbl_paypro_amount_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Amount');
for(var j=transStack.length; j>0; j--){
cboPP_Amount.append(transStack[j-1].clone());
}
cboPP_Amount.val(cboPP_AmountVal);
cboPP_Amount.trigger('change');
};
/*
*Action button property name: “ProPay Invoice”
*/
var addQuestionToPP_InvoiceCbo = function(controls, selectedCtrlId){
var cboPP_Invoice = $('#editor_imgActionParamPP_Invoice .editorSelect');
var cboPP_InvoiceVal = cboPP_Invoice.val();
cboPP_Invoice.empty();
cboPP_Invoice.append('' + lbl_paypro_invoice_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Invoice');
for(var j=transStack.length; j>0; j--){
cboPP_Invoice.append(transStack[j-1].clone());
}
cboPP_Invoice.val(cboPP_InvoiceVal);
cboPP_Invoice.trigger('change');
};
/*
*Action button property name: “ProPay amount charged”
*/
var addQuestionToPP_AmountChargedCbo = function(controls, selectedCtrlId){
var cboPP_AmountCharged = $('#property_amountCharged');
var cboPP_AmountChargedVal = cboPP_AmountCharged.val();
cboPP_AmountCharged.empty();
cboPP_AmountCharged.append('' + lbl_paypro_amount_charged_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'AmountCharged');
for(var j=transResultStack.length; j>0; j--){
cboPP_AmountCharged.append(transResultStack[j-1].clone());
}
cboPP_AmountCharged.val(cboPP_AmountChargedVal);
cboPP_AmountCharged.trigger('change');
};
/*
*Action button property name: “MiPos tax”
*/
var addQuestionToMP_TaxCbo = function(controls, selectedCtrlId, properties){
var cboMP_Tax = $('#property_imgActionParamMP_Tax');
var cboMP_TaxVal = cboMP_Tax.val();
cboMP_Tax.empty();
cboMP_Tax.append('' + lbl_paypro_amount_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Tax');
for(var j=transStack.length; j>0; j--){
cboMP_Tax.append(transStack[j-1].clone());
}
cboMP_Tax.val(cboMP_TaxVal);
cboMP_Tax.trigger('change');
};
/*
*Action button property name: “MiPos Description”
*/
var addQuestionToMP_DescriptionCbo = function(controls, selectedCtrlId, properties){
var cboMP_Description = $('#property_imgActionParamMP_Description');
var cboMP_DescriptionVal = cboMP_Description.val();
cboMP_Description.empty();
cboMP_Description.append('' + lbl_paypro_amount_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Description');
for(var j=transStack.length; j>0; j--){
cboMP_Description.append(transStack[j-1].clone());
}
cboMP_Description.val(cboMP_DescriptionVal);
cboMP_Description.trigger('change');
};
/*
*Action button property name: “Square Total amount paid”
*/
var addQuestionToSquare_TotalAmountPaidCbo = function(controls, selectedCtrlId){
var cboSquare_TotalAmountPaid = $('#property_totalAmountPaid');
var cboSquare_TotalAmountPaidVal = cboSquare_TotalAmountPaid.val();
cboSquare_TotalAmountPaid.empty();
cboSquare_TotalAmountPaid.append('' + lbl_square_total_amount_paid_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'TotalAmountPaid');
for(var j=transResultStack.length; j>0; j--){
cboSquare_TotalAmountPaid.append(transResultStack[j-1].clone());
}
cboSquare_TotalAmountPaid.val(cboSquare_TotalAmountPaidVal);
cboSquare_TotalAmountPaid.trigger('change');
};
/*
*Action button property name: “Transaction client id”
*/
var addQuestionToSquare_TransactionClientIdCbo = function(controls, selectedCtrlId){
var cboSquare_TransactionClientId = $('#property_transactionClientId');
var cboSquare_TransactionClientIdVal = cboSquare_TransactionClientId.val();
cboSquare_TransactionClientId.empty();
cboSquare_TransactionClientId.append('' + lbl_square_total_amount_paid_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'TransactionClientId');
for(var j=transResultStack.length; j>0; j--){
cboSquare_TransactionClientId.append(transResultStack[j-1].clone());
}
cboSquare_TransactionClientId.val(cboSquare_TransactionClientIdVal);
cboSquare_TransactionClientId.trigger('change');
};
/*
*Action button property name: “ProPay Email”
*/
var addQuestionToPP_EmailCbo = function(controls, selectedCtrlId){
var cboPP_Email = $('#editor_imgActionParamPP_Email .editorSelect');
var cboPP_EmailVal = cboPP_Email.val();
cboPP_Email.empty();
cboPP_Email.append('' + lbl_paypro_email_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Email');
for(var j=transStack.length; j>0; j--){
cboPP_Email.append(transStack[j-1].clone());
}
cboPP_Email.val(cboPP_EmailVal);
cboPP_Email.trigger('change');
};
/*
*Action button property name: “MiPOS result combo”
*/
var addTextQuestionToDestinationCbo = function(cbo, controls, selectedCtrlId){
var cboVal = cbo.val();
cbo.empty();
cbo.append('' + lbl_select_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'Result');
for(var j=transResultStack.length; j>0; j--){
cbo.append(transResultStack[j-1].clone());
}
cbo.val(cboVal);
cbo.trigger('change');
};
if(type == CONST_CTRL_TYPE_INPUTGEOFENCE){
var addQuestionToGeoFenceCbo = function(controls, selectedCtrlId){
var cboDescriptionQuestion = $('li.descriptionQuestion .editorSelect');
var cboAddressQuestion = $('li.addressQuestion .editorSelect');
if(cboDescriptionQuestion.length > 0 || cboAddressQuestion.length > 0){
var cboDescriptionQuestionVal = cboDescriptionQuestion.val();
var cboAddressQuestionVal = cboAddressQuestion.val();
cboDescriptionQuestion.empty();
cboDescriptionQuestion.append('' + lbl_select_opt + ' ');
cboAddressQuestion.empty();
cboAddressQuestion.append('' + lbl_select_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Text widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboDescriptionQuestion.append(inputSourceStack[j-1].clone());
cboAddressQuestion.append(inputSourceStack[j-1].clone());
}
cboDescriptionQuestion.val(cboDescriptionQuestionVal);
cboDescriptionQuestion.trigger('change');
cboAddressQuestion.val(cboAddressQuestionVal);
cboAddressQuestion.trigger('change');
}
var cboLatQuestion = $('li.latQuestion .editorSelect');
var cboLonQuestion = $('li.lonQuestion .editorSelect');
var cboDurationMinQuestion = $('li.durationMinutesDes .editorSelect');
if(cboLatQuestion.length > 0 || cboLonQuestion.length > 0 || cboDurationMinQuestion.length > 0){
var cboLatQuestionVal = cboLatQuestion.val();
var cboLonQuestionVal = cboLonQuestion.val();
var cboDurationMinVal = cboDurationMinQuestion.val();
cboLatQuestion.empty();
cboLatQuestion.append('' + lbl_select_opt + ' ');
cboLonQuestion.empty();
cboLonQuestion.append('' + lbl_select_opt + ' ');
cboDurationMinQuestion.empty();
cboDurationMinQuestion.append('' + lbl_select_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Numeric widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboLatQuestion.append(inputSourceStack[j-1].clone());
cboLonQuestion.append(inputSourceStack[j-1].clone());
cboDurationMinQuestion.append(inputSourceStack[j-1].clone());
}
cboLatQuestion.val(cboLatQuestionVal);
cboLatQuestion.trigger('change');
cboLonQuestion.val(cboLonQuestionVal);
cboLonQuestion.trigger('change');
cboDurationMinQuestion.val(cboDurationMinVal);
cboDurationMinQuestion.trigger('change');
}
var cboArrivedTimeDes = $('li.arrivedTimeDes .editorSelect');
var cboDepartedTimeDes = $('li.departedTimeDes .editorSelect');
if(cboArrivedTimeDes.length > 0 || cboDepartedTimeDes.length > 0){
var cboArrivedTimeDesVal = cboArrivedTimeDes.val();
var cboDepartedTimeDesVal = cboDepartedTimeDes.val();
cboArrivedTimeDes.empty();
cboArrivedTimeDes.append('' + lbl_select_opt + ' ');
cboDepartedTimeDes.empty();
cboDepartedTimeDes.append('' + lbl_select_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'DateTime widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboArrivedTimeDes.append(inputSourceStack[j-1].clone());
cboDepartedTimeDes.append(inputSourceStack[j-1].clone());
}
cboArrivedTimeDes.val(cboArrivedTimeDesVal);
cboArrivedTimeDes.trigger('change');
cboDepartedTimeDes.val(cboDepartedTimeDesVal);
cboDepartedTimeDes.trigger('change');
}
};
$('ul.propertyList.inputGeofence').off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToGeoFenceCbo(controls, properties.id.value);
}).trigger('InputSourceChange');
}
if(type == CONST_CTRL_TYPE_INPUTACTION){
var addQuestionToJumpCbo = function(controls, selectedCtrlId, autoActionStampTrigger4Retrieve){
var cboAutoActionStampTrigger = $('#editorAutoActionStampTrigger .editorSelect'); // CO-2254 - Add question into dropdownlist
var cboActionParamQues = $('#editorActionParamQues .editorSelect');
var cboPrintFields = $('.cboPrintField');
var cboPrintFiles = $('.cboPrintFile');
var cboActionParamPage = $('#editorActionParamPage .editorSelect');
var cboActionParamPrintPage = $('#editorActionParamPrintPage .editorSelect');
var cboAutoActionStampTriggerVal = cboAutoActionStampTrigger.val(); // CO-2254 - Add question into dropdownlist
var cboActionParamQuesVal = cboActionParamQues.val();
var cboPrintFieldVals = [];
var cboPrintFileVals = [];
for(var i = 0; i' + lbl_sel_question + ''); // CO-2254 - Add question into dropdownlist
cboActionParamQues.empty();
cboActionParamQues.append('' + lbl_sel_question + ' ');
cboPrintFields.empty();
cboPrintFields.append('' + lbl_sel_question + ' ');
cboPrintFiles.empty();
cboPrintFiles.append('' + lbl_sel_question + ' ');
cboActionParamPage.empty();
cboActionParamPage.append('' + lbl_sel_page + ' ');
cboActionParamPrintPage.empty();
cboActionParamPrintPage.append('' + lbl_sel_page_all + ' ');
if(isVersion(VERSION_ADD_OPTION_JTP)){
cboActionParamPage.append('' + lbl_sel_page_first + ' ');
cboActionParamPage.append('' + lbl_sel_page_top + ' ');
cboActionParamPage.append('' + lbl_sel_page_prev + ' ');
cboActionParamPage.append('' + lbl_sel_page_next + ' ');
cboActionParamPage.append('' + lbl_sel_page_bottom + ' ');
cboActionParamPage.append('' + lbl_sel_page_last + ' ');
}
stack = [];
stackPage = [];
stackTable = [];
stackCount = 0;
stackPageCount = 0;
stackTableCount = 0;
var end = findNode(controls, selectedCtrlId);
if(end){
for(var j=stackCount; j>0; j--){
cboActionParamQues.append(stack[j-1].clone());
cboPrintFields.append(stack[j-1].clone());
cboPrintFiles.append(stack[j-1].clone());
if(!autoActionStampTrigger4Retrieve || autoActionStampTrigger4Retrieve == false){
cboAutoActionStampTrigger.append(stack[j-1].clone()); // CO-2254 - Add question into dropdownlist
}
}
for(var j=stackTableCount; j>0; j--){
cboPrintFields.append(stackTable[j-1].clone());
}
cboPrintFields.append('Blank ');
for(var j=stackPageCount; j>0; j--){
cboActionParamPage.append(stackPage[j-1].clone());
cboActionParamPrintPage.append(stackPage[j-1].clone());
}
}
if(autoActionStampTrigger4Retrieve == true){
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = {isRetrieve: true};
var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboAutoActionStampTrigger.append(stack[j-1].clone());
}
}
}
cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal); // CO-2254 - Add question into dropdownlist
cboActionParamQues.val(cboActionParamQuesVal);
for(var i = 0; i')
.attr(CONST_VALUE, controlGrd.id)
.text(controlGrd.name);
i++;
}
});
}else{
if(acceptCtrlList && !acceptCtrlList[control.type]){
}else{
if(parentPath == path){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
});
for(var j=i; j>0; j--){
stack[stackCount] = tmp[j-1];
stackCount++;
}
return true;
}
var addQuestionToJumpCboForOnClick = function(controls, actionProperties){
var cboActionParamQues = $('#editorActionParamQues .editorSelect');
var cboActionParamQuesVal = cboActionParamQues.val();
cboActionParamQues.empty();
cboActionParamQues.append('' + lbl_sel_question + ' ');
var selectedCtrlId = actionProperties.id.value;
stack = [];
stackCount = 0;
var path = '/data';
var itemPath = getControlXPath(controls, "/data/", selectedCtrlId);
var parentPath = '';
if(actionProperties.id.isInsideTheButtonGrid || actionProperties.id.isInsideTheGrid){
parentPath = '/data';
}else{
parentPath = itemPath.substr(0, itemPath.lastIndexOf("/"));
}
var end = findNodeForOnclick(controls, selectedCtrlId, path, parentPath, {inputText:true});
if(end){
for(var j=stackCount; j>0; j--){
cboActionParamQues.append(stack[j-1].clone());
}
}
cboActionParamQues.val(cboActionParamQuesVal);
return end;
};
var addQuestionToLocationCbo = function(controls, selectedCtrlId, inputSource){
var cboActionParamMapLatLongParam = $('#editorActionParamMapLatLongParam .editorSelect');
var cboActionParamMapLatLongParamVal = cboActionParamMapLatLongParam.val();
cboActionParamMapLatLongParam.empty();
cboActionParamMapLatLongParam.append('' + lbl_sel_map_lat_long_param_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboActionParamMapLatLongParam.append(inputSourceStack[j-1].clone());
}
cboActionParamMapLatLongParam.val(cboActionParamMapLatLongParamVal);
cboActionParamMapLatLongParam.trigger('change');
};
var addQuestionToOpenWebPageCbo = function(controls, selectedCtrlId){
var cboOpenWebPage = $('#editorImgOpenWebPageQues .editorSelect');
var cboOpenWebPageVal = cboOpenWebPage.val();
cboOpenWebPage.empty();
if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){
cboOpenWebPage.append('' + lbl_select_opt + ' ');
}
inputSourceStack = [];
inputSourceStackCount = 0;
findInputSourceCtrlToNode(controls, selectedCtrlId, 'Text widget');
for(var j=inputSourceStackCount; j>0; j--){
cboOpenWebPage.append(inputSourceStack[j-1].clone());
}
if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){
cboOpenWebPage.append('' + lbl_const + ' ');
}
cboOpenWebPage.val(cboOpenWebPageVal);
cboOpenWebPage.trigger('change');
};
/*
*Action button property name: “Transaction Amount”
*Type: Numeric Decimal
*Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid).
*/
var addQuestionToCCP_TransAmountCbo = function(controls, selectedCtrlId){
var cboCCP_TransAmount = $('#editorActionParamCCP_TransAmount .editorSelect');
var cboCCP_TransAmountVal = cboCCP_TransAmount.val();
cboCCP_TransAmount.empty();
cboCCP_TransAmount.append('' + lbl_ccp_transaction_amount_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Amount');
for(var j=transStack.length; j>0; j--){
cboCCP_TransAmount.append(transStack[j-1].clone());
}
cboCCP_TransAmount.val(cboCCP_TransAmountVal);
cboCCP_TransAmount.trigger('change');
};
/*
*Action button property name: “Receipt Email Address(s)”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”.
*/
var addQuestionToCCP_ReceiptEmailCbo = function(controls, selectedCtrlId){
var cboCCP_ReceiptEmail = $('#editorActionParamCCP_ReceiptEmail .editorSelect');
var cboCCP_ReceiptEmailVal = cboCCP_ReceiptEmail.val();
cboCCP_ReceiptEmail.empty();
cboCCP_ReceiptEmail.append('' + lbl_ccp_receipt_email_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail');
for(var j=transStack.length; j>0; j--){
cboCCP_ReceiptEmail.append(transStack[j-1].clone());
}
cboCCP_ReceiptEmail.val(cboCCP_ReceiptEmailVal);
cboCCP_ReceiptEmail.trigger('change');
};
/*
*Action button property name: “Transaction Description”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToCCP_TransDescCbo = function(controls, selectedCtrlId){
var cboCCP_TransDesc = $('#editorActionParamCCP_TransDesc .editorSelect');
var cboCCP_TransDescVal = cboCCP_TransDesc.val();
cboCCP_TransDesc.empty();
cboCCP_TransDesc.append('' + lbl_ccp_transaction_description_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Description');
for(var j=transStack.length; j>0; j--){
cboCCP_TransDesc.append(transStack[j-1].clone());
}
cboCCP_TransDesc.val(cboCCP_TransDescVal);
cboCCP_TransDesc.trigger('change');
};
/*
*Action button property name: “Transaction Subtotal”
*Type: Numeric Decimal
*Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid).
*/
var addQuestionToFA_TransSubtotalCbo = function(controls, selectedCtrlId){
var cboFA_TransSubtotal = $('#editorPayment_TransSubtotal .editorSelect');
var cboFA_TransSubtotalVal = cboFA_TransSubtotal.val();
cboFA_TransSubtotal.empty();
cboFA_TransSubtotal.append('' + lbl_fa_transaction_subtotal_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Subtotal');
for(var j=transStack.length; j>0; j--){
cboFA_TransSubtotal.append(transStack[j-1].clone());
}
cboFA_TransSubtotal.val(cboFA_TransSubtotalVal);
cboFA_TransSubtotal.trigger('change');
};
/*
*Action button property name: “Receipt Email Address(s)”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”.
*/
var addQuestionToFA_ReceiptEmailCbo = function(controls, selectedCtrlId){
var cboFA_ReceiptEmail = $('#editorPayment_ReceiptEmail .editorSelect');
var cboFA_ReceiptEmailVal = cboFA_ReceiptEmail.val();
cboFA_ReceiptEmail.empty();
cboFA_ReceiptEmail.append('' + lbl_fa_receipt_email_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail');
for(var j=transStack.length; j>0; j--){
cboFA_ReceiptEmail.append(transStack[j-1].clone());
}
cboFA_ReceiptEmail.val(cboFA_ReceiptEmailVal);
cboFA_ReceiptEmail.trigger('change');
};
/*
*Action button property name: “Transaction Memo”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToFA_TransMemoCbo = function(controls, selectedCtrlId){
var cboFA_TransMemo = $('#editorPayment_TransMemo .editorSelect');
var cboFA_TransMemoVal = cboFA_TransMemo.val();
cboFA_TransMemo.empty();
cboFA_TransMemo.append('' + lbl_fa_transaction_memo_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Memo');
for(var j=transStack.length; j>0; j--){
cboFA_TransMemo.append(transStack[j-1].clone());
}
cboFA_TransMemo.val(cboFA_TransMemoVal);
cboFA_TransMemo.trigger('change');
};
/*
*Action button property name: “Transaction Name”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToFA_NameCbo = function(controls, selectedCtrlId){
var cboFA_Name = $('#editorPayment_Name .editorSelect');
var cboFA_NameVal = cboFA_Name.val();
cboFA_Name.empty();
cboFA_Name.append('' + lbl_fa_name_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Name');
for(var j=transStack.length; j>0; j--){
cboFA_Name.append(transStack[j-1].clone());
}
cboFA_Name.val(cboFA_NameVal);
cboFA_Name.trigger('change');
};
/*
*Action button property name: “Transaction Phone”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToFA_PhoneCbo = function(controls, selectedCtrlId){
var cboFA_Phone = $('#editorPayment_Phone .editorSelect');
var cboFA_PhoneVal = cboFA_Phone.val();
cboFA_Phone.empty();
cboFA_Phone.append('' + lbl_fa_phone_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Phone');
for(var j=transStack.length; j>0; j--){
cboFA_Phone.append(transStack[j-1].clone());
}
cboFA_Phone.val(cboFA_PhoneVal);
cboFA_Phone.trigger('change');
};
/*
*Action button property name: “Tax”
*Type: Text String
*Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid).
*/
var addQuestionToFA_TaxCbo = function(controls, selectedCtrlId){
var cboFA_Tax = $('#editorPayment_Tax .editorSelect');
var cboFA_TaxVal = cboFA_Tax.val();
cboFA_Tax.empty();
cboFA_Tax.append('' + lbl_fa_tax_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Tax');
for(var j=transStack.length; j>0; j--){
cboFA_Tax.append(transStack[j-1].clone());
}
cboFA_Tax.val(cboFA_TaxVal);
cboFA_Tax.trigger('change');
};
/*
*Action button property name: “Result trxid”
*Type: Text String
*Will be passed from a doForms Text (including ones in a Grid).
*/
var addQuestionToFA_TrxidCbo = function(controls, selectedCtrlId){
var cboFA_Trxid = $('#editorPayment_Trxid .editorSelect');
var cboFA_TrxidVal = cboFA_Trxid.val();
cboFA_Trxid.empty();
cboFA_Trxid.append('' + lbl_fa_result_trxid_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'Trxid');
for(var j=transResultStack.length; j>0; j--){
cboFA_Trxid.append(transResultStack[j-1].clone());
}
cboFA_Trxid.val(cboFA_TrxidVal);
cboFA_Trxid.trigger('change');
};
/*
*Action button property name: “Result amount
*Type: Text String
*Will be passed from a doForms Text (including ones in a Grid).
*/
var addQuestionToFA_Result_AmountCbo = function(controls, selectedCtrlId){
var cboFA_Result_Amount = $('#editorPayment_Result_Amount .editorSelect');
var cboFA_Result_AmountVal = cboFA_Result_Amount.val();
cboFA_Result_Amount.empty();
cboFA_Result_Amount.append('' + lbl_fa_result_amount_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'Amount');
for(var j=transResultStack.length; j>0; j--){
cboFA_Result_Amount.append(transResultStack[j-1].clone());
}
cboFA_Result_Amount.val(cboFA_Result_AmountVal);
cboFA_Result_Amount.trigger('change');
};
$('#property_imgActionParamDesQues').off('InputSourceChange')
.on('InputSourceChange', function(event){
var actCtrlVal = $('#property_imgAction').val();
switch(actCtrlVal){
case CONST_ACTION_ONCLICK:
addQuestionToJumpCboForOnClick(controls, properties);
break;
case CONST_ACTION_JUMP_TO_QUES:
case CONST_ACTION_JUMP_TO_PAGE:
case CONST_ACTION_PRINT_MOBILE:
case CONST_ACTION_ZEBRA_PRINT:
addQuestionToJumpCbo(controls, properties.id.value);
loadPTouchCbo(controls, properties);
break;
}
}).trigger('InputSourceChange');
// CO-2254
$('#property_autoActionStampQuestionTrigger').off('InputSourceChange')
.on('InputSourceChange', function(event){
var actCtrlVal = $('#property_autoActionStampTrigger').val();
switch(actCtrlVal){
case '2': // CO-2254
addQuestionToJumpCbo(controls, properties.id.value);
loadPTouchCbo(controls, properties);
break;
case CONST_AUTO_RUN_WHEN_RETRIEVE_HAS_DATA:
case CONST_AUTO_RUN_WHEN_RETRIEVE_HAS_NO_DATA:
addQuestionToJumpCbo(controls, properties.id.value, true);
loadPTouchCbo(controls, properties);
break;
}
}).trigger('InputSourceChange');
var inputSourceValue = $('#property_imgActionParamMapInputSourceParam').val();
if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){
$('#property_imgActionParamMapInputSourceParam')
.off('InputSourceChange')
.on('InputSourceChange', function(event, inputSource){
addQuestionToLocationCbo(controls, properties.id.value, inputSource);
})
.trigger('InputSourceChange', inputSourceValue);
}else{
var actCtrlMapVal = $('#property_imgActionParamMap').val();
$('#property_imgActionParamMapLatLongParam')
.off('DataSourceChange')
.on('DataSourceChange', function(event, actCtrlMapVal){
//addQuestionToLocationCbo(controls, properties.id.value, actCtrlMapVal);
addQuestionToLocationCbo(controls, properties.id.value, 'Lat/Lon');
})
.trigger('DataSourceChange', actCtrlMapVal);
}
if(isVersion(VERSION_OPEN_WEB_PAGE_NEW)){
$('#property_imgActionParamDesQues')
.off('DataSourceChange')
.on('DataSourceChange', function(event){
addQuestionToOpenWebPageCbo(controls, properties.id.value);
})
.trigger('DataSourceChange');
}
$('#property_imgActionParamCCP_TransAmount')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToCCP_TransAmountCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamCCP_TransDesc')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToCCP_TransDescCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamCCP_ReceiptEmail')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToCCP_ReceiptEmailCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_TransSubtotal')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TransSubtotalCbo(controls, properties.id.value);
if(properties.imgActionParamFA_Phone && properties.imgActionParamFA_Phone.value != ''){
$(".imgActionParamFA_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".imgActionParamFA_TransSubtotal select option[value*='" + properties.imgActionParamFA_Phone.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".imgActionParamFA_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".imgActionParamFA_Phone select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_TransMemo')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TransMemoCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_ReceiptEmail')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_ReceiptEmailCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_Name')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_NameCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_Phone')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_PhoneCbo(controls, properties.id.value);
if(properties.imgActionParamFA_Phone && properties.imgActionParamFA_TransSubtotal && properties.imgActionParamFA_Phone.value == properties.imgActionParamFA_TransSubtotal.value){
$(this).val('').change();
}
if(properties.imgActionParamFA_TransSubtotal && properties.imgActionParamFA_TransSubtotal.value != ''){
$(".imgActionParamFA_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".imgActionParamFA_Phone select option[value*='" + properties.imgActionParamFA_TransSubtotal.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".imgActionParamFA_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".imgActionParamFA_TransSubtotal select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_Tax')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TaxCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
/*$('#property_imgActionParamFA_Result')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_ResultCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');*/
$('#property_imgActionParamFA_Trxid')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TrxidCbo(controls, properties.id.value);
if(properties.imgActionParamFA_Result_Amount && properties.imgActionParamFA_Result_Amount.value != ''){
$(".imgActionParamFA_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".imgActionParamFA_Trxid select option[value*='" + properties.imgActionParamFA_Result_Amount.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".imgActionParamFA_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".imgActionParamFA_Result_Amount select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_imgActionParamFA_Result_Amount')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_Result_AmountCbo(controls, properties.id.value);
if(properties.imgActionParamFA_Result_Amount && properties.imgActionParamFA_Trxid && properties.imgActionParamFA_Result_Amount.value == properties.imgActionParamFA_Trxid.value){
$(this).val('').change();
}
if(properties.imgActionParamFA_Trxid && properties.imgActionParamFA_Trxid.value != ''){
$(".imgActionParamFA_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".imgActionParamFA_Result_Amount select option[value*='" + properties.imgActionParamFA_Trxid.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".imgActionParamFA_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".imgActionParamFA_Trxid select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
var addQuestionToMobileNumberCtrlCbo = function(controls, selectedCtrlId){
var cboMobileNumberCtrl = $('#editor_imgActionMobileNumberCtrl .editorSelect');
var cboMobileNumberCtrlVal = cboMobileNumberCtrl.val();
cboMobileNumberCtrl.empty();
cboMobileNumberCtrl.append('' + lbl_mobile_number_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Phone');
for(var j=transStack.length; j>0; j--){
cboMobileNumberCtrl.append(transStack[j-1].clone());
}
cboMobileNumberCtrl.val(cboMobileNumberCtrlVal);
cboMobileNumberCtrl.trigger('change');
};
var addQuestionToMessageCtrlCbo = function(controls, selectedCtrlId){
var cboMobileNumberCtrl = $('#editor_imgActionMessageCtrl .editorSelect');
var cboMobileNumberCtrlVal = cboMobileNumberCtrl.val();
cboMobileNumberCtrl.empty();
cboMobileNumberCtrl.append('' + lbl_mobile_number_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Phone');
for(var j=transStack.length; j>0; j--){
cboMobileNumberCtrl.append(transStack[j-1].clone());
}
cboMobileNumberCtrl.val(cboMobileNumberCtrlVal);
cboMobileNumberCtrl.trigger('change');
};
$('#property_imgActionMobileNumberCtrl')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToMobileNumberCtrlCbo(controls, properties.id.value);
if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){
if(properties.imgActionMobileNumberCtrl && properties.imgActionMobileNumberCtrl.value != ''){
$('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if($(this).parents('.hideSession').length > 0){
$('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$('#editor_imgActionMobileNumber').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
})
.change(function(){
if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){
if($(this).val() != ""){
$('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if($(this).parents('.hideSession').length > 0){
$('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$('#editor_imgActionMobileNumber').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
})
.trigger('InputSourceChange');
$('#property_imgActionMessageCtrl')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToMessageCtrlCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
var addQuestionToStausCtrlCbo = function(controls, selectedCtrlId){
var cboStatusCtrl = $('#editor_imgActionStatusCtrl .editorSelect');
var cboStatusCtrlVal = cboStatusCtrl.val();
cboStatusCtrl.empty();
cboStatusCtrl.append('' + lbl_status_ctrl_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, CONST_DISPATCHSTATUS);
for(var j=transStack.length; j>0; j--){
cboStatusCtrl.append(transStack[j-1].clone());
}
cboStatusCtrl.val(cboStatusCtrlVal);
cboStatusCtrl.trigger('change');
};
$('#property_imgActionStatusCtrl')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToStausCtrlCbo(controls, properties.id.value);
if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){
}else{
var actCtrlVal = $('#property_imgAction').val();
if(actCtrlVal == CONST_ACTION_SEND_STATUS){
if(properties.imgActionStatusCtrl && properties.imgActionStatusCtrl.value != ''){
$('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if($(this).parents('.hideSession').length > 0){
$('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$('#editorActionParam').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
}
})
.change(function(){
if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){
}else{
var actCtrlVal = $('#property_imgAction').val();
if(actCtrlVal == CONST_ACTION_SEND_STATUS){
if($(this).val() != ""){
$('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if($(this).parents('.hideSession').length > 0){
$('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
$('#editorActionParam').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
}
}
})
.trigger('InputSourceChange');
var addQuestionToCtrlCbo = function(cboCtrl, controls, selectedCtrlId, type, isAppendConstant){
var cboCtrlVal = cboCtrl.val();
cboCtrl.empty();
cboCtrl.append('' + lbl_status_ctrl_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, type);
for(var j=transStack.length; j>0; j--){
cboCtrl.append(transStack[j-1].clone());
}
if(isAppendConstant){
cboCtrl.append('' + lbl_const + ' ');
}
cboCtrl.val(cboCtrlVal);
cboCtrl.trigger('change');
};
if(isVersion(VERSION_SET_STATUS_TO_GPS)){
addQuestionToCtrlCbo($('li.statusTextQuestion .editorSelect'), controls, properties.id.value, CONST_TYPE_STATUS_TEXT);
}
if(isVersion(VERSION_IOS_APP_SELECT_OPTION)){
addQuestionToCtrlCbo($('li.iOSApp .editorSelect'), controls, properties.id.value, CONST_TYPE_TEXT_WIDGET, true);
}
addNumberOfCopyField(controls, properties);
}
var addCboWeekEndingDateField = function(controls, ctrlId, level){
var cboWeekEndingDateField = $('li.weekEndingDateType #property_weekEndingDateField');
var cboWeekEndingDateFieldVal = '';
var i =0;
if(level == 0){
cboWeekEndingDateFieldVal = cboWeekEndingDateField.val();
}
if(level == 0){
cboWeekEndingDateField.empty();
cboWeekEndingDateField.append($(' '));
}
transStack = [];
end = findTransCtrlToNode(controls, ctrlId, 'Date_schedule');
if(end){
for(var j=transStack.length; j>0; j--){
cboWeekEndingDateField.append(transStack[j-1].clone());
}
}
if(level == 0){
cboWeekEndingDateField.val(cboWeekEndingDateFieldVal).trigger('change');
}
};
if(type == CONST_CTRL_TYPE_INPUTDATE){
if(isVersion(VERSION_SET_WEEK_ENDING_DATE)){
addCboWeekEndingDateField(controls, properties.id.value, 0);
}
}
var addCboMonthEndingDateField = function(controls, ctrlId, level){
var cboMonthEndingDateField = $('li.monthEndingDateType #property_monthEndingDateField');
var cboMonthEndingDateFieldVal = '';
var i =0;
if(level == 0){
cboMonthEndingDateFieldVal = cboMonthEndingDateField.val();
}
if(level == 0){
cboMonthEndingDateField.empty();
cboMonthEndingDateField.append($(' '));
}
transStack = [];
end = findTransCtrlToNode(controls, ctrlId, 'Date_schedule');
if(end){
for(var j=transStack.length; j>0; j--){
cboMonthEndingDateField.append(transStack[j-1].clone());
}
}
if(level == 0){
cboMonthEndingDateField.val(cboMonthEndingDateFieldVal).trigger('change');
}
};
if(type == CONST_CTRL_TYPE_INPUTDATE){
if(isVersion(VERSION_SET_MONTH_ENDING_DATE)){
addCboMonthEndingDateField(controls, properties.id.value, 0);
}
}
// CO-3852: New Retrieve Setting - Auto Run
if(type == CONST_CTRL_TYPE_INPUTLOOKUP){
var addQuestionToJumpCbo = function(controls, selectedCtrlId){
var cboAutoActionStampTrigger = $('#editorAutoActionStampTriggerRetrieve .editorSelect');
var cboAutoActionStampTriggerVal = cboAutoActionStampTrigger.val();
cboAutoActionStampTrigger.empty();
cboAutoActionStampTrigger.append('' + lbl_sel_question + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var end = findNode(controls, selectedCtrlId);
if(end){
for(var j=stackCount; j>0; j--){
cboAutoActionStampTrigger.append(stack[j-1].clone());
}
}
cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal);
return end;
};
$('#property_autoActionStampQuestionTriggerRetrieve').off('InputSourceChange')
.on('InputSourceChange', function(event){
var actCtrlVal = $('#property_autoActionStampTriggerRetrieve').val();
switch(actCtrlVal){
case lbl_action_select_a_trigger:
//$('.propertiesPaneContent .hideRetrieveButtonAuto').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertiesPaneContent li.hideRetrieveButton').css('padding-top','5px');
break;
case '2':
addQuestionToJumpCbo(controls, properties.id.value);
loadPTouchCbo(controls, properties);
break;
}
});
if(properties.isRetrieve && properties.isRetrieve.value){
$('#property_autoActionStampQuestionTriggerRetrieve').trigger('InputSourceChange');
}else{
$('.propertiesPaneContent .autoRunGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
var addQuestionToModifyTrigger = function(controls, selectedCtrlId){
var cboAutoActionStampTrigger = $('#editorAutoActionStampTriggerModify .editorSelect');
var cboAutoActionStampTriggerVal = cboAutoActionStampTrigger.val();
cboAutoActionStampTrigger.empty();
cboAutoActionStampTrigger.append('' + lbl_sel_question + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var end = findNode(controls, selectedCtrlId);
if(end){
for(var j=stackCount; j>0; j--){
cboAutoActionStampTrigger.append(stack[j-1].clone());
}
}
cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal);
return end;
};
$('#property_autoActionStampQuestionTriggerModify').off('InputSourceChange')
.on('InputSourceChange', function(event){
var actCtrlVal = $('#property_autoActionStampTriggerModify').val();
switch(actCtrlVal){
case '2':
addQuestionToModifyTrigger(controls, properties.id.value);
break;
}
});
if(properties.isModifyOnly && properties.isModifyOnly.value){
$('#property_autoActionStampQuestionTriggerModify').trigger('InputSourceChange');
}
}
if(type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
$('#property_imgActionParamPP_Amount')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPP_AmountCbo(controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_imgActionParamPP_Invoice')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPP_InvoiceCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamPP_Email')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPP_EmailCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_imgActionParamMP_Tax')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToMP_TaxCbo(controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_imgActionParamMP_Description')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToMP_DescriptionCbo(controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_cardholderName')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_cardNumber')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_authorizatioCode')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_paymentMethod')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
$('#property_referenceNumber')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties);
})
.trigger('InputSourceChange');
}
if(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
$('#property_amountCharged')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPP_AmountChargedCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_totalAmountPaid')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToSquare_TotalAmountPaidCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_transactionClientId')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToSquare_TransactionClientIdCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
}
if(type == CONST_CTRL_TYPE_INPUTPAYMENT){
/*
*Action button property name: “Transaction Subtotal”
*Type: Numeric Decimal
*Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid).
*/
var addQuestionToPayment_TransSubtotalCbo = function(controls, selectedCtrlId){
var cboFA_TransSubtotal = $('#editorPayment_TransSubtotal .editorSelect');
var cboFA_TransSubtotalVal = cboFA_TransSubtotal.val();
cboFA_TransSubtotal.empty();
cboFA_TransSubtotal.append('' + lbl_fa_transaction_subtotal_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Subtotal');
for(var j=transStack.length; j>0; j--){
cboFA_TransSubtotal.append(transStack[j-1].clone());
}
cboFA_TransSubtotal.val(cboFA_TransSubtotalVal);
cboFA_TransSubtotal.trigger('change');
};
/*
*Action button property name: “Receipt Email Address(s)”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”.
*/
var addQuestionToFA_ReceiptEmailCbo = function(controls, selectedCtrlId){
var cboFA_ReceiptEmail = $('#editorPayment_ReceiptEmail .editorSelect');
var cboFA_ReceiptEmailVal = cboFA_ReceiptEmail.val();
cboFA_ReceiptEmail.empty();
cboFA_ReceiptEmail.append('' + lbl_fa_receipt_email_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail');
for(var j=transStack.length; j>0; j--){
cboFA_ReceiptEmail.append(transStack[j-1].clone());
}
cboFA_ReceiptEmail.val(cboFA_ReceiptEmailVal);
cboFA_ReceiptEmail.trigger('change');
};
/*
*Action button property name: “Transaction Memo”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToFA_TransMemoCbo = function(controls, selectedCtrlId){
var cboFA_TransMemo = $('#editorPayment_TransMemo .editorSelect');
var cboFA_TransMemoVal = cboFA_TransMemo.val();
cboFA_TransMemo.empty();
cboFA_TransMemo.append('' + lbl_fa_transaction_memo_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Memo');
for(var j=transStack.length; j>0; j--){
cboFA_TransMemo.append(transStack[j-1].clone());
}
cboFA_TransMemo.val(cboFA_TransMemoVal);
cboFA_TransMemo.trigger('change');
};
/*
*Action button property name: “Transaction Name”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToFA_NameCbo = function(controls, selectedCtrlId){
var cboFA_Name = $('#editorPayment_Name .editorSelect');
var cboFA_NameVal = cboFA_Name.val();
cboFA_Name.empty();
cboFA_Name.append('' + lbl_fa_name_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Name');
for(var j=transStack.length; j>0; j--){
cboFA_Name.append(transStack[j-1].clone());
}
cboFA_Name.val(cboFA_NameVal);
cboFA_Name.trigger('change');
};
/*
*Action button property name: “Transaction Phone”
*Type: Text String
*Will be passed from a doForms Text or Lookup (including ones in a Grid).
*/
var addQuestionToPayment_PhoneCbo = function(controls, selectedCtrlId){
var cboFA_Phone = $('#editorPayment_Phone .editorSelect');
var cboFA_PhoneVal = cboFA_Phone.val();
cboFA_Phone.empty();
cboFA_Phone.append('' + lbl_fa_phone_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Phone');
for(var j=transStack.length; j>0; j--){
cboFA_Phone.append(transStack[j-1].clone());
}
cboFA_Phone.val(cboFA_PhoneVal);
cboFA_Phone.trigger('change');
};
/*
*Action button property name: “Tax”
*Type: Text String
*Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid).
*/
var addQuestionToFA_TaxCbo = function(controls, selectedCtrlId){
var cboFA_Tax = $('#editorPayment_Tax .editorSelect');
var cboFA_TaxVal = cboFA_Tax.val();
cboFA_Tax.empty();
cboFA_Tax.append('' + lbl_fa_tax_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Tax');
for(var j=transStack.length; j>0; j--){
cboFA_Tax.append(transStack[j-1].clone());
}
cboFA_Tax.val(cboFA_TaxVal);
cboFA_Tax.trigger('change');
};
/*
*Action button property name: “Result trxid”
*Type: Text String
*Will be passed from a doForms Text (including ones in a Grid).
*/
var addQuestionToPayment_TrxidCbo = function(controls, selectedCtrlId){
var cboFA_Trxid = $('#editorPayment_Trxid .editorSelect');
var cboFA_TrxidVal = cboFA_Trxid.val();
cboFA_Trxid.empty();
cboFA_Trxid.append('' + lbl_fa_result_trxid_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'Trxid');
for(var j=transResultStack.length; j>0; j--){
cboFA_Trxid.append(transResultStack[j-1].clone());
}
cboFA_Trxid.val(cboFA_TrxidVal);
cboFA_Trxid.trigger('change');
};
/*
*Action button property name: “Result amount
*Type: Text String
*Will be passed from a doForms Text (including ones in a Grid).
*/
var addQuestionToPayment_Result_AmountCbo = function(controls, selectedCtrlId){
var cboFA_Result_Amount = $('#editorPayment_Result_Amount .editorSelect');
var cboFA_Result_AmountVal = cboFA_Result_Amount.val();
cboFA_Result_Amount.empty();
cboFA_Result_Amount.append('' + lbl_fa_result_amount_opt + ' ');
transResultStack = [];
findResultCtrlFromNode(controls, selectedCtrlId, 'Amount');
for(var j=transResultStack.length; j>0; j--){
cboFA_Result_Amount.append(transResultStack[j-1].clone());
}
cboFA_Result_Amount.val(cboFA_Result_AmountVal);
cboFA_Result_Amount.trigger('change');
};
transStack = [];
var findTransCtrlToNode = function(controls, selectedCtrlId, type, isGrid){
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
if(type == CONST_CONTAINER_TYPE_REPEAT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(control.type == CONST_CTRL_TYPE_CTRLTABLE && type == CONST_CONTAINER_TYPE_REPEAT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
addNode = findTransCtrlToNode(control.children, selectedCtrlId, type, true);
}else {
if(type == 'Amount'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Subtotal'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Tax'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Description'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Memo'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Name'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Phone'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != CONST_CTRL_KIND_DATE) ||
(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != 'Decimal')){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'ReceiptEmail'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT ||
control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT ||
control.type == CONST_CTRL_TYPE_INPUTFAX ||
control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Date'){
if(control.type == CONST_CTRL_TYPE_INPUTDATE){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == CONST_CONTAINER_TYPE_REPEAT){
//ignore question
/*tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;*/
}
}
});
if(addNode || isGrid){
for(var j=i; j>0; j--){
transStack[transStack.length] = tmp[j-1];
}
}
return addNode;
}
transResultStack = [];
var findResultCtrlFromNode = function(controls, selectedCtrlId, type, isStart_forgrid){
var addNode = false;
var tmp = [];
var i = 0;
var start = false;
if(isStart_forgrid){
start = true;
}
var skip = false;
var endOfForm = true;
_.each(controls, function(control)
{
if(skip){
return false;
}
if(!start){
if(control.type == CONST_CTRL_TYPE_GROUP){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = true;
start = true;
endOfForm = false;
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){
skip = false;
start = true;
endOfForm = false;
}
}
}else{
if(control.type == CONST_CTRL_TYPE_CTRLGRID){
if(findResultCtrlFromNode(control.children, selectedCtrlId, type, true)){
skip = false;
start = true;
endOfForm = false;
}
}
}
if(!skip){
if(start == false && selectedCtrlId == control.id){
start = true;
}else{
if(start){
if(type == 'Amount'){
if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') ||
(control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||
//control.type == CONST_CTRL_TYPE_INPUTCALCULATE ||
control.type == CONST_CTRL_TYPE_INPUT_NUMERIC ||
control.type == CONST_CTRL_TYPE_INPUTTRENDS ||
control.type == CONST_CTRL_TYPE_INPUTCOUNTER){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Result'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(type == 'Trxid'){
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP ||
control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH ||
control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||
control.type == CONST_CTRL_TYPE_INPUT_TEXT){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}
}
}
}
});
if(start){
for(var j=i; j>0; j--){
transResultStack[transResultStack.length] = tmp[j-1];
}
}
return start;
}
$('#property_payment_TransSubtotal')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPayment_TransSubtotalCbo(controls, properties.id.value);
if(properties.payment_Phone && properties.payment_Phone.value != ''){
$(".payment_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".payment_TransSubtotal select option[value*='" + properties.payment_Phone.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".payment_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".payment_Phone select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_payment_TransMemo')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TransMemoCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_payment_ReceiptEmail')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_ReceiptEmailCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_payment_Name')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_NameCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_payment_Phone')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPayment_PhoneCbo(controls, properties.id.value);
if(properties.payment_Phone && properties.payment_TransSubtotal && properties.payment_Phone.value == properties.payment_TransSubtotal.value){
$(this).val('').change();
}
if(properties.payment_TransSubtotal && properties.payment_TransSubtotal.value != ''){
$(".payment_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".payment_Phone select option[value*='" + properties.payment_TransSubtotal.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".payment_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".payment_TransSubtotal select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_payment_Tax')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToFA_TaxCbo(controls, properties.id.value);
})
.trigger('InputSourceChange');
$('#property_payment_Trxid')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPayment_TrxidCbo(controls, properties.id.value);
if(properties.payment_Result_Amount && properties.payment_Result_Amount.value != ''){
$(".payment_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".payment_Trxid select option[value*='" + properties.payment_Result_Amount.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".payment_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".payment_Result_Amount select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
$('#property_payment_Result_Amount')
.off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToPayment_Result_AmountCbo(controls, properties.id.value);
if(properties.payment_Result_Amount && properties.payment_Trxid && properties.payment_Result_Amount.value == properties.payment_Trxid.value){
$(this).val('').change();
}
if(properties.payment_Trxid && properties.payment_Trxid.value != ''){
$(".payment_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
$(".payment_Result_Amount select option[value*='" + properties.payment_Trxid.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.change(function(){
$(".payment_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false);
if($(this).val() != ""){
$(".payment_Trxid select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true);
}
})
.trigger('InputSourceChange');
}
if(type == CONST_CTRL_TYPE_CTRLREPEATABLESUMMARY){
var addRepeatQuestionToRepeatableCbo = function(controls, selectedCtrlId){
var cboRepeatable = $('li.repeatable .editorSelect');
var cboRepeatableVal = cboRepeatable.val();
cboRepeatable.empty();
cboRepeatable.append('' + lbl_repeatable_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, CONST_CONTAINER_TYPE_REPEAT);
for(var j=transStack.length; j>0; j--){
cboRepeatable.append(transStack[j-1].clone());
}
cboRepeatable.val(cboRepeatableVal);
cboRepeatable.trigger('change');
}
addRepeatQuestionToRepeatableCbo(controls, properties.id.value);
}
//function for skip ligic
var cboSkipControl = $('.uiCombo-translation-row .cboSkipAnswerCondition');
addCboSkipAnswer(cboSkipControl, controls, 0, properties);
var addCboSkipAnswerCondition = function(type){
var cboSkipAnswerConditionVal = [];
var cboSkipAnswers = $('.skipConditionsEditorValueField .cboSkipAnswer');
var i = 0;
if(cboSkipAnswers.length == 1){
cboSkipAnswerConditionVal[i] = cboSkipAnswers.val();
}else{
_.each(cboSkipAnswers, function(cboSkipAnswer)
{
cboSkipAnswerConditionVal[i] = $(cboSkipAnswer).val();
i ++;
});
}
updateCboCompareType(cboSkipAnswers, type);
if(cboSkipAnswers.length == 1){
cboSkipAnswers.val(cboSkipAnswerConditionVal[0]);
}else{
i = 0;
_.each(cboSkipAnswers, function(cboSkipAnswer)
{
$(cboSkipAnswer).val(cboSkipAnswerConditionVal[i]);
i ++;
});
}
};
//addCboSkipAnswerCondition(type);
stack = [];
stackCount = 0;
var findToNode = function(controls, endId, isITE){
if(!isVersion(VERSION_ITE_ACTION_FILED)){
isITE = undefined;
}
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(endId == control.id){
addNode = true;
}
if(addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findToNode(control.children, endId, isITE);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findToNode(control.children, endId, isITE);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD){
addNode = findToNode(control.children, endId, isITE);
}else if(control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findToNode(control.children, endId, isITE);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(!isVersion3_3()){
addNode = findToNode(control.children, endId, isITE);
}else{
_.each(control.children, function(control1)
{
if(endId == control1.id){
addNode = true;
}
if(addNode){
return false;
}
if(control1.type == CONST_CTRL_TYPE_GROUP){
}else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){
}else if(control1.type == CONST_CTRL_TYPE_CTRLINV){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){
}else if(control1.type == 'inputPageBreak'){
}else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || (control1.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
if(valueOrEmpty(control1.summaryCategory) != ''){
tmp[i] = $(' ')
.attr(CONST_VALUE, control1.id)
.text(control1.name);
i++;
}
}else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
/*}else if(control1.type == CONST_CTRL_TYPE_INPUTCALCULATE){
}else if(control1.type == CONST_CTRL_TYPE_INPUTLOOKUP || control1.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
}else if(control1.type == 'inputFacingTable'){*/
}else if(control1.type == 'inputLookupMulti'){
}else if(control1.type == 'inputSaveAndSend'){
}else{
tmp[i] = $(' ')
.attr(CONST_VALUE, control1.id)
.text(control1.name);
i++;
}
});
}
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(control1)
{
if(endId == control1.id){
addNode = true;
}
if(addNode){
return false;
}
if(control1.type == CONST_CTRL_TYPE_GROUP){
}else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){
}else if(control1.type == CONST_CTRL_TYPE_CTRLINV){
}else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
}else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){
}else if(control1.type == 'inputPageBreak'){
}else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || (control1.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
if(valueOrEmpty(control1.summaryCategory) != ''){
tmp[i] = $(' ')
.attr(CONST_VALUE, control1.id)
.text(control1.name);
i++;
}
}else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){
}else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
/*}else if(control1.type == CONST_CTRL_TYPE_INPUTCALCULATE){
}else if(control1.type == CONST_CTRL_TYPE_INPUTLOOKUP || control1.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
}else if(control1.type == 'inputFacingTable'){*/
}else if(control1.type == 'inputLookupMulti'){
}else if(control1.type == 'inputSaveAndSend'){
}else{
tmp[i] = $(' ')
.attr(CONST_VALUE, control1.id)
.text(control1.name);
i++;
}
});
}else if(control.type == 'inputPageBreak'){
}else if(control.type == 'inputLabel' || control.type == 'inputInstruction' || (control.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
if(valueOrEmpty(control.summaryCategory) != ''){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
}else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){
}else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
}else if(control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
}else if(control.type == CONST_CTRL_TYPE_INPUTFAX){
}else if(control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
}else if(control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){
/*}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
}else if(control.type == 'inputFacingTable'){*/
}else if(control.type == 'inputLookupMulti'){
}else if(control.type == 'inputSaveAndSend'){
}else{
//tmp[i] = '' + control.label['eng'] + ' ';
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
}
});
if(addNode){
for(var j=i; j>0; j--){
stack[stackCount] = tmp[j-1];
stackCount++;
}
return true;
}else{
return false;
}
}
var addCboRelevanceAnswer = function(controls, level){
var cboRelevanceControl = $('.uiRelevanceCombo-translation-row .cboRelevanceAnswerCondition');
var cboRelevanceJoinControl = $('.uiRelevanceCombo-translation-join-row .cboRelevanceAnswerCondition');
var cboRelevanceAnswerConditionVals = [];
var i =0;
var conditions = $('.relevanceConditionsList .cboRelevanceAnswerCondition');
if(level == 0){
if(conditions.length > 1){
_.each(conditions, function(item){
cboRelevanceAnswerConditionVals[i] = $(item).val();
i ++;
});
}else{
cboRelevanceAnswerConditionVals[0] = conditions.val();
}
}
if(level == 0){
cboRelevanceControl.empty();
cboRelevanceControl.append(' ');
cboRelevanceJoinControl.empty();
cboRelevanceJoinControl.append(' ');
}
stack = [];
stackCount = 0;
var end = findToNode(controls, properties.id.value, false);
if(end){
for(var j=stackCount; j>0; j--){
cboRelevanceControl.append(stack[j-1].clone());
cboRelevanceJoinControl.append(stack[j-1].clone());
}
}
if(level == 0){
if(conditions.length > 1){
i = 0;
_.each(conditions, function(item){
$(item).val(cboRelevanceAnswerConditionVals[i]);
i ++;
});
}else{
conditions.val(cboRelevanceAnswerConditionVals[0]);
}
}
return end;
};
addCboRelevanceAnswer(controls, 0);
var addCboReadOnlyIfAnswer = function(controls, level){
var cboReadOnlyIfControl = $('.uiReadOnlyIfCombo-translation-row .cboReadOnlyIfAnswerCondition');
var cboReadOnlyIfJoinControl = $('.uiReadOnlyIfCombo-translation-join-row .cboReadOnlyIfAnswerCondition');
var cboReadOnlyIfAnswerConditionVals = [];
var i =0;
var conditions = $('.readOnlyIfConditionsList .cboReadOnlyIfAnswerCondition');
if(level == 0){
if(conditions.length > 1){
_.each(conditions, function(item){
cboReadOnlyIfAnswerConditionVals[i] = $(item).val();
i ++;
});
}else{
cboReadOnlyIfAnswerConditionVals[0] = conditions.val();
}
}
if(level == 0){
cboReadOnlyIfControl.empty();
cboReadOnlyIfControl.append(' ');
cboReadOnlyIfJoinControl.empty();
cboReadOnlyIfJoinControl.append(' ');
}
stack = [];
stackCount = 0;
var end = findToNode(controls, properties.id.value, false);
if(end){
for(var j=stackCount; j>0; j--){
cboReadOnlyIfControl.append(stack[j-1].clone());
cboReadOnlyIfJoinControl.append(stack[j-1].clone());
}
}
if(level == 0){
if(conditions.length > 1){
i = 0;
_.each(conditions, function(item){
$(item).val(cboReadOnlyIfAnswerConditionVals[i]);
i ++;
});
}else{
conditions.val(cboReadOnlyIfAnswerConditionVals[0]);
}
}
return end;
};
addCboReadOnlyIfAnswer(controls, 0);
if(properties.isScheduleWidget && properties.isScheduleWidget.value){
var addCboDispatch = function(controls, level){
var cboDispatchDateControl = $('.propertyList:visible #property_dispatchDate');
var cboDispatchMobileControl = $('.propertyList:visible #property_dispatchMobile');
var cboDispatchScheduleDateTimeControl = $('.propertyList:visible #property_scheduleDateTime');
var cboDispatchDateControlVal = '';
var cboDispatchMobileControlVal = '';
var cboDispatchScheduleDateTimeVal = '';
var i =0;
if(level == 0){
cboDispatchDateControlVal = cboDispatchDateControl.val();
cboDispatchMobileControlVal = cboDispatchMobileControl.val();
cboDispatchScheduleDateTimeVal = cboDispatchScheduleDateTimeControl.val();
cboDispatchDateControl.empty();
cboDispatchDateControl.append(' ');
cboDispatchMobileControl.empty();
cboDispatchMobileControl.append(' ');
cboDispatchScheduleDateTimeControl.empty();
cboDispatchScheduleDateTimeControl.append(' ');
}
transStack = [];
var end = findTransCtrlToNode(controls, properties.id.value, 'Date_schedule');
if(end){
for(var j=transStack.length; j>0; j--){
cboDispatchDateControl.append(transStack[j-1].clone());
}
}
transStack = [];
end = findTransCtrlToNode(controls, properties.id.value, 'Phone_schedule');
if(end){
for(var j=transStack.length; j>0; j--){
cboDispatchMobileControl.append(transStack[j-1].clone());
}
}
cboDispatchMobileControl.append('Choose from mobile user list ');
transStack = [];
end = findTransCtrlToNode(controls, properties.id.value, 'Date Time_schedule');
if(end){
for(var j=transStack.length; j>0; j--){
cboDispatchScheduleDateTimeControl.append(transStack[j-1].clone());
}
}
if(level == 0){
cboDispatchDateControl.val(cboDispatchDateControlVal);
cboDispatchMobileControl.val(cboDispatchMobileControlVal);
cboDispatchScheduleDateTimeControl.val(cboDispatchScheduleDateTimeVal);
}
return end;
};
addCboDispatch(controls, 0);
var addCboDispatchMobileNumber = function(cursor){
var cboDispatchMobileNumberControl = $('.propertyList:visible #property_dispatchMobileNumber');
var cboDispatchMobileNumberVal = cboDispatchMobileNumberControl.val();
if(cursor == null || cursor== ''){
cboDispatchMobileNumberControl.empty();
cboDispatchMobileNumberControl.append(' ');
}
waitForDataLoading(true);
$.ajax({
url: '/mobileunit/mobileUnit?fnId=GET_MOBILES&cursor=' + cursor,
dataType: 'json',
type: 'GET',
data: '{}',
async: false,
cache: false,
complete: function()
{
waitForDataLoading(false);
},
success: function(response, status)
{
if(response == null){
return;
}
for ( var m = 0; m < response.MUNumbers.length; m++) {
var item = response.MUNumbers[m];
var itemOpt = $(' ');
itemOpt.val(item.MU);
if(item.MN == undefined){
itemOpt.text(item.MU);
}else{
itemOpt.text(item.MU + "(" + item.MN + ")");
}
cboDispatchMobileNumberControl.append(itemOpt);
}
if(response.cursor != null){
addCboDispatchMobileNumber(response.cursor);
}
},
error: function(request, status, error)
{
}
});
if(cursor == null || cursor== ''){
cboDispatchMobileNumberControl.val(cboDispatchMobileNumberVal);
}
};
addCboDispatchMobileNumber('');
}
var addCboITEAnswer = function(controls, level){
var cboITEControl = $('.uiITECombo-translation-row .cboITEAnswerCondition');
var cboITEJoinControl = $('.uiITECombo-translation-join-row .cboITEAnswerCondition');
var cboITEAnswerConditionVals = [];
var i =0;
var conditions = $('.iteConditionsList .cboITEAnswerCondition');
if(level == 0){
if(conditions.length > 1){
_.each(conditions, function(item){
cboITEAnswerConditionVals[i] = $(item).val();
i ++;
});
}else{
cboITEAnswerConditionVals[0] = conditions.val();
}
}
if(level == 0){
cboITEControl.empty();
cboITEControl.append(' ');
cboITEJoinControl.empty();
cboITEJoinControl.append(' ');
}
stack = [];
stackCount = 0;
var end = findToNode(controls, properties.id.value, true);
if(end){
for(var j=stackCount; j>0; j--){
cboITEControl.append(stack[j-1].clone());
cboITEJoinControl.append(stack[j-1].clone());
}
}
stackPrevious = [];
stackPreviousCount = 0;
end = findPreviousItem(controls, properties.id.value);
if(end){
for(var j=stackPreviousCount; j>0; j--){
cboITEControl.append(stackPrevious[j-1].clone());
cboITEJoinControl.append(stackPrevious[j-1].clone());
}
}
if(level == 0){
if(conditions.length > 1){
i = 0;
_.each(conditions, function(item){
$(item).val(cboITEAnswerConditionVals[i]);
i ++;
});
}else{
conditions.val(cboITEAnswerConditionVals[0]);
}
}
return end;
};
addCboITEAnswer(controls, 0);
var addCboSkipIfAnswer = function(controls, level){
var cboSkipIfControl = $('.uiSkipIfCombo-translation-row .cboSkipIfAnswerCondition');
var cboSkipIfJoinControl = $('.uiSkipIfCombo-translation-join-row .cboSkipIfAnswerCondition');
var cboSkipIfAnswerConditionVals = [];
var i =0;
var conditions = $('.skipIfConditionsList .cboSkipIfAnswerCondition');
if(level == 0){
if(conditions.length > 1){
_.each(conditions, function(item){
cboSkipIfAnswerConditionVals[i] = $(item).val();
i ++;
});
}else{
cboSkipIfAnswerConditionVals[0] = conditions.val();
}
}
if(level == 0){
cboSkipIfControl.empty();
cboSkipIfControl.append(' ');
cboSkipIfJoinControl.empty();
cboSkipIfJoinControl.append(' ');
}
stack = [];
stackCount = 0;
var end = findToNode(controls, properties.id.value, false);
if(end){
for(var j=stackCount; j>0; j--){
cboSkipIfControl.append(stack[j-1].clone());
cboSkipIfJoinControl.append(stack[j-1].clone());
}
}
if(level == 0){
if(conditions.length > 1){
i = 0;
_.each(conditions, function(item){
$(item).val(cboSkipIfAnswerConditionVals[i]);
i ++;
});
}else{
conditions.val(cboSkipIfAnswerConditionVals[0]);
}
}
return end;
};
addCboSkipIfAnswer(controls, 0);
$this.trigger('odkControl-propertiesUpdated');
var skipShow = false;
var relevanceShow = false;
if(properties.skipconds == undefined || properties.skipconds.value == undefined || properties.skipconds.value.length == 0){
}else{
skipShow = true;
}
if(properties.relevanceconds == undefined || properties.relevanceconds.value == undefined || properties.relevanceconds.value.length == 0){
}else{
relevanceShow = true;
}
if(skipShow || relevanceShow){
$('.propertiesPane:visible .advanced .toggle').trigger('click');
if(skipShow){
$('.propertiesPane:visible .advanced .toggle-skip').trigger('click');
}
if(relevanceShow){
$('.propertiesPane:visible .advanced .toggle-relevance').trigger('click');
}
}
$('.propertiesPane:visible').scrollTop(0);
switch(type){
case "ctrlDataSource":
case "ctrlDataFilter":
case "ctrlReportBreakPoint":
case "ctrlEmailSchedule":
case "ctrlBreakPointData":
break;
default:
if($('.propertiesPane:visible .propertyList input.editorTextfield').length > 0){
var theFirst = 0;
while($('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst] && $('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst].offsetParent == null){
theFirst++;
}
if($('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst]){
$('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst].focus();
}
// CO-2548 auto select text which focused (check if control selected has class caption-just-paste then select the text
if($this.hasClass('caption-just-paste')) {
$('.propertiesPane:visible .propertyList input')[0].select();
}
// CO-2548 auto select text which focused
}
}
$('.propertyList:visible .showSelectAll').find('.SelectAll').trigger('showSelectAll_Change');
// CO-6284: Add Image viewer control start
if(properties.id && properties.id.ctrlType == CONST_CTRL_TYPE_IMAGE_VIEWER){
loadImageViewerCombo(controls, properties);
}
// CO-6284: Add Image viewer control end
};
// Constructor
$.fn.odkControl = function(type, options, defaultProperties)
{
var isButtonGrid = false;
var isScheduleWidget = false;
var isFaxWidget = false;
if(type == 'ctrlButtonGrid'){
type = CONST_CTRL_TYPE_CTRLGRID;
isButtonGrid = true;
}else if(type == CONST_CTRL_TYPE_CTRLSCHEDULE){
type = CONST_CTRL_TYPE_CTRLTABLE;
isScheduleWidget = true;
}else if(type == CONST_CTRL_TYPE_INPUTFAX){
type = CONST_CTRL_TYPE_INPUTEMAILREPORT;
isFaxWidget = true;
}else if(type == CONST_CTRL_TYPE_CTRLGRID){
// tdchien :: TEMPORARY WORKAROUND CODE FOR PREVENT ERROR WHEN CREATE NORMAL GRID
// Mr. Huynh Quoc Khanh will fix this error later
// (error : defaultProperties)
// if(defaultProperties.isButtonGrid && defaultProperties.isButtonGrid.value){
// isButtonGrid = true;
// }
if(defaultProperties && defaultProperties.isButtonGrid && defaultProperties.isButtonGrid.value){
isButtonGrid = true;
}
}else if(type == CONST_CTRL_TYPE_CTRLTABLE){
if(defaultProperties && defaultProperties.isScheduleWidget && defaultProperties.isScheduleWidget.value){
isScheduleWidget = true;
}
}else if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
if(defaultProperties && defaultProperties.isFaxWidget && defaultProperties.isFaxWidget.value){
isFaxWidget = true;
}
}
var isSecureEmail = false;
if(type == CONST_CTRL_TYPE_INPUTFAX){
type = CONST_CTRL_TYPE_INPUTEMAILREPORT;
isFaxWidget = true;
}else if(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){
type = CONST_CTRL_TYPE_INPUTEMAILREPORT;
isSecureEmail = true;
}else if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT){
if(defaultProperties && defaultProperties.isSecureEmail && defaultProperties.isSecureEmail.value){
isSecureEmail = true;
}
if(defaultProperties && defaultProperties.isFaxWidget && defaultProperties.isFaxWidget.value){
isFaxWidget = true;
}
}
var isRetrieve = false;
if(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
type = CONST_CTRL_TYPE_INPUTLOOKUP;
isRetrieve = true;
}else if(type == CONST_CTRL_TYPE_INPUTLOOKUP){
if(defaultProperties && defaultProperties.isRetrieve && defaultProperties.isRetrieve.value){
isRetrieve = true;
}
}
var isSecureForward = false;
if(type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){
type = CONST_CTRL_TYPE_INPUTFORWARD;
isSecureForward = true;
}else if(type == CONST_CTRL_TYPE_INPUTFORWARD){
if(defaultProperties && defaultProperties.isSecureForward && defaultProperties.isSecureForward.value){
isSecureForward = true;
}
}
var isOpenFileWidget = false;
var isAttachFormWidget = false;
if(type == CONST_CTRL_TYPE_INPUTOPENFILE){
type = CONST_CTRL_TYPE_INPUTACTION;
isOpenFileWidget = true;
}else if(type == CONST_CTRL_TYPE_INPUTATTACHFORM){
type = CONST_CTRL_TYPE_INPUTACTION;
isAttachFormWidget = true;
}else if(type == CONST_CTRL_TYPE_INPUTACTION){
if(defaultProperties && defaultProperties.isOpenFileWidget && defaultProperties.isOpenFileWidget.value){
isOpenFileWidget = true;
}else if(defaultProperties && defaultProperties.isAttachFormWidget && defaultProperties.isAttachFormWidget.value){
isAttachFormWidget = true;
}
}
if(defaultProperties && defaultProperties.isSearchField && defaultProperties.isSearchField.value){
this.addClass(defaultProperties.name.value);
}
// Abort for unknown types
if ($.fn.odkControl.controlProperties[type] === undefined)
return;
var options = $.extend({}, $.fn.odkControl.defaults, options);
return this.each(function()
{
var $this = $(this);
// Support the metadata plugin
var config = $.meta ? $.extend({}, options, $this.data()) : options;
$this.data('odkControl-config', config);
$this.data('odkControl-type', type);
// Deep clone the properties if relevant
var properties = null;
if ((type == CONST_CTRL_TYPE_GROUP) ||
(type == 'branch') ||
(type == 'inputPageBreak') ||
(type == 'inputLabel') ||
(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ||
(type == CONST_CTRL_TYPE_INPUTNUMBERING) ||
(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) ||
(type == CONST_CTRL_TYPE_INPUTACTION) ||
(type == CONST_CTRL_TYPE_INPUTPAYMENT) ||
(type == 'inputInstruction') ||
//(type == CONST_CTRL_TYPE_INPUTCALCULATE) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP) ||
(type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) ||
(type == 'inputFacingTable') ||
(type == 'inputLookupMulti') ||
(type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTAPPROVAL) ||
(type == 'inputSaveAndSend') ||
(type == CONST_CTRL_TYPE_CTRLTABLE) ||
(type == CONST_CTRL_TYPE_CTRLSCHEDULE) ||
(type == CONST_CTRL_TYPE_CTRLPOD) ||
(type == CONST_CTRL_TYPE_CTRLSCORETABLE) ||
(type == CONST_CTRL_TYPE_CTRLGRID) ||
(type == 'ctrlDataSource') ||
(type == 'ctrlHeaderGrid') ||
(type == 'ctrlDataFilter') ||
(type == 'ctrlReportBreakPoint') ||
(type == 'ctrlBreakPointData') ||
(type == 'ctrlFooterGrid') ||
(type == 'ctrlEmailSchedule') ||
(type == 'ctrlBreakPointDataElement') ||
(type == CONST_CTRL_TYPE_CTRLINV)){
properties = defaultProperties || $.extend(true, {}, $.fn.odkControl.controlProperties[type]);
}else{
properties = defaultProperties ||
$.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[type]);
removeUnsupportProperty(properties, type);
}
if(isButtonGrid){
properties.isButtonGrid.value = true;
properties.ctrlProperty.name = lbl_button_grid_ctrl;
properties.gridType.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.isUtilizingFullScr.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.equallySpaceColumns.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.columnsSpaceType.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.isColumnWeightCustom.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.withFormat4ColumnWeight.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.isIgnoreGrid.add_class = CONST_CSS_CLASS_HIDE_SESSION;
properties.ignoreScreenSize.add_class = CONST_CSS_CLASS_HIDE_SESSION;
}
if(isScheduleWidget){
properties.isScheduleWidget.value = true;
properties.ctrlProperty.name = lbl_schedule_ctrl;
properties.ctrlProperty.explainUrl = hl_schedule;
}
if(isFaxWidget){
properties.isFaxWidget.value = true;
properties.ctrlProperty.name = lbl_fax_ctrl;
}
if(isSecureEmail){
properties.isSecureEmail.value = true;
properties.ctrlProperty.name = lbl_secure_email_report_ctrl;
}
if(isRetrieve){
properties.isRetrieve.value = true;
properties.ctrlProperty.name = lbl_lookup_retrieve_ctrl;
properties.ctrlProperty.explainUrl = hl_retrieve;
}
if(isSecureForward){
properties.isSecureForward.value = true;
properties.ctrlProperty.name = lbl_secure_forward_ctrl;
}
if(isOpenFileWidget){
properties.isOpenFileWidget.value = true;
properties.imgAction.value = CONST_ACTION_OPEN_FILE;
properties.imgAction.disabled = true;
properties.ctrlProperty.name = lbl_open_file_ctrl;
properties.ctrlProperty.explainUrl = hl_open_file;
}
if(isAttachFormWidget){
properties.isAttachFormWidget.value = true;
properties.imgAction.disabled = true;
properties.ctrlProperty.name = lbl_action_attach_form;
properties.ctrlProperty.explainUrl = hl_attach_form;
properties.imgAction.value = CONST_ACTION_ATTACH_FORM;
if(defaultProperties == undefined){
properties.justificationCaption.value = '0';
appendProperties4AttachFormWidget(properties);
}
}
removeUnuseVersion(properties);
if(type == CONST_CTRL_TYPE_INPUTLOCATION){
properties.defaultValue.type = 'gps';
}else if(type == CONST_CTRL_TYPE_INPUTSELECTONE){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTSCOREONE){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
}else if(type == CONST_CTRL_TYPE_INPUTSELECTMANY){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTDATE){
properties.defaultValue.type = 'dateDefaultField';
}else if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){
properties.defaultValue.type = 'numericDefaultField';
properties.defaultValue.kind = 'Integer';
properties.range.kind = 'Integer';
}else if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH){
properties.defaultValue.type = 'lookupDefaultField';
properties.defaultValue.kind = 'String';
}else if(type == CONST_CTRL_TYPE_INPUTTRENDS){
properties.range.kind = 'Integer';
}else if(type == mdi_kind_inputImage){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputAudio){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputVideo){
properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTMEDIA){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputSketch){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputSignature){
properties.defaultValue.type = 'hidden';
}else if(type == 'inputDraw'){
properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTBARCODE){
properties.defaultValue.type = 'barcodeDefaultField';
properties.defaultValue.kind = 'String';
properties.length.kind = 'String';
}else if(type == CONST_CTRL_TYPE_INPUTNFC){
//properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){
properties.defaultValue.type = 'forwardDefaultField';
properties.defaultValue.kind = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTCOUNTER){
properties.defaultValue.type = 'numericDefaultField';
properties.defaultValue.kind = 'Integer';
properties.range.kind = 'Integer';
}else if(type == CONST_CTRL_TYPE_INPUTCALCULATE){
properties.defaultValue.type = 'hidden';
properties.readOnlyGroup.type = 'hidden';
properties.readOnly.type = 'hidden';
properties.readOnlyDsp.type = 'hidden';
properties.requiredGroup.type = 'hidden';
properties.required.type = 'hidden';
properties.dispatchRequired.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTATTACHMENT){
properties.defaultValue.type = 'hidden';
}
if(properties.id.value == undefined || properties.id.value == ''){
properties.id.value = utils.seq.getUniqueId();
$this.find('.controlErrorMessage').addClass('ctrlId_' + properties.id.value);
}
if (properties.name.value == 'untitled' || properties.name.value == ''){
properties.name.value = 'untitled' + properties.id.value;
}
if (properties.name.value == 'page_break'){
properties.name.value = 'page_break' + properties.id.value;
}
if (properties.name.value == 'data_source'){
properties.name.value = 'data_source' + properties.id.value;
}
var newId = 'selectedCtrlFocus' + properties.id.value;
$this.attr('id', newId);
$this.data('odkControl-properties', properties);
$this.on('odkControl-propertiesUpdated', function(event)
{
event.stopPropagation();
if(properties){
keys = Object.keys(properties);
_.each(keys, function(key, id){
var ctrlProperty = properties[key];
if((ctrlProperty.type == 'enumeration_radio' || ctrlProperty.type == 'enumeration') && ctrlProperty.addRemoveClassPropertyNameValue == true){
_.each(ctrlProperty.options, function(element)
{
var arr = element.split(CONST_DOUBLE_DOLLAR);
$('ul.propertyList').removeClass(key + '_' + replaceNonAlphaNumericChar(arr[0]));
});
$('ul.propertyList').addClass(key + '_' + replaceNonAlphaNumericChar(ctrlProperty.value));
}
});
}
var scrollPos = $('.workspaceScrollArea:visible').scrollTop();
refreshFromProperties($this, type, config, properties);
if(scrollPos != $('.workspaceScrollArea:visible').scrollTop()){
$('.workspaceScrollArea:visible').scrollTop(scrollPos);
}
});
$this.trigger('odkControl-propertiesUpdated');
$this.on('odkControl-reloadProperties', function(event, odkControl)
{
/*if(type == CONST_CTRL_TYPE_GROUP || type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCORETABLE){
if(isGroup){
selectControl($this, type, config, properties);
}
}else{
selectControl($this, type, config, properties);
}*/
if(odkControl == undefined || $this[0] == odkControl){
selectControl($this, type, config, properties);
}
});
$this.on('odkControl-ctrlScoreTable-update-option', function(event, property)
{
if(properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSCOREONE && properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSELECTMANY && properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSELECTONE){
return false;
}
$.removeAllFromArray(properties.options.value);
for(var i = 0; i 0){
if(!isParentSelected($this)){
$this.addClass('multi-selected');
removeChildSelected($this);
}
if(!isParentSelected(lastSelected)){
lastSelected.addClass('multi-selected');
removeChildSelected(lastSelected);
}
var nextCtrl = $this.next();
while(nextCtrl.length > 0 && nextCtrl.data('odkControl-properties') != lastSelected.data('odkControl-properties')){
if(!isParentSelected(nextCtrl)){
nextCtrl.addClass('multi-selected');
removeChildSelected(nextCtrl);
}
nextCtrl = nextCtrl.next();
}
if(nextCtrl.data('odkControl-properties') != lastSelected.data('odkControl-properties')){
$('.control.multi-selected').removeClass('multi-selected');
multiSelectedControls['__LAST_SEL__'] = $this;
}
}else if(posCmp < 0){
if(!isParentSelected($this)){
$this.addClass('multi-selected');
removeChildSelected($this);
}
if(!isParentSelected(lastSelected)){
lastSelected.addClass('multi-selected');
removeChildSelected(lastSelected);
}
var nextCtrl = lastSelected.next();
while(nextCtrl.length > 0 && nextCtrl.data('odkControl-properties') != $this.data('odkControl-properties')){
if(!isParentSelected(nextCtrl)){
nextCtrl.addClass('multi-selected');
removeChildSelected(nextCtrl);
}
nextCtrl = nextCtrl.next();
}
if(nextCtrl.data('odkControl-properties') != $this.data('odkControl-properties')){
$('.control.multi-selected').removeClass('multi-selected');
multiSelectedControls['__LAST_SEL__'] = $this;
}
}
}
}else{
if(!$this.hasClass('multi-selected')){
$('.control.multi-selected').removeClass('multi-selected');
var lastSel = undefined;
if(multiSelectedControls){
lastSel = multiSelectedControls['__LAST_SEL__'];
}
multiSelectedControls = {};
if(lastSel){
multiSelectedControls['__LAST_SEL__'] = lastSel;
}
}
}
if(!event.shiftKey){
multiSelectedControls['__LAST_SEL__'] = $this;
}else if(!multiSelectedControls['__LAST_SEL__']){
multiSelectedControls['__LAST_SEL__'] = $this;
}
}
selectControl($this, type, config, properties);
updateSelectedControls();
}else{
ctrlDuplicate = false;
}
});
// special treatment for groups and branches
// if (type == CONST_CTRL_TYPE_GROUP)
// $('')
// .insertAfter($this.children('.controlInfo'));
if (type == CONST_CTRL_TYPE_GROUP){
var groupCtrl = $('')
.insertAfter($this.children('.controlInfo'));
// PCA-293: Webapp/Preview - Apply new block formats for all widgets.
//if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP) && glbBuildFormSettingsWA.isShadedheadings === true)
if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP))
{ //hqkhanh
$this.addClass('no-border-left-shading').addClass('no-padding-left-shading');
groupCtrl.addClass('group-shaded-mode-shading');
groupCtrl.addClass('no-padding-left-shading');
}
}
if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE)
$('')
.insertAfter($this.children('.controlInfo'));
if (type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV){
$('')
.insertAfter($this.children('.controlInfo'));
}
if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){
$this.attr('id', 'ctrlScoreTable_' + properties.id.value);
$('')
.insertAfter($this.children('.controlInfo'));
}
if (type == CONST_CTRL_TYPE_CTRLGRID){
$this.attr('id', 'ctrlGrid_' + properties.id.value);
$('')
.insertAfter($this.children('.controlInfo'));
}
if (type == 'ctrlBreakPointData'){
$('')
.insertAfter($this.children('.controlInfo'));
}
// event wireup
$this.find('.deleteControl')
.click(function(event)
{
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && properties.name.isOldCtrl){
return;
}
var answer = jConfirm(msg_confirm_delete + msg_confirm_delete_this_ques, lbl_conf_dlg, function(answer){
if(answer){
event.preventDefault();
if(properties.name.isOldCtrl == true){
isSpecialDataChanged = true;
}
var workspaceScrollAreaContent = $this.parents('.workspaceScrollAreaContent');
var empryProperty = $this.is('.selected');
$this.remove();
controlDataChange();
if (empryProperty){
$('.ctrlDescription').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$('.propertyList:visible').empty();
}
if(workspaceScrollAreaContent.is(':empty')){
if(workspaceScrollAreaContent.parents('.reportBuilder').length > 0){
showBuildReportGetStart();
}else{
showBuildFormGetStart();
}
}
if($this.is('.ctrlBreakPointDataElement')){
//update column number
updateReportDataElementColumnNumber();
}
/*$this.slideUp('normal', function()
{
if ($this.is('.selected'))
$('.propertyList:visible').empty();
$this.remove();
});*/
}
});
});
$this.find('.duplicateControl')
.click(function(event)
{
if(type == 'inputSaveAndSend'){
jAlert(msg_bf_ctrl_deprecated);
return;
}
if($this.parents('.ctrlTable').length > 0){
var $target = $($this.parents('.ctrlTable')[0]);
if(!isVersion4_0()){
if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) {
jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE))
return;
}
}
}
if($this.parents('.ctrlSchedule').length > 0){
var $target = $($this.parents('.ctrlSchedule')[0]);
if(!isVersion4_0()){
if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) {
jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE))
return;
}
}
}
if($this.parents('.ctrlScoreTable').length > 0){
var $target = $($this.parents('.ctrlScoreTable')[0]);
/*
if(!isVersion5_0()){
if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) {
jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE))
return;
}
}*/
}
if($this.parents('.ctrlGrid').length > 0){
var $target = $($this.parents('.ctrlGrid')[0]);
}
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
event.preventDefault();
$('.workspace:visible .just-paste.hideSession').remove();
$('.workspace:visible .just-paste').removeClass('just-paste');
var newCtrl = duplicate($this, type, properties);
newCtrl.addClass('just-paste');
controlDataChange();
if($this.is('.ctrlBreakPointDataElement')){
//update column number
updateReportDataElementColumnNumber();
}
ctrlDuplicate = true;
});
$this.find('.moveUpControl')
.click(function(event)
{
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
controlDataChange();
$('.workspace:visible .just-paste.hideSession').remove();
$('.workspace:visible .just-paste').removeClass('just-paste');
$('.workspace:visible .ctrlRedoMark').remove();
$('.workspace:visible .ctrlUndoMark').remove();
$('.workspace:visible .ctrlUndoDeleteMark').remove();
$('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark');
if($this.is(':first-child')){
$this.addClass('first-child');
}
if($this.is(':last-child')){
$this.addClass('last-child');
}
var prevCtrl = $this.prev();
if(prevCtrl == undefined || prevCtrl.length == 0){
}else{
var ctrlId = $this.attr('id');
var ctrlUndoMark = $('
');
ctrlUndoMark.attr('data', ctrlId);
ctrlUndoMark.insertAfter($this);
if(prevCtrl.hasClass('first-child') || prevCtrl.is(':first-child')){
prevCtrl.removeClass('first-child');
$this.addClass('first-child');
}
if($this.hasClass('last-child')){
$this.removeClass('last-child');
prevCtrl.addClass('last-child');
}
prevCtrl.before($this);
if($this.is('.ctrlBreakPointDataElement')){
//update column number
updateReportDataElementColumnNumber();
}
if(prevCtrl.hasClass('second-element')){
prevCtrl.removeClass('second-element');
$this.addClass('second-element');
}
}
});
$this.find('.moveDownControl')
.click(function(event)
{
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
controlDataChange();
$('.workspace:visible .just-paste.hideSession').remove();
$('.workspace:visible .just-paste').removeClass('just-paste');
$('.workspace:visible .ctrlRedoMark').remove();
$('.workspace:visible .ctrlUndoMark').remove();
$('.workspace:visible .ctrlUndoDeleteMark').remove();
$('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark');
if($this.is(':first-child')){
$this.addClass('first-child');
}
if($this.is(':last-child')){
$this.addClass('last-child');
}
var nextCtrl = $this.next();
while(nextCtrl != undefined && nextCtrl.length > 0 && !nextCtrl.hasClass(CONST_CLASS_CONTROL)){
nextCtrl = nextCtrl.next();
}
if(nextCtrl == undefined || nextCtrl.length == 0){
}else{
var ctrlId = $this.attr('id');
var ctrlUndoMark = $('
');
ctrlUndoMark.attr('data', ctrlId);
ctrlUndoMark.insertBefore($this);
if(nextCtrl.hasClass('last-child')){
nextCtrl.removeClass('last-child');
$this.addClass('last-child');
}
if($this.hasClass('first-child')){
$this.removeClass('first-child');
nextCtrl.addClass('first-child');
}
nextCtrl.after($this);
if($this.is('.ctrlBreakPointDataElement')){
//update column number
updateReportDataElementColumnNumber();
}
if($this.hasClass('second-element')){
$this.removeClass('second-element');
nextCtrl.addClass('second-element');
}
}
});
var cachedHeight = 0;
var prevTemp;
$this.workspaceDraggable({
draggableOptions: {
start: function(event, ui)
{
if($this.hasClass('podSpecialCtrl')){
//return;
}
if($this.hasClass('invSpecialCtrl')){
//return;
}
if($this.hasClass('scheduleSpecialCtrl')){
//return;
}
if($this.hasClass('ctrlDataSource')){
return;
}
if($this.hasClass('ctrlHeaderGrid')){
return;
}
if($this.hasClass('ctrlDataFilter')){
return;
}
if($this.hasClass('ctrlReportBreakPoint')){
return;
}
if($this.hasClass('ctrlBreakPointData')){
return;
}
if($this.hasClass('ctrlFooterGrid')){
return;
}
if($this.hasClass('ctrlEmailSchedule')){
return;
}
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
var ctrlId = $this.attr('id');
$('.workspace:visible .just-paste').removeClass('just-paste');
$('.workspace:visible .ctrlRedoMark').remove();
$('.workspace:visible .ctrlUndoMark').remove();
$('.workspace:visible .ctrlUndoDeleteMark').remove();
$('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark');
console.log(ctrlId);
if(!$this.hasClass('multi-selected')){
$('.control.multi-selected').removeClass('multi-selected');
}
var selectedCtrls = $('.workspaceScrollArea:visible .multi-selected');
if(selectedCtrls.length>0){
for(var i=0; i');
ctrlUndoMark.attr('data', ctrlId);
ctrlUndoMark.insertAfter(selectedCtrl);
}
}else{
var ctrlUndoMark = $('
');
ctrlUndoMark.attr('data', ctrlId);
ctrlUndoMark.insertAfter($this);
}
prevTemp = $this.prev();
ui.helper.width($this.width());
cachedHeight = $this.outerHeight(true) - 15;
if(cachedHeight>88){
cachedHeight = 88;
}
$this
.after(
$('' + type + '
')
.css('height', cachedHeight + 'px'))
.hide()
.appendTo($('body'));
}
},
dragCallback: function($control, direction)
{
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
$('.workspace:visible .hideSessionImp').remove();
$('.workspace:visible .just-paste').removeClass('just-paste');
$('.workspace:visible .placeholder')
.addClass('closing')
.slideUp('fast', function()
{
$(this).remove();
});
$('.control.ui-draggable-dragging')
.toggleClass('last', $control.is(':last-child') && (direction > 0))
var $placeholder = $('' + type + '
')
.css('height', cachedHeight + 'px')
.slideDown('fast');
if($this.is('.ctrlBreakPointDataElement')){
if(isInsideTheBreakPointData($control)){
if (direction < 0){
$control.before($placeholder);
} else if (direction == 0){
$control.append($placeholder);
}else if (direction > 0){
$control.after($placeholder);
}
}
}else{
if (direction < 0){
$control.before($placeholder);
} else if (direction == 0){
$control.append($placeholder);
}else if (direction > 0){
$control.after($placeholder);
}
}
},
dropCallback: function($helper)
{
if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){
return;
}
var $target = $('.workspace:visible .placeholder:not(.closing)');
if(($this.is('.podSpecialCtrl') || $this.is('.invSpecialCtrl') || $this.is('.scheduleSpecialCtrl')) && $('.workspace:visible .ctrlUndoMark').length > 0){
var $ctrlUndoMark = $('.workspace:visible .ctrlUndoMark');
if($target.parents('.ctrlPOD') != $ctrlUndoMark.parents('.ctrlPOD')){
$ctrlUndoMark.replaceWith($this);
$this.show();
$('.workspace:visible .placeholder:not(.closing)').remove();
return;
}
}
controlDataChange();
if($('.getStartVideo')){
$('.getStartVideo').remove();
}
if ($target.length == 1){
if($this.hasClass('multi-selected')){
var selectedCtrls = $('.workspace:visible .control.multi-selected');
$target.replaceWith($this);
var $current = $this;
var thisPos = multiSelectedControls[$this.attr('id')];
for(var index=0; index 0){
isSearchCtrl.attr('style', 'display:none');
var isSearchCtrlChk = isSearchCtrl.find('.editorCheckbox');
if(properties.isSearchField){
properties.isSearchField.value = false;
}
if(isSearchCtrlChk.length > 0 && isSearchCtrlChk[0].checked){
$('.propertiesPane:visible li.name .editorTextfield').trigger('searchDataNameChange', false);
//$(isSearchCtrlChk[0]).click();
isSearchCtrlChk.prop('checked', false);
}
}
}else{
if(properties.isSearchField != undefined){
properties.isSearchField.value = false;
}
}
}
var isInPOD = isInsideThePOD($this);
var isInTable = isInsideTheInvoiceTable($this);
var isInGrid = isInsideTheGrid($this);
var isInButtonGrid = isInsideTheButtonGrid($this);
var isInBreakPointData = isInsideTheBreakPointData($this);
if (isInTable || isInGrid || isInButtonGrid || isInBreakPointData || isInPOD){
if($this.hasClass('selected')){
if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){
}else{
$('.propertiesPane:visible .skipConditionsEditor .removeCondition').trigger('click', true);
}
$('.propertiesPane:visible .relevanceConditionsEditor .removeCondition').trigger('click', true);
var $propertyList = $('.propertyList:visible');
if($propertyList.find('.advanced').length > 0){
$propertyList.find('.advanced').attr('style', 'display:none');
}else{
$propertyList.find('.relevanceConditionsEditor').attr('style', 'display:none');
}
if(isInButtonGrid){
$propertyList.find('.imgJustify').attr('style', 'display:none');
if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial');
}
}else{
if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none');
$propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change');
}
}
if(isVersion(VERSION_NEW_TOOL_LAYOUT)){
if(properties.iteConditions && isVersion(properties.iteConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
if(properties.skipIfConditions && isVersion(properties.skipIfConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
$propertyList.find('li.isShowRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$propertyList.find('li.relevanceconds').addClass(CONST_CSS_CLASS_HIDE_SESSION);
if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){
}else{
$propertyList.find('li.isShowSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$propertyList.find('li.skipconds').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
if(properties.readOnlyIfConditions && isVersion(properties.readOnlyIfConditions.version)){
}else{
$propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}
}
if(isInTable){
//in talbe
if(properties.apperance){
if(isVersion(VERSION_SHOW_SECONDS_COLOR_ANSWER) && properties.answerColor){
}else{
$propertyList.find('.apperance').attr('style', 'display:none');
properties.apperance.value = "Default";
}
}
if(properties.removeAnswerBorder){
$propertyList.find('.removeAnswerBorder').attr('style', 'display:none');
properties.removeAnswerBorder.value = false;
}
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
}else if(isInPOD){
//in POD
if(properties.apperance){
//$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
$propertyList.find('.apperance').attr('style', 'display:none');
properties.apperance.value = "Default";
}
if(properties.removeAnswerBorder){
$propertyList.find('.removeAnswerBorder').attr('style', 'display:none');
properties.removeAnswerBorder.value = false;
}
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
if($propertyList.find('.hintLink').length > 0){
$propertyList.find('.hintLink').attr('style', 'display:none');
}
if($propertyList.find('.imgJustify').length > 0){
$propertyList.find('.imgJustify').attr('style', 'display:none');
}
if($propertyList.find('li.range').length > 0){
$propertyList.find('li.range').attr('style', 'display:none');
}
if($propertyList.find('li.validateValue').length > 0){
$propertyList.find('li.validateValue').attr('style', 'display:none');
}
if($propertyList.find('li.tip').length > 0){
$propertyList.find('li.tip').attr('style', 'display:none');
}
}else{
//in grid
if(isInsideTheGridFreeForm($this)){
if(properties.id.ctrlType != 'inputLabel'){
if(properties.apperance){
$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none');
properties.apperance.value = "Default";
}
if($propertyList.find('.shadedHeadings').length > 0){
$propertyList.find('.shadedHeadings').attr('style', 'display:none');
}
}
}
}
if(properties.removeSpaceGroup){
$propertyList.find('.removeSpaceGroup').attr('style', 'display:none');
}else{
if(properties.removeSpaceAbove){
$propertyList.find('.removeSpaceAbove').attr('style', 'display:none');
}
if(properties.removeSpaceBelow){
$propertyList.find('.removeSpaceBelow').attr('style', 'display:none');
}
}
}else{
if(properties.relevanceconds != undefined){
properties.relevanceconds.value = [];
}
if(properties.skipconds != undefined){
properties.skipconds.value = [];
}
}
if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){
}else if(isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowSkipCondition){
properties.isShowSkipCondition.value = false;
}
if(isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowRelevanceCondition){
properties.isShowRelevanceCondition.value = false;
}
if(isVersion(VERSION_READ_ONLY_IF) && properties.isShowReadOnlyIfCondition){
properties.isShowReadOnlyIfCondition.value = false;
}
var $info = $this.children('.controlInfo');
$info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$info.children('.controlSkipIfConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$info.children('.controlIfThenElse').addClass(CONST_CSS_CLASS_HIDE_SESSION);
$info.children('.controlReadOnlyIf').addClass(CONST_CSS_CLASS_HIDE_SESSION);
}else{
if($this.hasClass('selected')){
var $propertyList = $('.propertyList:visible');
if($propertyList.find('.advanced').length > 0){
$propertyList.find('.advanced').attr('style', '');
}else{
$propertyList.find('.relevanceConditionsEditor').attr('style', '');
}
if(isInButtonGrid){
$propertyList.find('.imgJustify').attr('style', '');
if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial');
}
}else{
if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
$propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none');
$propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change');
}
}
}
}
if($this.parents('.ctrlScoreTable').length > 0){
var ctrlCopys = $this.parents('.ctrlScoreTable').find('.workspaceInner .control');
for(var i=0; i 0){
var ctrlCopys = $this.parents('.ctrlGrid').find('.workspaceInner .control');
for(var i=0; i 0){
parents.find('.containerEmptyError').css(CONST_CSS_KEY_DISPLAY, CONST_VALUE_NONE);
}
$this.trigger('click');
},
insertPlaceholder: false
});
});
};
$.fn.addAllExternalForPOD = function(type){
if(type == CONST_CTRL_TYPE_CTRLPOD){
var $this = $(this);
var data = getDataRepresentation($this);
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type);
if(data.children.length == 0){
appendAllExternalForPOD(data.children, data);
loadGroupChildren($this.find('.workspaceInner'), data.children);
}
}
return $(this);
}
$.fn.addAllExternalForINV = function(type){
if(type == CONST_CTRL_TYPE_CTRLINV){
var $this = $(this);
var data = getDataRepresentation($this);
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type);
if(data.children.length == 0){
appendAllExternalForINV(data.children, data);
loadGroupChildren($this.find('.workspaceInner'), data.children);
}
}
return $(this);
}
$.fn.addAllExternalForScheduleWidget = function(type){
if(type == CONST_CTRL_TYPE_CTRLSCHEDULE){
var $this = $(this);
var data = getDataRepresentation($this);
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type);
if(data.children.length == 0){
appendAllExternalForScheduleWidget(data.children, data);
var ctrlProperties = $(this).data('odkControl-properties');
loadGroupChildren($this.find('.workspaceInner'), data.children);
ctrlProperties.dispatchDate.value = data.dispatchDate;
//$this.click();
}
}
return $(this);
}
$.fn.addCtrlExternalForPOD = function(type, isPrepend){
var properties = undefined;
var dataTmp = undefined;
var $this = $(this);
var data = getDataRepresentation($this);
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type);
switch(type){
case '__ID':
// Qty column
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = POD_ID_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__ID';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'ID';
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlPODIDMark';
break;
case '__Qty':
// Qty column
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_QTY_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Qty';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Qty';
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlPODQtyMark';
break;
case '__Actual':
// Actual column
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_ACTUAL_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Actual';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Actual';
var parentCtrlProperties = $(this).data('odkControl-properties');
var actualLabel = lbl_actual;
if(parentCtrlProperties && parentCtrlProperties.podDataSource && parentCtrlProperties.podDataSource.value == CONST_DS_NONE){
actualLabel = lbl_actual_qty;
}
dataTmp.label.eng = actualLabel;
if(data.showActual){
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
}else{
dataTmp.hideInMobile = true;
dataTmp.hideInWeb = true;
dataTmp.hideInPDF = true;
dataTmp.hidePdfWeb = true;
}
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = true;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlPODActualMark';
break;
case '__Damaged':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_DAMAGED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Damaged';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
/*dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;*/
dataTmp.label.eng = 'Damaged';
dataTmp.replaceCtrlClass = 'ctrlPODDamagedMark';
//data.children.push(dataTmp);
break;
case '__Damaged_Check':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTSELECTMANY]);
properties.id.value = POD_DAMAGED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Damaged';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTSELECTMANY;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;
dataTmp.label.eng = 'Damaged';
if(data.manifestMethod != 'button'){
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
}else{
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = false;
}
dataTmp.replaceCtrlClass = 'ctrlPODDamagedMark';
//data.children.push(dataTmp);
break;
case '__Rejected':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_REJECTED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Rejected';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
/*dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;*/
dataTmp.label.eng = 'Rejected';
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlPODRejectedMark';
break;
case '__Rejected_Check':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTSELECTMANY]);
properties.id.value = POD_REJECTED_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Rejected';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTSELECTMANY;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.options = [];
dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'});
dataTmp.displayType = CONST_ACROSS;
dataTmp.label.eng = 'Rejected';
if(data.manifestMethod != 'button'){
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
}else{
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = false;
}
dataTmp.replaceCtrlClass = 'ctrlPODRejectedMark';
//data.children.push(dataTmp);
break;
case '__Comment':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = POD_COMMENT_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Comment';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Comment';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlPODCommentMark';
break;
case '__Deliver':
var label = 'Pickup';
if(data.manifestType == 'delivery'){
label = 'Deliver';
}
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTACTION]);
properties.id.value = POD_DELIVER_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__Deliver';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTACTION;
dataTmp.imgAction = label;
dataTmp.actionBtnText = label;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = label;
//data.children.push(dataTmp);
break;
case '__StopNo':
// Stop # column
/*properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]);
properties.id.value = POD_STOP_NO_COL_ID + data.id;
properties.name.value = 'S' + data.id + '__StopNo';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD;
dataTmp.label.eng = 'Stop #';
dataTmp.hideInMobile = false;
dataTmp.hideInWeb = false;
dataTmp.hideInPDF = false;
dataTmp.hidePdfWeb = false;
dataTmp.readOnly = false;
dataTmp.readOnlyDsp = true;
//data.children.push(dataTmp);*/
break;
}
if(properties){
loadGroupChildren($this.find('.workspaceInner'), [dataTmp], isPrepend);
}
return $(this);
}
$.fn.addCtrlExternalForINV = function(type, isPrepend){
var properties = undefined;
var dataTmp = undefined;
var $this = $(this);
var data = getDataRepresentation($this);
data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type);
switch(type){
case '__ID':
// ID column
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = INV_ID_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__ID';
var $ctrl = $('
').data('odkControl-properties', properties);
dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = 'ID';
dataTmp.readOnly = true;
dataTmp.readOnlyDsp = true;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlINVIDMark';
break;
case '__Comment':
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = INV_COMMENT_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__Comment';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = 'Comment';
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlINVCommentMark';
break;
case '__Image':
var label = 'Photo';
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTIMAGE]);
properties.id.value = INV_IMAGE_COL_ID + data.id;
properties.name.value = 'I' + data.id + 'A__Image';
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUTIMAGE;
dataTmp.imgAction = label;
dataTmp.actionBtnText = label;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = label;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlINVImageMark';
break;
default:
//__|[String|Number]|
var arr = type.split('|');
var kind = CONST_CTRL_KIND_STRING;
if(arr.length>1){
kind = arr[1];
}
var lookupTable = '';
if(arr.length>2){
lookupTable = arr[2];
}
if(kind == CONST_CTRL_KIND_STRING){
properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]);
properties.id.value = nextInvLuFieldIndex(INV_LU_FIELD_COL_ID + data.id);
properties.name.value = 'I' + data.id + 'F__' + arr[0];
var $ctrl = $('
').data('odkControl-properties', properties);
var dataTmp = getDataRepresentation($ctrl);
dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT;
dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV;
dataTmp.label.eng = getLookupFieldName(lookupTable, arr[0]);
dataTmp.readonly = false;
dataTmp.readOnlyDsp = false;
//data.children.push(dataTmp);
dataTmp.replaceCtrlClass = 'ctrlINVCommentMark';
}else{
}
}
if(properties){
loadGroupChildren($this.find('.workspaceInner'), [dataTmp], isPrepend);
}
return $(this);
}
// Constructor
$.fn.odkControlFV = function(type, options, defaultProperties, ctrlPropreties)
{
// Abort for unknown types
if ($.fn.odkControl.controlProperties[type] === undefined)
return;
var options = $.extend({}, $.fn.odkControl.defaults, options);
return this.each(function()
{
var $this = $(this);
// Support the metadata plugin
var config = $.meta ? $.extend({}, options, $this.data()) : options;
$this.data('odkControl-config', config);
$this.data('odkControl-type', type);
// Deep clone the properties if relevant
var properties = null;
if ((type == CONST_CTRL_TYPE_GROUP) ||
(type == 'branch') ||
(type == 'inputPageBreak') ||
(type == 'inputLabel') ||
(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ||
(type == CONST_CTRL_TYPE_INPUTNUMBERING) ||
(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) ||
(type == CONST_CTRL_TYPE_INPUTACTION) ||
(type == CONST_CTRL_TYPE_INPUTPAYMENT) ||
(type == 'inputInstruction') ||
//(type == CONST_CTRL_TYPE_INPUTCALCULATE) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP) ||
(type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) ||
(type == 'inputFacingTable') ||
(type == 'inputLookupMulti') ||
(type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTAPPROVAL) ||
(type == 'inputSaveAndSend') ||
(type == CONST_CTRL_TYPE_CTRLTABLE) ||
(type == CONST_CTRL_TYPE_CTRLSCHEDULE) ||
(type == CONST_CTRL_TYPE_CTRLPOD) ||
(type == CONST_CTRL_TYPE_CTRLINV) ||
(type == CONST_CTRL_TYPE_CTRLSCORETABLE) ||
(type == CONST_CTRL_TYPE_CTRLGRID) ||
(type == CONST_CTRL_TYPE_SCORESUMMARY) ||
(type == 'ctrlBreakPointDataElement') ||
(type == CONST_CTRL_TYPE_CTRLINV)){
properties = defaultProperties || $.extend(true, {}, $.fn.odkControl.controlProperties[type]);
}else{
properties = defaultProperties ||
$.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[type]);
removeUnsupportProperty(properties, type);
}
removeUnuseVersion(properties);
if(type == CONST_CTRL_TYPE_INPUTLOCATION){
properties.defaultValue.type = 'gps';
}else if(type == CONST_CTRL_TYPE_INPUTSELECTONE){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTSCOREONE){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
//properties.defaultValue.type = 'string';
}else if(type == CONST_CTRL_TYPE_INPUTSELECTMANY){
properties.defaultValue.type = 'choice';
}else if(type == CONST_CTRL_TYPE_INPUTDATE){
properties.defaultValue.type = 'dateDefaultField';
}else if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){
properties.defaultValue.type = 'numericDefaultField';
properties.defaultValue.kind = 'Integer';
properties.range.kind = 'Integer';
}else if(type == CONST_CTRL_TYPE_INPUTTRENDS){
properties.range.kind = 'Integer';
}else if(type == mdi_kind_inputImage){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputAudio){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputVideo){
properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTMEDIA){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputSketch){
properties.defaultValue.type = 'hidden';
}else if(type == mdi_kind_inputSignature){
properties.defaultValue.type = 'hidden';
}else if(type == 'inputDraw'){
properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTBARCODE){
properties.defaultValue.type = 'barcodeDefaultField';
properties.defaultValue.kind = 'String';
properties.length.kind = 'String';
}else if(type == CONST_CTRL_TYPE_INPUTNFC){
properties.defaultValue.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){
properties.defaultValue.type = 'forwardDefaultField';
properties.defaultValue.kind = CONST_VALUE_NONE;
}else if(type == CONST_CTRL_TYPE_INPUTCOUNTER){
properties.defaultValue.type = 'numericDefaultField';
properties.defaultValue.kind = 'Integer';
properties.range.kind = 'Integer';
}else if(type == CONST_CTRL_TYPE_INPUTCALCULATE){
properties.defaultValue.type = 'hidden';
properties.readOnlyGroup.type = 'hidden';
properties.readOnly.type = 'hidden';
properties.readOnlyDsp.type = 'hidden';
properties.requiredGroup.type = 'hidden';
properties.required.type = 'hidden';
properties.dispatchRequired.type = 'hidden';
}else if(type == CONST_CTRL_TYPE_INPUTATTACHMENT){
properties.defaultValue.type = 'hidden';
}
if(properties.id.value == undefined || properties.id.value == ''){
if(utils.seq.getUniqueId) {
properties.id.value = utils.seq.getUniqueId();
}
$this.find('.controlErrorMessage').addClass('ctrlId_' + properties.id.value);
}
if (properties.name.value == 'untitled' || properties.name.value == ''){
properties.name.value = 'untitled' + properties.id.value;
}
if (properties.name.value == 'page_break'){
properties.name.value = 'page_break' + properties.id.value;
}
$this.data('odkControl-properties', properties);
$this.on('odkControlFV-propertiesUpdated', function(event)
{
event.stopPropagation();
refreshFromViewProperties($this, type, config, properties);
});
$this.trigger('odkControlFV-propertiesUpdated');
fillDataControlFV($this, type, config, properties, ctrlPropreties);
// special treatment for groups and branches
// if (type == CONST_CTRL_TYPE_GROUP)
// $('')
// .insertAfter($this.children('.controlInfo'));
if (type == CONST_CTRL_TYPE_GROUP){
var groupCtrl = $('')
.insertAfter($this.children('.controlInfo'));
// PCA-293: Webapp/Preview - Apply new block formats for all widgets.
//if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP) && glbBuildFormSettingsWA.isShadedheadings === true)
if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP))
{ //hqkhanh
$this.addClass('no-border-left-shading').addClass('no-padding-left-shading');
groupCtrl.addClass('group-shaded-mode-shading');
groupCtrl.addClass('no-padding-left-shading');
}
}
});
};
// Update the label "Required" into "Mobile Required"
// (only for latest version)
if (true === isUsingDispatchRequiredCustom()) {
lbl_required = lbl_required_alternative_value;
lbl_required_des = lbl_required_des_alternative_value;
}
// Plugin Defaults
$.fn.odkControl.defaults = {
};
// Default property fields
$.fn.odkControl.defaultProperties = {
id: { type: CONST_VALUE_NONE,
value:''
},
ctrlDesc: { name: '',
type: 'uiLabel',
description: '',
value:{Version: CTRL_VERSION_1_0},
valueIfUndefined: {Version: CTRL_VERSION_1_0}
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: '',//lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: lbl_data_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
defaultValue: { name: lbl_default_val,
type: 'text',
description: lbl_default_val_des,
value: '',
info_msg: {inputText: hl_text + '#default-value',
inputNumeric: hl_numeric + '#default-value',
inputTrends: hl_trends + '#default-value',
inputDate: hl_date_time + '#default-value',
inputSelectOne: hl_choose_one + '#default-value',
inputScoreOne: hl_score_by_category + '#default-value',
inputSelectMany: hl_select_multiple + '#default-value',
inputLocation: hl_gps_location + '#default-value',
inputImage: hl_image + '#default-value',
inputAudio: hl_audio + '#default-value',
inputVideo: hl_video + '#default-value',
inputMedia: hl_media + '#default-value',
inputSketch: hl_sketch + '#default-value',
inputSignature: hl_signature + '#default-value',
inputDraw: hl_draw + '#default-value',
inputBarcode: hl_barcode + '#default-value',
inputNFC: hl_nfc + '#default-value',
inputForward: hl_forward + '#default-value',
inputSecureForward: hl_forward + '#default-value',
inputCounter: hl_counter + '#default-value',
inputRIF: hl_rif + '#default-value',
inputPageBreak: hl_page + '#default-value',
inputLabel: hl_label + '#default-value',
inputScoreSummary: hl_score_summary + '#default-value',
inputNumbering: hl_auto_number + '#default-value',
inputAction: hl_action_buttons + '#default-value',
inputPayment: hl_payment + '#default-value',
inputInstruction: hl_instruction + '#default-value',
inputEmailReport: hl_email + '#default-value',
inputSecureEmailReport: hl_email + '#default-value',
inputApproval: hl_approval + '#default-value',
inputCalculate: hl_calculations + '#default-value',
inputLookup: hl_data_lookup + '#default-value',
inputLFBluetooth: hl_lf_bluetooth + '#default-value',
inputLookupRetrieve: hl_data_lookup + '#default-value',
inputFacingTable: hl_facings + '#default-value',
inputLookupMulti: hl_data_lookup + '#default-value',
inputSaveAndSend: hl_save_end_send + '#default-value',
group: hl_repeatable + '#default-value',
ctrlTable: hl_table + '#default-value',
ctrlSchedule: hl_table + '#default-value',
ctrlGrid: hl_layout_grid + '#default-value',
ctrlScoreTable: hl_questionnaire + '#default-value',
ctrlButtonGrid: hl_button_grid + '#default-value'},
info_icon: false,
summary: false },
numberOfLine: { name: lbl_number_of_line,
type: 'numericGTZero',
description: lbl_number_of_line_des,
add_class: 'show-up-down',
value: '1',
ctrlActive: [CONST_CTRL_TYPE_INPUT_TEXT],
summary: false,
style: 'padding-top: 5px;',
info_icon: false,
info_msg: hl_text + '#Number-of-lines',
version: VERSION_NOFL},
isSearchField: { name: lbl_is_search_field,
type: 'bool',
description: lbl_is_search_field_des,
value: false,
summary: true,
version: '' + VERSION_OPTION_SERABLE_FILED },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: {inputText: hl_shared_ajr + '#remove-space',
inputNumeric: hl_shared_ajr + '#remove-space',
inputTrends: hl_shared_ajr + '#remove-space',
inputDate: hl_shared_ajr + '#remove-space',
inputSelectOne: hl_shared_ajr + '#remove-space',
inputScoreOne: hl_shared_ajr + '#remove-space',
inputSelectMany: hl_shared_ajr + '#remove-space',
inputLocation: hl_shared_ajr + '#remove-space',
inputImage: hl_shared_ajr + '#remove-space',
inputAudio: hl_shared_ajr + '#remove-space',
inputVideo: hl_shared_ajr + '#remove-space',
inputMedia: hl_shared_ajr + '#remove-space',
inputSketch: hl_shared_ajr + '#remove-space',
inputSignature: hl_shared_ajr + '#remove-space',
inputDraw: hl_shared_ajr + '#remove-space',
inputBarcode: hl_shared_ajr + '#remove-space',
inputNFC: hl_shared_ajr + '#remove-space',
inputForward: hl_shared_ajr + '#remove-space',
inputSecureForward: hl_shared_ajr + '#remove-space',
inputCounter: hl_shared_ajr + '#remove-space',
inputRIF: hl_shared_ajr + '#remove-space',
inputPageBreak: hl_shared_ajr + '#remove-space',
inputLabel: hl_shared_ajr + '#remove-space',
inputScoreSummary: hl_shared_ajr + '#remove-space',
inputNumbering: hl_shared_ajr + '#remove-space',
inputAction: hl_shared_ajr + '#remove-space',
inputPayment: hl_shared_ajr + '#remove-space',
inputInstruction: hl_shared_ajr + '#remove-space',
inputEmailReport: hl_shared_ajr + '#remove-space',
inputSecureEmailReport: hl_shared_ajr + '#remove-space',
inputApproval: hl_shared_ajr + '#remove-space',
inputCalculate: hl_shared_ajr + '#remove-space',
inputLookup: hl_shared_ajr + '#remove-space',
inputLFBluetooth: hl_shared_ajr + '#remove-space',
inputLookupRetrieve: hl_shared_ajr + '#remove-space',
inputFacingTable: hl_shared_ajr + '#remove-space',
inputLookupMulti: hl_shared_ajr + '#remove-space',
inputSaveAndSend: hl_shared_ajr + '#remove-space',
group: hl_shared_ajr + '#remove-space',
ctrlTable: hl_shared_ajr + '#remove-space',
ctrlSchedule: hl_shared_ajr + '#remove-space',
ctrlGrid: hl_shared_ajr + '#remove-space',
ctrlScoreTable: hl_shared_ajr + '#remove-space',
ctrlButtonGrid: hl_shared_ajr + '#remove-space'},
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_read_only_group_des,
info_msg: {inputText: hl_shared_readonly + '#read-only',
inputNumeric: hl_shared_readonly + '#read-only',
inputTrends: hl_shared_readonly + '#read-only',
inputDate: hl_shared_readonly + '#read-only',
inputSelectOne: hl_shared_readonly + '#read-only',
inputScoreOne: hl_shared_readonly + '#read-only',
inputSelectMany: hl_shared_readonly + '#read-only',
inputLocation: hl_shared_readonly + '#read-only',
inputImage: hl_shared_readonly + '#read-only',
inputAudio: hl_shared_readonly + '#read-only',
inputVideo: hl_shared_readonly + '#read-only',
inputMedia: hl_shared_readonly + '#read-only',
inputSketch: hl_shared_readonly + '#read-only',
inputSignature: hl_shared_readonly + '#read-only',
inputDraw: hl_shared_readonly + '#read-only',
inputBarcode: hl_shared_readonly + '#read-only',
inputNFC: hl_shared_readonly + '#read-only',
inputForward: hl_shared_readonly + '#read-only',
inputSecureForward: hl_shared_readonly + '#read-only',
inputCounter: hl_shared_readonly + '#read-only',
inputRIF: hl_shared_readonly + '#read-only',
inputPageBreak: hl_shared_readonly + '#read-only',
inputLabel: hl_shared_readonly + '#read-only',
inputScoreSummary: hl_shared_readonly + '#read-only',
inputNumbering: hl_shared_readonly + '#read-only',
inputAction: hl_shared_readonly + '#read-only',
inputPayment: hl_shared_readonly + '#read-only',
inputInstruction: hl_shared_readonly + '#read-only',
inputEmailReport: hl_shared_readonly + '#read-only',
inputSecureEmailReport: hl_shared_readonly + '#read-only',
inputApproval: hl_shared_readonly + '#read-only',
inputCalculate: hl_shared_readonly + '#read-only',
inputLookup: hl_shared_readonly + '#read-only',
inputLFBluetooth: hl_shared_readonly + '#read-only',
inputLookupRetrieve: hl_shared_readonly + '#read-only',
inputFacingTable: hl_shared_readonly + '#read-only',
inputLookupMulti: hl_shared_readonly + '#read-only',
inputSaveAndSend: hl_shared_readonly + '#read-only',
group: hl_shared_readonly + '#read-only',
ctrlTable: hl_shared_readonly + '#read-only',
ctrlSchedule: hl_shared_readonly + '#read-only',
ctrlGrid: hl_shared_readonly + '#read-only',
ctrlScoreTable: hl_shared_readonly + '#read-only',
ctrlButtonGrid: hl_shared_readonly + '#read-only'},
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
readOnlyDsp: { name: lbl_dispatch_read_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: lbl_dispatch_read_only_des,
valueIfUndefined: false,
value: false,
summary: true,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_read_only_grp,
grp_description: lbl_dispatch_read_only_grp_des,
version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
showSelectAll: true,
info_msg: {inputText: hl_shared_required + '#required',
inputNumeric: hl_shared_required + '#required',
inputTrends: hl_shared_required + '#required',
inputDate: hl_shared_required + '#required',
inputSelectOne: hl_shared_required + '#required',
inputScoreOne: hl_shared_required + '#required',
inputSelectMany: hl_shared_required + '#required',
inputLocation: hl_shared_required + '#required',
inputImage: hl_shared_required + '#required',
inputAudio: hl_shared_required + '#required',
inputVideo: hl_shared_required + '#required',
inputMedia: hl_shared_required + '#required',
inputSketch: hl_shared_required + '#required',
inputSignature: hl_shared_required + '#required',
inputDraw: hl_shared_required + '#required',
inputBarcode: hl_shared_required + '#required',
inputNFC: hl_shared_required + '#required',
inputForward: hl_shared_required + '#required',
inputSecureForward: hl_shared_required + '#required',
inputCounter: hl_shared_required + '#required',
inputRIF: hl_shared_required + '#required',
inputPageBreak: hl_shared_required + '#required',
inputLabel: hl_shared_required + '#required',
inputScoreSummary: hl_shared_required + '#required',
inputNumbering: hl_shared_required + '#required',
inputAction: hl_shared_required + '#required',
inputPayment: hl_shared_required + '#required',
inputInstruction: hl_shared_required + '#required',
inputEmailReport: hl_shared_required + '#required',
inputSecureEmailReport: hl_shared_required + '#required',
inputApproval: hl_shared_required + '#required',
inputCalculate: hl_shared_required + '#required',
inputLookup: hl_shared_required + '#required',
inputLFBluetooth: hl_shared_required + '#required',
inputLookupRetrieve: hl_shared_required + '#required',
inputFacingTable: hl_shared_required + '#required',
inputLookupMulti: hl_shared_required + '#required',
inputSaveAndSend: hl_shared_required + '#required',
group: hl_shared_required + '#required',
ctrlTable: hl_shared_required + '#required',
ctrlSchedule: hl_shared_required + '#required',
ctrlGrid: hl_shared_required + '#required',
ctrlScoreTable: hl_shared_required + '#required',
ctrlButtonGrid: hl_shared_required + '#required'},
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
/*apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertBefore: 'justificationGroup',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
version: '' + VERSION_PORTAL_SHADING},*/
skip: { name: lbl_skip,
type: 'subAddvanceSkip',
description: lbl_skip_des,
value: '',
advanced: true,
moreadvanced: false,
skip: false,
relevance: false,
skipcond: false,
summary: false },
skipconds: { name: 'SkipConds',
type: 'subAddvanceSkip',
description: '',
value: '',
advanced: true,
moreadvanced: false,
skip: true,
relevance: false,
skipcond: true,
summary: false },
relevance: { name: lbl_relevance,
type: 'subAddvanceRelevance',
description: lbl_relevance_des,
value: '',
advanced: true,
moreadvanced: false,
skip: false,
relevance: false,
relevancecond:false,
summary: false },
relevanceconds: { name: 'RelevanceConds',
type: 'subAddvanceRelevance',
description: '',
value: '',
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false }/*,
constraint: { name: lbl_constraint,
type: 'text',
description: lbl_constraint_des,
value: '',
advanced: true,
moreadvanced: true,
skip: false,
relevance: false,
summary: false },
constraintmessage: { name: lbl_const_msg,
type: 'text',
description: lbl_const_msg_des,
value: '',
advanced: true,
moreadvanced: true,
skip: false,
relevance: false,
summary: false },
destination: { name: lbl_inst_dest,
type: 'text',
description: lbl_inst_dest_des,
value: '',
advanced: true,
moreadvanced: true,
skip: false,
relevance: false,
summary: false }*/
};
// Remove property dispatchRequired in case of checking wrong version
if (false == isUsingDispatchRequiredCustom()) {
// Remove property [dispatchRequired] out of $.fn.odkControl.defaultProperties
delete $.fn.odkControl.defaultProperties.dispatchRequired;
}
// Property fields per control type
$.fn.odkControl.controlProperties = {
inputText: {
ctrlProperty: { name: lbl_text_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_text,
version: '' + VERSION_CTRL_PROPERTY_EXP},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
keyboardType: { name: lbl_keyboard,
type: 'enumeration_radio',
description: '',
options: [ CONST_KB_TYPE_TEXT + CONST_DOUBLE_DOLLAR + lbl_keyboard_text,
CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + lbl_keyboard_no,
CONST_KB_TYPE_NONE + CONST_DOUBLE_DOLLAR + lbl_keyboard_none + '$$version=' + VERSION_ZEBRA_KEYBOARD_ENHANCEMENT],
showOptionAcross: true,
value: CONST_KB_TYPE_TEXT,
valueIfUndefined: CONST_KB_TYPE_TEXT,
//insertBefore: 'justificationGroup',
insertAfter: 'removeSpaceGroup',
display_if_value_equal: [CONST_KB_TYPE_NO + '$$showSymbols'],
trigger_if_value_equal: [CONST_KB_TYPE_TEXT + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED,
CONST_KB_TYPE_NO + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED,
CONST_KB_TYPE_NONE + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED],
version: VERSION_TEXT_KEYBOARD_TYPE.toString()},
lockScreen: { name: lbl_lock_screen,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
style: 'padding-top: 5px;',
insertAfter: 'keyboardType',
version: VERSION_LOCK_SCREEN.toString()},
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
insertBefore: 'justificationGroup',
summary: false },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_text + '#format',
insertAfter: 'numberOfLine$$' + VERSION_GROUP_FUNCTION,
version: VERSION_GROUP_FUNCTION.toString() },
formatGroup: { name: lbl_format_group,
type: 'property_group',
add_class: 'notAcross',
description: '',
//insertBefore: 'justificationGroup,keyboardType$$' + VERSION_TEXT_KEYBOARD_TYPE,
insertAfter: 'showGroupFormat$$' + VERSION_GROUP_FUNCTION,
summary: true,
info_msg: hl_text + '#format',
info_icon: true,
version: VERSION_TEXT_FORMAT_OPTION.toString()},
socialSecurityFormat: { name: lbl_social_format,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_social_format,
grp_description: '',
version: VERSION_TEXT_FORMAT_OPTION.toString()},
phoneNoFormat: { name: lbl_phone_no_format,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_phone_no_format,
grp_description: '',
display_if_true_ctrl: 'phoneFormatKind',
version: VERSION_TEXT_FORMAT_OPTION.toString()},
phoneFormatKind: { name: '',
type: 'enumeration_radio',
hideCaption: true,
add_class: 'notAcross not-use-fieldset',
options: [ '0$$' + lbl_phone_1,
'1$$' + lbl_phone_2,
'2$$' + lbl_phone_3,
'3$$' + lbl_phone_4],
value: '0',
summary: true,
parent_group: 'formatGroup',
show_condition_ques: 'phoneNoFormat',
show_condition_ques_val: true,
version: VERSION_TEXT_FORMAT_OPTION.toString()},
isCustomFormat: { name: lbl_txt_custom_format, // CO-2251
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_txt_custom_format,
grp_description: '',
display_if_true_ctrl: 'txtCustomFormatVal,txtCustomFormatTip,isShowCustomFormat,customFormatTextChar,customFormatNumChar',
info_msg: hl_text + '#format',
info_icon: false,
version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()},
customFormatTextChar:{ name: lbl_text_char,
type: 'text',
description: '',
style: 'padding-left: 25px; clear: both;',
add_class: CONST_ACROSS + ' not-use-fieldset',
/*kind: CONST_KIND_ALPHA_SYMBOL,*/
maxChar: 1,
required: false,
value: 'a',
valueIfUndefined: 'a',
parent_group: 'formatGroup',
show_condition_ques: 'isCustomFormat',
show_condition_ques_val: true,
version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()},
customFormatNumChar:{ name: lbl_num_char,
type: 'text',
description: '',
style: 'padding-left: 25px; clear: both;',
add_class: CONST_ACROSS + ' not-use-fieldset',
/*kind: CONST_KIND_ALPHA_SYMBOL,*/
maxChar: 1,
required: false,
value: 'n',
valueIfUndefined: 'n',
parent_group: 'formatGroup',
show_condition_ques: 'isCustomFormat',
show_condition_ques_val: true,
version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()},
isShowCustomFormat: { name: lbl_txt_custom_format_show_format, // CO-2680
type: 'bool',
description: '',
value: false,
summary: true,
style: 'padding-top: 5px; padding-left: 20px; clear: both;',
add_class: 'isShowCustomFormatStyle',
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_txt_custom_format_show_format,
grp_description: '',
display_if_true_ctrl: 'isCustomFormat',
show_condition_ques_val: true,
version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()},
txtCustomFormatVal: { name: '', // CO-2251
type: 'text',
hideCaption: true,
value: '',
summary: true,
add_class: 'txtCustomFormatSytle not-use-fieldset',
parent_group: 'formatGroup',
paddingLeft: '3px',
show_condition_ques: 'isCustomFormat',
show_condition_ques_val: true,
version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()},
lockNumericKeyboard: { name: lbl_lock_mumeric_keyboard,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_lock_mumeric_keyboard,
grp_description: '',
display_if_true_ctrl: 'showSymbols',
add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP,
version: VERSION_LOCK_MUMERIC_KB_OPTION.toString()},
showSymbols: { name: lbl_show_symbols,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_show_symbols,
grp_description: '',
show_condition_ques: 'lockNumericKeyboard,keyboardType$$' + VERSION_TEXT_KEYBOARD_TYPE,
show_condition_ques_val: 'true,' + CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + VERSION_TEXT_KEYBOARD_TYPE,
version: VERSION_SHOW_SYMBOLS.toString()},
uppercaseLock: { name: lbl_uppercase_lock,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_uppercase_lock,
grp_description: '',
version: VERSION_UPPERCASE_LOCK.toString()},
suppressKeyboard: { name: lbl_suppress_keyboard, // CO-2559:Suppress keyboard setting - Text Field
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
parent_group: 'formatGroup',
grp_name: lbl_suppress_keyboard,
grp_description: '',
hideVersion: VERSION_GROUP_FUNCTION.toString(),
version: VERSION_SUPPRESS_KEYBOARD.toString()},
grayCaption: { name: lbl_gray_caption_text,
type: 'bool',
description: '',
value: false,
grp_type: CONST_BOOL_GRP,
grp_name: lbl_gray_caption_text,
parent_group: 'formatGroup',
marginTop: '-5px',
display_if_true_ctrl: 'grayCaptionText',
version: VERSION_GRAY_CAPTION_TEXT.toString()},
/*grayCaptionText: { name: '',
type: 'text',
value: '',
parent_group: 'formatGroup',
paddingLeft: '25px',
show_condition_ques: 'grayCaption',
show_condition_ques_val: true,
version: VERSION_GRAY_CAPTION_TEXT.toString() },*/
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertBefore: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
insertBefore: 'readOnlyGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_GROUP_FUNCTION.toString() },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: '',
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
textParse: { name: lbl_text_parse,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
//insertBefore: 'keyboardType',
info_icon: true,
info_msg: hl_text + '#parse',
display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse',
version: VERSION_TEXT_PARSE.toString()},
textParseDestinationFields: { name: lbl_dest_field,
type: 'textParseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
insertAfter: 'textParse',
show_condition_ques: 'textParse',
show_condition_ques_val: true,
style: 'padding-left: 20px; clear: both;',
version: VERSION_TEXT_PARSE.toString() },
hideAfterParse: { name: lbl_hide_after_parse,
type: 'bool',
description: '',
notForGrid: true,
notForTable: true,
notForPOD: true,
notForValue: false,
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'textParseDestinationFields',
show_condition_ques: 'textParse',
show_condition_ques_val: true,
paddingLeft: '20px',
version: VERSION_TEXT_PARSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
tip: { name: '',
type: 'property_group',
description: lbl_action_group_des_for_text,
hasHtmlTag: true,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
securityGroup: { name: lbl_security_group,
type: 'property_group',
add_class: 'notAcross',
description: '',
insertAfter: 'length',
summary: true,
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_TEXT_SECURITY.toString()},
encryptField: { name: lbl_encrypt_field,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'securityGroup',
grp_name: lbl_encrypt_field,
grp_description: '',
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_TEXT_SECURITY.toString()},
actionJumpGroup: { name: lbl_action_jump_group,
type: 'property_group',
description: '',
summary: true,
//insertBefore: 'apperance',
insertBefore: 'tip',
forContainerOnly: true,
version: VERSION_TEXT_JUMP_ACTION.toString()},
jumpAfterScan: { name: lbl_jump_after_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
hasHtmlTag: true,
valueIfUndefined: false,
summary: true,
parent_group: 'actionJumpGroup',
grp_name: '' + lbl_jump_after_scan + ' ',
grp_description: '',
forContainerOnly: true,
version: VERSION_TEXT_JUMP_ACTION.toString()},
jumpAfterScanOption: { name: '',
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;'
},
showOptionAcross: true,
options: [ '0$$R',
'1$$D'],
value: '0',
summary: true,
parent_group_name: 'jumpAfterScanOption',
paddingLeft: '10px',
version: VERSION_TEXT_JUMP_ACTION.toString()},
duplicateCheck: { name: lbl_verify_duplicates,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: false,
insertBefore: 'tip',
display_if_true_ctrl: 'duplicateCheckField',
version: VERSION_DUPLICAT_CHECK.toString()},
duplicateCheckField: { name: lbl_duplicate_check_field,
type: 'duplicateCheckField',
description: '',
value: [],
summary: false,
required: true,
insertAfter: 'duplicateCheck',
show_condition_ques: 'duplicateCheck',
show_condition_ques_val: true,
style: 'padding-left: 20px; clear: both;',
version: VERSION_DUPLICAT_CHECK.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'duplicateCheckField',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
inputNumeric: {
ctrlProperty: { name: lbl_numeric_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_numeric,
version: '' + VERSION_CTRL_PROPERTY_EXP},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
kind: { name: lbl_number_type,
type: 'enumeration_radio',
description: '',//lbl_number_type_des,
options: [ 'Integer$$' + lbl_kind_integer,
'Decimal$$' + lbl_kind_decimal,
'Percent$$' + lbl_kind_percent + '$$version=' + VERSION_NUMBER_PERCENT],
showOptionAcross: true,
display_if_value_equal: ['Integer,Decimal$$useCurrentcySymbol,decPlace'],
hide_if_value_equal: ['Percent$$currency'],
value: 'Integer',
style: 'padding-bottom: 5px;',
insertAfter: 'defaultValue',
summary: true },
useCurrentcySymbol: { name: lbl_use_curr_sym,
style: 'padding-top: 5px;',
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'kind',
show_condition_ques: 'kind',
show_condition_ques_val: ['Integer', 'Decimal'],
version: '2.12' },
currency: { name: lbl_curr_sym,
type: 'currency_enumeration',
description: '',
options: [ 'None$$' + lbl_currency_none,
'$',
'¥',
'€',
'£',
'ƒ',
'P',
'¢',
'Q',
'L',
'kr',
'p.',
'R$',
'Ft',
'Rp',
'J$',
'Lt',
'C$',
'$U',
'Z$',
'TT$',
'R',
'S/' ],
value: 'None',
summary: true,
insertAfter: 'useCurrentcySymbol',
hide_condition_ques: 'kind',
hide_condition_ques_val: ['Percent'],
version: '2.12' },
decPlace: { name: lbl_decimal_place,
type: 'decimalPlace',
description: lbl_decimal_place_des,
value: '',
insertAfter: 'kind',
summary: false,
add_class: 'makeAcross show-up-down not-use-fieldset',
show_condition_ques: 'kind',
show_condition_ques_val: ['Decimal'],
version: VERSION_DEC_PLACE_NUM.toString() },
range: { name: lbl_range,
type: 'numericRange',
description: '', //lbl_range_des
value: false,
insertAfter: 'currency',
summary: false },
validateValue: { name: lbl_validate,
type: 'numericFieldRange',
description: '',
value: false,
insertAfter: 'range',
child_required: true,
summary: false,
info_msg: hl_numeric + '#compare',
info_icon: true,
icon_style: 'padding-top: 0.1em;',
version: '' + VERSION_VALIDATE_VALUE },
suppressKeyboard: { name: lbl_suppress_keyboard, // CO-2560:Suppress keyboard setting - Numeric Field
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'kind',
valueIfUndefined: false,
grp_type: CONST_BOOL_GRP,
grp_name: lbl_suppress_keyboard,
grp_description: '',
version: VERSION_SUPPRESS_KEYBOARD.toString()},
lockScreen: { name: lbl_lock_screen,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'removeSpaceGroup',
version: VERSION_LOCK_SCREEN.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
negativeGroup: { name: lbl_negative_group,
type: 'property_group',
description: lbl_hide_mobile_web_group_des,
summary: true,
insertBefore: 'range',
add_class: 'notAcross',
info_msg: hl_numeric + '#negative',
info_icon: true,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
negativeRedText: { name: lbl_negative_red,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'negativeGroup',
grp_name: lbl_negative_red,
grp_description: '',
valueIfUndefined: false,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
negativeBrackets: { name: lbl_negative_brackets,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'negativeGroup',
grp_name: lbl_negative_brackets,
grp_description: '',
valueIfUndefined: false,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
isShowComma: { name: lbl_show_comma,
type: 'bool',
description: '',
valueIfUndefined: false,
value: false,
summary: true,
insertBefore: 'negativeGroup',
version: VERSION_NUM_SHOW_COMMA },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: '',
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
tip: { name: '',
type: 'property_group',
description: lbl_action_group_des_for_number_text,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT
},
grayCaption: { name: lbl_gray_caption_text,
type: 'bool',
description: '',
value: false,
insertBefore: 'useCurrentcySymbol',
version: VERSION_GRAY_CAPTION_TEXT.toString()},
securityGroup: { name: lbl_security_group,
type: 'property_group',
add_class: 'notAcross',
description: '',
insertBefore: 'range',
summary: true,
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_TEXT_SECURITY.toString()},
encryptField: { name: lbl_encrypt_field,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'securityGroup',
grp_name: lbl_encrypt_field,
grp_description: '',
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_TEXT_SECURITY.toString()},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'suppressKeyboard',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertBefore: 'tip',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
inputTrends: {
ctrlProperty: { name: lbl_trends_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_trends,
version: '' + VERSION_CTRL_PROPERTY_EXP},
ctrlDesc: { name: lbl_android_webapp_only,
type: 'uiLabel',
description: ''
},
kind: { name: lbl_number_type,
type: 'enumeration',
description: lbl_number_type_des,
options: [ 'Integer$$' + lbl_kind_integer,
'Decimal$$' + lbl_kind_decimal],
value: 'Integer',
insertBefore: 'justificationGroup',
summary: true },
currency: { name: lbl_curr_sym,
type: 'currency_enumeration',
description: '',
options: [ 'None$$' + lbl_currency_none,
'$',
'¥',
'€',
'£',
'ƒ',
'P',
'¢',
'Q',
'L',
'kr',
'p.',
'R$',
'Ft',
'Rp',
'J$',
'Lt',
'C$',
'$U',
'Z$',
'TT$',
'R',
'S/' ],
value: 'None',
insertBefore: 'justificationGroup',
summary: true},
numberOfPrior: { name: lbl_number_of_prior_val,
type: 'numericDefaultField',
kind: 'Number',
description: lbl_number_of_prior_val_des,
value: '',
required: true,
insertBefore: 'justificationGroup',
summary: false },
trendingDate: { name: lbl_trending_date_val,
type: 'enumeration',
description: lbl_trending_date_val_des,
required: true,
options: [lbl_trending_date_default],
value: lbl_trending_date_default,
insertBefore: 'justificationGroup',
summary: false },
keyFieldFilter: { name: lbl_key_field_filter_val,
type: 'enumeration',
description: lbl_key_field_filter_val_des,
required: false,
options: [lbl_sel_question],
value: lbl_sel_question,
insertBefore: 'justificationGroup',
summary: false },
lastEnteredValue: { name: lbl_last_entered_value,
type: 'enumeration',
description: '',
required: false,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
insertBefore: 'justificationGroup',
version: '' + VERSION_LAST_ENTERED_VALUE },
useCurrentcySymbol: { name: lbl_use_curr_sym,
type: 'bool',
description: '',
value: false,
insertBefore: 'justificationGroup',
summary: true},
range: { name: lbl_range,
type: 'numericRange',
description: '', //lbl_range_des,
value: false,
insertBefore: 'justificationGroup',
summary: false },
disTrendsBtn: { name: lbl_dis_trends_btn,
type: 'bool',
description: '',
value: true,
insertBefore: 'justificationGroup',
summary: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'useCurrentcySymbol',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'disTrendsBtn',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputDate: {
ctrlProperty: { name: lbl_date_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_date_time,
version: '' + VERSION_CTRL_PROPERTY_EXP},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',//lbl_type_of_date,
options: [ CONST_VALUE_DATE + CONST_DOUBLE_DOLLAR + lbl_kind_date,
CONST_VALUE_TIME + CONST_DOUBLE_DOLLAR + lbl_kind_time,
CONST_VALUE_DATE_TIME + CONST_DOUBLE_DOLLAR + lbl_kind_datetime],
valueIfUndefined: CONST_VALUE_DATE,
showOptionAcross: true,
display_if_value_equal: ['Time,Date:Time,Date time$$militaryTime',
'Time,Date:Time,Date time$$showSeconds',
'Time,Date:Time,Date time$$useInterval,minuteInterval,rounding,limitUserToIntervalValue',
'Date,Date time$$useCalendarView',
'Time$$isVerifyTime'],//value list$$control list
value: CONST_VALUE_DATE,
insertAfter: 'defaultValue'},
btnType: { name: lbl_btn_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_date_button_text,
CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_date_button_icon],
showOptionAcross: true,
value: 'Button',
valueIfUndefined: 'Button',
insertAfter: 'kind',
display_if_value_equal: [CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + CONST_ICONACTION],//value list$$control list
notForGrid: true,
notForTable: true,
ignoreNotForGridVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE,
ignoreNotForTableVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE,
version: VERSION_SHOW_ICON_BUTTON_DATE_TIME.toString()},
range: { name: lbl_range,
type: 'dateRange',
description: '',//lbl_range_des
value: false,
insertAfter: CONST_BTNTYPE,
summary: false },
validateValue: { name: lbl_validate,
type: 'numericFieldRange',
description: '',
value: false,
insertAfter: 'range',
child_required: true,
summary: false,
info_msg: hl_date_time + '#compare',
info_icon: true,
icon_style: 'padding-top: 0.1em;',
version: '' + VERSION_DATE_TIME_COMPARE },
autoStamp: { name: lbl_auto_stamp,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: CONST_BTNTYPE,
info_msg: hl_date_time + '#autostamp',
info_icon: true,
// style: 'padding-top: 5px;', //enable this property if not is version VERSION_DATE_SHOW_NOW_BTN
// icon_style: 'padding-top: 5px;',//enable this property if not is version VERSION_DATE_SHOW_NOW_BTN
version: '1.3' },
showNowBtn: { name: lbl_remove_today_btn,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: CONST_BTNTYPE,
style: 'padding-top: 5px;',
isNagativeValue: true,
version: VERSION_DATE_SHOW_NOW_BTN.toString() },
showSeconds: { name: lbl_remove_seconds,
type: 'bool',
description: '',
value: true,
summary: true,
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
insertAfter: 'showNowBtn',
isNagativeValue: true,
version: VERSION_SHOW_SECONDS_COLOR_ANSWER.toString() },
isAllowEdit: { name: lbl_auto_stamp_allow_edit,
type: 'bool',
description: lbl_auto_stamp_allow_edit_des,
value: true,
summary: true,
insertAfter: 'autoStamp',
version: VERSION_ALLOW_EDIT_OPT + '' },
useCalendarView: { name: lbl_use_calendar_view,
type: 'bool',
description: '',
value: false,
summary: true,
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_CTRL_KIND_DATE, CONST_VALUE_DATE_SPACE_TIME],
insertAfter: 'isAllowEdit',
version: VERSION_DATE_TIME_CALENDAR_VIEW + '' },
grayCaption: { name: lbl_gray_caption_text,
type: 'bool',
description: '',
value: false,
insertAfter: 'useCalendarView',
version: VERSION_GRAY_CAPTION_TEXT.toString()},
autoStampTrigger: { name: lbl_auto_stamp_trigger,
type: 'enumeration',
description: lbl_auto_stamp_trigger_des,
required: true,
value: false,
summary: false,
options: [lbl_auto_stamp_select_opt,
/*'1$$' + lbl_auto_stamp_trigger_1,*/
'2$$' + lbl_auto_stamp_trigger_2,
'4$$' + lbl_auto_stamp_trigger_4,
'8$$' + lbl_auto_stamp_trigger_8,
'16$$' + lbl_auto_stamp_trigger_16],
value: lbl_auto_stamp_select_opt,
insertAfter: 'autoStamp',
version: '5.0' },
autoStampTrigger1: { name: lbl_auto_stamp_trigger_1,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger',
version: '5.0' },
autoStampTrigger2: { name: lbl_auto_stamp_trigger_2,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger1',
version: '5.0' },
autoStampTrigger2Ques: { name: lbl_auto_stamp_trigger_2_ques,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
insertAfter: 'autoStampTrigger2',
version: '5.0' },
autoStampTrigger4: { name: lbl_auto_stamp_trigger_4,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger2Ques',
version: '5.0' },
autoStampTrigger4Ques: { name: lbl_auto_stamp_trigger_4_page,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_page],
summary: false,
insertAfter: 'autoStampTrigger4',
version: '5.0' },
autoStampTrigger8: { name: lbl_auto_stamp_trigger_8,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger4Ques',
version: '5.0' },
autoStampTrigger16: { name: lbl_auto_stamp_trigger_16,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger8',
version: '5.0' },
militaryTime: { name: lbl_military_time,
type: 'bool',
description: '',
value: true,
summary: true,
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
insertAfter: 'autoStampTrigger16',
version: '1.3' },
advancedFormat: { name: lbl_date_advance_format,
type: 'enumeration_bool',
description: '',
value: false,
summary: true,
insertAfter: 'militaryTime',
info_msg: hl_date_time + '#advance-format',
info_icon: true,
/*requiredIfChecked: true,*/
icon_style: 'padding-top: 0.3em;',
version: VERSION_DATE_ADVANCE_FORMAT + '' },
defaultValue_tmp: { type: 'hidden',
value: ''
},
isSetCurrentDate: { name: lbl_is_today,
type: 'bool',
description: '',
hasHtmlTag: true,
value: false,
summary: true,
insertAfter: 'defaultValue',
style: 'padding-top: 5px;',
uncheck_if_true_ctrl: 'isSetMonthEndingDate, isSetWeekEndingDate',
version: VERSION_SET_CURRENT_DATE + '' },
isSetWeekEndingDate: { name: lbl_week_ending_date,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isSetCurrentDate',
uncheck_if_true_ctrl: 'isSetMonthEndingDate, isSetCurrentDate',
display_if_true_ctrl: 'endDay, weekEndingDateType',
version: VERSION_SET_WEEK_ENDING_DATE.toString() },
endDay: { name: lbl_end_day,
type: 'enumeration',
description: '',
required: true,
options: [CONST_MONDAY + CONST_DOUBLE_DOLLAR + CONST_MONDAY,
CONST_TUESDAY + CONST_DOUBLE_DOLLAR + CONST_TUESDAY,
CONST_WEDNESDAY + CONST_DOUBLE_DOLLAR + CONST_WEDNESDAY,
CONST_THURSDAY + CONST_DOUBLE_DOLLAR + CONST_THURSDAY,
CONST_FRIDAY + CONST_DOUBLE_DOLLAR + CONST_FRIDAY,
CONST_SATURDAY + CONST_DOUBLE_DOLLAR + CONST_SATURDAY,
CONST_SUNDAY + CONST_DOUBLE_DOLLAR + CONST_SUNDAY],
summary: false,
value: CONST_SUNDAY,
valueIfUndefined: CONST_SUNDAY,
show_condition_ques: 'isSetWeekEndingDate',
show_condition_ques_val: true,
insertAfter: 'isSetWeekEndingDate',
version: VERSION_SET_WEEK_ENDING_DATE.toString() },
weekEndingDateType: { name: lbl_week_ending_date_type,
type: 'enumeration',
description: '',
required: true,
options: [CONST_CURRENT + CONST_DOUBLE_DOLLAR + lbl_current_date,
CONST_VALUE_OTHER + CONST_DOUBLE_DOLLAR + lbl_other_field],
summary: false,
value: CONST_CURRENT,
valueIfUndefined: CONST_CURRENT,
show_condition_ques: 'isSetWeekEndingDate',
show_condition_ques_val: true,
display_if_value_equal: [CONST_VALUE_OTHER + '$$weekEndingDateField'],
insertAfter: 'endDay',
version: VERSION_SET_WEEK_ENDING_DATE.toString() },
weekEndingDateField: { name: '',
hideCaption: true,
type: 'enumeration',
description: '',
required: true,
options: [],
summary: false,
value: '',
valueIfUndefined: '',
show_condition_ques: 'weekEndingDateType',
show_condition_ques_val: CONST_VALUE_OTHER,
parent_group_name: 'weekEndingDateType .enumeration_add_grp',
version: VERSION_SET_WEEK_ENDING_DATE.toString() },
isSetMonthEndingDate: { name: lbl_month_ending_date,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
uncheck_if_true_ctrl: 'isSetWeekEndingDate, isSetCurrentDate',
insertAfter: 'isSetWeekEndingDate',
display_if_true_ctrl: 'monthEndingDateType',
version: VERSION_SET_MONTH_ENDING_DATE.toString() },
monthEndingDateType: { name: lbl_month_ending_date_type,
type: 'enumeration',
description: '',
required: true,
options: [CONST_CURRENT + CONST_DOUBLE_DOLLAR + lbl_current_date,
CONST_VALUE_OTHER + CONST_DOUBLE_DOLLAR + lbl_other_field],
summary: false,
value: CONST_CURRENT,
valueIfUndefined: CONST_CURRENT,
show_condition_ques: 'isSetMonthEndingDate',
show_condition_ques_val: true,
display_if_value_equal: [CONST_VALUE_OTHER + '$$monthEndingDateField'],
insertAfter: 'weekEndingDateType',
version: VERSION_SET_MONTH_ENDING_DATE.toString() },
monthEndingDateField: { name: '',
hideCaption: true,
type: 'enumeration',
description: '',
required: true,
options: [],
summary: false,
value: '',
valueIfUndefined: '',
show_condition_ques: 'monthEndingDateType',
show_condition_ques_val: CONST_VALUE_OTHER,
parent_group_name: 'monthEndingDateType .enumeration_add_grp',
version: VERSION_SET_MONTH_ENDING_DATE.toString() },
useInterval: { name: lbl_use_interval,
type: 'bool',
description: '',
value: true,
summary: true,
valueIfUndefined: true,
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
/*display_if_true_ctrl: 'minuteInterval',*/
insertAfter: 'showSeconds',
info_msg: hl_date_time + '#use-interval',
info_icon: true,
info_icon_chk_right: true,
//boolFloatChild: true,
//boolFloatChildName: 'useIntervalChild',
disableCtrlPathIfUnChecked: 'li.minuteInterval select, li.rounding select|up, li.limitUserToIntervalValue input|false', /*class name | value*/
disableCtrlPathIfChecked: 'li.showSeconds input|true', /*class name | value*/
version: VERSION_USE_INTERVAL.toString() },
minuteInterval: { name: lbl_minute_interval,
type: 'enumeration',
hideCaption: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt,
'1$$' + lbl_minute_interval_1,
'2$$' + lbl_minute_interval_2,
'3$$' + lbl_minute_interval_3,
'4$$' + lbl_minute_interval_4,
'5$$' + lbl_minute_interval_5,
'6$$' + lbl_minute_interval_6,
'10$$' + lbl_minute_interval_10,
'15$$' + lbl_minute_interval_15,
'30$$' + lbl_minute_interval_30],
description: '',
value: '',
summary: false,
valueIfUndefined: '1',
//parent_group_name: 'useIntervalChild',
//remove_header: true,
paddingLeft: '20px',
disableIfUnChecked: 'useInterval',
add_class: 'not-use-fieldset',
paddingLeft: '41px',
/*show_condition_ques: 'useInterval',
show_condition_ques_val: true,*/
insertAfter: 'useInterval',
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
version: VERSION_OPTION_MINUTE_INTERVAL.toString() },
rounding: { name: lbl_rounding,
type: 'enumeration',
options: [CONST_ROUNDING_UP + '$$' + lbl_rounding_up,
CONST_ROUNDING_DOWN + '$$' + lbl_rounding_down,
CONST_ROUNDING_UPDOWN + '$$' + lbl_rounding_up_down],
description: '',
value: CONST_ROUNDING_UP,
summary: false,
valueIfUndefined: CONST_ROUNDING_UP,
paddingLeft: '41px',
disableIfUnChecked: 'useInterval',
disableValue: CONST_ROUNDING_UP,
add_class: 'not-use-fieldset',
insertAfter: 'minuteInterval',
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
version: VERSION_OPTION_MINUTE_INTERVAL_ROUNDING.toString() },
limitUserToIntervalValue: { name: lbl_limit_user_to_interval_value,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
paddingLeft: '56px',
disableIfUnChecked: 'useInterval',
disableValue: false,
insertAfter: 'rounding',
show_condition_ques: 'kind',
show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME],
version: VERSION_LIMIT_TO_INTERVAL_VALUE.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
iconAction: { name: lbl_icon_action,
type: 'enumeration_radio',
description: '',
options: [ CONST_TODAY + CONST_DOUBLE_DOLLAR + lbl_action_today,
CONST_PICKER + CONST_DOUBLE_DOLLAR + lbl_action_picker],
showOptionAcross: true,
value: CONST_TODAY,
valueIfUndefined: CONST_TODAY,
insertAfter: CONST_BTNTYPE,
show_condition_ques: CONST_BTNTYPE,
show_condition_ques_val: CONST_TYPE_IMAGE,
notForGrid: true,
notForTable: true,
ignoreNotForGridVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE,
ignoreNotForTableVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE,
version: VERSION_ICON_ACTION_DATE_TIME.toString()},
isVerifyTime: { name: lbl_verify,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertBefore: 'range',
/*display_if_true_ctrl: 'compareField, destinationField, verifyMinRange, verifyMaxRange, inRangeMsgroup, isDisplayLabel, displayLabel',*/
display_if_true_ctrl: 'compareField, destinationField',
show_condition_ques: 'kind',
show_condition_ques_val: 'Time',
info_msg: hl_date_time + '#verifytime',
info_icon: true,
version: VERSION_TIME_VERIFY.toString() },
compareField: { name: lbl_gps_compare_field,
type: 'timeCompareField',
description: '',
required: true,
value: '',
valueIfUndefined: '',
summary: false,
show_condition_ques: 'isVerifyTime',
show_condition_ques_val: true,
insertAfter: 'isVerifyTime',
version: VERSION_TIME_VERIFY.toString() },
destinationField: { name: lbl_gps_destination_field,
type: 'timeDestinationField',
description: '',
required: true,
value: '',
valueIfUndefined: '',
summary: false,
show_condition_ques: 'isVerifyTime',
show_condition_ques_val: true,
insertAfter: 'compareField',
version: VERSION_TIME_VERIFY.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'showNowBtn',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'skipIfConditions',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
inputLocation: {
locationStype: { name: lbl_location_style,
type: 'enumeration_radio',
description: '',
style: 'padding-bottom: 5px;',
options: [ CONST_TYPE_MAP_N_COOR + CONST_DOUBLE_DOLLAR + lbl_map_n_coor,
CONST_TYPE_ADVANCED + CONST_DOUBLE_DOLLAR + lbl_custom],
showOptionAcross: true,
value: CONST_TYPE_MAP_N_COOR,
valueIfUndefined: CONST_TYPE_MAP_N_COOR,
insertBefore: 'label',
addValueToPropertyList: true,
version: VERSION_LOCATION_STYLE.toString()},
ctrlProperty: { name: lbl_location_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_gps_location,
version: '' + VERSION_CTRL_PROPERTY_EXP},
actionKind: { name: lbl_trigger_kind,
type: 'enumeration_radio',
hideCaption: false,
style: 'padding-top: 5px;',
add_class: 'hide-legend',
showOptionAcross: true,
options: [ 'button$$Button',
'autoRun$$Auto run'],
value: 'button',
summary: true,
insertAfter: 'name',
addRemoveClassPropertyNameValue: true,
addValueToPropertyList: true,
version: VERSION_LOCATION_STYLE.toString()},
autoRunTrigger: { name: lbl_action_auto_run_trigger,// CO-2254
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
options: [ lbl_action_select_a_trigger,
'2$$' + lbl_when_a_question_is_completed],
value: lbl_sel_question,
summary: false,
insertAfter: 'actionKind',
version: VERSION_LOCATION_STYLE.toString()},
autoRunQuestionTrigger: { name: lbl_trigger_question,// CO-2254
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
insertAfter: 'autoRunTrigger',
version: VERSION_LOCATION_STYLE.toString()},
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
options: [ 'Button$$' + lbl_kind_text,
'Image$$' + lbl_kind_image],
showOptionAcross: true,
value: 'Button',
insertAfter: 'autoRunQuestionTrigger',
addValueToPropertyList: true,
version: VERSION_LOCATION_STYLE.toString()},
useImage: { name: lbl_use_image,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'kind',
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: VERSION_LOCATION_STYLE.toString()},
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',//lbl_upload_action_img,
required: true,
value: '',
summary: false,
insertAfter: 'useImage',
version: VERSION_LOCATION_STYLE.toString()},
actionBtnText: { name: lbl_btn_text,
type: 'text',
description: '',
required: false,
value: '',
summary: false,
insertAfter: 'hintLink',
version: VERSION_LOCATION_STYLE.toString()},
imageText: { name: lbl_image_text,
type: 'text',
description: '',
required: false,
value: '',
summary: false,
insertAfter: 'actionBtnText',
version: VERSION_LOCATION_STYLE.toString() },
autoStamp: { name: lbl_auto_stamp,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_gps_location + '#auto-stamp',
info_icon: true,
insertAfter: 'defaultValue',
style: 'padding-top: 5px;',
icon_style: 'padding-top: 5px;',
/*hideVersion: VERSION_LOCATION_STYLE.toString(),*/
version: '1.3' },
btnType: { name: lbl_btn_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_location_text,
CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_location_icon],
showOptionAcross: true,
value: CONST_TYPE_BUTTON,
valueIfUndefined: CONST_TYPE_BUTTON,
insertAfter: 'defaultValue',
forTableOnly: true,
version: VERSION_ALLOW_LOCATION_IN_TABLE.toString()},
autoStampTrigger: { name: lbl_auto_stamp_trigger,
type: 'enumeration',
description: lbl_auto_stamp_trigger_des,
required: true,
value: false,
summary: false,
options: [lbl_auto_stamp_select_opt,
/*'1$$' + lbl_auto_stamp_trigger_1,*/
'2$$' + lbl_auto_stamp_trigger_2,
'4$$' + lbl_auto_stamp_trigger_4,
'8$$' + lbl_auto_stamp_trigger_8,
'16$$' + lbl_auto_stamp_trigger_16],
value: lbl_auto_stamp_select_opt,
insertAfter: 'autoStamp',
optForTable: [lbl_auto_stamp_select_opt,
'2'],
version: '5.0' },
autoStampTrigger1: { name: lbl_auto_stamp_trigger_1,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger',
version: '5.0' },
autoStampTrigger2: { name: lbl_auto_stamp_trigger_2,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger1',
version: '5.0' },
autoStampTrigger2Ques: { name: lbl_auto_stamp_trigger_2_ques,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
insertAfter: 'autoStampTrigger2',
version: '5.0' },
autoStampTrigger4: { name: lbl_auto_stamp_trigger_4,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger2Ques',
version: '5.0' },
autoStampTrigger4Ques: { name: lbl_auto_stamp_trigger_4_page,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_page],
summary: false,
insertAfter: 'autoStampTrigger4',
version: '5.0' },
autoStampTrigger8: { name: lbl_auto_stamp_trigger_8,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger4Ques',
version: '5.0' },
autoStampTrigger16: { name: lbl_auto_stamp_trigger_16,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'autoStampTrigger8',
version: '5.0' },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
isAllowEdit: { name: lbl_auto_stamp_allow_edit,
type: 'bool',
description: lbl_auto_stamp_allow_edit_des,
value: true,
summary: true,
//insertBefore: 'autoStamp',
insertAfter: 'autoStampTrigger16',
version: VERSION_ALLOW_EDIT_OPT + '' },
showGPSInfo: { name: lbl_show_additional_gps_inf,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'showLat, showLon, showAcc, showAlt',
insertAfter: 'isAllowEdit',
notForTable: true,
version: '' + VERSION_PCA_43_44 },
showLat: { name: lbl_location_show_lat,
paddingLeft: '20px',
type: 'bool',
description: lbl_location_show_lat_des,
value: true,
summary: true,
insertAfter: 'showGPSInfo',
show_condition_ques: 'showGPSInfo',
notForTable: true,
show_condition_ques_val: true,
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
showLon: { name: lbl_location_show_lon,
paddingLeft: '20px',
type: 'bool',
description: lbl_location_show_lon_des,
value: true,
summary: true,
insertAfter: 'showLat',
show_condition_ques: 'showGPSInfo',
show_condition_ques_val: true,
notForTable: true,
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
showAcc: { name: lbl_location_show_acc,
paddingLeft: '20px',
type: 'bool',
description: lbl_location_show_acc_des,
value: true,
summary: true,
insertAfter: 'showLon',
show_condition_ques: 'showGPSInfo',
show_condition_ques_val: true,
notForTable: true,
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
showAlt: { name: lbl_location_show_alt,
paddingLeft: '20px',
type: 'bool',
description: lbl_location_show_alt_des,
value: true,
summary: true,
insertAfter: 'showAcc',
show_condition_ques: 'showGPSInfo',
show_condition_ques_val: true,
notForTable: true,
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
range: { name: lbl_range,
type: 'numericRange',
description: '', //lbl_range_gps_des,
value: false,
summary: false,
version: '1.3',
insertAfter: 'showAlt',
hideVersion: '' + VERSION_LOCATION_SHOW_HIDE_OPT},
maxError: { name: lbl_location_max_error,
type: 'numericDefaultField',
kind: 'Number',
description: lbl_location_max_error_des,
qtip: hl_gps_location + '#maximum-error',
value: '500',
required: false,
summary: false,
insertAfter: 'imageText',
style: 'padding-top: 5px;',
add_class: 'makeAcross not-use-fieldset',
makeAcross_des: lbl_meters,
makeAcross_des_style: 'letter-spacing: initial;padding-left: 5px;font-size: 14px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #36617c;',
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
showAsDecimal: { name: lbl_gps_show_decimal,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'showAlt',
notForTable: true,
version: VERSION_GPS_SHOW_DECIMAL.toString() },
isGetAddress: { name: lbl_gps_get_address,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
//insertAfter: 'showAsDecimal',
insertAfter: 'isAllowEdit',
//display_if_true_ctrl: 'addressType,destinationField4GetAddress',
display_if_true_ctrl: 'addressData',
info_icon: false,
version: VERSION_GPS_GET_ADDRESS.toString() },
addressData: { name: '',
hideCaption: true,
type: 'addressActionDestinationFillEditor',
description: '',
value: [{active: false, text: {val: ''}, value: {val: CONST_COMPLETE_ADDRESS}},
{active: false, text: {val: ''}, value: {val: CONST_STREET}},
{active: false, text: {val: ''}, value: {val: CONST_CITY}},
{active: false, text: {val: ''}, value: {val: CONST_STATE}},
{active: false, text: {val: ''}, value: {val: CONST_ZIP}}],
valueIfUndefined: [{active: false, text: {val: ''}, value: {val: CONST_COMPLETE_ADDRESS}},
{active: false, text: {val: ''}, value: {val: CONST_STREET}},
{active: false, text: {val: ''}, value: {val: CONST_CITY}},
{active: false, text: {val: ''}, value: {val: CONST_STATE}},
{active: false, text: {val: ''}, value: {val: CONST_ZIP}}],
summary: false,
insertAfter: 'isGetAddress',
show_condition_ques: 'isGetAddress',
show_condition_ques_val: true,
version: VERSION_GPS_GET_ADDRESS.toString() },
/*addressType: { name: lbl_address_type,
type: 'enumeration',
add_class: 'not-use-fieldset',
description: '',
required: false,
value: CONST_COMPLETE_ADDRESS,
valueIfUndefined: CONST_COMPLETE_ADDRESS,
options: [ CONST_COMPLETE_ADDRESS + '$$' + lbl_complete_address,
CONST_STREET + '$$' + lbl_street,
CONST_CITY + '$$' + lbl_city,
CONST_STATE + '$$' + lbl_state,
CONST_ZIP + '$$' + lbl_zip],
summary: false,
show_condition_ques: 'isGetAddress',
show_condition_ques_val: true,
insertAfter: 'isGetAddress',
version: VERSION_GPS_GET_ADDRESS.toString() },
destinationField4GetAddress: { name: lbl_gps_destination_field_4_get_address,
type: 'gpsDestinationField4GetAddress',
description: '',
required: true,
value: '',
valueIfUndefined: '',
summary: false,
show_condition_ques: 'isGetAddress',
show_condition_ques_val: true,
insertAfter: 'addressType',
version: VERSION_GPS_GET_ADDRESS.toString() },*/
hasGPSDestination: { name: lbl_has_gps_destination_field,
type: 'bool',
description: '',
value: false,
valueIfUndefined: true,
summary: true,
insertBefore: 'isGetAddress',
display_if_true_ctrl: 'destinationdata',
info_icon: false,
trigger_if_value_change: ['li.destinationdata .actionDestinationFillEditor$$add-remove-all'],
version: VERSION_GPS_GET_ADDRESS.toString() },
destinationdata: { name: '',
type: 'gpsActionDestinationFillEditor',
description: '',
value: [{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LAT}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LON}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_ALT}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_ACC}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_MAP}}],
valueIfUndefined: [{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LAT}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LON}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_ALT}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_ACC}},
{active: false, text: {val: ''}, value: {val: CONST_LOCATION_MAP}}],
summary: false,
insertAfter: 'hasGPSDestination',
show_condition_ques: 'hasGPSDestination',
show_condition_ques_val: true,
version: VERSION_GPS_GET_ADDRESS.toString() },
isVerifyAddress: { name: lbl_gps_verify_address,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertBefore: 'hasGPSDestination',
//insertAfter: 'destinationField4GetAddress',
display_if_true_ctrl: 'compareField, destinationField, displayDistanceAs',
info_msg: hl_gps_location + '#verifylocation',
info_icon: true,
version: VERSION_GPS_VERIFY_ADDRESS.toString() },
compareField: { name: lbl_gps_compare_field,
type: 'gpsCompareField',
description: '',
required: true,
value: '',
valueIfUndefined: '',
summary: false,
show_condition_ques: 'isVerifyAddress',
show_condition_ques_val: true,
insertAfter: 'isVerifyAddress',
version: VERSION_GPS_VERIFY_ADDRESS.toString() },
destinationField: { name: lbl_gps_destination_field,
type: 'gpsDestinationField',
description: '',
required: true,
value: '',
valueIfUndefined: '',
summary: false,
show_condition_ques: 'isVerifyAddress',
show_condition_ques_val: true,
insertAfter: 'compareField',
version: VERSION_GPS_VERIFY_ADDRESS.toString() },
displayDistanceAs: { name: lbl_display_distance_as,
type: 'enumeration_radio',
description: '',
hideCaption: true,
options: [ CONST_VALUE_METERS + CONST_DOUBLE_DOLLAR + lbl_distance_as_meters,
CONST_VALUE_FEET + CONST_DOUBLE_DOLLAR + lbl_distance_as_feet,
CONST_KM + CONST_DOUBLE_DOLLAR + lbl_distance_as_km,
CONST_VALUE_MILES + CONST_DOUBLE_DOLLAR + lbl_distance_as_miles],
valueIfUndefined: CONST_VALUE_METERS,
showOptionAcross: true,
value: CONST_VALUE_METERS,
insertAfter: 'destinationField',
show_condition_ques: 'isVerifyAddress',
show_condition_ques_val: true,
version: VERSION_GPS_VERIFY_ADDRESS.toString()},
dispMapInMobile: { name: lbl_gps_display_map_in_mobile,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
//insertAfter: 'displayDistanceAs',
insertAfter: 'showAsDecimal',
version: VERSION_GPS_DISPLAY_MAP.toString() },
dispMapInReport: { name: lbl_gps_display_map_in_report,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: 'dispMapInMobile',
version: VERSION_GPS_DISPLAY_MAP.toString() },
promtAfter: { name: lbl_location_promt_after,
type: 'numericDefaultField',
kind: 'Number',
description: lbl_location_promt_after_des,
value: '5',
required: false,
summary: false,
insertAfter: 'maxError',
style: 'padding-top: 5px;',
add_class: 'makeAcross not-use-fieldset',
makeAcross_des: lbl_seconds,
makeAcross_des_style: 'letter-spacing: initial;padding-left: 5px;font-size: 14px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #36617c;',
version: '' + VERSION_LOCATION_SHOW_HIDE_OPT },
zoomLevel: { name: lbl_location_zoom_level,
type: 'enumeration',
description: '',
options: ['0$$0','1$$1','2$$2','3$$3','4$$4','5$$5','6$$6','7$$7','8$$8','9$$9','10$$10','11$$11','12$$12','13$$13','14$$14','15$$15','16$$16','17$$17','18$$18','19$$19','20$$20'],
valueIfUndefined: '14',
//insertAfter: 'promtAfter',
insertAfter: 'dispMapInReport',
value: '14',
summary: true,
info_msg: hl_gps_location + '#zoomlevel',
info_icon: true,
version: VERSION_GPS_ZOOM_LEVEL.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
imgJustify: { name: lbl_img_justify,
type: 'enumeration_radio',
description: '',
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '1',
valueIfUndefined: '1',
style: 'padding-top: 5px;margin-top: -10px;',
insertAfter: 'justificationGroup',
summary: false,
version: VERSION_GPS_GET_ADDRESS.toString()},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertAfter: 'addressData',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'skipIfConditions',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideButtonAfterClick: { name: lbl_hide_button_after_click,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'hideIfCmpVal',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfClick: { name: lbl_set_hide_fields,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'hideButtonAfterClick',
display_if_true_ctrl: 'hideIfFields',
version: VERSION_HIDE_IF.toString()},
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'isHideIfClick',
show_condition_ques: 'isHideIfCmpVal|isHideIfClick',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
buttonSize:{ name: lbl_button_size,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
add_class: 'not-use-fieldset hide-legend',
options: [ CONST_SIZE_SMALL + '$$' + lbl_size_options_small,
CONST_SIZE_MEDIUM + '$$' + lbl_size_options_medium,
CONST_SIZE_LARGE + '$$' + lbl_size_options_large],
value: CONST_SIZE_SMALL,
valueIfUndefined: CONST_SIZE_SMALL,
summary: true,
insertBefore: 'maxError',
version: VERSION_GPS_BUTTON_SIZE.toString() }},
inputImage: {
ctrlProperty: { name: lbl_image_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_image,
version: '' + VERSION_CTRL_PROPERTY_EXP},
displayGroup: { name: lbl_display,
type: 'property_group',
summary: true,
info_msg: hl_image + '#display',
info_icon: true,
hideVersion: '' + VERSION_IMAGE_CLEAR_BTN},
dispClearBtn: { name: lbl_disp_clear_btn,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_disp_clear_btn,
hideVersion: '' + VERSION_IMAGE_CLEAR_BTN},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
isAllowEdit: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
value: true,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: true,
style: 'padding-top: 5px;',
version: VERSION_ALLOW_EDIT_SKETCH_IMG.toString() },
sketchGroup: { name: lbl_sketch_group,
type: 'property_group',
description: '',
summary: true,
insertBefore: 'justificationGroup',
info_msg: hl_image + '#sketch',
info_icon: true},
isAllowSketch: { name: lbl_allow_sketch,
type: 'bool',
description: '',
value: true,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: true,
display_if_true_ctrl: 'isAutoStartSketch,isShowAdvanceToolbar',
version: VERSION_ALLOW_EDIT_SKETCH_IMG.toString() },
isAutoStartSketch: { name: lbl_auto_start_sketch,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: false,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: false,
show_condition_ques: 'isAllowSketch',
show_condition_ques_val: true,
version: VERSION_AUTO_START_SKETCH.toString() },
isShowAdvanceToolbar: { name: lbl_show_advance_toolbar,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowSketch',
show_condition_ques_val: true,
valueIfUndefined: true,
version: VERSION_CTRL_SHOW_ADVANCED_TOOLBAR.toString() },
stampGroup: { name: lbl_stamp_group,
type: 'property_group',
description: '',
summary: true,
insertBefore: 'justificationGroup',
version: VERSION_AUTO_STAMP_IMG.toString()},
isAllowAutoStampImage: { name: lbl_auto_stamp_image,
type: 'bool',
description: '',
value: false,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: false,
display_if_true_ctrl: 'stampGPSLocation,stampDirection,stampDateNTime,stampDescription,stampDescField,stampAltitude',
addValueToPropertyList: true,
version: VERSION_AUTO_STAMP_IMG.toString() },
stampDateNTime: { name: lbl_auto_stamp_date_n_time,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowAutoStampImage',
show_condition_ques_val: true,
valueIfUndefined: true,
version: VERSION_AUTO_STAMP_IMG.toString() },
stampAltitude: { name: lbl_auto_stamp_altitude,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowAutoStampImage',
show_condition_ques_val: true,
valueIfUndefined: false,
version: VERSION_AUTO_STAMP_ALT.toString() },
stampGPSLocation: { name: lbl_auto_stamp_gps,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowAutoStampImage',
show_condition_ques_val: true,
valueIfUndefined: true,
version: VERSION_AUTO_STAMP_IMG.toString() },
stampDirection: { name: lbl_auto_stamp_direction,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowAutoStampImage',
show_condition_ques_val: true,
valueIfUndefined: true,
version: VERSION_AUTO_STAMP_IMG_DIR.toString() },
stampDescription: { name: lbl_auto_stamp_description,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
summary: true,
insertBefore: 'justificationGroup',
show_condition_ques: 'isAllowAutoStampImage',
show_condition_ques_val: true,
valueIfUndefined: true,
addValueToPropertyList: true,
version: VERSION_AUTO_STAMP_IMG.toString() },
stampDescField: { name: '',
type: 'enumeration',
required: true,
options: [],
value: '',
summary: false,
info_icon: false,
hideCaption: true,
style: 'padding-left: 40px;',
add_class: 'not-use-fieldset',
insertBefore: 'justificationGroup',
valueIfUndefined: '',
version: VERSION_AUTO_STAMP_IMG.toString()},
appGroup: { name: lbl_app_group,
type: 'property_group',
description: '',
summary: true,
insertBefore: 'justificationGroup',
version: VERSION_IMG_CAMERA_APP.toString()},
androidApp: { name: lbl_android_app,
type: 'enumeration',
required: false,
options: android_app,
value: lbl_sel_question,
summary: false,
insertBefore: 'justificationGroup',
valueIfUndefined: '',
version: VERSION_ANDROID_APP.toString()},
androidCameraApp: { name: lbl_launch_proc,
type: 'text',
description: '',
required: false,
value: '',
summary: false,
insertBefore: 'justificationGroup',
valueIfUndefined: '',
version: VERSION_IMG_CAMERA_APP.toString()},
iOSCameraApp: { name: lbl_ios_app_name,
type: 'enumeration',
description: '',
options: [ '$$',
'context_camera$$' + lbl_ios_context_camera,
'flir_one$$' + lbl_ios_flir_one],
required: false,
value: '',
valueIfUndefined: '',
summary: false,
insertBefore: 'justificationGroup',
valueIfUndefined: '',
version: VERSION_IOS_CAMERA_APP.toString() },
allowImgSel: { name: lbl_allow_img_sel,
type: 'bool',
description: '',
value: false,
summary: true,
insertBefore: 'sketchGroup',
version: '3.6' },
isShowBtn: { name: lbl_show_btn,
type: 'bool',
description: '',
value: false,
summary: true,
insertBefore: 'sketchGroup',
forTableGrid: true,
valueIfUndefined: false,
version: VERSION_SHOW_BTN_IMG.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isAllowEdit',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputImageViewer: {
ctrlProperty: { name: lbl_image_viewer_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_image_viewer},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
imageUrl: { name: lbl_image_url,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
insertAfter: 'defaultValue',
summary: false},
isFitToScreen: { name: lbl_fit_image_to_screen,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: false,
summary: true,
insertAfter: 'imageUrl'},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputAudio: {
ctrlProperty: { name: lbl_audio_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_audio,
version: '' + VERSION_CTRL_PROPERTY_EXP},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputVideo: {
ctrlProperty: { name: lbl_video_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_video,
version: '' + VERSION_CTRL_PROPERTY_EXP},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputMedia: {
kind: { name: lbl_media_type,
type: 'enumeration',
description: lbl_media_type_des,
options: [ 'Image$$' + mdi_kind_image,
'Audio$$' + mdi_kind_audio,
'Video$$' + mdi_kind_video/*,
'Barcode' */] },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertBefore: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
}},
inputSketch: {
defaultImage: { name: lbl_default_image,
type: 'uploadImage',
description: '',
hideSelectBtn: true,
value: '',
summary: false,
insertAfter: 'name',
version: '' + VERSION_SKETCH_DEFAULT_IMAGE },
ctrlProperty: { name: lbl_sketch_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_sketch,
version: '' + VERSION_CTRL_PROPERTY_EXP},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
isShowAdvanceToolbar: { name: lbl_show_advance_toolbar,
type: 'bool',
description: '',
value: true,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: true,
style: 'padding-top: 5px;',
version: VERSION_CTRL_SHOW_ADVANCED_TOOLBAR.toString() },
isAllowReplace: { name: lbl_allow_replace,
type: 'bool',
description: '',
value: true,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: true,
version: VERSION_ALLOW_REPLACE_CLEAR.toString() },
isAllowClear: { name: lbl_allow_clear,
type: 'bool',
description: '',
value: true,
summary: true,
insertBefore: 'justificationGroup',
valueIfUndefined: true,
version: VERSION_ALLOW_REPLACE_CLEAR.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isShowAdvanceToolbar',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputSignature: {
ctrlProperty: { name: lbl_signature_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_signature,
version: '' + VERSION_CTRL_PROPERTY_EXP},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
isOneTimeSignatureCapture: { name: lbl_one_time_signature_capture,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: true,
summary: true,
insertAfter: 'defaultValue',
hideVersion: '' + VERSION_SIGNATURE_ADD_FUNC},
isBulkSignature: { name: lbl_bulk_signature_option,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: false,
summary: true,
valueIfUndefined: false,
insertAfter: 'defaultValue',
info_msg: hl_signature + '#bulk',
info_icon: true,
icon_style: 'margin-top: 5px;',
version: VERSION_BULK_SIGNATURE.toString()},
isAllowEditOption: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: true,
summary: true,
insertAfter: 'defaultValue',
version: '' + VERSION_SIGNATURE_ADD_FUNC},
sizeOptions: { name: lbl_size_options,
type: 'enumeration_radio',
description: '',
style: 'display: none;',
options: [ 'Small$$' + lbl_size_options_small,
'Large$$' + lbl_size_options_large],
showOptionAcross: true,
value: 'Small',
insertAfter: 'isOneTimeSignatureCapture',
summary: true,
version: '' + VERSION_SIGNATURE_ADD_FUNC },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isAllowEditOption',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputDraw: {
kind: { name: lbl_draw_type,
type: 'enumeration',
description: lbl_draw_type_des,
options: [ 'Sketch$$' + mdi_kind_sketch,
'Signature$$' + mdi_kind_signature ] },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertBefore: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
}},
inputBarcode: {
ctrlProperty: { name: lbl_barcode_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_barcode,
version: '' + VERSION_CTRL_PROPERTY_EXP},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
isAllowEditOption: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: 'defaultValue',
version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString()},
isAllowManualEntry: { name: lbl_allow_manual_entry,
type: 'bool',
description: '',
value: true,
summary: true,
valueIfUndefined: true,
insertAfter: 'isAllowEditOption',
version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString() },
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
insertAfter: 'isAllowManualEntry',
summary: false },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
displayImage: { name: lbl_display_image,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
insertAfter: 'isAllowManualEntry',
display_if_true_ctrl: 'barcodeType, hideScanValue',
version: VERSION_DISPLAY_IMAGE_OPTION.toString() },
barcodeType: { name: lbl_barcode_type,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR,
CONST_BARCODE_QR + CONST_DOUBLE_DOLLAR + lbl_barcode_qr,
CONST_BARCODE_UPC_A + CONST_DOUBLE_DOLLAR + lbl_barcode_upc_a,
CONST_BARCODE_EAN_13 + CONST_DOUBLE_DOLLAR + lbl_barcode_ean_13,
CONST_BARCODE_EAN_8 + CONST_DOUBLE_DOLLAR + lbl_barcode_ean_8,
CONST_BARCODE_ITF + CONST_DOUBLE_DOLLAR + lbl_barcode_itf,
CONST_BARCODE_CODE_39 + CONST_DOUBLE_DOLLAR + lbl_barcode_code_39,
CONST_BARCODE_CODE_128 + CONST_DOUBLE_DOLLAR + lbl_barcode_code_128,
CONST_BARCODE_CODABAR + CONST_DOUBLE_DOLLAR + lbl_barcode_codebar],
value: '',
summary: false,
valueIfUndefined: '',
insertAfter: 'displayImage',
show_condition_ques: 'displayImage',
show_condition_ques_val: true,
version:VERSION_DISPLAY_IMAGE_OPTION.toString() },
hideScanValue: { name: lbl_hide_scan_val,
type: 'bool',
paddingLeft: '20px',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
insertAfter: 'displayImage',
show_condition_ques: 'displayImage',
show_condition_ques_val: true,
version: VERSION_DISPLAY_IMAGE_OPTION.toString() },
btnType: { name: lbl_btn_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_text,
CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_barcode_icon],
showOptionAcross: true,
value: CONST_TYPE_BUTTON,
valueIfUndefined: CONST_TYPE_BUTTON,
insertAfter: 'defaultValue',
notForGrid: false,
notForTable: false,
version: VERSION_SHOW_ICON_BUTTON.toString()},
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',//lbl_type_of_barcode,
options: [ 'String$$' + lbl_kind_string,
'Number$$' + lbl_kind_number],
value: 'String',
showOptionAcross: true,
insertAfter: 'btnType',
info_msg: hl_barcode + '#type',
info_icon: true,
version: '1.3' },
autoStartScan: { name: lbl_auto_start_scan,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
info_msg: hl_barcode + '#autoscan',
info_icon: true,
version: VERSION_AUTO_START_SCAN_OPTION.toString() },
parse: { name: lbl_parse_by_delimiter,
type: 'parse',
description: '',//lbl_parse_des,
param1: lbl_parse_enable,
param2: lbl_parse_start_delimiter,
param3: lbl_parse_separation_delimiter,
param4: lbl_parse_end_delimiter,
value: false,
summary: false,
info_msg: hl_barcode + '#parse',
info_icon: true,
version: '' + VERSION_NFC_BAR_PARSE },
parseDestinationFields: { name: lbl_dest_field,
type: 'parseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
parent_group_name: 'parseButtonSession',
style: 'padding-left: 20px; clear: both;',
version: '' + VERSION_NFC_BAR_PARSE },
buttonGroup: { name: "",
hideCaption: true,
type: 'property_group',
description: '',
insertAfter: 'parse',
summary: true,
info_icon: false,
version: VERSION_NB_USE_ACTION_BTN.toString()},
textParse: { name: lbl_parse_by_num_of_char,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
insertAfter: 'parse',
uncheckCtrlPathIfChecked: 'li.parse .propertyHeaderInfo .editorCheckbox',
info_msg: hl_barcode + '#parse',
display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse',
trigger_if_value_change: ['li.buttonGroup .dynamic_property_group$$' + CONST_BIND_SHOW_HIDE_CHANGE],
version: VERSION_BC_LENGTH_PARSE.toString()},
textParseDestinationFields: { name: lbl_dest_field,
type: 'textParseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
show_condition_ques: 'textParse',
show_condition_ques_val: true,
insertAfter: 'textParse',
style: 'padding-left: 20px; clear: both;',
version: VERSION_BC_LENGTH_PARSE.toString() },
isUseActionButton: { name: lbl_use_action_btn,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
parent_group_name: 'buttonGroup .editorList',
info_msg: hl_barcode + '#actionbutton',
info_icon: true,
version: VERSION_NB_USE_ACTION_BTN.toString()},
btnKind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
options: [ 'Button$$' + lbl_kind_button,
'Image$$' + lbl_kind_image],
showOptionAcross: true,
style: 'padding-left: 20px; margin-top:-5px',
value: 'Button',
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
notForValue: 'Button',
version: VERSION_NB_USE_ACTION_BTN.toString()},
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',
required: true,
style: 'padding-left: 20px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
version: VERSION_NB_USE_ACTION_BTN.toString() },
actionBtnText: { name: lbl_action_btn_text,
type: 'text',
description: '',
required: false,
style: 'padding-left: 20px',
styleForGrid: 'padding-left: 20px; margin-top:-5px',
styleForTable: 'padding-left: 20px; margin-top:-5px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
version: VERSION_NB_USE_ACTION_BTN.toString() },
imageText: { name: lbl_image_text,
type: 'text',
description: '',
required: false,
style: 'padding-left: 20px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
version: VERSION_NB_USE_ACTION_BTN.toString() },
actionJumpGroup: { name: lbl_action_jump_group,
type: 'property_group',
description: '',
summary: true,
version: VERSION_JUMP_ACTION.toString()},
jumpWhenNotEmpty: { name: lbl_jump_when_not_empty,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
valueIfUndefined: false,
summary: true,
parent_group: 'actionJumpGroup',
grp_name: lbl_jump_when_not_empty,
grp_description: '',
version: VERSION_JUMP_WHEN_NOT_EMPTY.toString()},
jumpNextAfterScan: { name: lbl_jump_next_after_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
hasHtmlTag: true,
summary: true,
parent_group: 'actionJumpGroup',
grp_name: lbl_jump_next_after_scan,
grp_description: '',
notForGrid: true,
notForTable: true,
info_msg: hl_barcode + '#jumpto',
info_icon: true,
version: VERSION_JUMP_ACTION.toString()},
jumpAfterScan: { name: lbl_jump_after_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
hasHtmlTag: true,
summary: true,
parent_group: 'actionJumpGroup',
grp_name: '' + lbl_jump_after_scan + ' ',
grp_description: '',
forContainerOnly: true,
version: VERSION_JUMP_ACTION.toString()},
jumpAfterScanOption: { name: '',
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;'
},
showOptionAcross: true,
options: [ '0$$R',
'1$$D'],
value: '0',
summary: true,
parent_group_name: 'jumpAfterScanOption',
paddingLeft: '10px',
version: VERSION_JUMP_ACTION.toString()},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isAllowEditOption',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputNFC: {
ctrlProperty: { name: lbl_nfc_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_nfc,
version: '' + VERSION_CTRL_PROPERTY_EXP},
ctrlDesc: { name: lbl_android_only,
type: 'uiLabel',
description: ''
},
isAllowEditOption: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: 'defaultValue',
version: '' + VERSION_NFC_ALLOW_EDIT},
isAllowManualEntry: { name: lbl_allow_manual_entry,
type: 'bool',
description: '',
value: true,
summary: true,
valueIfUndefined: true,
insertAfter: 'isAllowEditOption',
version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString() },
btnType: { name: lbl_nfc_btn_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_text,
CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_barcode_icon],
showOptionAcross: true,
value: CONST_TYPE_BUTTON,
valueIfUndefined: CONST_TYPE_BUTTON,
insertAfter: 'defaultValue',
notForGrid: false,
notForTable: false,
version: VERSION_SHOW_ICON_BUTTON.toString()},
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
insertAfter: 'isAllowManualEntry',
summary: false },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
parse: { name: lbl_parse_nfc,
type: 'parse',
description: lbl_parse_des,
param1: lbl_parse_enable,
param2: lbl_parse_start_delimiter,
param3: lbl_parse_separation_delimiter,
param4: lbl_parse_end_delimiter,
value: false,
summary: false,
info_msg: hl_nfc + '#parse',
info_icon: true,
version: '' + VERSION_NFC_PARSE_ONLY },
parseDestinationFields: { name: lbl_dest_field,
type: 'parseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
parent_group_name: 'parseButtonSession',
style: 'padding-left: 20px; clear: both;',
version: '' + VERSION_NFC_PARSE_ONLY },
buttonGroup: { name: "",
hideCaption: true,
type: 'property_group',
description: '',
insertAfter: 'parse',
summary: true,
info_icon: false,
version: VERSION_NB_USE_ACTION_BTN.toString()},
textParse: { name: lbl_parse_by_num_of_char,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
insertAfter: 'parse',
uncheckCtrlPathIfChecked: 'li.parse .propertyHeaderInfo .editorCheckbox',
info_msg: hl_nfc + '#parse',
display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse',
trigger_if_value_change: ['li.buttonGroup .dynamic_property_group$$' + CONST_BIND_SHOW_HIDE_CHANGE],
version: VERSION_NFC_LENGTH_PARSE.toString()},
textParseDestinationFields: { name: lbl_dest_field,
type: 'textParseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
show_condition_ques: 'textParse',
show_condition_ques_val: true,
insertAfter: 'textParse',
style: 'padding-left: 20px; clear: both;',
version: VERSION_NFC_LENGTH_PARSE.toString() },
isUseActionButton: { name: lbl_use_action_btn,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
parent_group_name: 'buttonGroup .editorList',
info_msg: hl_nfc + '#actionbutton',
info_icon: true,
version: VERSION_NB_USE_ACTION_BTN.toString()},
btnKind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
options: [ 'Button$$' + lbl_kind_button,
'Image$$' + lbl_kind_image],
showOptionAcross: true,
style: 'padding-left: 20px; margin-top:-5px',
value: 'Button',
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
notForValue: 'Button',
version: VERSION_NB_USE_ACTION_BTN.toString()},
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',
required: true,
style: 'padding-left: 20px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
version: VERSION_NB_USE_ACTION_BTN.toString() },
actionBtnText: { name: lbl_action_btn_text,
type: 'text',
description: '',
required: false,
style: 'padding-left: 20px',
styleForGrid: 'padding-left: 20px; margin-top:-5px',
styleForTable: 'padding-left: 20px; margin-top:-5px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
version: VERSION_NB_USE_ACTION_BTN.toString() },
imageText: { name: lbl_image_text,
type: 'text',
description: '',
required: false,
style: 'padding-left: 20px',
value: '',
summary: false,
parent_group_name: 'buttonGroup .editorList',
notForGrid: true,
notForTable: true,
version: VERSION_NB_USE_ACTION_BTN.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertAfter: 'btnType',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputForward: {
addDesc: { type: 'addDescInfo',
addValue: lbl_forward_default_des,
propertyName: 'defaultValue'},
ctrlProperty: { name: lbl_forward_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_forward,
version: '' + VERSION_CTRL_PROPERTY_EXP},
ctrlDesc: { name: '',
type: 'uiLabel',
description: ''
},
isSecureForward: { name: '',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: VERSION_SECURE_FORWARD.toString() },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
insertAfter: 'defaultValue',
summary: false },
fwToEmailGroup: { name: lbl_fw_to_email_grp,
style: 'clear: both;',
type: 'uiLabel',
insertAfter: 'defaultValue',
version: VERSION_FW_CUSTOM_EMAIL.toString()
},
hasCustomEmailSubject: { name: lbl_fw_c_email_subject,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
hasHtmlTag: true,
display_if_true_ctrl: 'customEmailSubject',
insertAfter: 'fwToEmailGroup',
version: VERSION_FW_CUSTOM_EMAIL.toString() },
customEmailSubject: { name: '',
type: 'text',
paddingLeft: '25px',
description: lbl_fw_c_email_subject_des,
required: false,
value: '',
summary: false,
valueIfUndefined: '',
hideCaptionH4: true,
add_class: 'not-use-fieldset',
show_condition_ques: 'hasCustomEmailSubject',
show_condition_ques_val: true,
insertAfter: 'hasCustomEmailSubject',
version: VERSION_FW_CUSTOM_EMAIL.toString() },
hasCustomEmailBody: { name: lbl_fw_c_email_body,
type: 'bool',
description: '',
value: false,
summary: true,
hasHtmlTag: true,
valueIfUndefined: false,
display_if_true_ctrl: 'customEmailBody',
insertAfter: 'customEmailSubject',
version: VERSION_FW_CUSTOM_EMAIL.toString() },
customEmailBody: { name: '',
paddingLeft: '25px',
hideCaptionH4: true,
valueIfUndefined: '',
type: 'text_multi',
description: lbl_fw_c_email_body_des,
value: '',
summary: false,
show_condition_ques: 'hasCustomEmailBody',
show_condition_ques_val: true,
insertAfter: 'hasCustomEmailBody',
version: VERSION_FW_CUSTOM_EMAIL.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
resetToNull: { name: lbl_reset_to_null,
type: 'bool',
description: lbl_reset_to_null_des,
value: true,
summary: true,
version: '' + VERSION_FW_RESET_TO_NULL },
turnOffEmail: { name: lbl_turn_off_email,
type: 'bool',
description: lbl_turn_off_email_des,
value: false,
summary: true,
style: 'padding-top: 5px;',
version: '' + VERSION_PCA_56 },
replyToSender: { name: lbl_reply_to_sender,
type: 'bool',
description: '',
value: false,
summary: true,
valueIfUndefined: false,
info_msg: hl_forward + '#return',
info_icon: true,
version: VERSION_REPLY_TO_SENDER.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_forward + '#format',
insertBefore: 'fwToEmailGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputPageBreak: {
ctrlProperty: { name: lbl_page_break_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_page,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_page_name,
type: 'uiText',
description: '',//lbl_page_name_des,
description_append: lbl_20_char_max,
required: false,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_data_name_des_scoresummary,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'page_break',
valueinput: '',
summary: false },
displayPageBreakWA: { name: lbl_display_page_wa,
type: 'bool',
description: '',
value: true,
summary: true,
version: '4.0',
hideVersion: '' + VERSION_NEW_TOOL_LAYOUT },
autoExpandPageWA: { name: lbl_expand_page_wa,
type: 'bool',
description: '',
value: false,
summary: true,
version: '4.0',
hideVersion: '' + VERSION_NEW_TOOL_LAYOUT },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: VERSION_PAGE_HIDE.toString()},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_PAGE_HIDE.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_PAGE_HIDE.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_PAGE_HIDE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_PAGE_HIDE.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition_page,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true},
autoReturn: { name: lbl_auto_return,
type: 'bool',
description: '',
value: true,
summary: true },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'hideMobileWebGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }
},
inputLabel: {
ctrlProperty: { name: lbl_label_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_label,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: false,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',//lbl_hint_link_des,
value: '',
summary: false },
hintLogoType: { name: '', // CO-2699
type: 'logoType',
description: '',//lbl_name_des,
value: 'WEBSITE',
valueinput: ''},
imgJustify: { name: lbl_img_cap_justify,
type: 'enumeration',
description: '',
options: [ 'Center$$' + lbl_justify_center,
'Left$$' + lbl_justify_left,
'Right$$' + lbl_justify_right ],
value: 'Left',
style: 'padding-top: 5px;',
summary: false,
hideVersion: '' + VERSION_TOOL_NEW_JUSTIFICATION},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
dispMobile: { name: lbl_hide_in_mobile,
type: 'bool',
description: '',
value: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_mobile_grp,
grp_description: '',
summary: true,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() },
dispReport: { name: lbl_hide_in_report,
type: 'bool',
description: '',
value: true,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_report_grp,
grp_description: '',
version: 'disable',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
value: isVersion(VERSION_TOOL_NEW_JUSTIFICATION),
insertBefore: 'hideMobileWebGroup',
version: VERSION_TOOL_NEW_JUSTIFICATION.toString()},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationImage: { name: lbl_justification_image, // CO-2725
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
valueIfUndefined: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
insertBefore: 'hideMobileWebGroup',
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
forGridOnly: true,
version: '' + VERSION_PORTAL_SHADING},
//Label Shading
labelShading:{ name: lbl_label_shading,
type: 'enumeration',
description: lbl_label_shading_des,
options: [ CONST_DOUBLE_DOLLAR,
'1$$' + lbl_label_shading_lines,
'2$$' + lbl_label_shading_shaded,
'3$$' + lbl_label_shading_nolinesorshading],
value: '',
summary: true,
insertAfter: 'apperance',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
linesLineColor:{ name: lbl_line_color,
type: 'selectcolor',
description: lbl_line_color_des,
value: LBL_DEFAULT_LINE_COLOR,
summary: true,
insertAfter: 'labelShading',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
linesTextColor:{ name: lbl_text_color,
type: 'selectcolor',
description: lbl_text_color_des,
value: LBL_DEFAULT_TEXT_COLOR,
summary: true,
insertAfter: 'linesLineColor',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
shadedColor:{ name: lbl_shaded_color,
type: 'selectcolor',
description: lbl_shaded_color_des,
value: LBL_DEFAULT_SHADE_COLOR,
summary: true,
insertAfter: 'linesTextColor',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
shadedTextColor:{ name: lbl_shaded_text_color,
type: 'selectcolor',
description: lbl_shaded_text_color_des,
value: LBL_DEFAULT_TEXT_COLOR,
summary: true,
insertAfter: 'shadedColor',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
nolinesTextColor:{ name: lbl_no_lines_text_color,
type: 'selectcolor',
description: lbl_no_lines_text_color_des,
value: LBL_DEFAULT_TEXT_COLOR,
summary: true,
insertAfter: 'shadedTextColor',
notForGrid: true,
version: '' + VERSION_LABEL_SHADING},
isFitToScreen: { name: lbl_fit_label_image,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'hintLink',
notForGrid: true,
/*show_condition_ques: 'apperance',
show_condition_ques_val: ['Custom'],*/
style: 'padding-top: 5px;',
version: '' + VERSION_LABEL_FIT_SCREEN},
addAsSpace: { name: lbl_add_as_space,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'isFitToScreen',
addValueToPropertyList: true,
trigger_function_if_true: addAsSpaceFunc,
version: VERSION_LABEL_ADD_AS_SPACE.toString()},
/*turnOffSelectionOutline: { name: msg_turn_off_selection_outline,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
paddingLeft: '20px',
insertAfter: 'nolinesTextColor',
version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},*/
/*removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertBefore: 'isFitToScreen',
style: 'padding-top: 5px;',
version: VERSION_REMOVE_ANSW_BORDER.toString() },*/
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'hideMobileWebGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }
/*relevanceconds: { name: lbl_rel_cond,
description: lbl_relevance_des,
type: 'relevanceConditionsEditor',
value: [],
advanced: true,
summary: false }*/},
inputScoreSummary: {
ctrlProperty: { name: lbl_score_summary_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_score_summary,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: false,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_data_name_des_scoresummary,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
summaryCategory:{ name: lbl_summary_for_category,
type: 'enumeration',
description: '',
options: [],
value: '',
summary: true,
version: VERSION_SUMMARY_FOR_CATEGORY.toString()},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
version: VERSION_GROUP_FUNCTION.toString() },
showDecimalValue: { name: lbl_show_decimal_value,
type: 'bool',
description: '',
value: true,
summary: true,
version: '' + VERSION_SCORE_SHOW_DECIMAL_VALUE },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
dispMobile: { name: lbl_hide_in_mobile,
type: 'bool',
description: '',
value: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_mobile_grp,
grp_description: '',
summary: true,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() },
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
dispReport: { name: lbl_hide_in_pdf,
type: 'bool',
description: '',
value: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
summary: true,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
insertBefore: 'showGroupRulesPermissions',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
insertBefore: 'showGroupRulesPermissions',
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_GROUP_FUNCTION.toString() },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
}
/*relevanceconds: { name: lbl_rel_cond,
description: lbl_relevance_des,
type: 'relevanceConditionsEditor',
value: [],
advanced: true,
summary: false }*/},
inputNumbering: {
ctrlProperty: { name: lbl_numbering_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_auto_number,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_data_name_des_autonumber,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
defaultValue: { name: lbl_default_val,
type: 'text',
description: lbl_default_val_des,
value: '',
placeholder: 'YYMMDDhhmmssSS',
readOnly: true,
summary: false,
info_msg: hl_auto_number + '#default-value',
info_icon: false,
hideVersion: '' + VERSION_AUTONUMBER_PHASE2},
autoNumberTypeGroup: { name: "",
type: 'property_group',
showSelectAll: false,
description: '',
summary: true,
version: VERSION_GROUP_FUNCTION.toString()},
autoNumberType: { name: lbl_auto_type,
type: 'enumeration',
description: '',
options: [ 'Collected$$' + lbl_auto_type_collected,
'Received$$' + lbl_auto_type_received,
CONST_AUTO_TYPE_ON_DEVCE + '$$' + lbl_auto_type_on_device + '$$version=' + VERSION_AUTONUMBER_TYPE_ON_DEVICE],
value: 'Collected',
version: '' + VERSION_AUTONUMBER_PHASE2,
parent_group: 'autoNumberTypeGroup',
display_if_value_equal: [CONST_AUTO_TYPE_ON_DEVCE + '$$autoNumberTriggerType'],
summary: false },
autoNumberTriggerType: { name: lbl_auto_num_trigger,
type: 'enumeration',
description: '',
required: false,
value: false,
summary: false,
options: ['$$' + lbl_auto_num_trigger_select_opt,
'2$$' + lbl_auto_num_trigger_2,
'4$$' + lbl_auto_num_trigger_4,
'8$$' + lbl_auto_num_trigger_8,
'16$$' + lbl_auto_num_trigger_16],
value: '',
valueIfUndefined: '',
insertAfter: 'autoNumberType',
show_condition_ques: 'autoNumberType',
show_condition_ques_val: CONST_AUTO_TYPE_ON_DEVCE,
version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() },
autoNumTriggerQues: { name: lbl_auto_num_trigger_ques,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
insertAfter: 'autoNumberTriggerType',
version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() },
autoNumTriggerPages: { name: lbl_auto_num_trigger_pages,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_page],
summary: false,
insertAfter: 'autoNumTriggerQues',
version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() },
prefix: { name: lbl_auto_prefix,
type: 'text',
description: lbl_auto_prefix_des,
value: '',
summary: false,
parent_group: 'autoNumberTypeGroup',
info_msg_2: hl_auto_number + '#prefix',
info_icon_2: true,
version: '' + VERSION_AUTONUMBER_PHASE2},
startValue: { name: lbl_auto_start_value,
type: 'numericDefaultField',
description: lbl_auto_start_value_des,
value: '',
summary: false,
isDisabledWhenEdit: true,
version: '' + VERSION_AUTONUMBER_PHASE2},
isResetNumbering: { name: lbl_is_reset_numbering,
type: 'bool',
description: lbl_is_reset_numbering_des,
value: false,
summary: true,
style: 'padding-top: 5px;',
isDisabledWhenEdit: true,
version: '' + VERSION_AUTONUMBER_PHASE2 },
isEnableAsCollect: { name: lbl_is_enable_as_collect_if_no_connect,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
style: 'padding-top: 5px;',
version: VERSION_AUTONUMBER_TYPE_ON_DEVICE.toString() },
isSearchField: { name: lbl_is_search_field,
type: 'bool',
description: lbl_is_search_field_des,
value: false,
summary: true,
version: '' + VERSION_OPTION_SERABLE_FILED },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_read_only_group_des,
info_msg: hl_shared_readonly + '#read-only',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
readOnlyDsp: { name: lbl_dispatch_read_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: lbl_dispatch_read_only_des,
value: false,
summary: true,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_read_only_grp,
grp_description: lbl_dispatch_read_only_grp_des,
version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: hl_shared_required + '#required',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
insertBefore: 'showGroupRulesPermissions',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
insertBefore: 'showGroupRulesPermissions',
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_GROUP_FUNCTION.toString() },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: '',
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
tip: { name: '',
type: 'property_group',
description: lbl_action_group_des_for_autonumber,
hasHtmlTag: true,
summary: true,
info_icon: false,
version: VERSION_GROUP_FUNCTION.toString()}},
inputNewPayment: {
ctrlProperty: { name: lbl_new_payment_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_new_payment},
id: { type: CONST_VALUE_NONE,
value:''
},
paymentType: { name: lbl_payment_type,
type: 'enumeration_radio',
description: '',
options: [ 'manual$$' + lbl_payment_type_manual,
'automated$$' + lbl_payment_type_automated,
CONST_PAYMENT_TYPE_SQUARE + '$$' + lbl_payment_type_square + '$$version=' + VERSION_SQUARE_PAYMENT,
CONST_PAYMENT_MIPOS + '$$' + lbl_payment_type_mipos + '$$version=' + VERSION_PAYMENT_MIPOS],
/*showOptionAcross: true,*/
valueIfUndefined: 'manual',
value: 'manual',
summary: true,
display_if_value_equal: ['automated$$sendToPayment,returnFromPayment,amountCharged,propayNote3,isDisplayAmountCharged,isDisplayAddMsg,addMessage,propayNote2, squareNote2,imgActionParamPP_Amount, imgActionParamPP_Currency, imgActionParamPP_Invoice, imgActionParamPP_Email,kind,hintLink,actionBtnText,imageText,imgJustify,displayCCIcon',
CONST_PAYMENT_TYPE_SQUARE + '$$sendToPayment,returnFromPayment,totalAmountPaid,transactionClientId,propayNote2, squareNote2,imgActionParamPP_Amount, imgActionParamPP_Currency,kind,hintLink,actionBtnText,imageText,imgJustify,displayCCIcon',
'manual$$readOnlyGroup,requiredGroup,label,hint',
CONST_PAYMENT_MIPOS +'$$sendToPayment,returnFromPayment,totalAmountPaid,imgActionParamPP_Amount, imgActionParamPP_Currency,imgActionParamMP_Tax, imgActionParamMP_IsTaxPercentage, imgActionParamMP_Description,cardholderName,cardNumber,authorizatioCode,paymentMethod,referenceNumber,actionBtnText'],
hide_if_value_equal: ['automated,' + CONST_PAYMENT_TYPE_SQUARE + ',' + CONST_PAYMENT_MIPOS + '$$label,hint,answerColor,removeAnswerBorder,shadedHeadings,justificationGroup,justificationAnswer,justificationHint,justificationCaption', 'manual$$imgJustify,shadedButton'],
trigger_if_value_change: ['li.imgActionParamPP_Currency #editor_imgActionParamPP_Currency$$reload_currency'],
version: VERSION_PAYMENT_TYPE.toString() },
propayNote2: { name: lbl_propay_note_3,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_note',
summary: true,
hasHtmlTag: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString()},
squareNote2: { name: lbl_square_note,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_note',
summary: true,
hasHtmlTag: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_SQUARE],
version: VERSION_SQUARE_PAYMENT.toString()},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
show_condition_ques: 'paymentType',
show_condition_ques_val: ['manual'],
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
show_condition_ques: 'paymentType',
show_condition_ques_val: ['manual'],
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
grayCaption: { name: lbl_gray_caption_text,
type: 'bool',
description: '',
value: false,
insertAfter: 'name',
style: 'padding-top: 10px;',
version: VERSION_GRAY_CAPTION_TEXT.toString()},
sendToPayment: { name: lbl_send_to_payment,
type: 'property_group',
add_class: 'notAcross',
description: '',
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_TYPE.toString()},
/*paymentVendorGroup: { name: lbl_payment_vendor_group,
type: 'property_group',
add_class: 'notAcross',
description: '',
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE],
version: VERSION_PAYMENT_TYPE.toString()},
propay: { name: lbl_propay,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'paymentVendorGroup',
grp_name: lbl_propay,
grp_description: '',
display_if_true_ctrl: 'imgActionParamPP_Amount, imgActionParamPP_Currency, imgActionParamPP_Invoice, imgActionParamPP_Email',
version: VERSION_PAYMENT_TYPE.toString()},
propayNote: { name: lbl_propay_note,
type: 'property_group',
description: '',
style: 'margin-top: -5px; padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_note',
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE],
version: VERSION_PAYMENT_TYPE.toString()},
propayNote2: { name: lbl_propay_note_2,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_note',
summary: true,
hasHtmlTag: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE],
version: VERSION_PAYMENT_TYPE.toString()},*/
imgActionParamPP_Amount: { name: lbl_paypro_amount,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_paypro_amount_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_TYPE.toString() },
imgActionParamPP_Currency: { name: lbl_paypro_currency,
type: 'enumeration',
description: '',
options: [ 'USD'],
mipos_options: ['188$$CRC',
'320$$GTQ',
'340$$HNL',
'558$$NIO',
'840$$USD'],
other_options: ['USD'],
value: 'USD',
valueIfUndefined: 'USD',
required: true,
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_TYPE.toString()},
imgActionParamPP_Invoice: { name: lbl_paypro_invoice,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_paypro_invoice_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString() },
imgActionParamPP_Email: { name: lbl_paypro_email,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_paypro_email_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString() },
imgActionParamMP_Tax: { name: lbl_mipos_tax,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_mipos_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_MIPOS.toString() },
imgActionParamMP_IsTaxPercentage: { name: lbl_mipos_tax_pecentage,
type: 'bool',
description: '',
add_class: 'checkbox-right',
style: 'padding-top: 5px;',
value: false,
valueIfUndefined: false,
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_MIPOS.toString()},
imgActionParamMP_Description: { name: lbl_mipos_description,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_mipos_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_MIPOS.toString() },
returnFromPayment: { name: lbl_return_from_payment,
type: 'property_group',
add_class: 'notAcross',
description: '',
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_TYPE.toString()},
amountCharged: { name: lbl_paypro_amount_charged,
type: 'enumeration',
description: '',
hasHtmlTag: true,
required: false,
style: 'padding-left: 20px;',
options: [CONST_DOUBLE_DOLLAR + lbl_paypro_amount_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString() },
propayNote3: { name: lbl_destination_field,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 20px; text-align: left;width: 262px;',
add_class: 'using_for_note_2',
summary: true,
hasHtmlTag: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString()},
isDisplayAmountCharged: { name: lbl_display_amount_charged,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: true,
valueIfUndefined: true,
summary: true,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED],
version: VERSION_PAYMENT_TYPE.toString()},
totalAmountPaid: { name: lbl_square_total_amount_paid,
type: 'enumeration',
description: '',
hasHtmlTag: true,
required: false,
style: 'padding-left: 20px;',
options: [CONST_DOUBLE_DOLLAR + lbl_square_total_amount_paid_opt],
value: '',
summary: false,
show_condition_ques: 'paymentType',
show_condition_ques_val: [CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS],
version: VERSION_PAYMENT_MIPOS Send report as a web link (for large pdfs)
// Send report as a web link (for large pdfs)
// sendReportAsWebLink:
// { name: lbl_send_report_as_web_link,
// type: 'bool',
// description: lbl_send_report_as_web_link_des,
// value: false,
// summary: true,
// version: '' + VERSION_LINK_CONVERT_PDF_OVER_LIMIT_SIZE
// },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_read_only_group_des,
info_msg: hl_shared_readonly + '#read-only',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
readOnlyDsp: { name: lbl_dispatch_read_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: lbl_dispatch_read_only_des,
value: false,
summary: true,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_read_only_grp,
grp_description: lbl_dispatch_read_only_grp_des,
version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: hl_shared_required + '#required',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }
/*relevanceconds: { name: lbl_rel_cond,
description: lbl_relevance_des,
type: 'relevanceConditionsEditor',
value: [],
advanced: true,
summary: false }*/},
inputApproval: {
ctrlProperty: { name: lbl_approval_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_approval,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_data_name_app_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() }
},
inputCalculate: {
ctrlProperty: { name: lbl_calculate_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_calculations,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_shared_ajr + '#format',
insertAfter: 'name',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertAfter: 'showGroupFormat',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
insertBefore: 'clearGroup',
version: VERSION_GROUP_FUNCTION.toString() },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
/*kind: { name: lbl_kind,
type: 'enumeration',
description: lbl_type_cal_field,
options: [ 'Number$$' + lbl_kind_number,
'Date:Time$$' + lbl_kind_datetime,
'String$$' + lbl_kind_string],
version: '10.4'},*/
kind: { name : lbl_cal_kind
,type : 'calculation_kind'
,description: ''
/*,insertAfter: 'showGroupFormat'*/
,insertBefore: 'showGroupFormat'
,addValueToPropertyList: true
,value: 'Number'},
useCurrentcySymbol: { name: lbl_use_curr_sym,
type: 'bool',
description: '',
value: false,
summary: true,
/*insertAfter: 'showGroupAppearance',*/
insertAfter: 'showGroupFormat',
version: '2.12' },
currency: { name: lbl_curr_sym,
type: 'currency_enumeration',
description: '',
options: [ 'None$$' + lbl_currency_none,
'$',
'¥',
'€',
'£',
'ƒ',
'P',
'¢',
'Q',
'L',
'kr',
'p.',
'R$',
'Ft',
'Rp',
'J$',
'Lt',
'C$',
'$U',
'Z$',
'TT$',
'R',
'S/'],
value: 'None',
summary: true,
insertAfter: 'useCurrentcySymbol',
version: '2.12' },
isShowComma: { name: lbl_show_comma,
type: 'bool',
description: '',
valueIfUndefined: true,
value: true,
summary: true,
insertAfter: 'currency',
version: VERSION_CAL_SHOW_COMMA.toString() },
isAllowRunningTotals: { name: lbl_allow_running_totals,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'useCurrentcySymbol',
forRepeatOnly: true,
info_msg: hl_calculations + '#runningtotals',
info_icon: true,
version: VERSION_ALLOW_RUNNING_TOTAL.toString() },
usePercent: { name: lbl_use_percent,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
/*insertAfter: 'showGroupAppearance',*/
insertAfter: 'showGroupFormat',
style: 'padding-top: 5px;',
version: VERSION_CALCULATE_PERCENT.toString() },
mobileTextAlign: { name: lbl_mobile_text_align,
type: 'enumeration',
description: '',
options: [ 'Right$$Right'
, 'Left$$Left'
, 'Center$$Center' ],
value: 'Left',
summary: true,
version: ''+VERSION_CALCULATION_KIND_STRING,
hideVersion: '' + VERSION_TOOL_NEW_JUSTIFICATION},
decPlace: { name: lbl_decimal_place,
type: 'decimalPlace',
description: '',//lbl_decimal_place_des,
value: '',
insertAfter: 'showGroupFormat',
/*insertAfter: 'kind', */
add_class: 'makeAcross show-up-down not-use-fieldset',
summary: false },
round: { name: lbl_round,
type: 'enumeration_radio',
description: '',
options: [ 'Up$$Standard',
'Down$$Down' ],
value: 'Up',
valueIfUndefined: 'Up',
summary: true,
insertAfter: 'decPlace',
add_class: 'makeAcross',
version: VERSION_CALCULATE_ROUND_DOWN.toString()},
showAsTextMobile: { name: lbl_show_text_as_mobile,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_false_ctrl: 'apperance, shadedHeadings',
insertAfter: 'showGroupFormat',
/*insertAfter: 'kind', */
style: 'padding-top: 5px;',
hideVersion: VERSION_CALCULATION_KIND_STRING.toString()},
showAsHM: { name: lbl_show_as_hhhhhmm,
type: 'bool',
description: '',
value: false,
summary: true,
insertBefore: 'showGroupAppearance',
style: 'padding-top: 5px;',
uncheck_if_true_ctrl: 'showAsHMS,showDateOnly',
version: '3.6' },
showAsHMS: { name: lbl_show_as_hhmmss,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'showAsHM',
uncheck_if_true_ctrl: 'showAsHM,showDateOnly',
valueIfUndefined: false,
version: VERSION_SHOW_AS_HHMMSS.toString() },
showDateOnly: { name: lbl_show_as_date,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'showAsHMS',
uncheck_if_true_ctrl: 'showAsHM,showAsHMS',
valueIfUndefined: false,
version: VERSION_SHOW_AS_HHMMSS.toString() },
result: { name: lbl_result,
type: 'text',
description: '',
value: '',
valueIfUndefined: '',
readOnly: true,
summary: false,
add_class: 'not-use-fieldset hide-legend makeAcross',
addValueToPropertyList: true,
insertAfter: 'showGroupFormat',
version: VERSION_CALCULATE_RESULT.toString() },
negativeGroup: { name: lbl_negative_group,
type: 'property_group',
description: lbl_hide_mobile_web_group_des,
summary: true,
insertAfter: 'isShowComma',
add_class: 'notAcross',
info_msg: hl_calculations + '#negative',
info_icon: true,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
negativeRedText: { name: lbl_negative_red,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'negativeGroup',
grp_name: lbl_negative_red,
grp_description: '',
valueIfUndefined: false,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
negativeBrackets: { name: lbl_negative_brackets,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'negativeGroup',
grp_name: lbl_negative_brackets,
grp_description: '',
valueIfUndefined: false,
version: VERSION_NUMERIC_NEGATIVE_OPT.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
show_condition_ques: 'showAsTextMobile',
show_condition_ques_val: false,
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
show_condition_ques: 'showAsTextMobile',
show_condition_ques_val: false,
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showAccountVariable: { name: lbl_show_accout_variable,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
style: 'padding-top: 5px;',
insertAfter: 'kind',
version: VERSION_ACCOUNT_VARIABLES_MANAGE.toString()},
showUserVariable: { name: lbl_show_user_variable,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: 'showAccountVariable',
version: VERSION_ACCOUNT_VARIABLES_MANAGE.toString()},
showSchedulerVariable: { name: lbl_show_scheduler_variable,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
insertAfter: 'showUserVariable',
version: VERSION_SHOW_SCHEDULER_VARIABLE.toString()},
expression: { name: lbl_exp,
type: 'expressions',
description: '',
required: true,
value: [],
/*insertAfter: 'showUserVariable', */
insertAfter: 'showSchedulerVariable',
summary: false },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
securityGroup: { name: lbl_security_group,
type: 'property_group',
add_class: 'notAcross',
description: '',
insertBefore: 'showGroupAppearance',
summary: true,
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_CAL_SECURITY.toString()},
encryptField: { name: lbl_encrypt_field,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'securityGroup',
grp_name: lbl_encrypt_field,
grp_description: '',
enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true',
version: VERSION_CAL_SECURITY.toString()},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'skipIfConditions',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
inputLookup: {
ctrlProperty: { name: lbl_lookup_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_data_lookup,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
ctrlDesc: { name: '',
type: 'uiLabel',
description: ''
},
isRetrieve: { name: '',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'justificationGroup,imgJustify',
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: VERSION_LOOKUP_RETRIEVE.toString() },
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
add_class_forTable: 'table-child',
add_class_forGrid: 'grid-child',
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
add_class_forGrid: 'grid-child',
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
defaultValue: { name: lbl_default_val,
type: 'text',
description: lbl_default_val_des,
value: '',
summary: false,
info_msg: hl_data_lookup + '#default-value',
info_icon: false,
add_class: 'notForLookupRetrieve',
version: '4.0'},
datasource: { name: lbl_data_src,
type: 'lookupTable',
description: '',//lbl_data_src_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
requiredText: lbl_lookup_ds_required_text,
value: '',
valueinput: '',
info_msg: hl_data_lookup + '#data-source',
info_icon: true,
summary: false },
lookupConditionGroup: { name: lbl_lookup_cond_fields,
type: 'property_group',
description: lbl_condition_case_sensitive_hint,
showSelectAll: false,
summary: true,
add_class: 'forLookupRetrieve',
version: VERSION_RETRIEVE_MODIFY_ONLY.toString()},
lookupfield: { name: lbl_lookup_field,
type: 'lookupField',
description: '',//lbl_lookup_field_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
add_class: 'notForLookupRetrieve',
info_msg: hl_data_lookup + '#lookup-field',
info_icon: true,
summary: false },
isCaseSensitiveCmp: { name: lbl_case_sensitive_cmp,
type: 'bool',
description: "",
value: true,
valueIfUndefined: true,
summary: true,
add_class: 'forLookupRetrieve',
parent_group: 'lookupConditionGroup',
version: VERSION_CASE_SENSITIVE_MATCHING.toString() },
lookupfield4R: { name: lbl_lookup_cond_field,
type: 'lookupField',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
add_class: 'forLookupRetrieve center-header h4-2-h5 not-use-fieldset',
info_icon: false,
summary: false },
firstLookupConditionOpr: { name: lbl_lu_condition_opr_group,
type: 'property_group',
description: '',
showSelectAll: false,
summary: true,
add_class: 'forLookupRetrieve center-header h4-2-h5',
version: VERSION_RETRIEVE_MODIFY_ONLY.toString()},
lookupValue: { name: lbl_lookup_value,
type: 'lookupValue',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: {val: '',
condCompareType: 'string'},
valueinput: '',
add_class: 'forLookupRetrieve center-header h4-2-h5',
info_icon: false,
summary: false,
version: VERSION_LOOKUP_RETRIEVE.toString() },
lookupConditionFields4R: { name: '',
type: 'lookupConditionFields',
description: '',
required: false,
value: [],
valueinput: '',
add_class: 'forLookupRetrieve',
summary: false,
version: VERSION_LOOKUP_RETRIEVE.toString() },
isChooseOneField: { name: lbl_is_choose_one_field,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: false,
valueIfUndefined: false,
add_class: 'notForLookupRetrieve',
summary: true,
version: VERSION_CHOOSE_ONE_LU_FIELD.toString() },
isRetrieveDS: { name: lbl_is_retrieve_ds,
type: 'sliderOnOff',
description: '',
value: false,
add_class: 'forLookupRetrieve',
display_if_true_ctrl: 'retrieveKind,destinationdataconds,notDisplayRecNotFound,btnKind,useChooseOneUnderly,isRetrieveOldestRecord,retrieveRecordKind',
summary: true,
version: VERSION_RETRIEVE_MODIFY_ONLY.toString() },
isRetrieveOldestRecord: { name: lbl_retrieve_oldest_rec,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
summary: true,
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
version: VERSION_RETRIEVE_OLDEST_RECORD.toString(),
hideVersion: VERSION_RETRIEVE_RECORD_TYPE.toString()},
retrieveRecordKind: { name: '',
type: 'enumeration_radio',
description: '',
hideCaption: true,
marginTop: '-5px',
options: [ 'oldest$$' + lbl_retrieve_oldest_rec,
'newest$$' + lbl_retrieve_newest_rec,
'all$$' + lbl_retrieve_all_rec],
showOptionAcross: false,
value: 'newest',
valueIfUndefined: 'newest',
add_class: 'forLookupRetrieve',
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
trigger_if_value_change: ['li.isRetrieveOldestRecord .editorCheckbox$$editorCheckbox_Change|oldest|true'],
version: VERSION_RETRIEVE_RECORD_TYPE.toString() },
retrieveKind: { name: lbl_trigger_kind,
type: 'enumeration_radio',
hideCaption: false,
showCaptionAcross: {
captionStyle: 'margin-top:-5px;'
},
showOptionAcross: true,
options: [ 'button$$Button',
'autoRun$$Auto run'],
value: 'button',
summary: true,
add_class: 'forLookupRetrieve hide-legend',
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
display_if_value_equal: ['button$$hideRetrieveButton',
'autoRun$$autoActionStampTriggerRetrieve'],
/*hide_if_value_equal: ['button$$autoRunGroup'],*/
/*trigger_if_value_equal: ['button$$ul.propertyList li.retrieveKind .input$$change'],*/
version: VERSION_RETRIEVE_MODIFY_ONLY.toString()},
/*autoRunGroup: { name: lbl_auto_run_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: '',
showSelectAll: false,
summary: true,
show_condition_ques: 'retrieveKind',
show_condition_ques_val: 'autoRun',
version: VERSION_AUTO_RUN_GROUP.toString()},*/
autoActionStampTriggerRetrieve: { name: lbl_action_auto_run_trigger,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
options: [ lbl_action_select_a_trigger,
'2$$' + lbl_auto_num_trigger_2a,
'8$$' + lbl_auto_num_trigger_8],
value: lbl_sel_question,
summary: false,
show_condition_ques: 'retrieveKind',
show_condition_ques_val: 'autoRun',
//parent_group: 'autoRunGroup',
version: VERSION_ACTION_BTN_AUTO_STAMP.toString()},
autoActionStampQuestionTriggerRetrieve: { name: lbl_trigger_question,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
//parent_group: 'autoRunGroup',
version: VERSION_AUTO_RUN_GROUP.toString()},
hideRetrieveButtonAuto: { name: lbl_hide_retrieve_button_auto,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: true,
valueIfUndefined: true,
add_class: 'forLookupRetrieve ' + CONST_CSS_CLASS_HIDE_SESSION,
//show_condition_ques: 'retrieveKind',
//show_condition_ques_val: 'autoRun',
summary: true,
version: VERSION_RETRIEVE_MODIFY_ONLY.toString() },
btnKind: { name: lbl_button_type,
type: 'enumeration_radio',
description: '',
options: [ 'Button$$' + lbl_kind_button,
'Image$$' + lbl_kind_image],
showOptionAcross: true,
value: CONST_TYPE_BUTTON,
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
display_if_value_equal: [CONST_TYPE_BUTTON + '$$actionBtnText',
CONST_TYPE_IMAGE + '$$hintLink,imageText' ],
add_class: 'forLookupRetrieve',
version: VERSION_LOOKUP_RETRIEVE.toString() },
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',
required: true,
value: '',
summary: false,
show_condition_ques: 'btnKind',
show_condition_ques_val: CONST_TYPE_IMAGE,
add_class: 'forLookupRetrieve',
version: VERSION_LOOKUP_RETRIEVE.toString() },
actionBtnText: { name: lbl_btn_text,
type: 'text',
description: '',
required: false,
value: '',
summary: false,
show_condition_ques: 'btnKind',
show_condition_ques_val: CONST_TYPE_BUTTON,
add_class: 'forLookupRetrieve',
version: VERSION_LOOKUP_RETRIEVE.toString() },
imageText: { name: lbl_image_text,
type: 'text',
description: '',
required: false,
value: '',
summary: false,
show_condition_ques: 'btnKind',
show_condition_ques_val: CONST_TYPE_IMAGE,
add_class: 'forLookupRetrieve',
version: VERSION_LOOKUP_RETRIEVE.toString() },
/*hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},*/
hideRetrieveButton: { name: lbl_hide_retrieve_button,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
summary: true,
show_condition_ques: 'retrieveKind',
show_condition_ques_val: 'button',
version: VERSION_RETRIEVE_MODIFY_ONLY.toString() },
notDisplayRecNotFound: { name: lbl_not_display_rec_not_found,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
summary: true,
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
version: VERSION_RETRIEVE_MODIFY_ONLY.toString() },
maxRows: { name: lbl_lu_max_rows,
type: 'textLoop',
description: '',
value: '500',
maxlength: '4',
required: true,
style: 'padding-top: 5px;',
add_class: 'makeAcross notForLookupRetrieve',
summary: false,
version: '' + VERSION_LU_MAX_ROWS},
lookupConditionFields: { name: lbl_lookup_cond_fields,
type: 'lookupConditionFields',
description: '',
required: false,
value: [],
valueinput: '',
add_class: 'notForLookupRetrieve',
summary: false,
version: '1.4' },
isDisplayFirstMatching: { name: lbl_display_first_matching,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'isAllowEdit',
info_msg: hl_data_lookup + '#displayfirst',
info_icon: true,
version: VERSION_DISPLAY_FIRST_MATCHING.toString() },
isShowCmpType: { name: lbl_is_show_compare_type,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_msg: hl_data_lookup + '#showcompare',
info_icon: true,
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: VERSION_SHOW_CMP_TYPE.toString() },
isAllowEdit: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
paddingLeft: '30px',
value: false,
valueIfUndefined: false,
summary: true,
show_condition_ques: 'isDisplayFirstMatching',
show_condition_ques_val: true,
version: VERSION_DISPLAY_FIRST_MATCHING.toString() },
isShowListMatching: { name: lbl_show_list_matching,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isAllowEdit',
display_if_true_ctrl: 'isAllowEdit2',
version: VERSION_DISPLAY_LIST_MATCHING.toString() },
isAllowEdit2: { name: lbl_allow_edit_option,
type: 'bool',
description: '',
paddingLeft: '30px',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isShowListMatching',
show_condition_ques: 'isShowListMatching',
show_condition_ques_val: true,
version: VERSION_DISPLAY_LIST_MATCHING.toString() },
isAcceptNull: { name: lbl_accept_null_value,
type: 'bool',
description: "",
value: true,
summary: true,
info_msg: hl_data_lookup + '#evaluateblank',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: '3.3' },
isEvaluateERT: { name: lbl_evaluate_erf,
type: 'bool',
description: "",
value: false,
valueIfUndefined: false,
summary: true,
info_icon: false,
add_class: 'notForLookupRetrieve',
version: VERSION_EVALUATE_ERT.toString() },
destinationdataconds: { name: lbl_dest_field,
type: 'lookupFillEditor',
description: '',
value: [],
//show_condition_ques: 'isModifyOnly',
//show_condition_ques_val: false,
//show_condition_ques: 'isRetrieveDS',
//show_condition_ques_val: true,
show_condition_ques: 'isRetrieveDS',
show_condition_ques_val: true,
summary: false },
isRefreshOnRetrieve: { name: lbl_is_refresh_on_retrieve,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
paddingLeft: '10px',
parent_group_name: 'destinationdataconds .addition-session',
version: VERSION_REFRESH_ON_RETRIEVE.toString() },
isModifyOnly: { name: lbl_is_modify_only,
type: 'sliderOnOff',
description: lbl_is_modify_only_des,
//style: 'padding-top: 5px;',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
//uncheck_if_true_ctrl: 'isRetrieveDS',
//display_if_false_ctrl: 'destinationdataconds',
display_if_true_ctrl: 'isModifyAllMatches,isModifyAdd,isModifyDelete,doNotModifyOnDispacth,doNotModifyOnForward,modifyFields,useChooseOneUnderly,isModifyAndDeleteSubmission,modifyKind,isReRunCalculation',
summary: true,
version: VERSION_RETRIEVE_MODIFY_ONLY.toString() },
modifyKind: { name: lbl_trigger_kind,
type: 'enumeration_radio',
hideCaption: false,
showCaptionAcross: {
captionStyle: 'margin-top:-5px;'
},
showOptionAcross: true,
options: [ 'onSubmission$$On submission',
'autoRun$$' + lbl_on_demand],
value: 'onSubmission',
valueIfUndefined: 'onSubmission',
summary: true,
add_class: 'forLookupRetrieve hide-legend',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
paddingLeft: '20px',
display_if_value_equal: ['autoRun$$autoActionStampTriggerModify'],
version: VERSION_AUTO_RUN_MODIFY.toString()},
autoActionStampTriggerModify: { name: lbl_action_auto_run_trigger,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
options: [ lbl_action_select_a_trigger,
'32$$' + lbl_auto_num_trigger_32,
'2$$' + lbl_auto_num_trigger_2a,
'8$$' + lbl_auto_num_trigger_8],
value: lbl_sel_question,
summary: false,
show_condition_ques: 'modifyKind',
show_condition_ques_val: 'autoRun',
paddingLeft: '20px',
version: VERSION_AUTO_RUN_MODIFY.toString()},
autoActionStampQuestionTriggerModify: { name: lbl_trigger_question,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false,
paddingLeft: '20px',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
version: VERSION_AUTO_RUN_MODIFY.toString()},
doNotModifyOnDispacth: {
name: lbl_donot_modify_on_dispatch,
type: 'bool',
description: "",
value: true,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
summary: true,
info_icon: false,
style: 'padding-top: 5px;',
paddingLeft: '20px',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
version: VERSION_LOOKUP_RETRIEVE.toString()},
doNotModifyOnForward: {
name: lbl_donot_modify_on_forward,
type: 'bool',
description: "",
value: true,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
summary: true,
info_icon: false,
paddingLeft: '20px',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
version: VERSION_LOOKUP_RETRIEVE.toString()},
isModifyDelete: { name: lbl_is_modify_delete,
type: 'bool',
description: '',
paddingLeft: '20px',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
summary: true,
version: VERSION_RETRIEVE_MODIFY_DELETE.toString() },
modifyFields: { name: lbl_modify_fields,
type: 'lookupRetrieveModifyFields',
description: '',
value: [],
valueIfUndefined: [],
add_class: 'forLookupRetrieve',
summary: false,
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
version: VERSION_LOOKUP_RETRIEVE.toString() },
modifyFieldsAction: { name: lbl_modify_fields,
type: 'lookupRetrieveModifyFieldsAction',
description: '',
value: '',
insertAfter: 'modifyFieldsAction',
add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP + ' forLookupRetrieve',
summary: false,
hideVersion: VERSION_LOOKUP_RETRIEVE.toString() },
isModifyAdd: { name: lbl_is_modify_add,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
paddingLeft: '20px',
insertAfter: 'isModifyDelete',
summary: true,
display_if_true_ctrl: 'modifyAddFields',
version: VERSION_MODIFY_ADD_4_MODIFY_ONLY.toString() },
isModifyAllMatches: { name: lbl_modify_all_matches,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
paddingLeft: '20px',
insertAfter: 'isModifyAdd',
summary: true,
version: VERSION_MODIFY_ALL_MATCHES.toString() },
isReRunCalculation: { name: lbl_re_run_calculations,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
paddingLeft: '20px',
insertAfter: 'isModifyAllMatches',
display_if_true_ctrl: 'reRunCalculationFields',
summary: true,
version: VERSION_RE_RUN_CALCULATIONS.toString() },
reRunCalculationFields: { name: '',
type: 'reRunCalculationFields',
description: '',
value: [],
valueIfUndefined: [],
add_class: 'forLookupRetrieve',
summary: false,
show_condition_ques: 'isReRunCalculation',
show_condition_ques_val: true,
paddingLeft: '40px',
insertAfter: 'isReRunCalculation',
version: VERSION_RE_RUN_CALCULATIONS.toString() },
isModifyAndDeleteSubmission: { name: lbl_modify_n_delete_submission,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
add_class: 'forLookupRetrieve',
show_condition_ques: 'isModifyOnly',
show_condition_ques_val: true,
paddingLeft: '20px',
insertAfter: 'isModifyAdd',
summary: true,
version: VERSION_MODIFY_N_DELETE_SUBMISSION.toString() },
modifyAddFields: { name: lbl_only_modify_on_new_record,
type: 'lookupRetrieveModifyFields',
style: 'max-width: 230px; padding-left: 30px;',
description: '',
value: [],
valueIfUndefined: [],
add_class: 'forLookupRetrieve',
summary: false,
insertAfter: 'isModifyAdd',
show_condition_ques: 'isModifyAdd',
show_condition_ques_val: true,
version: VERSION_MODIFY_ADD_FIELDS.toString()},
useChooseOneUnderly: {
name: lbl_choose_one_underly,
type: 'bool',
description: "",
value: true,
valueIfUndefined: true,
add_class: 'forLookupRetrieve',
summary: true,
info_icon: false,
show_condition_ques: 'isModifyOnly|isRetrieveDS',
show_condition_ques_val: true,
version: VERSION_LOOKUP_RETRIEVE.toString()},
advancedOptionsGroup: { name: lbl_advanced_options,
type: 'property_group',
description: lbl_advanced_options_des,
summary: true,
info_icon: false,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_NEW_TOOL_LAYOUT},
limitToList: { name: lbl_limit_to_list,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_data_lookup + '#limit-to-list',
info_icon: true,
add_class: 'notForLookupRetrieve',
/*display_if_true_ctrl: 'length',*/
version: '2.12' },
isSortLookupList: { name: lbl_sort_lookup_list,
type: 'bool',
description: '',
value: true,
summary: true,
info_msg: hl_data_lookup + '#sort-lookup-list-alpha-numerically',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: '3.2' },
isLoadImmediately: { name: lbl_load_immediately,
type: 'bool',
description: '',
value: true,
valueIfUndefined: false,
summary: true,
info_msg: hl_data_lookup + '#load-immediately',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: VERSION_LOAD_IMMEDIATELY.toString() },
grayCaption: { name: lbl_gray_caption_text,
type: 'bool',
description: '',
value: false,
insertAfter: 'isSortLookupList',
version: VERSION_GRAY_CAPTION_TEXT.toString()},
sortType: { name: lbl_sort_order,
type: 'enumeration_radio',
description: '',
options: [ 'asc$$' + lbl_sort_type_asc,
'desc$$' + lbl_sort_type_desc],
showOptionAcross: true,
value: 'asc',
add_class: 'notForLookupRetrieve',
version: VERSION_LU_SORT_TYPE.toString() },
otherGroup: { name: lbl_other,
type: 'property_group',
summary: true,
info_icon: false,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_NEW_TOOL_LAYOUT},
isSearchUndValue: { name: lbl_search_und_val,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_data_lookup + '#choose-one-destination-fields',
info_icon: true,
removeSettingTextBF: true,
add_class: 'notForLookupRetrieve',
version: '1.3' },
isUseCondLookup: { name: lbl_use_cond_lookup,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_data_lookup + '#useasinput',
info_icon: true,
removeSettingTextBF: true,
add_class: 'notForLookupRetrieve',
version: '2.14' },
isSearchWildCard: { name: lbl_search_wild_card,
type: 'bool',
description: '',
value: false,
info_msg: hl_data_lookup + '#wild-card-search',
info_icon: true,
removeSettingTextBF: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_LU_SEARCH_WILD_CARD },
isSearchField: { name: lbl_is_search_field,
type: 'bool',
description: lbl_is_search_field_des,
value: false,
summary: true,
removeSettingTextBF: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_OPTION_SERABLE_FILED },
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
//description: lbl_kind_des,
options: [ 'String$$' + lbl_kind_string,
'Number$$' + lbl_kind_number],
showOptionAcross: true,
value: 'String',
add_class: 'notForLookupRetrieve',
display_if_value_equal: [lbl_kind_string + '$$showSymbols,lockNumericKeyboard,keyboardType'],
version: '1.3' },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
version: VERSION_GROUP_FUNCTION.toString() },
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
add_class: 'notForLookupRetrieve',
/*show_condition_ques: 'limitToList',
show_condition_ques_val: true,*/
summary: false },
dropdownTextGroup: { name: lbl_dropdown_text,
type: 'property_group',
summary: true,
info_icon: false,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_NEW_TOOL_LAYOUT},
isWrapText: { name: lbl_wrap_text,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
style: 'float:left;padding-right:20px;',
parent_group: 'dropdownTextGroup',
removeSettingTextBF: true,
version: '5.0' },
textSize: { name: lbl_text_size,
type: 'enumeration',
grp_type: 'enumeration_grp',
description: '',
options: [ 'xsmall$$' + lbl_text_size_xsmall,
'small$$' + lbl_text_size_small,
'medium$$' + lbl_text_size_medium,
'large$$' + lbl_text_size_large,
'xlarge$$' + lbl_text_size_xlarge],
value: 'medium',
parent_group: 'dropdownTextGroup',
style: 'float: left;',
version: '5.0' },
dispKBGroup: { name: lbl_dispay_kb_landscape_mode,//lbl_display_kb,
type: 'property_group',
summary: true,
info_msg: hl_data_lookup + '#display-keyboard',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT,
hideVersion: '' + VERSION_LU_KEYBOARD},
dispKBPortrait: { name: lbl_dispay_kb_portrait_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: true,
summary: true,
parent_group: 'dispKBGroup',
grp_name: lbl_dispay_kb_portrait_mode_grp,
removeSettingTextBF: true,
hideVersion: '' + VERSION_NEW_TOOL_LAYOUT},
dispKBLandscape: { name: lbl_dispay_kb_landscape_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispKBGroup',
grp_name: lbl_dispay_kb_landscape_mode_grp,
removeSettingTextBF: true,
hideVersion: '' + VERSION_NEW_TOOL_LAYOUT},
dispKBFirst: { name: lbl_dispay_kb_first,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispKBGroup',
grp_name: lbl_dispay_kb_first_grp,
display_if_true_ctrl: 'ignoreScreenSize',
version: '' + VERSION_NEW_TOOL_LAYOUT,
removeSettingTextBF: true,
hideVersion: '' + VERSION_LU_KEYBOARD },
ignoreScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
show_condition_ques: 'dispKBFirst',
show_condition_ques_val: true,
summary: true,
version: '' + VERSION_NEW_TOOL_LAYOUT,
hideVersion: '' + VERSION_LU_KEYBOARD},
onClear: { name: lbl_on_clear,
type: 'bool',
description: '',
value: false,
summary: true,
/*info_msg: hl_data_lookup + '#on-clear',
info_icon: true,*/
version: '' + VERSION_ON_CLEAR_CHK,
removeSettingTextBF: true,
hideVersion: '' + VERSION_LU_KEYBOARD},
kbIconGroup: { name: lbl_kb_icon_grp,
type: 'property_group',
summary: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_LU_KEYBOARD},
kbIconPortrait: { name: lbl_kb_icon_portrait_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'kbIconGroup',
grp_name: lbl_kb_icon_portrait_mode,
removeSettingTextBF: true,
version: '' + VERSION_LU_KEYBOARD},
kbIconLanscape: { name: lbl_kb_icon_lanscape_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'kbIconGroup',
grp_name: lbl_kb_icon_lanscape_mode,
removeSettingTextBF: true,
version: '' + VERSION_LU_KEYBOARD},
openKBGroup: { name: lbl_open_kb_grp,
type: 'property_group',
summary: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_LU_KEYBOARD},
openKBPortrait: { name: lbl_open_kb_portrait_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: true,
summary: true,
parent_group: 'openKBGroup',
removeSettingTextBF: true,
grp_name: lbl_open_kb_portrait_mode,
version: '' + VERSION_LU_KEYBOARD},
openKBLanscape: { name: lbl_open_kb_lanscape_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'openKBGroup',
grp_name: lbl_open_kb_lanscape_mode,
removeSettingTextBF: true,
version: '' + VERSION_LU_KEYBOARD},
displayGroup: { name: lbl_display,
type: 'property_group',
summary: true,
info_msg: hl_data_lookup + '#display',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_NEW_TOOL_LAYOUT},
dispMobile: { name: lbl_disp_Mobile,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',//lbl_disp_Mobile_des,
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_disp_Mobile_grp,
removeSettingTextBF: true,
display_if_true_ctrl: 'autoStartScan,isDisplayFirstMatchingScanBC',
version: '1.3' },
dispNFCBtn: { name: lbl_disp_nfc_btn,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',//lbl_disp_nfc_btn_des,
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_disp_nfc_btn_grp,
style: 'display: flex;',
add_class: 'scanNFCGrp',
removeSettingTextBF: true,
version: '4.0'},
autoStartScan: { name: lbl_auto_start_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_auto_start_scan,
style: 'display: block;',
removeSettingTextBF: true,
valueIfUndefined: false,
show_condition_ques: 'dispMobile',
show_condition_ques_val: true,
version: VERSION_AUTO_START_SCAN_OPTION.toString()},
isDisplayFirstMatchingScanBC: { name: lbl_display_first_matching_scan_bc,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_display_first_matching_scan_bc,
style: 'display: block;clear: both;',
removeSettingTextBF: true,
valueIfUndefined: false,
show_condition_ques: 'dispMobile',
show_condition_ques_val: true,
info_msg: hl_data_lookup + '#displayfirstscan',
info_icon: true,
version: VERSION_DISPLAY_FIRST_MATCHING_SCAN.toString()},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
show_condition_ques: 'isRetrieve',
show_condition_ques_val: false,
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
// CO-1739 Add imgJustify attribute
imgJustify: { name: lbl_img_justify,
type: 'enumeration_radio',
description: '',
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ 'Left$$L',
'Center$$C',
'Right$$R'],
value: 'Center',
show_condition_ques: 'isRetrieve',
show_condition_ques_val: true,
style: 'padding-top: 5px;float:left;margin-top:-5px;width:100%;',
summary: false },
//START CO-1736 Add Lookup Keyboard Section
keyboardType: { name: lbl_keyboard,
type: 'enumeration_radio',
description: '',
options: [ CONST_KB_TYPE_TEXT + CONST_DOUBLE_DOLLAR + lbl_keyboard_text,
CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + lbl_keyboard_no],
showOptionAcross: true,
value: CONST_KB_TYPE_TEXT,
valueIfUndefined: CONST_KB_TYPE_TEXT,
insertBefore: 'justificationGroup',
show_condition_ques: 'kind',
show_condition_ques_val: [lbl_kind_string],
//display_if_value_equal: [CONST_KB_TYPE_NO + '$$showSymbols,lockNumericKeyboard'],
display_if_value_equal: [CONST_KB_TYPE_NO + '$$showSymbols'],
trigger_if_value_equal: [CONST_KB_TYPE_TEXT + '$$ul.propertyList div.lkLockNumeric.lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED,
CONST_KB_TYPE_NO + '$$ul.propertyList div.lkLockNumeric.lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED],
add_class: 'notForLookupRetrieve',
version: VERSION_SHOW_LK_SYMBOLS.toString()},
showSymbols: { name: lbl_show_symbols,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'isSearchWildCard',
valueIfUndefined: false,
show_condition_ques: 'keyboardType',
show_condition_ques_val: [CONST_KB_TYPE_NO],
add_class: 'lkShowSymbols',
version: VERSION_SHOW_LK_SYMBOLS.toString()},
lockNumericKeyboard: { name: lbl_lock_mumeric_keyboard,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'isSearchWildCard',
valueIfUndefined: false,
//show_condition_ques: 'keyboardType',
show_condition_ques_val: [CONST_KB_TYPE_NO],
add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP + ' lkLockNumeric',
version: VERSION_SHOW_LK_SYMBOLS.toString()},
// END CO-1736 Add Lookup Keyboard Section
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'imgJustify',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
add_class: 'notForLookupRetrieve',
add_class_forTableGrid: 'forLookupRetrieveImp',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
add_class: 'notForLookupRetrieve',
add_class_forTableGrid: 'forLookupRetrieveImp',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
add_class: 'notForLookupRetrieve',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
dispatchGroup: { name: lbl_dispatch,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross notForLookupRetrieve',
summary: true,
info_msg: hl_data_lookup + '#restrictdata',
info_icon: true,
removeSettingTextBF: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isUseDispOnly: { name: lbl_use_dis_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '', //lbl_use_dis_only_des,
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_use_dis_only_grp,
version: '2.12',
removeSettingTextBF: true,
hideVersion: VERSION_RESTRICT_OPTION.toString() },
isUseViewdataOnly: { name: lbl_use_view_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '', //lbl_use_view_only_des,
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_use_view_only_grp,
version: '2.12',
removeSettingTextBF: true,
hideVersion: VERSION_RESTRICT_OPTION.toString() },
// Add in Build Forms GUI, []Not use lookup in Dispatch tab
isNotUseDispatchTab: { name: lbl_not_use_dispatch_tab_custom,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '', //lbl_not_use_dispatch_tab_custom_des,
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_not_use_dispatch_tab_custom_grp,
version: VERSION_NOT_USE_LK_IN_DISPATCH_TAB.toString(),
removeSettingTextBF: true,
hideVersion: VERSION_RESTRICT_OPTION.toString() },
restViewEdit: { name: lbl_restrict_view_Edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_Edit,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restViewNew: { name: lbl_restrict_view_new,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_new,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restViewFillAndSend: { name: lbl_restrict_view_save_n_send,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_save_n_send,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION_FNS.toString()},
restViewFillAndSendEdit: { name: lbl_restrict_view_save_n_send_edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_save_n_send_edit,
removeSettingTextBF: true,
valueIfUndefined: false,
version: VERSION_FNS_EDIT.toString()},
restDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_dispatch_to_email_grp,
removeSettingTextBF: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
restDispatchEdit: { name: lbl_restrict_dispatch_Edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
valueIfUndefined: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_dispatch_Edit,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restDispatchNew: { name: lbl_restrict_dispatch_new,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_dispatch_new,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restMobile: { name: lbl_restrict_mobile,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_mobile,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restWebapp: { name: lbl_restrict_webapp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_webapp,
removeSettingTextBF: true,
version: VERSION_RESTRICT_OPTION.toString() },
restFormLinks: { name: lbl_form_links_grp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_form_links_grp,
removeSettingTextBF: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10 notForLookupRetrieve',
description: lbl_read_only_group_des,
info_msg: hl_shared_readonly + '#read-only',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
readOnlyDsp: { name: lbl_dispatch_read_only,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: lbl_dispatch_read_only_des,
value: false,
summary: true,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_read_only_grp,
grp_description: lbl_dispatch_read_only_grp_des,
version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: hl_shared_required + '#required',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross notForLookupRetrieve margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideViewEdit: { name: lbl_edit,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideDispatchNew: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_ADD_HIDE_OPTION_TO_DATA_LOOKUP.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
add_class_forTable: 'table-child',
add_class_forGrid: 'grid-child',
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
add_class: 'notForLookupRetrieve',
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
add_class: 'notForLookupRetrieve',
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
add_class: 'notForLookupRetrieve',
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: true,
relevance: false,
skipcond: true,
summary: false
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
actionJumpGroup: { name: lbl_action_jump_group,
type: 'property_group',
description: '',
summary: true,
insertBefore: 'apperance',
forContainerOnly: true,
version: VERSION_TEXT_JUMP_ACTION.toString()},
jumpAfterScan: { name: lbl_jump_after_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
hasHtmlTag: true,
valueIfUndefined: false,
summary: true,
parent_group: 'actionJumpGroup',
grp_name: '' + lbl_jump_after_scan + ' ',
grp_description: '',
forContainerOnly: true,
version: VERSION_TEXT_JUMP_ACTION.toString()},
jumpAfterScanOption: { name: '',
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;'
},
showOptionAcross: true,
options: [ '0$$R',
'1$$D'],
value: '0',
summary: true,
parent_group_name: 'jumpAfterScanOption',
paddingLeft: '10px',
version: VERSION_TEXT_JUMP_ACTION.toString()},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
add_class: 'notForLookupRetrieve',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
add_class: 'notForLookupRetrieve',
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
add_class: 'notForLookupRetrieve',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
actionDestinationData4SDF: { name: lbl_set_destination_fields,
type: 'actionDestinationFillEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfFields',
add_class: 'forLookupRetrieve',
summary: false,
version: VERSION_RETRIEVE_MODIFY_SET_DESTINATION_FIELD.toString()},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'dropdownTextGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'dispatchGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputLookupMulti: {
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
isSearchField: { name: lbl_is_search_field,
type: 'bool',
description: lbl_is_search_field_des,
value: false,
summary: true,
version: '' + VERSION_OPTION_SERABLE_FILED},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: '/search.html',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
dispMobile: { name: lbl_disp_Mobile,
type: 'bool',
description: lbl_disp_Mobile_des,
value: false,
summary: true,
version: '1.3' },
dispNFCBtn: { name: lbl_disp_nfc_btn,
type: 'bool',
description: lbl_disp_nfc_btn_des,
value: false,
summary: true,
version: '4.0'},
isSearchUndValue: { name: lbl_search_und_val,
type: 'bool',
description: lbl_search_und_val_des,
value: false,
summary: true,
version: '1.3' },
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des,
value: false,
summary: false },
kind: { name: lbl_kind,
type: 'enumeration',
description: lbl_kind_des,
options: [ 'String$$' + lbl_kind_string,
'Number$$' + lbl_kind_number],
version: '1.3' },
datasource: { name: lbl_data_src,
type: 'lookupTable',
description: '',//lbl_data_src_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
info_msg: '/search.html',
info_icon: true,
summary: false },
lookupMultiFields: { name: lbl_lookup_field,
type: 'lookupMultiFields',
description: lbl_lookup_field_des,
required: true,
value: [],
valueinput: '',
summary: false },
destinationdataconds: { name: lbl_dest_field,
type: 'lookupFillEditor',
description: '',
value: [],
summary: false },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: '/search.html',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
}
/*relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
advanced: true,
summary: false }*/},
inputSelectOne: {
ctrlProperty: { name: lbl_select_one_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_choose_one,
version: '' + VERSION_CTRL_PROPERTY_EXP},
optionKind: { name: '',
type: 'enumeration_radio',
description: '',
hideCaption: true,
add_class: 'hide-legend',
options: [ CONST_DOUBLE_DOLLAR + lbl_choose_one_radio,
CONST_CHOOSE_ONE_SWITCH + CONST_DOUBLE_DOLLAR + lbl_choose_one_switch],
showOptionAcross: true,
valueIfUndefined: '',
value: '',
summary: true,
insertBefore: 'defaultValue',
display_if_value_equal: ['$$showAsDropdown,options,displayType,isIgnoreAcross,ignoreAcrossScreenSize,isAllowUncheck,isHideAnswer,showGroupFormat',
CONST_CHOOSE_ONE_SWITCH + '$$switchOption,switchCustomOn,switchCustomOff'],
trigger_if_value_equal: [CONST_CHOOSE_ONE_RADIO + CONST_COMMA + CONST_CHOOSE_ONE_SWITCH + '$$ul.propertyList li.options div.optionsEditor$$' + CONST_BIND_OPTION_KIND_CHANGED,
CONST_CHOOSE_ONE_RADIO + CONST_COMMA + CONST_CHOOSE_ONE_SWITCH + '$$ul.propertyList .ctrl_slier_color$$' + CONST_BIND_SHOW_HIDE_CHANGE],
version: VERSION_CHOOSE_ONE_SLIDER.toString() },
switchOption: { name: lbl_switch_underlying,
type: 'enumeration_radio',
description: '',
options: [ CONST_SWITCH_ON_OFF + CONST_DOUBLE_DOLLAR + lbl_switch_on_off,
CONST_SWITCH_YES_NO + CONST_DOUBLE_DOLLAR + lbl_switch_yes_no,
CONST_SWITCH_1_0 + CONST_DOUBLE_DOLLAR + lbl_switch_1_0,
CONST_SWITCH_CUSTOM + CONST_DOUBLE_DOLLAR + lbl_switch_custom],
valueIfUndefined: CONST_SWITCH_ON_OFF,
value: CONST_SWITCH_ON_OFF,
summary: true,
insertBefore: 'defaultValue',
display_if_value_equal: [CONST_SWITCH_CUSTOM + '$$switchCustomOn,switchCustomOff'],
show_condition_ques: 'optionKind',
show_condition_ques_val: [CONST_CHOOSE_ONE_SWITCH],
trigger_if_value_equal: [CONST_SWITCH_ON_OFF + CONST_COMMA +
CONST_SWITCH_YES_NO + CONST_COMMA +
CONST_SWITCH_1_0 + CONST_COMMA +
CONST_SWITCH_CUSTOM + '$$ul.propertyList li.options div.optionsEditor$$' + CONST_BIND_SWITCH_OPTION_CHANGED],
version: VERSION_CHOOSE_ONE_SLIDER.toString() },
switchCustomOn: { name: lbl_switch_custom_on,
type: 'text',
description: '',
value: '',
required: true,
style: 'padding-left: 20px;',
add_class: 'header-align-center not-use-fieldset',
input_kind: CONST_INPUT_KIND_ALPHA_NUMERIC,
valueIfUndefined: '',
summary: false,
show_condition_ques: 'switchOption,',
show_condition_ques_val: CONST_SWITCH_CUSTOM,
//insertAfter: 'switchOption',
parent_group_name: 'switchOption .editorSelect',
version: VERSION_CHOOSE_ONE_SLIDER.toString()},
switchCustomOff: { name: lbl_switch_custom_off,
type: 'text',
description: '',
value: '',
required: true,
style: 'padding-left: 20px;',
add_class: 'header-align-center not-use-fieldset',
input_kind: CONST_INPUT_KIND_ALPHA_NUMERIC,
valueIfUndefined: '',
summary: false,
show_condition_ques: 'switchOption',
show_condition_ques_val: CONST_SWITCH_CUSTOM,
//insertAfter: 'switchCustomOn',
parent_group_name: 'switchOption .editorSelect',
version: VERSION_CHOOSE_ONE_SLIDER.toString()},
showAsDropdown: { name: lbl_show_as_simple_dropdown,
type: 'bool',
type: 'hidden',
description: '',
value: false,
summary: true,
version: '5.0',
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
hideVersion: '' + VERSION_DISPLAY_TYPE_FUNCTION},
options: { name: lbl_option,
type: 'optionsEditor',
required: true,
value: [],
isShowUnderlying: false,
insertBefore: 'defaultValue',
info_msg: hl_choose_one + '#answers',
info_icon: true,
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
summary: false },
displayType:{
name: lbl_display_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_DOWN + CONST_DOUBLE_DOLLAR + lbl_display_type_down,
CONST_ACROSS + CONST_DOUBLE_DOLLAR + lbl_display_type_across,
CONST_DROPDOWN + CONST_DOUBLE_DOLLAR + lbl_display_type_simple_dropdown],
showOptionAcross: true,
value: CONST_DOWN,
summary: true,
insertAfter: 'defaultValue',
addValueToPropertyList: true,
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
version: '' + VERSION_DISPLAY_TYPE_FUNCTION},
isIgnoreAcross: { name: lbl_is_ignore_across,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_choose_one + '#Ignore',
info_icon: true,
icon_style: 'padding-top: 5px;',
display_if_true_ctrl: 'ignoreAcrossScreenSize',
style: 'padding-top: 5px;',
insertAfter: 'displayType',
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
version: '' + VERSION_IGNORE_ACROSS},
ignoreAcrossScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
insertAfter: 'isIgnoreAcross',
add_class: 'not-use-fieldset',
show_condition_ques: 'isIgnoreAcross',
show_condition_ques_val: true,
summary: true,
version: '' + VERSION_IGNORE_ACROSS},
isAllowUncheck: { name: lbl_is_allow_uncheck,
type: 'bool',
description: '',
value: false,
summary: true,
style: 'padding-top: 5px;',
valueIfUndefined: false,
insertAfter: 'ignoreAcrossScreenSize',
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
version: VERSION_ALLOW_UNCHECK.toString()},
isHideAnswer: { name: lbl_is_hide_answer_radio,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isAllowUncheck',
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
version: VERSION_HIDE_ANSWER_ON_CHECKBOX.toString()},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_HIDE_FOR_CO_SM},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
turnOffSelectionOutline: { name: msg_turn_off_selection_outline,
type: 'bool',
description: '',
value: true,
valueIfUndefined: false,
summary: true,
paddingLeft: '20px',
insertAfter: 'removeAnswerBorder',
version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},
sliderColor:{ name: '',
type: 'ctrl_slier_color',
paddingLeft: '20px',
description: '',
value: {
isSliderColor: false,
sliderActiveColor: '#4999da'
},
summary: true,
insertAfter: 'turnOffSelectionOutline',
version: VERSION_CHOOSE_ONE_SLIDER.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isAllowUncheck',
show_condition_ques: 'optionKind' + CONST_DOUBLE_DOLLAR + VERSION_CHOOSE_ONE_SLIDER,
show_condition_ques_val: [CONST_CHOOSE_ONE_RADIO],
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'skipIfConditions',
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() } },
inputScoreOne: {
ctrlProperty: { name: lbl_score_one_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_score_by_category,
version: '' + VERSION_CTRL_PROPERTY_EXP},
showAsDropdown: { name: lbl_show_as_simple_dropdown,
type: 'bool',
type: 'hidden',
description: '',
value: false,
summary: true,
version: '5.0',
hideVersion: VERSION_DROPDOWN_SCORE_ONE.toString()},
scoreCategory:{ name: lbl_category,
type: 'textAutoComplete',
autoCompArrName: 'scoreArr',
description: '',//lbl_category_des,
required: true,
value: '',
insertBefore: 'defaultValue',
info_msg: hl_score_by_category + '#assign-category',
info_icon: true,
summary: false },
options: { name: lbl_option,
type: 'optionsEditorScoreOne',
required: true,
value: [],
isShowUnderlying: false,
insertBefore: 'defaultValue',
info_msg: hl_score_by_category + '#answers',
info_icon: true,
summary: false },
displayType:{
name: lbl_display_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_DOWN + CONST_DOUBLE_DOLLAR + lbl_display_type_down,
CONST_ACROSS + CONST_DOUBLE_DOLLAR + lbl_display_type_across,
CONST_DROPDOWN + CONST_DOUBLE_DOLLAR + lbl_display_type_simple_dropdown + CONST_DOUBLE_DOLLAR + VERSION_DROPDOWN_SCORE_ONE],
showOptionAcross: true,
value: CONST_DOWN,
summary: true,
insertAfter: 'defaultValue',
addValueToPropertyList: true,
version: '' + VERSION_DISPLAY_TYPE_FUNCTION},
isIgnoreAcross: { name: lbl_is_ignore_across,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_score_by_category + '#Ignore',
info_icon: true,
icon_style: 'padding-top: 5px;',
display_if_true_ctrl: 'ignoreAcrossScreenSize',
style: 'padding-top: 5px;',
insertAfter: 'displayType',
version: '' + VERSION_IGNORE_ACROSS},
ignoreAcrossScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
insertAfter: 'isIgnoreAcross',
add_class: 'not-use-fieldset',
show_condition_ques: 'isIgnoreAcross',
show_condition_ques_val: true,
summary: true,
version: '' + VERSION_IGNORE_ACROSS},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
turnOffSelectionOutline: { name: msg_turn_off_selection_outline,
type: 'bool',
description: '',
value: true,
valueIfUndefined: false,
summary: true,
paddingLeft: '20px',
insertAfter: 'removeAnswerBorder',
version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() } },
inputSelectMany: {
ctrlProperty: { name: lbl_select_many_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_select_multiple,
version: '' + VERSION_CTRL_PROPERTY_EXP},
options: { name: lbl_option,
type: 'optionsEditor',
required: true,
value: [],
isShowUnderlying: false,
insertBefore: 'defaultValue',
info_msg: hl_select_multiple + '#answers',
info_icon: true,
summary: false },
/*countRange: { name: 'Select count range',
type: 'numericRange',
value: false,
summary: false },*/
displayType:{
name: lbl_display_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_DOWN + CONST_DOUBLE_DOLLAR + lbl_display_type_down,
CONST_ACROSS + CONST_DOUBLE_DOLLAR + lbl_display_type_across],
showOptionAcross: true,
value: CONST_DOWN,
summary: true,
insertAfter: 'defaultValue',
version: '' + VERSION_DISPLAY_TYPE_FUNCTION},
isIgnoreAcross: { name: lbl_is_ignore_across,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_select_multiple + '#Ignore',
info_icon: true,
icon_style: 'padding-top: 5px;',
display_if_true_ctrl: 'ignoreAcrossScreenSize',
style: 'padding-top: 5px;',
insertAfter: 'displayType',
version: '' + VERSION_IGNORE_ACROSS},
ignoreAcrossScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
insertAfter: 'isIgnoreAcross',
add_class: 'not-use-fieldset',
show_condition_ques: 'isIgnoreAcross',
show_condition_ques_val: true,
summary: true,
version: '' + VERSION_IGNORE_ACROSS},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_HIDE_FOR_CO_SM},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
turnOffSelectionOutline: { name: msg_turn_off_selection_outline,
type: 'bool',
description: '',
value: true,
valueIfUndefined: false,
summary: true,
paddingLeft: '20px',
insertAfter: 'removeAnswerBorder',
version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
isHideAnswer: { name: lbl_is_hide_answer_checkbox,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'ignoreAcrossScreenSize',
version: VERSION_HIDE_ANSWER_ON_CHECKBOX.toString()},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isHideAnswer',
version: VERSION_HIDE_ANSWER_ON_CHECKBOX.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
isHideIfChecked: { name: lbl_hide_if_checked,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields',
version: VERSION_HIDE_IF.toString()},
hideIfFields: { name: '',
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
show_condition_ques: 'isHideIfChecked',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
skip: {
options: { name: lbl_option,
type: 'optionsEditor',
value: [],
summary: false } },
relevance: {
options: { name: lbl_option,
type: 'optionsEditor',
value: [],
summary: false } },
group: {
ctrlProperty: { name: lbl_group_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_repeatable,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_sec_label,
type: 'uiText',
description: '',//lbl_sec_label_des,
required: true,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_group_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
loop: { name: lbl_group_loop,
type: 'textLoop',
description: '',//lbl_group_loop_des,
value: "",
style: 'padding-top: 5px;',
add_class: 'makeAcross show-up-down',
maxlength: '6',
summary: false },
isVariableRepeats: { name: lbl_variable_repeats,
type: 'bool',
description: '',//lbl_variable_repeats_des,
value: false,
summary: true,
info_msg: hl_repeatable + '#variable-repeats',
info_icon: true,
style: 'padding-top: 5px;',
icon_style: 'padding-top: 5px;',
version: '5.0' },
repValSource: { name: lbl_num_rep_source,
type: 'enumeration',
description: lbl_num_rep_source_des,
required: true,
options: [],
value: '',
summary: false,
style: 'padding-left: 20px;',
version: '5.0' },
isDeleteWhenVarChange: { name: lbl_delete_rep_when_var_change,
type: 'bool',
value: false,
valueIfUndefined: false,
summary: true,
style: 'padding-top: 5px; padding-left: 20px;',
version: VERSION_CLEAR_REPEAT_WHEN_CHANGE.toString() },
isAllRepRequired: { name: lbl_all_rep_required,
type: 'bool',
value: false,
summary: true,
style: 'padding-top: 5px;',
version: '5.0' },
isRepCountDisplay: { name: lbl_display_rep_count,
type: 'bool',
value: false,
summary: true,
version: '5.0' },
isAllowDelete: { name: lbl_allow_delete,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
version: VERSION_REPEAT_ALLOW_DELETE.toString() },
isReplaceRepeatableHeader: {
name: lbl_replace_header,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
info_msg: hl_repeatable + '#replaceheader',
display_if_true_ctrl: 'replaceRepeatableHeaderWith',
version: VERSION_REPEAT_REPLACE_HEADER.toString() },
replaceRepeatableHeaderWith: {
name: '',
type: 'replaceRepeatableHeaderWithField',
description: '',
// limit: [ 'nosymbols', 'lowercase', 'unique' ],
value: '',
show_condition_ques: 'isReplaceRepeatableHeader',
show_condition_ques_val: true,
summary: false,
required: true,
version: VERSION_REPEAT_REPLACE_HEADER.toString() },
isAutoCollapseRepeat: {
name: lbl_auto_collapse_repeat,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
info_msg: hl_repeatable + '#collapse',
version: VERSION_AUTO_COLLAPSE_REPEAT.toString() },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_read_only_group_des,
info_msg: {inputText: hl_shared_readonly + '#read-only',
inputNumeric: hl_shared_readonly + '#read-only',
inputTrends: hl_shared_readonly + '#read-only',
inputDate: hl_shared_readonly + '#read-only',
inputSelectOne: hl_shared_readonly + '#read-only',
inputScoreOne: hl_shared_readonly + '#read-only',
inputSelectMany: hl_shared_readonly + '#read-only',
inputLocation: hl_shared_readonly + '#read-only',
inputImage: hl_shared_readonly + '#read-only',
inputAudio: hl_shared_readonly + '#read-only',
inputVideo: hl_shared_readonly + '#read-only',
inputMedia: hl_shared_readonly + '#read-only',
inputSketch: hl_shared_readonly + '#read-only',
inputSignature: hl_shared_readonly + '#read-only',
inputDraw: hl_shared_readonly + '#read-only',
inputBarcode: hl_shared_readonly + '#read-only',
inputNFC: hl_shared_readonly + '#read-only',
inputForward: hl_shared_readonly + '#read-only',
inputSecureForward: hl_shared_readonly + '#read-only',
inputCounter: hl_shared_readonly + '#read-only',
inputRIF: hl_shared_readonly + '#read-only',
inputPageBreak: hl_shared_readonly + '#read-only',
inputLabel: hl_shared_readonly + '#read-only',
inputScoreSummary: hl_shared_readonly + '#read-only',
inputNumbering: hl_shared_readonly + '#read-only',
inputAction: hl_shared_readonly + '#read-only',
inputPayment: hl_shared_readonly + '#read-only',
inputInstruction: hl_shared_readonly + '#read-only',
inputEmailReport: hl_shared_readonly + '#read-only',
inputSecureEmailReport: hl_shared_readonly + '#read-only',
inputApproval: hl_shared_readonly + '#read-only',
inputCalculate: hl_shared_readonly + '#read-only',
inputLookup: hl_shared_readonly + '#read-only',
inputLFBluetooth: hl_shared_readonly + '#read-only',
inputLookupRetrieve: hl_shared_readonly + '#read-only',
inputFacingTable: hl_shared_readonly + '#read-only',
inputLookupMulti: hl_shared_readonly + '#read-only',
inputSaveAndSend: hl_shared_readonly + '#read-only',
group: hl_shared_readonly + '#read-only',
ctrlTable: hl_shared_readonly + '#read-only',
ctrlSchedule: hl_shared_readonly + '#read-only',
ctrlGrid: hl_shared_readonly + '#read-only',
ctrlScoreTable: hl_shared_readonly + '#read-only',
ctrlButtonGrid: hl_shared_readonly + '#read-only'},
summary: true,
info_icon: false,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyViewEdit: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyDispatchNew: { name: lbl_new,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyDispatchEdit: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyFillAndSend: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyWebApp: { name: lbl_web_client,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup',
version: VERSION_READ_ONLY_GROUP.toString()},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_GROUP.toString()},
repeatTransitionText: { name: lbl_repeat_transition_text,
type: 'uiText',
description: '',//lbl_repeat_transition_text_des,
value: {"eng":lbl_repeat_transition_text_val},
summary: false,
info_msg: hl_repeatable + '#repeat-transition-text',
info_icon: true,
insertBefore: 'isVariableRepeats',
version: '1.4' },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
/*repeatableType:{
name: lbl_repeatable_type,
type: 'enumeration_radio',
description: '',
options: [ CONST_DOWN + CONST_DOUBLE_DOLLAR + lbl_repeatable_type_down,
CONST_ACROSS + CONST_DOUBLE_DOLLAR + lbl_repeatable_type_across],
value: CONST_DOWN,
summary: true,
version: '' + VERSION_REPEAT_TYPE_FUNCTION},*/
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
/*relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
description: lbl_relevance_des,
value: [],
advanced: true,
summary: false }*/
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isVariableRepeats',
version: VERSION_GROUP_FUNCTION.toString() },
requiredRows: { name: lbl_required_repeat,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
style: 'padding-top: 5px;',
icon_style: 'padding-top: 5px;',
insertBefore: 'isVariableRepeats',
display_if_true_ctrl: 'requiredOptionsGroup',
trigger_if_true_ctrl: ['ul.propertyList li.requiredOptionsGroup div.dynamic_option_group$$' + CONST_BIND_CHECK_ALL_OPTION_FIELDS],
version: VERSION_REQUIRED_REPEAT.toString() },
requiredOptionsGroup:{ name: lbl_required_repeat_fields,
type: 'dynamic_option_group',
style: 'padding-left: 30px;',
description: '',
summary: true,
value: {},
valueIfUndefined: {},
info_icon: false,
insertAfter: 'requiredRows',
show_condition_ques: 'requiredRows',
show_condition_ques_val: true,
version: VERSION_REQUIRED_REPEAT.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
supportCtrl: { name: lbl_support_ctrl, // CO-2330: Support Ctrl for GROUP
type: 'enumeration_support_ctrl',
description: '',
options: [
'inputAction$$' + lbl_action_ctrl,
'inputAttachForm$$' + lbl_action_attach_form + '$$version=' + VERSION_ATTACH_FORM,
'inputAttachment$$' + lbl_attachment_ctrl + '$$version=' + VERSION_ATTACHMENT,
/*'inputOpenFile$$' + lbl_open_file_ctrl + '$$version=' + VERSION_ACTION_OPEN_FILE_WIDGET,*/
'inputAudio$$' + lbl_audio_ctrl,
'inputNumbering$$' + lbl_numbering_ctrl,
'inputBarcode$$' + lbl_barcode_ctrl,
'inputCalculate$$' + lbl_calculate_ctrl,
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputCounter$$' + lbl_counter_ctrl,
'inputLookup$$' + lbl_lookup_ctrl,
'inputLFBluetooth$$' + lbl_bluetooth_lf_ctrl,
'inputDate$$' + lbl_date_ctrl,
'inputEmailReport$$' + lbl_email_report_ctrl,
'inputForward$$' + lbl_forward_ctrl,
'inputLocation$$' + lbl_location_ctrl,
'inputImage$$' + lbl_image_ctrl,
'inputImageViewer$$' + lbl_image_viewer_ctrl,
'inputLabel$$' + lbl_label_ctrl,
'ctrlGrid$$' + lbl_grid_ctrl + '$$version=' + VERSION_GROUP_IN_REPEAT,
'inputNFC$$' + lbl_nfc_ctrl,
'inputNumeric$$' + lbl_numeric_ctrl,
'inputNewPayment$$' + lbl_new_payment_ctrl,
'inputLookupRetrieve$$' + lbl_lookup_retrieve_ctrl,
'inputScoreOne$$' + lbl_score_one_ctrl,
'inputSecureEmailReport$$' + lbl_secure_email_report_ctrl + '$$version=' + VERSION_SECURE_EMAIL,
'inputSecureForward$$' + lbl_secure_forward_ctrl + '$$version=' + VERSION_SECURE_FORWARD,
'inputSelectMany$$' + lbl_select_many_ctrl,
'inputSignature$$' + lbl_signature_ctrl,
'inputSketch$$' + lbl_sketch_ctrl,
'inputText$$' + lbl_text_ctrl,
'inputTrends$$' + lbl_trends_ctrl,
'inputVideo$$' + lbl_video_ctrl],
//'inputPayment$$' + lbl_payment_ctrl,
//'inputPaymentDisable$$' + lbl_payment_ctrl,
required: false,
summary: true,
version: '' + VERSION_SUPPORT_CTRL_FOR_CONTAINER}},
ctrlTable: {
isScheduleWidget : { name: '',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: VERSION_SCHEDULE_WIDGET.toString() },
ctrlProperty: { name: lbl_table_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_table,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_table_label,
name_schedule: lbl_schedule_label,
type: 'uiText',
description: '',//lbl_sec_label_des,
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_score_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
loop: { name: lbl_group_number_row,
type: 'textLoop',
description: '',//lbl_table_loop,
value: '5',
style: 'padding-top: 5px;',
add_class: 'makeAcross show-up-down',
required: true,
maxlength: '6',
summary: false },
isVariableNumberRow: { name: lbl_variable_number_row,
type: 'bool',
description: '',//lbl_variable_number_row_des,
value: false,
summary: true,
info_msg: hl_table + '#variable-row-number',
info_icon: true,
style: 'padding-top: 5px;',
icon_style: 'padding-top: 5px;',
version: '5.0' },
rowValSource: { name: lbl_num_row_source,
type: 'enumeration',
description: '',//lbl_num_row_source_des,
description_bottom: lbl_num_row_source_bootom_des,
required: true,
options: [lbl_sel_question],
value: '',
summary: false,
style: 'margin-top: -5px; padding-left: 20px;',
version: '5.0' },
isAllRowRequired: { name: lbl_all_row_required,
type: 'bool',
value: false,
summary: true,
paddingLeft: '30px',
style: 'padding-top: 5px;',
version: '5.0' },
isRowCountDisplay: { name: lbl_display_row_count,
type: 'bool',
value: false,
summary: true,
version: '5.0' },
autoAddNewRow: { name: lbl_tbl_auto_add_new_row,
type: 'bool',
description: '',
value: false,
info_icon: false,
summary: true,
info_icon: true,
info_msg: hl_table + '#dynamicrow',
valueIfUndefined: false,
display_if_true_ctrl: 'maxLoop',
version: VERSION_TABLE_AUTO_ADD_ROW.toString() },
maxLoop: { name: lbl_tbl_auto_add_new_row_max,
type: 'textLoop',
description: '',
//value: '0',
value: {val: '0', useMaxLoop: false},
style: 'padding-left: 20px;',
add_class: 'makeAcross show-up-down',
required: false,
maxlength: '6',
show_condition_ques: 'autoAddNewRow',
show_condition_ques_val: true,
summary: false },
requiredRows: { name: lbl_use_required_row,
type: 'bool',
description: '',//lbl_use_chk_lst_des,
value: false,
info_msg: hl_table + '#requiredrow',
info_icon: true,
summary: true,
valueIfUndefined: false,
display_if_true_ctrl: 'requiredOptionsGroup',
trigger_if_true_ctrl: ['ul.propertyList li.requiredOptionsGroup div.dynamic_option_group$$' + CONST_BIND_CHECK_ALL_OPTION_FIELDS],
version: VERSION_TABLE_REQUIRED_ROW.toString() },
requiredOptionsGroup: { name: lbl_required_option_group,
type: 'dynamic_option_group',
style: 'padding-left: 20px;',
description: '',
summary: true,
value: {},
valueIfUndefined: {},
info_icon: false,
show_condition_ques: 'requiredRows',
show_condition_ques_val: true,
version: VERSION_TABLE_REQUIRED_ROW_OPTION.toString() },
usechecklist: { name: lbl_use_chk_lst,
type: 'bool',
description: '',//lbl_use_chk_lst_des,
value: false,
info_msg: hl_table + '#use-checklist',
info_icon: true,
display_if_true_ctrl: 'checklistconds,isShowAllWhenFilterQuesBlank',
summary: true },
checklistconds: { name: lbl_checklist_cond,
type: 'checklistConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'usechecklist',
show_condition_ques_val: true,
version: VERSION_CHECKLIST_CONDITION.toString()},
isShowAllWhenFilterQuesBlank: { name: lbl_show_all_when_blank,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
show_condition_ques: 'usechecklist',
show_condition_ques_val: true,
style: 'padding-top: 5px;',
version: VERSION_TABLE_SHOW_DUPLICATE_VALUE.toString() },
isShowDuplicateValue: { name: lbl_show_duplicate_value,
type: 'bool',
description: '',
value: false,
summary: true,
/*style: 'padding-top: 5px;',*/
version: VERSION_TABLE_SHOW_DUPLICATE_VALUE.toString() },
hideRows: { name: lbl_hide_row,
type: 'bool',
description: lbl_hide_row_des,
value: false,
summary: true,
version: '9999' },
hideFlag: { name: lbl_hide_flg,
type: 'uiText',
description: lbl_hide_flg_des,
required: false,
value: {},
summary: false,
version: '2.12' },
jumpOverChkLst: { name: lbl_jump_over_chklst_qv,
type: 'bool',
description: '',
value: true,
summary: true,
version: '3.6' },
dispChkLstCol: { name: lbl_display_chklst_col_qv,
type: 'bool',
description: '',
value: true,
summary: true,
version: '3.6' },
lockHeader: { name: lbl_lock_header_group,
type: 'property_group',
description: lbl_lock_header_group_des,
summary: true,
version: '' + VERSION_LOCK_HEADER},
lockFirstRow:
{ name: lbl_lock_first_row,
type: 'bool',
description: lbl_lock_first_row_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'lockHeader',
grp_name: lbl_lock_first_row,
grp_description: lbl_lock_first_row_des,
version: '' + VERSION_LOCK_HEADER},
lockFirstColumn:
{ name: lbl_lock_first_column,
type: 'bool',
description: lbl_lock_first_column_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'lockHeader',
grp_name: lbl_lock_first_column,
grp_description: lbl_lock_first_column_des,
version: '' + VERSION_LOCK_HEADER},
equallySpaceColumns: { name: lbl_equally_space_col,
type: 'bool',
description: lbl_equally_space_col_des,
value: true,
summary: true,
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
isUtilizingFullScr: { name: lbl_utilizing_full_scr,
type: 'bool',
description: '',//lbl_utilizing_full_scr_des,
value: true,
summary: true,
style: 'padding-top: 5px;',
insertBefore: 'isVariableNumberRow',
info_msg: hl_table + '#fit-to-screen',
info_icon: true,
display_if_true_ctrl: 'adjustWidthNormal,isApplyForScreen',
version: '5.0' },
columnsSpaceType:{
hideCaption: true,
name: '',
type: 'enumeration_radio',
add_class: 'not-use-fieldset hide-legend',
description: '',
paddingLeft: '20px',
marginTop: '-10px',
options: [ '0$$' + lbl_col_type_equally,
'1$$' + lbl_col_type_caption_length,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
insertAfter: 'isUtilizingFullScr',
summary: true,
version: '' + VERSION_GRID_TYPE_FUNCTION},
// [] Column weight (default is un-checked)
isColumnWeightCustom: { name: lbl_column_weight_custom4container_nbsp,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'columnsSpaceType',
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '',
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
// [] with the format [10 | 20 | 20 | 50]
withFormat4ColumnWeight: { name: lbl_table_column_weight_with_format,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true,
insertAfter: 'isColumnWeightCustom',
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + ''},
adjustWidthNormal: {
name: lbl_table_adjust_width,
type: 'enumeration',
description: lbl_table_adjust_width_des,
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
summary: false,
insertAfter: 'withFormat4ColumnWeight',
version: VERSION_ADJUST_WIDTH_IF_SMALLER.toString() },
isApplyForScreen: { name: lbl_is_applied_table,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: {ctrlTable:hl_table + '#expand'},
info_icon: true,
icon_style: 'padding-top: 5px;',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
display_if_true_ctrl: 'applyScreenSize, adjustWidth',
style: 'padding-top: 5px;',
insertAfter: 'adjustWidthNormal',
version: VERSION_TABLE_IGNORE_SCREEN_SIZE.toString()},
isUseVerticalCaption: { name: lbl_vertical_captions,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'requiredOptionsGroup',
//notForGrid: true,
/*show_condition_ques: 'apperance',
show_condition_ques_val: ['Custom'],*/
info_icon: true,
info_msg: hl_table + '#vertical',
display_if_true_ctrl: 'captionHeight'},
captionHeight: { name: lbel_caption_heigh,
type: 'enumeration',
description: '',
options: [ '1$$1',
'2$$2',
'3$$3',
'4$$4'],
value: '1',
valueIfUndefined: '1',
summary: true,
insertAfter: 'isUseVerticalCaption',
show_condition_ques: 'isUseVerticalCaption',
show_condition_ques_val: true,
add_class: 'captionHeightOption'},
isVerifyDuplicate: { name: lbl_verify_duplicates,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
info_msg: hl_table + '#duplicates',
insertAfter: 'captionHeight',
//info_icon: false,
//info_msg: hl_table + '#vertical',
display_if_true_ctrl: 'isAllowDuplicate, duplicateColumnsGroup',
version: VERSION_VERIFY_DUPLICATE.toString()},
isAllowDuplicate: { name: lbl_allow_duplicate,
type: 'bool',
description: '',
style: 'padding-left: 20px;',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isVerifyDuplicate',
show_condition_ques: 'isVerifyDuplicate',
show_condition_ques_val: true,
version: VERSION_VERIFY_DUPLICATE.toString()},
duplicateColumnsGroup: { name: lbl_duplicate_columns,
type: 'dynamic_table_column_group',
style: 'padding-left: 24px;',
marginTop: '-5px',
description: '',
summary: true,
value: {},
valueIfUndefined: {},
insertAfter: 'isAllowDuplicate',
show_condition_ques: 'isVerifyDuplicate',
show_condition_ques_val: true,
version: VERSION_VERIFY_DUPLICATE.toString()},
applyScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
style: 'padding-left: 20px;',
add_class: 'not-use-fieldset',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
show_condition_ques: 'isApplyForScreen',
show_condition_ques_val: true,
summary: true,
insertAfter: 'isApplyForScreen',
version: VERSION_TABLE_IGNORE_SCREEN_SIZE.toString()},
adjustWidth: {
name: '',//lbl_table_adjust_width_if_smaller,
type: 'enumeration',
description: lbl_table_adjust_width_if_smaller_des,
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
add_class: 'not-use-fieldset',
show_condition_ques: 'isApplyForScreen',
show_condition_ques_val: true,
summary: false,
insertAfter: 'applyScreenSize',
version: '' + VERSION_ADJUST_WIDTH_PERCEN },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_TABLE_CLEAR_ON_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_TABLE_CLEAR_ON_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_TABLE_CLEAR_ON_RETRIEVE.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
shadedRow:{ name: '',
type: 'ctrl_shaded_row',
paddingLeft: '20px',
description: '',
value: {
isShadedRow: false,
rowColor: '#E9E9E9',
rowTextColor: '#000000'
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
textSize: { name: lbl_text_size,
type: 'enumeration',
description: '',
options: [ 'small$$' + lbl_text_size_small,
'medium$$' + lbl_text_size_medium,
'large$$' + lbl_text_size_large],
value: 'medium',
valueIfUndefined: 'medium',
insertBefore: 'justificationGroup',
version: VERSION_TABLE_TEXT_SIZE.toString() },
shadedKind:{ name: lbl_shading_kind,
type: 'enumeration',
description: lbl_shading_kind_des,
options: [ CONST_DOUBLE_DOLLAR + lbl_shaded_opt_every_other_row,
'1$$' + lbl_shaded_opt_top,
'2$$' + lbl_shaded_opt_first_col,
'3$$' + lbl_shaded_opt_every_other_col],
value: '',
summary: true,
insertBefore: 'justificationGroup',
version: '' + VERSION_GRID_TABLE_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'isVariableNumberRow',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'textSize',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
insertAfter: 'removeSpaceBelow',
version: VERSION_TABLE_CLEAR_ON_RETRIEVE.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
supportCtrl: { name: lbl_support_ctrl, // CO-2330: Support Ctrl for Table
type: 'enumeration_support_ctrl',
description: '',
options: [
'inputAction$$' + lbl_action_ctrl,
'inputAttachForm$$' + lbl_action_attach_form + '$$version=' + VERSION_ATTACH_FORM,
'inputAttachment$$' + lbl_attachment_ctrl + '$$version=' + VERSION_ATTACHMENT,
'inputBarcode$$' + lbl_barcode_ctrl,
'inputCalculate$$' + lbl_calculate_ctrl,
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputCounter$$' + lbl_counter_ctrl,
'inputLookup$$' + lbl_lookup_ctrl,
'inputLFBluetooth$$' + lbl_bluetooth_lf_ctrl,
'inputDate$$' + lbl_date_ctrl,
'inputLocation$$' + lbl_location_ctrl,
'inputImage$$' + lbl_image_ctrl + '$$version=' + VERSION_ALLOW_IMAGE_IN_TABLE,
'inputImageViewer$$' + lbl_image_viewer_ctrl + '$$version=' + VERSION_ALLOW_IMAGE_IN_TABLE,
'inputNFC$$' + lbl_nfc_ctrl,
'inputNumeric$$' + lbl_numeric_ctrl,
'inputLookupRetrieve$$' + lbl_lookup_retrieve_ctrl,
'inputSelectMany$$' + lbl_select_many_ctrl + '$$version=' + VERSION_SELECT_MANY_IN_TABLE,
'inputSignature$$' + lbl_signature_ctrl,
'inputText$$' + lbl_text_ctrl/*,
'inputOpenFile$$' + lbl_open_file_ctrl + '$$version=' + VERSION_ACTION_OPEN_FILE_WIDGET*/],
required: false,
summary: true,
version: '' + VERSION_SUPPORT_CTRL_FOR_CONTAINER},
dispatchInfoGroup: { name: lbl_dispatch_group,
type: 'property_group',
description: '',
summary: true,
add_class: 'notAcross h4-align-center',
info_icon: false,
insertBefore: 'adjustWidthNormal',
show_condition_ques: 'isScheduleWidget',
show_condition_ques_val: true,
version: VERSION_SCHEDULE_WIDGET.toString()},
dispatchDate: { name: lbl_dispatch_date,
type: 'enumeration',
required: true,
options: [],
value: '',
summary: false,
info_icon: false,
parent_group: 'dispatchInfoGroup',
version: VERSION_SCHEDULE_WIDGET.toString()},
dispatchMobile: { name: lbl_dispatch_mobile,
type: 'enumeration',
required: true,
options: [],
value: '',
summary: false,
info_icon: false,
parent_group: 'dispatchInfoGroup',
display_if_value_equal: [CONST_VALUE_OTHER + '$$dispatchMobileNumber'],
version: VERSION_SCHEDULE_WIDGET.toString()},
dispatchMobileNumber: { name: '',
hideCaption: true,
type: 'enumeration',
required: false,
options: [],
value: '',
summary: false,
info_icon: false,
show_condition_ques: 'dispatchMobile',
show_condition_ques_val: CONST_VALUE_OTHER,
parent_group: 'dispatchInfoGroup',
version: VERSION_SCHEDULE_WIDGET.toString()},
schedulePickProject:{ name: lbl_pick_a_project,
type: 'enumeration',
required: true,
description: '',
options: [],
value: '',
summary: false,
appendUpdateLink: lbl_pick_a_form_refresh,
parent_group: 'dispatchInfoGroup',
version: VERSION_SCHEDULE_WIDGET.toString()},
schedulePickForm:{ name: lbl_pick_a_form,
type: 'enumeration',
description: '',
required: true,
options: [],
value: '',
summary: false,
appendUpdateLink: lbl_pick_a_form_refresh,
appendUpdateFieldLink: lbl_update_form_field_refresh,
parent_group: 'dispatchInfoGroup',
version: VERSION_SCHEDULE_WIDGET.toString()},
dispatchFormMappingGroup: { name: lbl_dispatch_form_map_group,
type: 'property_group',
description: '',
summary: true,
required: true,
add_class: 'notAcross h4-align-center',
info_icon: false,
insertBefore: 'adjustWidthNormal',
show_condition_ques: 'isScheduleWidget',
show_condition_ques_val: true,
version: VERSION_SCHEDULE_WIDGET.toString()},
scheduleFieldMappings: { name: '',
type: 'sendValues',
description: '',
value: [],
valueIfUndefined: [],
summary: false,
parent_group: 'dispatchFormMappingGroup',
version: VERSION_SCHEDULE_WIDGET.toString() },
scheduleSendDispatch:{
name: lbl_send_dispatch,
type: 'enumeration_radio',
description: '',
options: [ '0$$' + lbl_on_submission,
'1$$' + lbl_on_schedule],
value: '0',
summary: true,
parent_group: 'dispatchFormMappingGroup',
display_if_value_equal: [CONST_ONE + '$$scheduleDateTime'],
version: VERSION_SCHEDULE_WIDGET.toString()},
scheduleDateTime: { name: lbl_schedule_date_time,
type: 'enumeration',
required: true,
options: [],
value: '',
summary: false,
info_icon: false,
parent_group: 'dispatchFormMappingGroup',
show_condition_ques: 'scheduleSendDispatch',
show_condition_ques_val: '1',
version: VERSION_SCHEDULE_WIDGET.toString()}},
ctrlPOD: {
ctrlProperty: { name: lbl_pod_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_pod},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_pod_label,
type: 'uiText',
description: '',
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
podDataSource: { name: lbl_pod_data_source,
type: 'enumeration_radio',
description: '',
options: [ CONST_DS_DISPATCH + CONST_DOUBLE_DOLLAR + lbl_pod_ds_dispatch + '$$version=' + VERSION_DISPATCH_DATASOURCE,
CONST_DS_MANIFEST + CONST_DOUBLE_DOLLAR + lbl_pod_ds_manifest,
CONST_DS_INTER_FORM + CONST_DOUBLE_DOLLAR + lbl_pod_ds_interform,
CONST_DS_FORM + CONST_DOUBLE_DOLLAR + lbl_pod_ds_form + '$$version=' + VERSION_FORM_DATASOURCE,
CONST_DS_NONE + CONST_DOUBLE_DOLLAR + lbl_pod_ds_none],
showOptionAcross: false,
value: 'manifest',
required: true,
display_if_value_equal: [CONST_DS_MANIFEST + CONST_DOUBLE_DOLLAR + 'manifest',
CONST_DS_INTER_FORM + CONST_DOUBLE_DOLLAR + 'podInterForm',
CONST_DS_FORM + CONST_DOUBLE_DOLLAR + 'podForm,promtAfter'],
hide_if_value_equal: [CONST_DS_DISPATCH + CONST_DOUBLE_DOLLAR + 'stopType'],
/*trigger_if_value_equal: [CONST_DS_NONE + CONST_DOUBLE_DOLLAR + 'ul.propertyList li.range div.numericRange$$' + CONST_BIND_COUNTER_FORMAT_CHANGED],*/
summary: true },
manifest: {
name: lbl_manifest,
type: 'manifest_field',
description: '',
required: true,
value: {
mobileId: true,
withDate: true,
prefix: ''
},
show_condition_ques: 'podDataSource',
show_condition_ques_val: ['manifest'],
summary: false },
podInterForm: { name: lbl_pod_inter_form,
type: 'enumeration',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
show_condition_ques: 'podDataSource',
show_condition_ques_val: ['inter form'],
summary: false},
podForm: { name: lbl_pod_form,
description: '',
type: 'property_group',
show_condition_ques: 'podDataSource',
show_condition_ques_val: ['form'],
required: true,
summary: true},
podDSProject: { name: lbl_pod_form_prj,
type: 'enumeration',
description: '',
required: false,
options: [],
value: '',
parent_group: 'podForm',
style: 'clear: both; padding-left: 20px;',
add_class: 'makeAcross',
summary: false},
podDSForm: { name: lbl_pod_form_frm,
type: 'enumeration',
description: '',
required: false,
options: [],
value: '',
parent_group: 'podForm',
style: 'clear: both; padding-left: 20px;',
add_class: 'makeAcross',
summary: false},
podDSID: { name: lbl_pod_form_id,
type: 'enumeration',
description: '',
required: false,
options: [],
value: '',
parent_group: 'podForm',
style: 'clear: both; padding-left: 20px;',
add_class: 'makeAcross',
summary: false},
podDSPOD: {name: lbl_pod_form_pod,
type: 'text',
description: '',
required: false,
value: '',
valueinput: '',
parent_group: 'podForm',
style: 'clear: both; padding-left: 20px;',
add_class: 'makeAcross',
summary: false },
promtAfter: { name: lbl_pod_prompt,
type: 'numericDefaultField',
kind: 'Number',
description: lbl_pod_prompt_des,
value: '5',
required: false,
summary: false,
style: 'margin-top: -5px; padding-left: 20px;',
add_class: 'makeAcross',
show_condition_ques: 'podDataSource',
show_condition_ques_val: ['form'],
makeAcross_des: lbl_seconds,
makeAcross_des_style: 'letter-spacing: initial;padding-left: 5px;font-size: 14px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #36617c;'},
manifestType: { name: lbl_manifest_type,
type: 'enumeration_radio',
description: '',
options: [ 'pickup$$' + lbl_manifest_pickup,
'delivery$$' + lbl_manifest_delivery],
showOptionAcross: true,
value: 'delivery',
summary: true },
itemPerRow: { name: lbl_pod_item_per_row,
type: 'enumeration_radio',
description: '',
options: [ 'single$$' + lbl_manifest_item_per_row_single,
'multi$$' + lbl_manifest_item_per_row_multi],
showOptionAcross: true,
value: 'multi',
summary: true,
display_if_value_equal: ['multi$$showActual',
'single$$singleOptionGroup']},
singleOptionGroup: { name: '',
description: '',
type: 'property_group',
summary: true,
show_condition_ques: 'itemPerRow',
show_condition_ques_val: 'single'},
manifestMethod: { name: lbl_manifest_method,
type: 'enumeration_radio',
description: '',
options: [ 'button$$' + lbl_manifest_m_button,
'scan$$' + lbl_manifest_m_scan,
'read$$' + lbl_manifest_m_read],
showOptionAcross: true,
display_if_value_equal: ['scan,read$$isAllowPickup,isAllowDelivery,allowDamagedOption,allowRejectedOption,parse,parseDestinationFields'],
trigger_if_value_equal: [CONST_MANIFEST_METHOD_SCAN + CONST_COMMA + CONST_MANIFEST_METHOD_READ + '$$ul.propertyList li div.parse$$' + CONST_BIND_PARSE_TYPE_CHANGE],
value: 'button',
summary: true },
allowDamagedOption:
{ name: lbl_pod_allow_damaged,
type: 'bool',
description: '',
value: true,
summary: true,
style: 'padding-left: 20px;',
parent_group: 'singleOptionGroup',
grp_name: lbl_pod_allow_damaged,
grp_description: '',
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read']/*,
display_if_true_ctrl: 'allowDamagedDelivery'*/},
allowRejectedOption:
{ name: lbl_pod_allow_rejected,
type: 'bool',
description: '',
value: true,
summary: true,
style: 'padding-left: 20px;',
parent_group: 'singleOptionGroup',
grp_name: lbl_pod_allow_rejected,
grp_description: '',
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read']},
allowDamagedDelivery:
{ name: lbl_pod_allow_damaged_delivery,
type: 'bool',
description: '',
value: true,
summary: true,
style: 'padding-left: 20px;',
parent_group: 'singleOptionGroup',
grp_name: lbl_pod_allow_damaged_delivery,
grp_description: ''/*,
show_condition_ques: 'allowDamagedOption',
show_condition_ques_val: true*/},
scannedNotFoundMsg: { name: lbl_scan_not_found_msg,
type: 'uiText',
description: '',
required: false,
value: {"eng":lbl_scanned_not_found_transition_text_val},
summary: false },
parse: { name: lbl_parse_barcode,
type: 'parse',
description: '',
param1: lbl_parse_enable,
param2: lbl_parse_start_delimiter,
param3: lbl_parse_separation_delimiter,
param4: lbl_parse_end_delimiter,
value: false,
summary: false,
info_msg: hl_barcode + '#parse',
info_icon: true,
insertAfter: 'kind',
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read'],
version: VERSION_NFC_BAR_PARSE_POD.toString() },
parseDestinationFields: { name: lbl_dest_field,
type: 'parseDestinationFields',
description: '',
value: [],
summary: false,
required: true,
parent_group_name: 'parseButtonSession',
style: 'padding-left: 20px; clear: both;',
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read'],
version: VERSION_NFC_BAR_PARSE_POD.toString() },
isAllowPickup: { name: lbl_manifest_allow_pickup,
type: 'bool',
value: false,
summary: true,
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read'],
style: 'padding-top: 5px;'},
isAllowDelivery: { name: lbl_manifest_allow_delivery,
type: 'bool',
value: false,
summary: true,
show_condition_ques: 'manifestMethod',
show_condition_ques_val: ['scan', 'read'],
style: 'padding-top: 5px;'},
stopType: { name: lbl_manifest_stop_type,
type: 'enumeration_radio',
description: '',
options: [ 'single$$' + lbl_manifest_stop_type_single,
'multi$$' + lbl_manifest_stop_type_multi,
'none$$' + lbl_manifest_stop_type_none],
showOptionAcross: true,
value: 'single',
display_if_value_equal: ['multi$$stopFilterQues,stopFilterColumn'],
show_condition_ques: 'podDataSource',
show_condition_ques_val: [CONST_DS_MANIFEST, CONST_DS_INTER_FORM, CONST_DS_FORM, CONST_DS_NONE],
summary: true },
stopFilterQues: { name: lbl_pod_stop_filter_ques,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_sel_question],
value: '',
style: 'padding-left: 20px;',
show_condition_ques: 'stopType',
show_condition_ques_val: 'multi',
summary: false},
stopFilterColumn: { name: lbl_pod_stop_filter_column,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_sel_question],
value: '',
style: 'padding-left: 20px;',
show_condition_ques: 'stopType',
show_condition_ques_val: 'multi',
summary: false},
/*isAllRowRequired: { name: lbl_all_row_required,
type: 'bool',
value: false,
summary: true,
style: 'padding-top: 5px;'},
isRowCountDisplay: { name: lbl_display_row_count,
type: 'bool',
value: false,
summary: true},
hideFlag: { name: lbl_hide_flg,
type: 'uiText',
description: lbl_hide_flg_des,
required: false,
value: {},
summary: false},*/
isSort: { name: lbl_pod_sort,
type: 'bool',
value: false,
style: 'padding-top: 5px;',
display_if_true_ctrl: 'sortColumn',
summary: true},
sortColumn: { name: lbl_pod_sort_column,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_sel_column],
value: '',
show_condition_ques: 'isSort',
show_condition_ques_val: true,
summary: false },
podOptionsGroup: { name: lbl_pod_header_group,
description: lbl_pod_header_group_des,
type: 'property_group',
summary: true},
showDamaged:
{ name: lbl_pod_show_damaged,
type: 'bool',
description: lbl_pod_show_damaged_des,
value: true,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_damaged,
display_if_true_ctrl: 'showComment',
grp_description: lbl_pod_show_damaged_des/*,
show_condition_ques: 'itemPerRow',
show_condition_ques_val: 'multi'*/},
showReject:
{ name: lbl_pod_show_reject,
type: 'bool',
description: lbl_pod_show_reject_des,
value: true,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_reject,
display_if_true_ctrl: 'showComment',
grp_description: lbl_pod_show_reject_des/*,
show_condition_ques: 'itemPerRow',
show_condition_ques_val: 'multi'*/},
showComment:
{ name: lbl_pod_show_comment,
type: 'bool',
description: lbl_pod_show_comment_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_comment,
grp_description: lbl_pod_show_comment_des},
showActual:
{ name: lbl_pod_show_actual,
type: 'bool',
description: lbl_pod_show_actual_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_actual,
grp_description: lbl_pod_show_actual_des,
show_condition_ques: 'itemPerRow',
show_condition_ques_val: 'multi'},
showOSDReport:
{ name: lbl_pod_show_osd_report,
type: 'bool',
description: lbl_pod_show_osd_report_des,
value: true,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_osd_report,
grp_description: lbl_pod_show_osd_report_des,
isPropertyGroup: true},
showOSDReportType: { name: '',
type: 'enumeration_radio',
description: '',
options: [ CONST_DOWN + CONST_DOUBLE_DOLLAR + lbl_osd_report_type_down,
CONST_ACROSS + CONST_DOUBLE_DOLLAR + lbl_osd_report_type_across],
showOptionAcross: false,
value: CONST_DOWN,
//grp_type: 'enumeration_radio_grp',
parent_group: 'showOSDReport',
summary: true },
showDeliveredPickupReport:
{ name: lbl_pod_show_delivered_report,
type: 'bool',
description: lbl_pod_show_delivered_report_des,
value: true,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_show_delivered_report,
grp_description: lbl_pod_show_delivered_report_des,
display_if_true_ctrl: 'dprAllowEdit'},
dprAllowEdit:
{ name: lbl_pod_allow_edit,
type: 'bool',
description: lbl_pod_allow_edit_des,
value: true,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_allow_edit,
grp_description: lbl_pod_allow_edit_des,
style: 'padding-left: 20px;',
show_condition_ques: 'showDeliveredPickupReport',
show_condition_ques_val: true},
isRequiresSignature:
{ name: lbl_pod_requires_sign,
type: 'bool',
description: lbl_pod_requires_sign_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_requires_sign,
grp_description: lbl_pod_requires_sign_des,
display_if_true_ctrl: 'showSignatureCustomer, showSignatureCarrier'},
showSignatureCustomer:
{ name: lbl_pod_requires_sign_cus,
type: 'bool',
description: lbl_pod_requires_sign_cus_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_requires_sign_cus,
grp_description: lbl_pod_requires_sign_cus_des,
style: 'padding-left: 20px;',
show_condition_ques: 'isRequiresSignature',
show_condition_ques_val: true,
display_if_true_ctrl: 'signatureAllowEdit'},
showSignatureCarrier:
{ name: lbl_pod_requires_sign_carrier,
type: 'bool',
description: lbl_pod_requires_sign_carrier_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_requires_sign_carrier,
grp_description: lbl_pod_requires_sign_carrier_des,
style: 'padding-left: 20px;',
show_condition_ques: 'isRequiresSignature',
show_condition_ques_val: true,
display_if_true_ctrl: 'signatureAllowEdit'},
signatureAllowEdit:
{ name: lbl_pod_requires_sign_allow_edit,
type: 'bool',
description: lbl_pod_requires_sign_allow_edit_des,
value: false,
summary: true,
grp_type: 'bool_grp_div',
parent_group: 'podOptionsGroup',
grp_name: lbl_pod_requires_sign_allow_edit,
grp_description: lbl_pod_requires_sign_allow_edit_des,
style: 'padding-left: 40px;',
show_condition_ques: 'showSignatureCustomer|showSignatureCarrier',
show_condition_ques_val: true},
lockHeader: { name: lbl_lock_header_group,
type: 'property_group',
description: lbl_lock_header_group_des,
summary: true,
version: '' + VERSION_LOCK_HEADER},
lockFirstRow:
{ name: lbl_lock_first_row,
type: 'bool',
description: lbl_lock_first_row_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'lockHeader',
grp_name: lbl_lock_first_row,
grp_description: lbl_lock_first_row_des,
version: '' + VERSION_LOCK_HEADER},
lockFirstColumn:
{ name: lbl_lock_first_column,
type: 'bool',
description: lbl_lock_first_column_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'lockHeader',
grp_name: lbl_lock_first_column,
grp_description: lbl_lock_first_column_des,
version: '' + VERSION_LOCK_HEADER},
isUtilizingFullScr: { name: lbl_utilizing_full_scr,
type: 'bool',
description: '',//lbl_utilizing_full_scr_des,
value: true,
summary: true,
info_msg: hl_table + '#fit-to-screen',
display_if_true_ctrl: 'adjustWidth',
info_icon: true},
columnsSpaceType:{
hideCaption: true,
name: '',
type: 'enumeration_radio',
add_class: 'not-use-fieldset hide-legend',
description: '',
paddingLeft: '20px',
marginTop: '-10px',
options: [ '0$$' + lbl_col_type_equally,
'1$$' + lbl_col_type_caption_length,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
summary: true},
// [] with the format [10 | 20 | 20 | 50]
withFormat4ColumnWeight: { name: lbl_table_column_weight_with_format,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true},
adjustWidth: {
name: lbl_table_adjust_width,
type: 'enumeration',
description: '',
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
summary: false},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des},
shadedKind:{ name: lbl_shading_kind,
type: 'enumeration',
description: lbl_shading_kind_des,
options: [ CONST_DOUBLE_DOLLAR + lbl_shaded_opt_every_other_row,
'1$$' + lbl_shaded_opt_top,
'2$$' + lbl_shaded_opt_first_col,
'3$$' + lbl_shaded_opt_every_other_col],
value: '',
summary: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance'},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance'},
shadedRow:{ name: '',
type: 'ctrl_shaded_row',
paddingLeft: '20px',
description: '',
value: {
isShadedRow: false,
rowColor: '#E9E9E9',
rowTextColor: '#000000'
},
summary: true,
insertAfter: 'shadedHeadings'},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_ajr + '#action',
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
supportCtrl: { name: lbl_support_ctrl,
type: 'enumeration_support_ctrl',
description: '',
options: ['inputNumeric$$' + lbl_numeric_ctrl,
'inputText$$' + lbl_text_ctrl],
required: false,
summary: true}},
ctrlScoreTable: {
ctrlProperty: { name: lbl_score_table_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_questionnaire,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
/*ctrlDesc: { name: lbl_score_ctrl_desc,
type: 'uiLabel',
description: lbl_ctrl_desc_des
},*/
label: { name: lbl_ques_label,
type: 'uiText',
description: '',//lbl_sec_label_des,
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_score_name_des_questionaire,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
// PCA-270: Remove the replace space function
// // []Replace space with HTML tag “ ” (default is un-checked)
// replaceSpaceWithHtmlTagNBSP: { name: lbl_replace_space_with_html_tag_nbsp,
// type: 'bool',
// description: '',
// value: false,
// summary: true,
// version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '' },
equallySpaceColumns: { name: lbl_equally_space_col,
type: 'bool',
description: lbl_equally_space_col_des,
value: true,
summary: true,
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
isUtilizingFullScr: { name: lbl_utilizing_full_scr,
type: 'bool',
description: '',//lbl_utilizing_full_scr_des,
value: true,
summary: true,
info_msg: hl_questionnaire + '#fit-to-screen',
info_icon: true,
style: 'padding-top: 5px;',
icon_style: 'padding-top: 5px;',
version: '5.0' },
columnsSpaceType:{
hideCaption: true,
name: '',
type: 'enumeration_radio',
add_class: 'not-use-fieldset hide-legend',
description: '',
paddingLeft: '20px',
marginTop: '-10px',
options: [ '0$$' + lbl_col_type_equally,
'1$$' + lbl_col_type_caption_length,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
summary: true,
version: '' + VERSION_GRID_TYPE_FUNCTION},
// [] Column weight (default is un-checked)
isColumnWeightCustom: { name: lbl_column_weight_custom4container_nbsp,
type: 'bool',
description: '',
value: false,
summary: true,
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '',
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
// [] with the format [10 | 20 | 20 | 50]
withFormat4ColumnWeight: { name: lbl_column_weight_with_format,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true,
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + ''},
// PCA-199 Build Forms for New Grid Type, change column weight spec for Questionnaire
withFormat4ColumnWeight2: { name: lbl_column_weight_with_format,
// PCA-199 Build Forms for New Grid Type, change column weight spec for Questionnaire
type: 'showHideCustomWeight4ContainerSC',
description: '',
value: {
withFormat4CWQuestion : ''
,withFormat4CWAnswer : ''
,withFormat4CWComment : ''
},
summary: true,
required: true,
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + ''},
appendComment: { name: lbl_append_commnet_field,
type: 'bool',
description: '',
value: false,
style: 'padding-top: 5px;',
summary: true },
commentLabel: { name: lbl_label_comment_field,
type: 'text',
description: lbl_description_comment_field,
value: '',
summary: false,
version: VERSION_NEW_OPTION_COMMENT_LABEL + ''},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
shadedRow:{ name: '',
type: 'ctrl_shaded_row',
paddingLeft: '20px',
description: '',
value: {
isShadedRow: false,
rowColor: '#E9E9E9',
rowTextColor: '#000000'
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
/*relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
description: lbl_relevance_des,
value: [],
advanced: true,
summary: false }*/
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
supportCtrl: { name: lbl_support_ctrl,
type: 'enumeration_support_ctrl',
description: '',
options: [
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputScoreOne$$' + lbl_score_one_ctrl,
'inputSelectMany$$' + lbl_select_many_ctrl],
required: false,
summary: true,
version: '' + VERSION_SUPPORT_CTRL_FOR_CONTAINER}},
ctrlGrid: {
ctrlProperty: { name: lbl_grid_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_layout_grid,
explainButtonGridUrl: hl_button_grid,
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
/*ctrlDesc: { name: lbl_grid_ctrl_desc,
type: 'uiLabel',
description: lbl_grid_ctrl_desc_des
},*/
label: { name: lbl_grid_label,
type: 'uiText',
description: '',//lbl_grid_label_des,
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_score_name_des_grid,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
loop: { name: lbl_grid_number_col,
type: 'textLoop',
description: '',//lbl_grid_number_col_desc,
value: '2',
add_class: 'makeAcross show-up-down',
required: true,
style: 'padding-top: 5px;',
maxlength: '6',
summary: false },
// PCA-270: Remove the replace space function
// // []Replace space with HTML tag “ ” (default is un-checked)
// replaceSpaceWithHtmlTagNBSP: { name: lbl_replace_space_with_html_tag_nbsp,
// type: 'bool',
// description: '',
// value: false,
// summary: true,
// version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '' },
gridType:{ name: lbl_grid_type,
type: 'enumeration_radio',
description: lbl_grid_type_des,
options: [ CONST_DOUBLE_DOLLAR + lbl_grid_type_normal,
'1$$' + lbl_grid_type_row,
'2$$' + lbl_grid_type_column,
CONST_GRID_TYPE_CENTER + '$$' + lbl_grid_type_center + '$$version=' + VERSION_GRID_TYPE_CENTER],
value: '1',
summary: true,
display_if_value_equal: [',1$$isMakeEmptyColumn',
',1$$emptyCol',
',1$$isUseVerticalCaption',
',' + CONST_GRID_TYPE_CENTER + '$$isUseVerticalCaption'],
insertBefore: 'loop',
addRemoveClassPropertyNameValue: true,
version: '' + VERSION_GRID_TYPE_FUNCTION},
isUseVerticalCaption: { name: lbl_vertical_captions,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'loop',
show_condition_ques: 'gridType',
show_condition_ques_val: ['', '1', '3'],
style: 'padding-top: 5px;',
info_msg: {ctrlGrid:hl_layout_grid + '#vertical',
ctrlButtonGrid:hl_button_grid + '#vertical'},
info_icon: true,
info_icon_style: 'padding-top: 5px;float: right;',
display_if_true_ctrl: 'captionHeight'},
noCaptions: { name: lbl_no_captions,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
insertAfter: 'isUseVerticalCaption',
info_icon: false,
version: VERSION_GRID_TYPE_CENTER.toString()},
leftPadding: { name: lbl_grid_center_left_padding,
type: 'textLoop',
description: '',
value: '25',
add_class: 'makeAcross show-up-down',
required: false,
style: 'padding-top: 5px; padding-left: 46px;',
maxlength: '3',
insertAfter: 'loop',
summary: false },
rightPadding: { name: lbl_grid_center_right_padding,
type: 'textLoop',
description: '',
value: '25',
add_class: 'makeAcross show-up-down',
required: false,
style: 'padding-top: 5px; padding-left: 46px;',
maxlength: '3',
insertAfter: 'leftPadding',
summary: false },
captionHeight: { name: lbel_caption_heigh,
type: 'enumeration',
description: '',
options: [ '1$$1',
'2$$2',
'3$$3',
'4$$4'],
value: '1',
valueIfUndefined: '1',
summary: false,
insertAfter: 'isUseVerticalCaption',
show_condition_ques: 'isUseVerticalCaption',
show_condition_ques_val: true,
add_class: 'captionHeightOption'},
isButtonGrid: { name: lbl_is_btn_grid_type,
type: 'bool',
description: '',
value: false,
summary: true,
add_class: CONST_CSS_CLASS_HIDE_SESSION,
version: '' + VERSION_NEW_GRID_BUTTON },
isUtilizingFullScr: { name: lbl_utilizing_full_scr_new,
type: 'bool',
style: 'padding-top: 5px;',
description: '',//lbl_utilizing_full_scr_new_des,
value: true,
summary: true,
info_msg: {ctrlGrid:hl_layout_grid + '#fit-to-screen',
ctrlButtonGrid:hl_button_grid + '#fit-to-screen'},
info_icon: true,
display_if_true_ctrl: 'adjustWidthNormal',
version: '5.0' },
equallySpaceColumns: { name: lbl_equally_space_col,
type: 'bool',
description: lbl_grid_equally_space_col_des,
value: true,
summary: true,
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
columnsSpaceType:{
hideCaption: true,
name: '',
type: 'enumeration_radio',
add_class: 'not-use-fieldset hide-legend',
description: '',
paddingLeft: '20px',
marginTop: '-10px',
options: [ '0$$' + lbl_col_type_equally,
'1$$' + lbl_col_type_caption_length,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
summary: true,
version: '' + VERSION_GRID_TYPE_FUNCTION},
// [] Column weight (default is un-checked)
isColumnWeightCustom: { name: lbl_column_weight_custom4container_nbsp,
type: 'bool',
description: '',
value: false,
summary: true,
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '',
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
// [] with the format [10 | 20 | 20 | 50]
withFormat4ColumnWeight: { name: lbl_grid_column_weight_with_format,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true,
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + ''},
adjustWidthNormal: {
name: lbl_grid_adjust_width,
type: 'enumeration',
description: lbl_grid_adjust_width_des,
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
summary: false,
version: VERSION_ADJUST_WIDTH_IF_SMALLER.toString() },
isIgnoreGrid: { name: lbl_is_ignore_grid,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: {ctrlGrid:hl_layout_grid + '#alter',
ctrlButtonGrid:hl_button_grid + '#alter'},
info_icon: true,
icon_style: 'padding-top: 5px;',
display_if_true_ctrl: 'ignoreScreenSize, isCaptionOnTop, stackedExpand, adjustWidth',
style: 'clear: both; padding-top: 5px;',
version: '' + VERSION_NEW_GRID_BUTTON},
ignoreScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
style: 'padding-left: 20px;',
add_class: 'not-use-fieldset',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
show_condition_ques: 'isIgnoreGrid',
show_condition_ques_val: true,
summary: true,
version: '' + VERSION_NEW_GRID_BUTTON},
stackedExpand:{ name: '',
type: 'enumeration_radio',
description: '',
paddingLeft: '20px',
showOptionAcross: true,
add_class: 'not-use-fieldset hide-legend',
options: [ 'stacked$$' + lbl_grid_type_stacked,
'expand$$' + lbl_grid_type_expand],
value: 'expand',
valueIfUndefined: 'expand',
summary: true,
display_if_value_equal: ['expand$$adjustWidth',
'stacked$$stackedExplan'],
/*info_icon: true,
info_msg: hl_layout_grid + '#stacked',*/
show_condition_ques: 'isIgnoreGrid',
show_condition_ques_val: true,
version: VERSION_ADJUST_WIDTH_IF_SMALLER.toString() },
adjustWidth: {
name: '',//lbl_grid_adjust_width_if_smaller,
type: 'enumeration',
description: '',
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
summary: false,
add_class: 'not-use-fieldset',
show_condition_ques: 'stackedExpand',
show_condition_ques_val: 'expand',
version: '' + VERSION_ADJUST_WIDTH_PERCEN },
stackedExplan: { name: lbl_stacked_explan,
type: 'property_group',
description: '',
summary: true,
info_icon: false,
show_condition_ques: 'stackedExpand',
show_condition_ques_val: 'stacked',
version: '' + VERSION_NEW_TOOL_LAYOUT},
isCaptionOnTop: { name: lbl_is_caption_on_top,
type: 'bool',
description: '',
value: false,
summary: true,
style: 'padding-top: 5px; display: none;',
show_condition_ques: 'isIgnoreGrid',
show_condition_ques_val: true,
version: '' + VERSION_NEW_GRID_BUTTON},
isMakeEmptyColumn: { name: lbl_is_make_empty_column,
type: 'bool',
description: '',
value: false,
style: 'padding-top: 5px;',
summary: true,
display_if_true_ctrl: 'emptyCol',
show_condition_ques: 'gridType',
show_condition_ques_val: ['', '1'],
version: VERSION_GRID_EMPTY_COL.toString() },
emptyCol: { name: lbl_empty_column,
type: 'numericGTZero',
add_class: 'makeAcross',
description: '',
value: '',
type: 'numericGTZero',
show_condition_ques: 'isMakeEmptyColumn',
show_condition_ques_val: true,
summary: false,
version: VERSION_GRID_EMPTY_COL.toString() },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
/*justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: {ctrlGrid:hl_shared_ajr + '#remove-space',
ctrlButtonGrid:hl_shared_ajr + '#remove-space'},
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: VERSION_HIDE_4_GRID.toString()},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_HIDE_4_GRID.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_4_GRID.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_HIDE_4_GRID.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_HIDE_4_GRID.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_HIDE_4_GRID.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: {ctrlGrid:hl_shared_di_jt + '#only-display-this-question-if',
ctrlButtonGrid:hl_shared_di_jt + '#only-display-this-question-if'},
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertAfter: 'removeSpaceBelow',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_HIDE_4_GRID.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
supportCtrl: { name: lbl_support_ctrl,
type: 'enumeration_support_ctrl',
description: '',
options: [
'inputAction$$' + lbl_action_ctrl,
/*'inputAttachForm$$' + lbl_action_attach_form + '$$version=' + VERSION_ATTACH_FORM,*/
'inputAttachment$$' + lbl_attachment_ctrl + '$$version=' + VERSION_ATTACHMENT,
/*'inputOpenFile$$' + lbl_open_file_ctrl + '$$version=' + VERSION_ACTION_OPEN_FILE_WIDGET,*/
'inputNumbering$$' + lbl_numbering_ctrl,
'inputBarcode$$' + lbl_barcode_ctrl,
'inputCalculate$$' + lbl_calculate_ctrl,
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputCounter$$' + lbl_counter_ctrl,
'inputLookup$$' + lbl_lookup_ctrl,
'inputLFBluetooth$$' + lbl_bluetooth_lf_ctrl,
'inputDate$$' + lbl_date_ctrl,
'inputLabel$$' + lbl_label_ctrl,
'inputLocation$$' + lbl_location_ctrl,
'inputImage$$' + lbl_image_ctrl,
'inputImageViewer$$' + lbl_image_viewer_ctrl,
'inputNFC$$' + lbl_nfc_ctrl,
'inputNumeric$$' + lbl_numeric_ctrl,
'inputNewPayment$$' + lbl_new_payment_ctrl,
'inputLookupRetrieve$$' + lbl_lookup_retrieve_ctrl,
'inputScoreOne$$' + lbl_score_one_ctrl,
'inputSelectMany$$' + lbl_select_many_ctrl,
'inputSignature$$' + lbl_signature_ctrl,
'inputText$$' + lbl_text_ctrl],
required: false,
summary: true,
version: '' + VERSION_SUPPORT_CTRL_FOR_CONTAINER}},
inputFacingTable: {
ctrlProperty: { name: lbl_facings_ctrl,
type: 'ctrlDes',
description: '',
version: '' + VERSION_CTRL_PROPERTY_EXP},
id: { type: CONST_VALUE_NONE,
value:''
},
ctrlDesc: { name: lbl_android_only,
type: 'uiLabel',
description: ''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
dispMobile: { name: lbl_disp_Mobile,
type: 'bool',
description: lbl_disp_Mobile_des,
value: false,
style: 'padding-top: 5px;',
summary: true },
dispNFCBtn: { name: lbl_disp_nfc_btn,
type: 'bool',
description: lbl_disp_nfc_btn_des,
value: false,
summary: true,
version: '4.0'},
isSearchUndValue: { name: lbl_search_und_val,
type: 'bool',
description: lbl_search_und_val_des,
value: false,
summary: true },
kind: { name: lbl_kind,
type: 'enumeration',
description: lbl_kind_des,
options: [ 'String$$' + lbl_kind_string,
'Number$$' + lbl_kind_number] },
datasource: { name: lbl_data_src,
type: 'lookupTable',
description: '',//lbl_data_src_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
info_msg: hl_facings + '#data-source',
info_icon: true,
summary: false },
storeid: { name: lbl_store_id,
type: 'storeIdField',
description: lbl_store_id_des_,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
summary: false },
aislecolumn: { name: lbl_aisle_col,
type: 'aisleColumn',
description: lbl_aisle_col_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
summary: false },
aislevalue: { name: lbl_aisle_val,
type: 'aisleValue',
description: lbl_aisle_val_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
summary: false },
destinationdataconds: { name: lbl_dest_field,
type: 'lookupFillEditor',
description: '',
value: [],
summary: false },
length: { name: lbl_length,
type: 'textRange',
description: '',//lbl_length_des
value: false,
insertBefore: 'justificationGroup',
summary: false },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertBefore: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: hl_shared_required + '#required',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client, //lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
// The Dispatch Required (same as Required)
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des,
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'length',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'apperance',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'requiredGroup',
info_msg: hl_shared_ajr + '#rules_permissions',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_ajr + '#action',
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
inputScoreTable_Comment: {
id: { type: CONST_VALUE_NONE,
value:''
},
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false }},
branch: {
logic: { name: lbl_rules,
type: 'logicEditor',
description: lbl_rules_des,
value: [],
summary: false }
},
inputCounter: {
ctrlProperty: { name: lbl_counter_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_counter,
version: '' + VERSION_CTRL_PROPERTY_EXP},
ctrlDesc: { name: lbl_android_only,
type: 'uiLabel',
description: '',
hideVersion: '' + VERSION_DEL_COUNTER_ANDROID
},
counterFormat: { name: lbl_format_group,
type: 'enumeration_radio',
description: '',
addValueToPropertyList: true,
options: [ CONST_TYPE_ARROWS + CONST_DOUBLE_DOLLAR + lbl_show_arrows,
CONST_TYPE_STARS + CONST_DOUBLE_DOLLAR + lbl_show_stars,
CONST_TYPE_SLIDER + CONST_DOUBLE_DOLLAR + lbl_show_slider],
/*showOptionAcross: true,*/
value: CONST_TYPE_ARROWS,
valueIfUndefined: CONST_TYPE_ARROWS,
display_if_value_equal: [CONST_TYPE_STARS + '$$fitImageToScreen',
CONST_TYPE_ARROWS + '$$spinStep'],
/*trigger_if_value_equal: [value list$$ctrl triger class$$trigger function name]*/
trigger_if_value_equal: [CONST_TYPE_ARROWS + '$$ul.propertyList li.range div.numericRange$$' + CONST_BIND_COUNTER_FORMAT_CHANGED,
CONST_TYPE_STARS + '$$ul.propertyList li.range div.numericRange$$' + CONST_BIND_COUNTER_FORMAT_CHANGED,
CONST_TYPE_SLIDER + '$$ul.propertyList li.range div.numericRange$$' + CONST_BIND_COUNTER_FORMAT_CHANGED],
insertAfter: 'defaultValue',
info_msg: hl_counter + '#format',
info_icon: false,
add_class: 'not-use-fieldset hide-legend',
version: VERSION_COUNTER_STAR_SLIDER.toString()},
spinStep: { name: lbl_spin_step,
type: 'spinStep',
description: '',//lbl_spin_step_des,
value: 1,
insertAfter: 'defaultValue,counterFormat$$' + VERSION_COUNTER_STAR_SLIDER,
style: 'padding-top: 5px;',
add_class: 'makeAcross show-up-down',
show_condition_ques: 'counterFormat',
show_condition_ques_val: [CONST_TYPE_ARROWS],
makeAcross_des: lbl_spin_step_des,
makeAcross_des_style: 'letter-spacing: initial;font-size: 11px;color: #666;font-weight: normal;padding-left: 20px;',
summary: false },
fitImageToScreen: { name: lbl_fit_image_to_screen,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
style: 'padding-top: 5px;',
insertAfter: 'counterFormat',
show_condition_ques: 'counterFormat',
show_condition_ques_val: [CONST_TYPE_STARS],
summary: true,
version: VERSION_COUNTER_STAR_SLIDER.toString()},
range: { name: lbl_range,
type: 'numericRange',
description: '',
value: false,
required: true,
checkAndDisableWhen: ['.counterFormat input:checked$$' + CONST_TYPE_STARS,
'.counterFormat input:checked$$' + CONST_TYPE_SLIDER],
insertAfter: 'spinStep',
summary: false },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,//lbl_view_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_dispatch_new_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit, //lbl_dispatch_edit_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new, //lbl_fill_and_send_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() },
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder',
version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER},
turnOffSelectionOutline: { name: msg_turn_off_selection_outline,
type: 'bool',
description: '',
value: true,
valueIfUndefined: false,
summary: true,
paddingLeft: '20px',
insertAfter: 'removeAnswerBorder',
version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true,
version: VERSION_IF_THEN_ELSE.toString()},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true,
version: VERSION_SKIP_IF.toString()},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true,
version: VERSION_IF_THEN_ELSE.toString()
},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_SKIP_IF.toString()
},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'counterFormat',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() }},
scoreSummary: {
id: { type: CONST_VALUE_NONE,
value:''
},
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_data_name_des_scoresummary,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'Score',
valueinput: '',
summary: false },
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertBefore: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px',
version: VERSION_REMOVE_ANSW_BORDER.toString() }},
ctrlDataSource: {
ctrlProperty: { name: lbl_report_data_source,
type: 'ctrlDes',
explainUrl: hl_DataSource,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_data_source,
value: {eng: lbl_report_data_source},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',//lbl_name_des,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'data_source',
valueinput: '',
type: 'hidden',
summary: false },
dataSourceProject: { name: lbl_data_src_project,
type: 'reportDataSourceProject',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
summary: false },
dataSource: { name: lbl_data_src_form,
type: 'reportDataSource',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
summary: false },
dataSourceTable: { name: lbl_data_src_table,
type: 'dataSourceTable',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
summary: false },
inputOptionsGroup: { name: lbl_data_src_input,
type: 'dynamic_property_group',
description: '',
summary: true,
value: {},
info_icon: false},
dataSourceDate: { name: lbl_data_src_date,
type: 'dataSourceDate',
description: '',
description_right: lbl_data_src_date_hint,
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
summary: false },
dataSourceDateFilter:{
name: lbl_report_date_filter,
type: 'enumeration_radio',
description: '',
style: 'padding-top: 0px;',
options: [ '0$$' + lbl_report_date_filter_yesterday,
'1$$' + lbl_report_date_filter_today,
'2$$' + lbl_report_date_filter_this_week,
CONST_ITEM_BREAK + '$$this-week-group$$version=' + VERSION_RB_THIS_WEEK_ENHAN,
'3$$' + lbl_report_date_filter_last_week,
CONST_ITEM_BREAK + '$$last-week-group$$version=' + VERSION_RB_THIS_WEEK_ENHAN,
'4$$' + lbl_report_date_filter_this_month,
'5$$' + lbl_report_date_filter_last_month,
'6$$' + lbl_report_date_filter_custom,
'7$$' + lbl_report_date_filter_all + '$$version=' + VERSION_RW_ALL_OPTION],
value: '1',
required: true,
summary: true},
twStartDay: { name: lbl_start_day,
type: 'enumeration',
description: '',
options: [ '1$$Sunday',
'2$$Monday',
'3$$Tuesday',
'4$$Wednesday',
'5$$Thursday',
'6$$Friday',
'7$$Saturday'],
value: '2',
valueIfUndefined: '1',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
summary: false,
parent_group_name: 'this-week-group',
version: VERSION_RB_THIS_WEEK_ENHAN.toString()},
twNumOfDay:{ name: lbl_num_of_day,
type: 'textLoop',
description: '',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
required: false,
value: '7',
valueIfUndefined: '7',
maxChar: 1,
parent_group_name: 'this-week-group',
version: VERSION_RB_THIS_WEEK_ENHAN.toString()},
lwStartDay: { name: lbl_start_day,
type: 'enumeration',
description: '',
options: [ '1$$Sunday',
'2$$Monday',
'3$$Tuesday',
'4$$Wednesday',
'5$$Thursday',
'6$$Friday',
'7$$Saturday'],
value: '2',
valueIfUndefined: '1',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
summary: false,
parent_group_name: 'last-week-group',
version: VERSION_RB_THIS_WEEK_ENHAN.toString()},
lwNumOfDay:{ name: lbl_num_of_day,
type: 'textLoop',
description: '',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
required: false,
value: '7',
valueIfUndefined: '7',
maxChar: 1,
parent_group_name: 'last-week-group',
version: VERSION_RB_THIS_WEEK_ENHAN.toString()},
reportDateRange: { name: lbl_range,
type: 'reportDateFilterCustomRange',
style: 'padding-top: 0px',
description: '',
value: {useDateRange: false,
min: '',
max: '',
nDaysBefore: ''},
insertAfter: 'kind',
info_msg: hl_pick_a_form + '#n-days-back',
summary: false },
reportAllDateNote: { name: lbl_report_date_filter_all_msg,
style: 'text-align: center;width: 262px',
type: 'property_group',
description: '',
summary: true},
supportCtrl: { name: lbl_support_ctrl, // CO-2330: Support Ctrl for Report Data
type: 'enumeration_support_ctrl',
description: '',
disableAction: true,
options: [
'inputNumbering$$' + lbl_numbering_ctrl,
'inputBarcode$$' + lbl_barcode_ctrl,
'inputCalculate$$' + lbl_calculate_ctrl,
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputCounter$$' + lbl_counter_ctrl,
'inputLookup$$' + lbl_lookup_ctrl,
'inputDate$$' + lbl_date_ctrl,
'inputNFC$$' + lbl_nfc_ctrl,
'inputNumeric$$' + lbl_numeric_ctrl,
'inputLookupRetrieve$$' + lbl_lookup_retrieve_ctrl,
'inputScoreOne$$' + lbl_score_one_ctrl,
'inputText$$' + lbl_text_ctrl],
required: false,
summary: true}},
ctrlHeaderGrid: {
ctrlProperty: { name: lbl_report_header_grid,
type: 'ctrlDes',
explainUrl: hl_HeaderGrid,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_header_grid,
value: {eng: lbl_report_header_grid},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'header_grid',
valueinput: '',
type: 'hidden',
summary: false },
centerText: { name: lbl_report_hdr_center_text,
type: 'text',
description: '',
value: '',
summary: false},
lineTwo: { name: lbl_report_hdr_line_two,
type: 'text',
description: '',
value: '',
summary: false},
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',
required: false,
value: '',
summary: false },
imgJustify: { name: lbl_report_img_justify,
type: 'enumeration',
description: '',
options: [ 'Left$$' + lbl_justify_left,
'Center$$' + lbl_justify_center,
'Right$$' + lbl_justify_right ],
value: 'Left',
style: 'padding-top: 5px;',
summary: false },
displayLR: {
name: '',
type: 'report_enumeration_radio',
description: '',
options: [
'$$None',
'0$$' + lbl_report_display_date,
'1$$' + lbl_report_display_time,
'2$$' + lbl_report_display_date_time,
'3$$' + lbl_report_display_page,
'4$$' + lbl_report_display_report_name,
'5$$' + lbl_report_display_author_name],
value: {
left: '0',
right: '3'
},
summary: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_report_apperance',
description: '',
value: {
headingColor: '#E9E9E9',
textColor: '#000000'
},
info_msg: hl_HeaderGrid + '#appearance',
summary: true},
orientation:{
name: lbl_report_orientation,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '0$$' + lbl_report_orientation_landscape,
'1$$' + lbl_report_orientation_portrait],
value: '0',
summary: true},
paperSize:{
name: lbl_report_paper,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '0$$' + lbl_report_paper_letter,
'1$$' + lbl_report_paper_legal],
value: '0',
summary: true}},
ctrlDataFilter: {
ctrlProperty: { name: lbl_report_data_filter,
type: 'ctrlDes',
explainUrl: hl_DataFilter,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_data_filter,
value: {eng: 'Data filter'},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'data_filter',
valueinput: '',
type: 'hidden',
summary: false },
filterField: { name: lbl_report_filter_field,
type: 'reportFilterField',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: {},
summary: false },
filterJoin:{
name: "",
type: 'enumeration_radio',
description: '',
style: 'padding-top: 20px; text-align: center;width: 262px',
showOptionAcross: true,
options: [ 'and$$' + lbl_report_filter_join_and,
'or$$' + lbl_report_filter_join_or],
value: CONST_VALUE_AND_LOWERCASE,
summary: true},
reportFilterNote: { name: lbl_report_filter_note,
style: 'padding-top: 20px; text-align: center;width: 262px',
type: 'property_group',
description: '',
summary: true}},
ctrlReportBreakPoint: {
ctrlProperty: { name: lbl_report_break,
type: 'ctrlDes',
explainUrl: hl_ReportBreakPoint,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_break,
value: {eng: lbl_report_break},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'report_break',
valueinput: '',
type: 'hidden',
summary: false },
reportBreakPoint: { name: lbl_report_break_point,
type: 'reportBreakPoint',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
summary: false },
// // Apply [] Show column headers on each table in GroupData (Build Forms + Report)
// showColumnHeaderOnEachTable : {
// name: lbl_report_break_point_show_col_header,
// type: 'bool',
// description: '',
// value: true, // Default is true
// summary: false
// },
breakSort:{
name: lbl_report_break_point_sort,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '0$$' + lbl_report_sort_asc,
'1$$' + lbl_report_sort_desc],
value: '0',
summary: true},
breakPerGroupBy: { name: page_break_per_group_by,
type: 'bool',
description: '',
value: false,
summary: true,
style: 'padding-top: 5px;',
version: VERSION_BREAK_PER_GROUP_BY.toString()}},
ctrlBreakPointData: {
ctrlProperty: { name: lbl_report_break_point_data,
type: 'ctrlDes',
explainUrl: hl_BreakPointData,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_break_point_data,
value: {eng: lbl_report_break_point_data},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'break_data',
valueinput: '',
type: 'hidden',
summary: false },
reportColumnsSpaceType:{
name: lbl_col_type,
type: 'enumeration_radio',
description: '',
options: [ '0$$' + lbl_col_type_equally,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
summary: true},
withFormat4ColumnWeight: { name: lbl_col_type_adjust_col_width_des,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_report_data_apperance',
description: '',
value: {
headingColor: '#E9E9E9',
textColor: '#000000',
isShowGridLines: true,
isBorderAroundHeading: true,
isShadedRow: false
},
info_msg: hl_BreakPointData + '#appearance',
summary: true},
shadedKind:{ name: lbl_shading_kind,
type: 'enumeration',
description: lbl_shading_kind_des,
options: [ CONST_DOUBLE_DOLLAR + lbl_shaded_opt_every_other_row,
'1$$' + lbl_shaded_opt_top,
'2$$' + lbl_shaded_opt_first_col,
'3$$' + lbl_shaded_opt_every_other_col],
value: '',
summary: true},
sortField: { name: lbl_report_data_sort_field,
type: 'reportSortField',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: false,
value: '',
summary: false },
sortKind:{
name: lbl_report_data_sort_kind,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '0$$' + lbl_report_sort_asc,
'1$$' + lbl_report_sort_desc],
value: '0',
summary: true},
supportCtrl: { name: lbl_support_ctrl, // CO-2330 Pick a form
type: 'enumeration_support_ctrl',
description: '',
disableAction: true,
options: [
'inputNumbering$$' + lbl_numbering_ctrl,
'inputBarcode$$' + lbl_barcode_ctrl,
'inputCalculate$$' + lbl_calculate_ctrl,
'inputSelectOne$$' + lbl_select_one_ctrl,
'inputCounter$$' + lbl_counter_ctrl,
'inputLookup$$' + lbl_lookup_ctrl,
'inputDate$$' + lbl_date_ctrl,
'inputNFC$$' + lbl_nfc_ctrl,
'inputNumeric$$' + lbl_numeric_ctrl,
'inputLookupRetrieve$$' + lbl_lookup_retrieve_ctrl,
'inputScoreOne$$' + lbl_score_one_ctrl,
'inputText$$' + lbl_text_ctrl],
required: false,
summary: true}},
ctrlBreakPointDataElement: {
ctrlProperty: { name: lbl_report_data_element,
type: 'ctrlDes',
explainUrl: hl_BreakPointDataElement,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_data_element_col_name,
value: {eng: lbl_report_data_element_col_name},
type: 'uiText' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'data_element',
valueinput: 'do not change',
type: 'hidden',
summary: false },
fontSize: { name: lbl_report_font_size,
type: 'enumeration',
description: '',
options: [ '8$$8',
'9$$9',
'10$$10',
'11$$11',
'12$$12'],
value: '10',
style: 'padding-top: 5px;',
summary: false },
footersGroup: { name: lbl_report_data_element_footer,
type: 'property_group',
summary: true},
footerBreakPoint: { name: lbl_report_data_element_footer_break,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'footersGroup'},
footerReport: { name: lbl_report_data_element_footer_report,
type: 'bool',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'footersGroup'},
kind: { name: lbl_number_type,
type: 'hidden',
value: 'Text',
summary: true },
inputType: { name: '',
type: 'hidden',
value: '',
summary: true },
footerTypeText:{
name: lbl_report_data_element_footer_type,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '1$$' + lbl_report_data_element_footer_type_counter],
value: '1',
summary: true},
footerTypeNum:{
name: lbl_report_data_element_footer_type,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ '0$$' + lbl_report_data_element_footer_type_sum,
'1$$' + lbl_report_data_element_footer_type_counter],
value: '1',
summary: true}},
ctrlFooterGrid: {
ctrlProperty: { name: lbl_report_footer_grid,
type: 'ctrlDes',
explainUrl: hl_FooterGrid,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_footer_grid,
value: {eng: lbl_report_footer_grid},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'footer_grid',
valueinput: '',
type: 'hidden',
summary: false },
centerText: { name: lbl_report_hdr_center_text,
type: 'text',
description: '',
value: '',
summary: false},
displayLR: {
name: '',
type: 'report_enumeration_radio',
description: '',
options: [
'$$None',
'0$$' + lbl_report_display_date,
'1$$' + lbl_report_display_time,
'2$$' + lbl_report_display_date_time,
'3$$' + lbl_report_display_page,
'4$$' + lbl_report_display_report_name,
'5$$' + lbl_report_display_author_name],
value: {
left: '0',
right: '3'
},
summary: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_report_apperance',
description: '',
value: {
headingColor: '#E9E9E9',
textColor: '#000000'
},
info_msg: hl_FooterGrid + '#appearance',
summary: true}},
ctrlEmailSchedule: {
ctrlProperty: { name: lbl_report_email_schedule,
type: 'ctrlDes',
explainUrl: hl_EmailSchedule,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_report_email_schedule,
value: {eng: lbl_report_email_schedule},
type: 'hidden' },
hint: { name: lbl_hint,
type: 'hidden',
value: {}
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'email_schedule',
valueinput: '',
type: 'hidden',
summary: false },
reportFrequency:{
name: lbl_email_report_setting,
type: 'email_report_setting',
description: lbl_email_report_setting_des,
value: {
frequency: '0',
datefilter: '',
timefilter: '',
dayfilter: '',
su: false,
mn: true,
te: true,
wd: true,
th: true,
fa: true,
sa: false,
weeklyDay: '',
customEveryDays: '',
},
summary: true},
reportTimeZone: { name: lbl_report_time_zone,
type: 'enumeration',
description: '',
options: [ '0$$(UTC)-Universal Coordinated Time',
'1$$(GMT-12:00)-International Date Line West',
'2$$(GMT-11:00)-Midway Island, Samoa',
'3$$(GMT-10:00)-Hawaii',
'4$$(GMT-09:00)-Alaska',
'5$$(GMT-08:00)-Pacific Time (US & Canada); Tijuana',
'6$$(GMT-07:00)-Arizona',
'7$$(GMT-07:00)-Chihuahua, La Paz, Mazatlan',
'8$$(GMT-07:00)-Mountain Time (US & Canada)',
'9$$(GMT-06:00)-Central America',
'10$$(GMT-06:00)-Central Time (US & Canada)',
'11$$(GMT-06:00)-Guadalajara, Mexico City, Monterrey',
'12$$(GMT-06:00)-Saskatchewan',
'13$$(GMT-05:00)-Bogota, Lima, Quito',
'14$$(GMT-05:00)-Eastern Time (US & Canada)',
'15$$(GMT-05:00)-Indiana (East)',
'16$$(GMT-04:00)-Atlantic Time (Canada)',
'17$$(GMT-04:00)-Caracas, La Paz',
'18$$(GMT-04:00)-Santiago',
'19$$(GMT-03:30)-Newfoundland',
'20$$(GMT-03:00)-Brasilia',
'21$$(GMT-03:00)-Buenos Aires, Georgetown',
'22$$(GMT-03:00)-Greenland',
'23$$(GMT-02:00)-Mid-Atlantic',
'24$$(GMT-01:00)-Azores',
'25$$(GMT-01:00)-Cape Verde Is.',
'26$$(GMT)-Casablanca, Monrovia',
'27$$(GMT)-Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London',
'28$$(GMT+01:00)-Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'29$$(GMT+01:00)-Belgrade, Bratislava, Budapest, Ljubljana, Prague',
'30$$(GMT+01:00)-Brussels, Copenhagen, Madrid, Paris',
'31$$(GMT+01:00)-Sarajevo, Skopje, Warsaw, Zagreb',
'32$$(GMT+01:00)-West Central Africa',
'33$$(GMT+02:00)-Athens, Beirut, Istanbul, Minsk',
'34$$(GMT+02:00)-Bucharest',
'35$$(GMT+02:00)-Cairo',
'36$$(GMT+02:00)-Harare, Pretoria',
'37$$(GMT+02:00)-Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius',
'38$$(GMT+02:00)-Jerusalem',
'39$$(GMT+03:00)-Baghdad',
'40$$(GMT+03:00)-Kuwait, Riyadh',
'41$$(GMT+03:00)-Nairobi',
'42$$(GMT+03:30)-Tehran',
'43$$(GMT+04:00)-Abu Dhabi, Muscat',
'44$$(GMT+04:00)-Baku, Tbilisi, Yerevan',
'45$$(GMT+04:00)-Moscow, St. Petersburg, Volgograd',
'46$$(GMT+04:30)-Kabul',
'47$$(GMT+05:00)-Ekaterinburg',
'48$$(GMT+05:00)-Islamabad, Karachi, Tashkent',
'49$$(GMT+05:30)-Chennai, Kolkata, Mumbai, New Delhi',
'50$$(GMT+05:45)-Kathmandu',
'51$$(GMT+06:00)-Almaty, Novosibirsk',
'52$$(GMT+06:00)-Astana, Dhaka',
'53$$(GMT+06:00)-Sri Jayawardenepura',
'54$$(GMT+06:30)-Rangoon',
'55$$(GMT+07:00)-Bangkok, Hanoi, Jakarta',
'56$$(GMT+07:00)-Krasnoyarsk',
'57$$(GMT+08:00)-Beijing, Chongqing, Hong Kong, Urumqi',
'58$$(GMT+08:00)-Irkutsk, Ulaan Bataar',
'59$$(GMT+08:00)-Kuala Lumpur, Singapore',
'60$$(GMT+08:00)-Perth',
'61$$(GMT+08:00)-Taipei',
'62$$(GMT+09:00)-Osaka, Sapporo, Tokyo',
'63$$(GMT+09:00)-Seoul',
'64$$(GMT+09:00)-Vakutsk',
'65$$(GMT+09:30)-Adelaide',
'66$$(GMT+09:30)-Darwin',
'67$$(GMT+10:00)-Brisbane',
'68$$(GMT+10:00)-Canberra, Melbourne, Sydney',
'69$$(GMT+10:00)-Guam, Port Moresby',
'70$$(GMT+10:00)-Hobart',
'71$$(GMT+10:00)-Vladivostok',
'72$$(GMT+11:00)-Magadan, Solomon Is., New Caledonia',
'73$$(GMT+12:00)-Auckland, Wellington',
'74$$(GMT+12:00)-Fiji, Kamchatka, Marshall Is.',
'75$$(GMT-12:00)-International Date Line West',
'76$$(GMT-11:00)-Midway Island, Samoa',
'77$$(GMT-10:00)-Hawaii',
'78$$(GMT-09:00)-Alaska',
'79$$(GMT-08:00)-Pacific Time (US & Canada); Tijuana',
'80$$(GMT-07:00)-Arizona',
'81$$(GMT-07:00)-Chihuahua, La Paz, Mazatlan',
'82$$(GMT-07:00)-Mountain Time (US & Canada)',
'83$$(GMT-06:00)-Central America',
'84$$(GMT-06:00)-Central Time (US & Canada)',
'85$$(GMT-06:00)-Guadalajara, Mexico City, Monterrey',
'86$$(GMT-06:00)-Saskatchewan',
'87$$(GMT-05:00)-Bogota, Lima, Quito',
'88$$(GMT-05:00)-Eastern Time (US & Canada)',
'89$$(GMT-05:00)-Indiana (East)',
'90$$(GMT-04:00)-Atlantic Time (Canada)',
'91$$(GMT-04:00)-Caracas, La Paz',
'92$$(GMT-04:00)-Santiago',
'93$$(GMT-03:30)-Newfoundland',
'94$$(GMT-03:00)-Brasilia',
'95$$(GMT-03:00)-Buenos Aires, Georgetown',
'96$$(GMT-03:00)-Greenland',
'97$$(GMT-02:00)-Mid-Atlantic',
'98$$(GMT-01:00)-Azores',
'99$$(GMT-01:00)-Cape Verde Is.',
'100$$(GMT)-Casablanca, Monrovia',
'101$$(GMT)-Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London',
'102$$(GMT+01:00)-Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'103$$(GMT+01:00)-Belgrade, Bratislava, Budapest, Ljubljana, Prague',
'104$$(GMT+01:00)-Brussels, Copenhagen, Madrid, Paris',
'105$$(GMT+01:00)-Sarajevo, Skopje, Warsaw, Zagreb',
'106$$(GMT+01:00)-West Central Africa',
'107$$(GMT+02:00)-Athens, Beirut, Istanbul, Minsk',
'108$$(GMT+02:00)-Bucharest',
'109$$(GMT+02:00)-Cairo',
'110$$(GMT+02:00)-Harare, Pretoria',
'111$$(GMT+02:00)-Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius',
'112$$(GMT+02:00)-Jerusalem',
'113$$(GMT+03:00)-Baghdad',
'114$$(GMT+03:00)-Kuwait, Riyadh',
'115$$(GMT+03:00)-Moscow, St. Petersburg, Volgograd',
'116$$(GMT+03:00)-Nairobi',
'117$$(GMT+03:30)-Tehran',
'118$$(GMT+04:00)-Abu Dhabi, Muscat',
'119$$(GMT+04:00)-Baku, Tbilisi, Yerevan',
'120$$(GMT+04:30)-Kabul',
'121$$(GMT+05:00)-Ekaterinburg',
'122$$(GMT+05:00)-Islamabad, Karachi, Tashkent',
'123$$(GMT+05:30)-Chennai, Kolkata, Mumbai, New Delhi',
'124$$(GMT+05:45)-Kathmandu',
'125$$(GMT+06:00)-Almaty, Novosibirsk',
'126$$(GMT+06:00)-Astana, Dhaka',
'127$$(GMT+06:00)-Sri Jayawardenepura',
'128$$(GMT+06:30)-Rangoon',
'129$$(GMT+07:00)-Bangkok, Hanoi, Jakarta',
'130$$(GMT+07:00)-Krasnoyarsk',
'131$$(GMT+08:00)-Beijing, Chongqing, Hong Kong, Urumqi',
'132$$(GMT+08:00)-Irkutsk, Ulaan Bataar',
'133$$(GMT+08:00)-Kuala Lumpur, Singapore',
'134$$(GMT+08:00)-Perth',
'135$$(GMT+08:00)-Taipei',
'136$$(GMT+09:00)-Osaka, Sapporo, Tokyo',
'137$$(GMT+09:00)-Seoul',
'138$$(GMT+09:00)-Vakutsk',
'139$$(GMT+09:30)-Adelaide',
'140$$(GMT+09:30)-Darwin',
'141$$(GMT+10:00)-Brisbane',
'142$$(GMT+10:00)-Canberra, Melbourne, Sydney',
'143$$(GMT+10:00)-Guam, Port Moresby',
'144$$(GMT+10:00)-Hobart',
'145$$(GMT+10:00)-Vladivostok',
'146$$(GMT+11:00)-Magadan, Solomon Is., New Caledonia',
'147$$(GMT+12:00)-Auckland, Wellington',
'148$$(GMT+12:00)-Fiji, Kamchatka, Marshall Is.',
'149$$(GMT+13:00)-Nuku"alofa"'],
value: '',
style: 'clear: both;',
summary: false },
reportTimeZoneDst: { name: lbl_report_time_zone_dst,
type: 'bool',
description: '',
value: '',
add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP, // CO-4589
summary: true},
forwardReportTo: {
name: lbl_forward_report_to,
type: 'enumeration_radio',
description: '',
showOptionAcross: false,
options: [ CONST_ZERO + '$$' + 'None',
CONST_ONE + '$$' + 'All users',
CONST_TWO + '$$' + 'Web group',
CONST_ITEM_BREAK + '$$forward-report-to-webgroup-group$$version=0',
CONST_THR + '$$' + 'Web users (use a ; to add more than one user)',
CONST_ITEM_BREAK + '$$forward-report-to-webuser-group$$version=0'],
value: CONST_ZERO,
valueIfUndefined: CONST_ZERO,
trigger_if_value_equal: [CONST_ONE + '$$ul.propertyList li.useCustomTemplate .editorCheckbox$$editorCheckbox_Change'],
summary: true},
frtWebGroup: { name: '',
type: 'enumeration',
description: '',
options: [''],
value: '1',
valueIfUndefined: '1',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
summary: false,
parent_group_name: 'forward-report-to-webgroup-group'},
frtWebUser: { name: '',
type: 'text',
description: '',
value: '',
valueIfUndefined: '',
style: 'padding-left: 25px; clear: both;',
add_class: 'makeAcross',
summary: false,
parent_group_name: 'forward-report-to-webuser-group'},
reportEmail: { name: "Email report to",
type: 'emailReportDefault',
style: 'clear: both;',
description: "",
value: '',
mailcontent: '',
summary: false },
subjectLine: { name: '',
type: 'text_multi',
description: lbl_report_subject_line,
value: '',
summary: false },
reportFileType:{
name: lbl_report_file_type,
type: 'enumeration_radio',
description: '',
showOptionAcross: true,
options: [ CONST_ZERO + '$$' + lbl_report_pdf,
CONST_ONE + '$$' + lbl_report_excel],
value: CONST_ZERO,
//display_if_value_equal: [CONST_ONE + '$$excelReportType,useCustomTemplate'],
//hide_if_value_equal: [CONST_ZERO + '$$useCustomTemplate'],
trigger_if_value_equal: [CONST_ONE + '$$ul.propertyList li.useCustomTemplate .editorCheckbox$$editorCheckbox_Change'],
summary: true},
excelReportType:{
name: lbl_excel_report_type,
type: 'enumeration_radio',
description: '',
showOptionAcross: false,
options: [ CONST_REPORT_TYPE_STRUCTURED + CONST_DOUBLE_DOLLAR + lbl_report_type_structure,
CONST_REPORT_TYPE_COLUMN + CONST_DOUBLE_DOLLAR + lbl_report_type_column],
value: CONST_REPORT_TYPE_STRUCTURED,
valueIfUndefined: CONST_REPORT_TYPE_STRUCTURED,
//show_condition_ques: 'reportFileType',
//show_condition_ques_val: CONST_ONE,
/*appendChildGroup: true,
childGroupName: 'excelReportTypeChild',*/
summary: true,
info_msg: hl_EmailSchedule + '#columnstype',
info_icon: true,
version: VERSION_REPORT_EXCEL_TEMPLATE.toString()},
useCustomTemplate: { name: lbl_report_type_custom,
type: 'bool',
description: '',
style: 'padding-top: 5px;',
value: false,
summary: true,
valueIfUndefined: false,
//show_condition_ques: 'reportFileType',
//show_condition_ques_val: CONST_ONE,
display_if_true_ctrl: 'excelTemplate,excelSheetName',
version: VERSION_REPORT_EXCEL_TEMPLATE.toString()},
excelTemplate: { name: lbl_excel_template_name,
type: 'enumeration',
hideCaption: true,
options: [],
description: '',
value: '',
summary: false,
valueIfUndefined: '',
remove_header: true,
paddingLeft: '20px',
show_condition_ques: 'useCustomTemplate',
show_condition_ques_val: true,
version: VERSION_REPORT_EXCEL_TEMPLATE.toString() },
excelSheetName: { name: lbl_excel_sheet_name,
type: 'text',
description: '',
value: '',
summary: false,
valueIfUndefined: '',
paddingLeft: '20px',
show_condition_ques: 'useCustomTemplate',
show_condition_ques_val: true,
version: VERSION_REPORT_EXCEL_TEMPLATE.toString() },
/*convertToPdf: { name: lbl_report_convert_pdf,
type: 'bool',
description: '',
//style: 'padding-top: 5px;',
value: false,
summary: true,
valueIfUndefined: false,
show_condition_ques: 'reportFileType',
show_condition_ques_val: CONST_ONE,
version: VERSION_REPORT_CONVERT_PDF.toString()},*/
/*,
excelTemplate: { name: lbl_report_excel_template,
type: 'uploadImage',
description: '',
value: '',
show_condition_ques: 'reportFileType',
show_condition_ques_val: CONST_ONE,
summary: false,
hideSelectBtn: true,
fileStyle: '.xls, .xlsx',
version: VERSION_REPORT_EXCEL_TEMPLATE}*/},
inputLFBluetooth: {
ctrlProperty: { name: lbl_bluetooth_lf_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_lf_bluetooth},
id: { type: CONST_VALUE_NONE,
value:''
},
ctrlDesc: { name: '',
type: 'uiLabel',
description: ''
},
label: { name: lbl_caption_txt,
type: 'uiText',
description: lbl_ques_cap_des,
required: true,
value: {},
summary: false },
hint: { name: lbl_hint,
type: 'uiText',
description: lbl_add_help_des,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
defaultValue: { name: lbl_default_val,
type: 'text',
description: lbl_default_val_des,
value: '',
summary: false,
info_msg: hl_lf_bluetooth + '#default-value',
info_icon: false},
parsing: { name: lbl_device,
type: 'enumeration',
options: [ CONST_PARSING_OEM + CONST_DOUBLE_DOLLAR + lbl_parsing_oem,
CONST_PARSING_CUSTOM + CONST_DOUBLE_DOLLAR + lbl_parsing_custom],
description: '',
required: false,
value: CONST_PARSING_CUSTOM,
insertAfter: 'defaultValue',
summary: false },
parsingInfo: { name: '',
type: 'parsingInfoEditor',
value: {serviceIdentifier: 'FDF4',
transmissionOrder: CONST_BIG_ENDIAN,
byteOrder: CONST_BIG_ENDIAN,
parseBluetoothData: CONST_BITS,
parseFields: []},
summary: false},
showDeviceListType: { name: lbl_show_device_list_type,
type: 'enumeration',
options: [ CONST_DEVICE_LIST_TYPE_ONE + CONST_DOUBLE_DOLLAR + lbl_show_device_list_type_one,
CONST_DEVICE_LIST_TYPE_MANY + CONST_DOUBLE_DOLLAR + lbl_show_device_list_type_many],
description: '',
required: false,
value: CONST_DEVICE_LIST_TYPE_ONE,
insertAfter: 'parsingInfo',
summary: false },
setupGroup: { name: lbl_setup,
type: 'property_group',
summary: true,
info_icon: false,
insertAfter: 'showDeviceListType',
add_class: 'font-for-setup'},
datasource: { name: lbl_data_src,
type: 'lookupTable',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
info_msg: hl_lf_bluetooth + '#data-source',
info_icon: true,
insertAfter: 'setupGroup',
summary: false },
/*bluetoothkey: { name: lbl_bluetooth_key,
type: 'enumeration',
options: [lbl_sel_question],
ignoreOptions: true,
description: '',
required: true,
value: '',
insertAfter: 'setupGroup',
summary: false },*/
lookupkey : { name: lbl_lookup_key,
type: 'enumeration',
options: [lbl_sel_question],
ignoreOptions: true,
description: '',
required: true,
value: '',
insertAfter: 'datasource',
summary: false },
lookupfield: { name: lbl_display,
type: 'lookupField',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
info_msg: hl_lf_bluetooth + '#lookup-field',
info_icon: true,
insertAfter: 'lookupKey',
summary: false },
lookupConditionFields: { name: lbl_lookup_cond_fields,
type: 'lookupConditionFields',
description: '',
required: false,
value: [],
valueinput: '',
insertAfter: 'lookupfield',
summary: false},
destinationdataconds: { name: lbl_dest_field,
type: 'lookupFillEditor',
description: '',
value: [],
insertAfter: 'lookupConditionFields',
summary: false },
otherGroup: { name: lbl_other,
type: 'property_group',
summary: true,
info_icon: false,
insertAfter: 'destinationdataconds'},
isSearchUndValue: { name: lbl_search_und_val,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_lf_bluetooth + '#choose-one-destination-fields',
info_icon: true,
removeSettingTextBF: true,
insertAfter: 'otherGroup'},
isUseCondLookup: { name: lbl_use_cond_lookup,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: hl_lf_bluetooth + '#useasinput',
info_icon: true,
removeSettingTextBF: true,
insertAfter: 'isSearchUndValue'},
isSearchWildCard: { name: lbl_search_wild_card,
type: 'bool',
description: '',
value: false,
info_msg: hl_lf_bluetooth + '#wild-card-search',
info_icon: true,
removeSettingTextBF: true,
insertAfter: 'isUseCondLookup'},
isSearchField: { name: lbl_is_search_field,
type: 'bool',
description: lbl_is_search_field_des,
value: false,
summary: true,
removeSettingTextBF: true,
insertAfter: 'isSearchWildCard'},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertAfter: 'isSearchField',
version: VERSION_GROUP_FUNCTION.toString() },
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
options: [ 'String$$' + lbl_kind_string,
'Number$$' + lbl_kind_number],
showOptionAcross: true,
insertAfter: 'isHideCounterAfterScan',
value: 'String'},
length: { name: lbl_length,
type: 'textRange',
description: '',
value: false,
insertAfter: 'kind',
summary: false },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertAfter: 'length',
version: VERSION_GROUP_FUNCTION.toString() },
dropdownTextGroup: { name: lbl_dropdown_text,
type: 'property_group',
summary: true,
insertAfter: 'isHideCounterAfterScan',
info_icon: false},
isWrapText: { name: lbl_wrap_text,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
style: 'float:left;padding-right:20px;',
parent_group: 'dropdownTextGroup',
removeSettingTextBF: true},
textSize: { name: lbl_text_size,
type: 'enumeration',
grp_type: 'enumeration_grp',
description: '',
options: [ 'xsmall$$' + lbl_text_size_xsmall,
'small$$' + lbl_text_size_small,
'medium$$' + lbl_text_size_medium,
'large$$' + lbl_text_size_large,
'xlarge$$' + lbl_text_size_xlarge],
value: 'medium',
parent_group: 'dropdownTextGroup',
style: 'float: left;'},
kbIconGroup: { name: lbl_kb_icon_grp,
type: 'property_group',
summary: true,
insertAfter: 'dropdownTextGroup'},
kbIconPortrait: { name: lbl_kb_icon_portrait_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'kbIconGroup',
grp_name: lbl_kb_icon_portrait_mode,
removeSettingTextBF: true},
kbIconLanscape: { name: lbl_kb_icon_lanscape_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'kbIconGroup',
grp_name: lbl_kb_icon_lanscape_mode,
removeSettingTextBF: true},
openKBGroup: { name: lbl_open_kb_grp,
type: 'property_group',
summary: true,
insertAfter: 'kbIconGroup'},
openKBPortrait: { name: lbl_open_kb_portrait_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: true,
summary: true,
parent_group: 'openKBGroup',
removeSettingTextBF: true,
grp_name: lbl_open_kb_portrait_mode},
openKBLanscape: { name: lbl_open_kb_lanscape_mode,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'openKBGroup',
grp_name: lbl_open_kb_lanscape_mode,
removeSettingTextBF: true},
displayGroup: { name: lbl_display,
type: 'property_group',
summary: true,
info_msg: hl_lf_bluetooth + '#display',
info_icon: true,
insertAfter: 'dispatchGroup'},
dispMobile: { name: lbl_disp_Mobile,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_disp_Mobile_grp,
display_if_true_ctrl: 'autoStartScan',
removeSettingTextBF: true},
dispNFCBtn: { name: lbl_disp_nfc_btn,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_disp_nfc_btn_grp,
style: 'display: flex;',
add_class: 'scanNFCGrp',
removeSettingTextBF: true},
autoStartScan: { name: lbl_auto_start_scan,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'displayGroup',
grp_name: lbl_auto_start_scan,
style: 'display: block;',
removeSettingTextBF: true,
valueIfUndefined: false,
show_condition_ques: 'dispMobile',
show_condition_ques_val: true,
version: VERSION_AUTO_START_SCAN_OPTION.toString()},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
insertAfter: 'autoStartScan'},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px'},
justificationHint: { name: lbl_justification_hint,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px'},
justificationAnswer: { name: lbl_justification_answer,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px'},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false},
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des},
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance'},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance'},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px'},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings'},
answerColor:{ name: '',
type: 'ctrl_answer_color',
paddingLeft: '20px',
description: '',
value: {
isAnswerColor: false,
answerBGColor: '#FFFFFF',
answerTextColor: '#000000'
},
summary: true,
insertAfter: 'removeAnswerBorder'},
keyboardType: { name: lbl_keyboard,
type: 'enumeration_radio',
description: '',
options: [ CONST_KB_TYPE_TEXT + CONST_DOUBLE_DOLLAR + lbl_keyboard_text,
CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + lbl_keyboard_no],
showOptionAcross: true,
value: CONST_KB_TYPE_TEXT,
valueIfUndefined: CONST_KB_TYPE_TEXT,
show_condition_ques: 'kind',
show_condition_ques_val: [lbl_kind_string],
display_if_value_equal: [CONST_KB_TYPE_NO + '$$showSymbols'],
trigger_if_value_equal: [CONST_KB_TYPE_TEXT + '$$ul.propertyList div.lkLockNumeric.lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED,
CONST_KB_TYPE_NO + '$$ul.propertyList div.lkLockNumeric.lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED],
insertBefore: 'justificationGroup'},
showSymbols: { name: lbl_show_symbols,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'isSearchWildCard',
valueIfUndefined: false,
show_condition_ques: 'keyboardType',
show_condition_ques_val: [CONST_KB_TYPE_NO],
add_class: 'lkShowSymbols'},
lockNumericKeyboard: { name: lbl_lock_mumeric_keyboard,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'isSearchWildCard',
valueIfUndefined: false,
show_condition_ques_val: [CONST_KB_TYPE_NO],
add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP + ' lkLockNumeric'},
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
version: VERSION_GROUP_FUNCTION.toString() },
dispatchGroup: { name: lbl_dispatch,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross',
summary: true,
info_msg: hl_lf_bluetooth + '#restrictdata',
info_icon: true,
removeSettingTextBF: true},
restViewEdit: { name: lbl_restrict_view_Edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_Edit,
removeSettingTextBF: true},
restViewNew: { name: lbl_restrict_view_new,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_new,
removeSettingTextBF: true},
restViewFillAndSend: { name: lbl_restrict_view_save_n_send,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_save_n_send,
removeSettingTextBF: true},
restViewFillAndSendEdit: { name: lbl_restrict_view_save_n_send_edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_view_save_n_send_edit,
removeSettingTextBF: true,
valueIfUndefined: false},
restDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_dispatch_to_email_grp,
removeSettingTextBF: true},
restDispatchEdit: { name: lbl_restrict_dispatch_Edit,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
valueIfUndefined: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_dispatch_Edit,
removeSettingTextBF: true},
restDispatchNew: { name: lbl_restrict_dispatch_new,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_dispatch_new,
removeSettingTextBF: true},
restMobile: { name: lbl_restrict_mobile,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_mobile,
removeSettingTextBF: true },
restWebapp: { name: lbl_restrict_webapp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_restrict_webapp,
removeSettingTextBF: true},
restFormLinks: { name: lbl_form_links_grp,
type: 'bool',
grp_type: CONST_BOOL_GRP,
description: '',
value: false,
summary: true,
parent_group: 'dispatchGroup',
grp_name: lbl_form_links_grp,
removeSettingTextBF: true},
readOnlyGroup: { name: lbl_read_only_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_read_only_group_des,
info_msg: hl_shared_readonly + '#read-only',
summary: true,
info_icon: false},
readOnlyViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'readOnlyGroup'},
readOnlyViewEdit: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: ''},
readOnlyDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup'},
readOnlyDispatchNew: { name: lbl_new,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new,
grp_description: ''},
readOnlyDispatchEdit: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: ''},
readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup'},
readOnlyFillAndSend: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_new,
grp_description: ''},
readOnlyUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup'},
readOnly: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
readOnlyWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks'},
readOnlyViewNew: { name: lbl_view_new_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp,
style: 'padding-left: 50px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyFillAndSendEdit: { name: lbl_fill_and_send,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_fill_and_send,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyWebApp: { name: lbl_web_client,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_web_client,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'readOnlyWebAppGrp',
show_condition_ques_val: true},
readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup'},
readOnlyForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_edit,
grp_description: ''},
readOnlyRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'readOnlyGroup'},
readOnlyOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'readOnlyGroup',
grp_name: lbl_on_retrieve,
grp_description: ''},
requiredGroup: { name: lbl_required_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: lbl_required_group_des,
info_msg: hl_shared_required + '#required',
summary: true,
info_icon: false},
requiredViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'requiredGroup'},
requiredViewEdit: { name: lbl_edit,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: ''},
requiredDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup'},
requiredDispatchNew: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new,
grp_description: ''},
requiredDispatchEdit: { name: lbl_edit,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: ''},
requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup'},
requiredFillAndSend: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_new,
grp_description: ''},
requiredUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup'},
required: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_mobile_grp,
grp_description: ''},
requiredWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks'},
requiredViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
requiredFillAndSendEdit: { name: lbl_fill_and_send,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_fill_and_send,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
requiredWebApp: { name: lbl_web_client,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_web_client,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
requiredEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
requiredFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'requiredWebAppGrp',
show_condition_ques_val: true},
dispatchRequired:
{ name: lbl_dispatch_control_required,
type: 'bool',
description: lbl_dispatch_control_required_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_dispatch_control_required_grp,
grp_description: lbl_dispatch_control_required_grp_des},
requiredForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup'},
requiredForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_edit,
grp_description: ''},
requiredRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'requiredGroup'},
requiredOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'requiredGroup',
grp_name: lbl_on_retrieve,
grp_description: ''},
clearGroup: { name: lbl_clear_group,
type: 'property_group',
showSelectAll: true,
add_class: 'notAcross margin-left-10',
description: '',
summary: true},
clearRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'clearGroup'},
clearOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'clearGroup',
grp_name: lbl_on_retrieve,
grp_description: ''},
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_GROUP_FUNCTION.toString() },
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true},
isShowITE: { name: lbl_show_if_then_else_condition,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'iteConditions',
info_msg: hl_if_then_else,
info_icon: true},
isShowReadOnlyIf: { name: lbl_show_read_only_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'readOnlyIfConditions',
info_msg: hl_read_only_if,
info_icon: true,
version: VERSION_READ_ONLY_IF.toString()},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: true,
relevance: false,
skipcond: true,
summary: false
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
iteConditions: { name: lbl_if_then_else_cond,
type: 'iteConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowITE',
show_condition_ques_val: true,
advanced: true},
readOnlyIfConditions: { name: lbl_read_only_if_cond,
type: 'readOnlyIfConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowReadOnlyIf',
show_condition_ques_val: true,
advanced: true,
version: VERSION_READ_ONLY_IF.toString()},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true},
isHideBtnAfterScan: { name: lbl_is_hide_btn_after_scan,
type: 'bool',
description: '',
value: false,
summary: true},
isHideCounterAfterScan: { name: lbl_is_hide_counter_after_scan,
type: 'bool',
description: '',
value: false,
summary: true},
isHideIfCmpVal: { name: lbl_hide_if_cpm_val,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
display_if_true_ctrl: 'hideIfFields, hideIfCmpVal',
version: VERSION_HIDE_IF.toString()},
hideIfCmpVal: { name: '',
type: 'hideIfCompareEditor',
description: '',
value: {},
valueIfUndefined: {},
insertAfter: 'isHideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() },
hideIfFields: { name: lbl_hide_if_field_list,
type: 'hideIfFieldsEditor',
description: '',
value: [],
valueIfUndefined: [],
insertAfter: 'hideIfCmpVal',
show_condition_ques: 'isHideIfCmpVal',
show_condition_ques_val: true,
summary: false,
version: VERSION_HIDE_IF.toString() }},
inputGeofence: {
ctrlProperty: { name: lbl_geofence_ctrl,
type: 'ctrlDes',
explainUrl: hl_geofence,
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
descriptionQuestion: { name: lbl_description_ques,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
inputType: { name: lbl_geofence_input_type,
addValueToPropertyList: true,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_sel_map_opt,
'Address$$' + lbl_action_map_address,
'Lat/Lon$$' + lbl_geofence_latlong],
value: '',
display_if_value_equal: ['Address$$addressQuestion',
'Lat/Lon$$latQuestion,lonQuestion'],
summary: false },
addressQuestion: { name: lbl_address_ques,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
show_condition_ques: 'inputType',
show_condition_ques_val: ['Address'],
summary: false},
latQuestion: { name: lbl_latitude_ques,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
show_condition_ques: 'inputType',
show_condition_ques_val: ['Lat/Lon'],
summary: false},
lonQuestion: { name: lbl_longitude_ques,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
show_condition_ques: 'inputType',
show_condition_ques_val: ['Lat/Lon'],
summary: false},
arrivedTimeDes: { name: lbl_arrived_time_des,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
departedTimeDes: { name: lbl_departed_time_des,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
durationMinutesDes: { name: lbl_duration_minutes_des,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
radius: { name: lbl_radius,
type: 'spinStep',
description: '',
value: 100,
valueIfUndefined: 100,
minValue: 50,
maxlength: 4,
required: true,
style: 'padding-top: 5px;',
add_class: 'makeAcross show-up-down',
makeAcross_des: lbl_radius_des,
makeAcross_des_style: 'letter-spacing: initial;font-size: 11px;color: #666;font-weight: normal;padding-left: 20px;line-height: 26px;',
summary: false },
isHoldingUntilDepart: { name: lbl_holding_until_depart,
type: 'bool',
description: '',
value: true,
valueIfUndefined: true,
summary: true,
style: 'padding-top: 5px;',
display_if_true_ctrl: 'sendDispatchAfter'},
sendDispatchAfter: { name: lbl_send_dispatch_after,
type: 'spinStep',
description: '',
value: CONST_SEND_DISPATCH_AFTER_DEFAULT,
valueIfUndefined: CONST_SEND_DISPATCH_AFTER_DEFAULT,
minValue: 0,
maxlength: 4,
required: true,
add_class: 'makeAcross show-up-down',
makeAcross_des: lbl_send_dispatch_after_des,
makeAcross_des_style: 'letter-spacing: initial;font-size: 11px;color: #666;font-weight: normal;padding-left: 20px;line-height: 26px;',
summary: false,
show_condition_ques: 'isHoldingUntilDepart',
show_condition_ques_val: true}
},
ctrlINV: {
ctrlProperty: { name: lbl_inv_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_inv},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_inv_label,
type: 'uiText',
description: '',
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
datasource: { name: lbl_data_src,
type: 'lookupTable',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
isLoadSystemLookup: false,
requiredText: lbl_lookup_ds_required_text,
value: '',
valueinput: '',
info_msg: hl_data_inv + '#data-source',
info_icon: true,
summary: false },
lookupfield: { name: lbl_lookup_field,
type: 'lookupField',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: '',
valueinput: '',
info_msg: hl_data_inv + '#lookup-field',
info_icon: true,
summary: false },
invInputOptionsGroup: { name: lbl_data_src_input,
type: 'dynamic_property_group',
description: '',
summary: true,
value: {},
info_icon: false},
method: { name: lbl_method,
type: 'enumeration_radio',
description: '',
options: [ CONST_INV_METHOD_ENTER + '$$' + lbl_method_enter,
CONST_INV_METHOD_BARCODE + '$$' + lbl_method_barcode,
CONST_INV_METHOD_NFC + '$$' + lbl_method_nfc],
showOptionAcross: true,
value: CONST_INV_METHOD_ENTER
},
optionGroup: { name: lbl_option_grp,
type: 'property_group',
summary: true,
info_icon: false},
isShowFoundNotFoundRpt: { name: lbl_show_found_not_found,
type: 'bool',
description: '',
value: true,
summary: true},
isShowCommentCol: { name: lbl_show_comment_column,
type: 'bool',
description: '',
value: true,
summary: true},
isShowImageCol: { name: lbl_show_image_column,
type: 'bool',
description: '',
value: true,
summary: true},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true},
shadedRow:{ name: '',
type: 'ctrl_shaded_row',
paddingLeft: '20px',
description: '',
value: {
isShadedRow: false,
rowColor: '#E9E9E9',
rowTextColor: '#000000'
},
summary: true},
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px'},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des},
actionGroup: { name: lbl_actions,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
}
},
inputShipping: {
ctrlProperty: { name: lbl_shipping_ctrl,
type: 'ctrlDes',
description: ''},
id: { type: CONST_VALUE_NONE,
value:''
},
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
shippoIcon: { name: lbl_shippo_icon,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_icon',
summary: true,
insertBefore: 'name',
hasHtmlTag: true},
shippoNote: { name: lbl_shippo_note,
type: 'property_group',
description: '',
style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px',
add_class: 'using_for_note',
summary: true,
insertBefore: 'name',
hasHtmlTag: true},
transaction: { name: lbl_transaction,
type: 'enumeration_radio',
description: '',
options: [ CONST_GET_RATE + '$$' + lbl_get_rate,
CONST_CREATE_LABEL + '$$' + lbl_create_label],
showOptionAcross: true,
display_if_value_equal: [CONST_CREATE_LABEL + '$$serviceCarrier,carrierTemplateLink,serviceLevel,serviceLevelTemplateLink'],
value: CONST_GET_RATE,
addValueToPropertyList: true,
style: 'padding-bottom: 5px;',
summary: true },
shippoSendNote: { name: lbl_shippo_send_note,
type: 'property_group',
description: '',
summary: true},
fromAddress: { name: lbl_from_address,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
fromName: { name: lbl_from_name,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
toAddress: { name: lbl_to_address,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
toName: { name: lbl_to_name,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
parcelTemplate:{ name: lbl_parcel_template,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
addClassToPropertyListIfNotEmpty: 'hasPacelTemplate',
summary: false },
parcelTemplateLink: { name: lbl_select_parcel_template,
type: 'property_group',
description: '',
summary: true,
hasHtmlTag: true},
length: { name: lbl_length,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
width: { name: lbl_width,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
height: { name: lbl_height,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
shipDistanceUnit: { name: lbl_distance_unit,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt,
CONST_DISTANCE_UNIT_CM + CONST_DOUBLE_DOLLAR + 'cm',
CONST_DISTANCE_UNIT_IN + CONST_DOUBLE_DOLLAR + 'in',
CONST_DISTANCE_UNIT_FT + CONST_DOUBLE_DOLLAR + 'ft',
CONST_DISTANCE_UNIT_MM + CONST_DOUBLE_DOLLAR + 'mm',
CONST_DISTANCE_UNIT_M + CONST_DOUBLE_DOLLAR + 'm',
CONST_DISTANCE_UNIT_YD + CONST_DOUBLE_DOLLAR + 'yd'],
value: CONST_DISTANCE_UNIT_IN,
valueIfUndefined: CONST_DISTANCE_UNIT_IN,
summary: false},
weight: { name: lbl_weight,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
massUnit: { name: lbl_mass_unit,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt,
CONST_MASS_UNIT_G + CONST_DOUBLE_DOLLAR + 'g',
CONST_MASS_UNIT_OZ + CONST_DOUBLE_DOLLAR + 'oz',
CONST_MASS_UNIT_LB + CONST_DOUBLE_DOLLAR + 'lb',
CONST_MASS_UNIT_KG + CONST_DOUBLE_DOLLAR + 'kg'],
value: CONST_MASS_UNIT_LB,
valueIfUndefined: CONST_MASS_UNIT_LB,
summary: false},
serviceCarrier: { name: lbl_service_carrier,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt/*,
'apc_postal$$APC Postal',
'australia_post$$Australia Post (also used for Startrack)',
'aramex$$Aramex',
'asendia_us$$Asendia',
'axlehire$$AxleHire',
'borderguru$$BorderGuru',
'boxberry$$Boxberry',
'bring$$Bring (also used for Posten Norge)',
'canada_post$$Canada Post',
'cdl$$CDL',
'correios_br$$Correios Brazil',
'correos_espana$$Correos Espana',
'collect_plus$$CollectPlus',
'couriersplease$$CouriersPlease',
'deutsche_post$$Deutsche Post',
'dhl_benelux$$DHL Benelux',
'dhl_germany$$DHL Germany',
'dhl_ecommerce$$DHL eCommerce',
'dhl_express$$DHL Express',
'dpd_germany$$DPD Germany',
'dpd_uk$$DPD UK',
'estafeta$$Estafeta',
'fastway_australia$$Fastway Australia',
'fedex$$FedEx',
'gls_de$$GLS Germany',
'gls_fr$$GLS France',
'globegistics$$Globegistics',
'gophr$$Gophr',
'gso$$GSO',
'hermes_uk$$Hermes UK',
'hongkong_post$$HongKong Post',
'lasership$$Lasership',
'lso$$LSO',
'mondial_relay$$Mondial Relay',
'new_zealand_post$$New Zealand Post (also used for Pace and CourierPost)',
'newgistics$$Newgistics',
'nippon_express$$Nippon Express',
'ontrac$$OnTrac',
'orangeds$$OrangeDS',
'parcel$$Parcel',
'pcf$$PCF',
'posti$$Posti',
'purolator$$Purolator',
'rr_donnelley$$RR Donnelley',
'russian_post$$Russian Post',
'sendle$$Sendle',
'skypostal$$SkyPostal',
'stuart$$Stuart',
'ups$$UPS',
'usps$$USPS',
'yodel$$Yodel'*/],
value: '',
show_condition_ques: 'transaction',
show_condition_ques_val: [CONST_CREATE_LABEL],
summary: false},
carrierTemplateLink: { name: lbl_select_carrier_template,
type: 'property_group',
description: '',
summary: true,
show_condition_ques: 'transaction',
show_condition_ques_val: [CONST_CREATE_LABEL],
hasHtmlTag: true},
serviceLevel: { name: lbl_service_level,
type: 'enumeration',
description: '',
required: true,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
show_condition_ques: 'transaction',
show_condition_ques_val: [CONST_CREATE_LABEL],
summary: false},
serviceLevelTemplateLink: { name: lbl_select_service_level_template,
type: 'property_group',
description: '',
summary: true,
show_condition_ques: 'transaction',
show_condition_ques_val: [CONST_CREATE_LABEL],
hasHtmlTag: true},
fileFormat: { name: lbl_file_format,
type: 'enumeration',
description: '',
required: true,
/*
https://goshippo.com/docs/reference#transactions-create-instant
label_file_type(optional)
"PNG"
"PDF"
"PDF_4x6"
"ZPLII"*/
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt,
'PNG' + CONST_DOUBLE_DOLLAR + 'PNG',
//'PNG_2.3x7.5' + CONST_DOUBLE_DOLLAR + 'PNG_2.3x7.5',
'PDF' + CONST_DOUBLE_DOLLAR + 'PDF',
//'PDF_2.3x7.5' + CONST_DOUBLE_DOLLAR + 'PDF_2.3x7.5',
'PDF_4x6' + CONST_DOUBLE_DOLLAR + 'PDF_4x6',
//'PDF_4x8' + CONST_DOUBLE_DOLLAR + 'PDF_4x8',
//'PDF_A4' + CONST_DOUBLE_DOLLAR + 'PDF_A4',
//'PDF_A6' + CONST_DOUBLE_DOLLAR + 'PDF_A6',
'ZPLII' + CONST_DOUBLE_DOLLAR + 'ZPLII'],
value: '',
display_if_value_equal: ['PNG,PNG_2.3x7.5$$labelImage'],
summary: false},
purchaseBtnText :{ name: lbl_purchase_btn_text,
type: 'text',
description: '',
required: false,
value: lbl_purchase,
valueIfUndefined: lbl_purchase,
summary: false },
shippoDestinationNote: { name: lbl_shippo_destination_note,
type: 'property_group',
description: '',
summary: true},
carrier: { name: lbl_carrier,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
carrierTemplateLink2: { name: lbl_select_carrier_template,
type: 'property_group',
description: '',
summary: true,
hasHtmlTag: true},
level: { name: lbl_service_level,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
serviceLevelTemplateLink2: { name: lbl_select_service_level_template,
type: 'property_group',
description: '',
summary: true,
hasHtmlTag: true},
trackingNumber: { name: lbl_tracking_number,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
trackingUrl: { name: lbl_tracking_url,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
rateAmount: { name: lbl_rate_amount,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
rateCurrency: { name: lbl_rate_currency,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
estimatedDays: { name: lbl_estimated_days,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
labelUrl: { name: lbl_label_url,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
summary: false},
labelImage: { name: lbl_label_image,
type: 'enumeration',
description: '',
required: false,
options: [CONST_DOUBLE_DOLLAR + lbl_select_opt],
value: '',
show_condition_ques: 'fileFormat',
show_condition_ques_val: ['PNG'],
summary: false},
actionKind: { name: lbl_trigger_kind,
type: 'enumeration_radio',
hideCaption: false,
style: 'padding-top: 5px;',
add_class: 'hide-legend',
showOptionAcross: true,
options: [ 'button$$Button',
'autoRun$$Auto run'],
value: 'button',
summary: true,
addRemoveClassPropertyNameValue: true},
autoRunTrigger: { name: lbl_action_auto_run_trigger,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
options: [ lbl_action_select_a_trigger,
'2$$' + lbl_when_a_question_is_completed],
value: lbl_sel_question,
summary: false},
autoRunQuestionTrigger: { name: lbl_trigger_question,
type: 'enumeration',
add_class: 'buildFormControlsContainer',
description: '',
required: true,
options: [lbl_sel_question],
value: lbl_sel_question,
summary: false},
kind: { name: lbl_type,
type: 'enumeration_radio',
description: '',
options: [ 'Button$$' + lbl_kind_text,
'Image$$' + lbl_kind_image],
showOptionAcross: true,
value: 'Button',
addRemoveClassPropertyNameValue: true},
hideButtonAfterClick: { name: lbl_hide_button_after_click,
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true},
hintLink: { name: mdi_kind_image,
type: 'uploadImage',
description: '',
required: true,
value: '',
summary: false},
actionBtnText: { name: lbl_btn_text,
type: 'text',
description: '',
required: false,
value: '',
summary: false},
imageText: { name: lbl_image_text,
type: 'text',
add_class: 'forShipping',
description: '',
required: false,
value: '',
summary: false},
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
version: VERSION_RELEVANCE_4_SHIPPO.toString() },
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: VERSION_RELEVANCE_4_SHIPPO.toString()},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
version: VERSION_RELEVANCE_4_SHIPPO.toString()
}
},
ctrlRepeatableSummary: {
ctrlProperty: { name: lbl_repeatable_summary_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_repeatable_summary,
version: VERSION_CTRL_PROPERTY_EXP.toString()},
id: { type: CONST_VALUE_NONE,
value:''
},
label: { name: lbl_repeatable_summary_label,
type: 'uiText',
description: '',
required: false,
value: {},
summary: false },
name: { name: lbl_data_name,
type: 'text',
description: '',
limit: [ 'nosymbols', 'lowercase', 'unique' ],
required: true,
value: 'untitled',
valueinput: '',
summary: false },
repeatable:{ name: lbl_repeatable,
type: 'enumeration',
description: '',
options: [],
value: '',
required: true,
summary: true,
insertAfter: 'name'},
columns: { name: lbl_columns,
type: 'repeatableColumnFields',
description: '',
value: [],
summary: false,
required: true,
insertAfter: 'repeatable'},
equallySpaceColumns: { name: lbl_equally_space_col,
type: 'bool',
description: lbl_equally_space_col_des,
value: true,
summary: true,
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
isUtilizingFullScr: { name: lbl_utilizing_full_scr,
type: 'bool',
description: '',//lbl_utilizing_full_scr_des,
value: true,
summary: true,
style: 'padding-top: 5px;',
insertBefore: 'numberOfLine',
info_msg: hl_table + '#fit-to-screen',
info_icon: true,
display_if_true_ctrl: 'adjustWidthNormal,isApplyForScreen',
version: '5.0' },
columnsSpaceType:{
hideCaption: true,
name: '',
type: 'enumeration_radio',
add_class: 'not-use-fieldset hide-legend',
description: '',
paddingLeft: '20px',
marginTop: '-10px',
options: [ '0$$' + lbl_col_type_equally,
'1$$' + lbl_col_type_caption_length,
'2$$' + lbl_col_type_adjust_col_width],
value: '0',
insertAfter: 'isUtilizingFullScr',
summary: true,
version: '' + VERSION_GRID_TYPE_FUNCTION},
// [] Column weight (default is un-checked)
isColumnWeightCustom: { name: lbl_column_weight_custom4container_nbsp,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'columnsSpaceType',
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + '',
hideVersion: '' + VERSION_GRID_TYPE_FUNCTION},
// [] with the format [10 | 20 | 20 | 50]
withFormat4ColumnWeight: { name: lbl_table_column_weight_with_format,
type: 'showHideCustomWeight4Container',
description: '',
value: "",
summary: true,
required: true,
insertAfter: 'isColumnWeightCustom',
version: VERSION_NEW_OPTION_CUSTOM_COLUMN_WEIGHT + ''},
adjustWidthNormal: {
name: lbl_table_adjust_width,
type: 'enumeration',
description: lbl_table_adjust_width_des,
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
summary: false,
insertAfter: 'withFormat4ColumnWeight',
version: VERSION_ADJUST_WIDTH_IF_SMALLER.toString() },
isApplyForScreen: { name: lbl_is_applied_table,
type: 'bool',
description: '',
value: false,
summary: true,
info_msg: {ctrlTable:hl_table + '#expand'},
info_icon: true,
icon_style: 'padding-top: 5px;',
show_condition_ques: 'isUtilizingFullScr',
show_condition_ques_val: true,
display_if_true_ctrl: 'applyScreenSize, adjustWidth',
style: 'padding-top: 5px;',
insertAfter: 'adjustWidthNormal',
version: VERSION_TABLE_IGNORE_SCREEN_SIZE.toString()},
applyScreenSize: { name: lbl_min_screen_size,
type: 'enumeration',
description: '',
style: 'padding-left: 20px;',
add_class: 'not-use-fieldset',
options: [ '2.5',
'3',
'3.5',
'4',
'4.5',
'5',
'5.5',
'6',
'6.5',
'7',
'7.5',
'8',
'8.5',
'9',
'9.5',
'10',
'12',
'15'],
value: '5',
required: false,
show_condition_ques: 'isApplyForScreen',
show_condition_ques_val: true,
summary: true,
insertAfter: 'isApplyForScreen',
version: VERSION_TABLE_IGNORE_SCREEN_SIZE.toString()},
adjustWidth: {
name: '',//lbl_table_adjust_width_if_smaller,
type: 'enumeration',
description: lbl_table_adjust_width_if_smaller_des,
options: [ '100$$100%',
'125$$125%',
'150$$150%',
'175$$175%',
'200$$200%',
'225$$225%',
'250$$250%',
'275$$275%',
'300$$300%'],
value: '100',
add_class: 'not-use-fieldset',
show_condition_ques: 'isApplyForScreen',
show_condition_ques_val: true,
summary: false,
insertAfter: 'applyScreenSize',
version: '' + VERSION_ADJUST_WIDTH_PERCEN },
justificationGroup: { name: lbl_justification_group,
type: 'property_group',
description: lbl_justification_group_des,
summary: true,
info_icon: false,
info_msg: hl_shared_ajr + '#Justification',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
justificationCaption: { name: lbl_justification_caption,
type: 'enumeration_radio',
hideCaption: true,
showCaptionAcross: {
captionStyle: 'float:left;margin-top:-5px;width:70px;'
},
showOptionAcross: true,
options: [ '0$$L',
'1$$C',
'2$$R'],
value: '0',
summary: true,
parent_group: 'justificationGroup',
paddingLeft: '20px',
version: '' + VERSION_TOOL_NEW_JUSTIFICATION},
//Remove space above
removeSpaceGroup: { name: lbl_remove_space_group,
type: 'property_group',
description: lbl_remove_space_group_des,
info_msg: hl_shared_ajr + '#remove-space',
summary: true,
info_icon: false,
version: '' + VERSION_TOOL_PARAM_CLEANUP},
//Remove space above
removeSpaceAbove:
{ name: lbl_remove_space_above,
type: 'bool',
description: lbl_remove_space_above_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_above_grp,
grp_description: lbl_remove_space_above_grp_des,
version: '' + VERSION_REMOVE_SPACE},
//Remove space below
removeSpaceBelow:{ name: lbl_remove_space_below,
type: 'bool',
description: lbl_remove_space_below_des,
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'removeSpaceGroup',
grp_name: lbl_remove_space_below_grp,
grp_description: lbl_remove_space_below_grp_des,
version: '' + VERSION_REMOVE_SPACE},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance',
version: '' + VERSION_PORTAL_SHADING},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance',
version: '' + VERSION_PORTAL_SHADING},
shadedRow:{ name: '',
type: 'ctrl_shaded_row',
paddingLeft: '20px',
description: '',
value: {
isShadedRow: false,
rowColor: '#E9E9E9',
rowTextColor: '#000000'
},
summary: true,
insertAfter: 'shadedHeadings',
version: '' + VERSION_PORTAL_SHADING},
textSize: { name: lbl_text_size,
type: 'enumeration',
description: '',
options: [ 'small$$' + lbl_text_size_small,
'medium$$' + lbl_text_size_medium,
'large$$' + lbl_text_size_large],
value: 'medium',
valueIfUndefined: 'medium',
insertBefore: 'justificationGroup',
version: VERSION_TABLE_TEXT_SIZE.toString() },
shadedKind:{ name: lbl_shading_kind,
type: 'enumeration',
description: lbl_shading_kind_des,
options: [ CONST_DOUBLE_DOLLAR + lbl_shaded_opt_every_other_row,
'1$$' + lbl_shaded_opt_top,
'2$$' + lbl_shaded_opt_first_col,
'3$$' + lbl_shaded_opt_every_other_col],
value: '',
summary: true,
insertBefore: 'justificationGroup',
version: '' + VERSION_GRID_TABLE_SHADING},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false,
version: '' + VERSION_NEW_TOOL_LAYOUT},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true,
version: '' + VERSION_NEW_TOOL_LAYOUT},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true,
advanced: true,
moreadvanced: false,
skip: false,
relevance: true,
relevancecond:true,
summary: false
},
showGroupFormat: { name: lbl_format_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: false,
info_msg: hl_text + '#format',
insertBefore: 'numberOfLine',
version: VERSION_GROUP_FUNCTION.toString() },
isRowCountDisplay: { name: lbl_display_row_count,
type: 'bool',
value: false,
summary: true,
insertBefore: 'numberOfLine',
version: '5.0' },
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'textSize',
version: VERSION_GROUP_FUNCTION.toString() },
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS,
insertAfter: 'removeSpaceGroup',
version: VERSION_TABLE_CLEAR_ON_RETRIEVE.toString() },
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup',
version: VERSION_GROUP_FUNCTION.toString() },
hideMobileWebGroup: { name: lbl_hide_mobile_web_group,
type: 'property_group',
add_class: 'notAcross margin-left-10',
description: lbl_hide_mobile_web_group_des,
info_msg: hl_shared_hide + '#hide',
showSelectAll: true,
summary: true,
info_icon: false,
insertAfter: 'showGroupRulesPermissions',
version: '' + VERSION_TOOL_PARAM_CLEANUP},
hideViewDataGroup: { name: lbl_use_view_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
description: '',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewEdit: { name: lbl_edit,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchGroup: { name: lbl_use_dis_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchNew: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchEdit: { name: lbl_edit,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideFillAndSend: { name: lbl_new,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_new,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()},
hideUsersGroup: { name: lbl_users_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInMobile: { name: lbl_mobile_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_mobile_grp,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideInPDF: { name: lbl_hide_in_pdf_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_pdf_grp,
grp_description: '',
version: '' + VERSION_HIDE_PDF},
hideWebAppGrp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 30px;',
description: '',
value: false,
summary: true,
valueIfUndefined: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideViewNew: { name: lbl_view_new_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_view_new_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideDispatchToEmail: { name: lbl_dispatch_to_email_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_dispatch_to_email_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_DISPATCH_TO_EMAIL.toString()},
hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_fill_and_send_edit_grp,
grp_description: '',
valueIfUndefined: false,
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_FNS_EDIT.toString()},
hideWebApp: { name: lbl_webapp_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_webapp_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideEmbeddedForm: { name: lbl_embedded_form,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_embedded_form,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_CO_135_NEW_SETTING.toString()},
hideFormLinks: { name: lbl_form_links_grp,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_form_links_grp,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_RESTRICT_OPTION_FL.toString()},
hidePdfWeb: { name: lbl_hide_pdf_web,
type: 'bool',
style: 'padding-left: 50px;',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_pdf_web,
grp_description: '',
show_condition_ques: 'hideWebAppGrp',
show_condition_ques_val: true,
version: VERSION_HIDE_PDF_WEB.toString()},
hideInWeb: { name: lbl_hide_in_web,
type: 'bool',
description: '',
value: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_hide_in_web_grp,
grp_description: '',
version: '1.3',
hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()},
hideForwardedGroup: { name: lbl_use_fowarded_only_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideForwarded: { name: lbl_edit,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_edit,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()},
hideRetrieveGroup: { name: lbl_retrieve_grp,
style: 'padding-left: 20px; clear: both;',
type: 'uiLabel',
parent_group: 'hideMobileWebGroup',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()},
hideOnRetrieve: { name: lbl_on_retrieve,
style: 'padding-left: 30px;',
type: 'bool',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
grp_type: CONST_BOOL_GRP,
parent_group: 'hideMobileWebGroup',
grp_name: lbl_on_retrieve,
grp_description: '',
version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}},
inputAttachment: {
ctrlProperty: { name: lbl_attachment_ctrl,
type: 'ctrlDes',
description: '',
explainUrl: hl_attachment},
isAllowEdit: { name: lbl_attachment_allow_edit,
type: 'bool',
description: '',
value: true,
summary: true,
style: 'padding-top: 5px;',
insertAfter: 'defaultValue'},
apperance:{ name: lbl_apperance,
type: 'ctrl_apperance',
description: lbl_apperance_des,
value: 'Default',
summary: true,
insertAfter: 'justificationGroup',
info_msg: hl_shared_ajr + '#appearance'},
shadedHeadings:{ name: '',
type: 'ctrl_shaded_headings',
paddingLeft: '20px',
description: '',
value: {
isShadedHeadings: false,
headingColor: '#E9E9E9',
textColor: '#000000',
isBorderAroundHeading: false
},
summary: true,
insertAfter: 'apperance'},
removeAnswerBorder: { name: lbl_remove_aswer_border,
type: 'bool',
description: '',
value: false,
summary: true,
insertAfter: 'shadedHeadings',
paddingLeft: '20px'},
shadedButton:{ name: '',
type: 'ctrl_shaded_button',
paddingLeft: '20px',
description: '',
value: {
isShadedButton: false,
btnSheadingColor: '#E9E9E9',
btnTextColor: '#000000',
activeBtnTextColor: '#000000',
btnBorderColor: '#000000',
btnRoundedCorners: false
},
summary: true,
insertAfter: 'shadedHeadings'},
actionGroup: { name: lbl_action_group,
type: 'property_group',
description: lbl_action_group_des,
summary: true,
info_icon: false},
isShowRelevanceCondition: { name: lbl_show_relevance_condition,
type: 'bool',
description: lbl_show_relevance_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'relevanceconds',
info_msg: hl_shared_di_jt + '#only-display-this-question-if',
info_icon: true},
isShowSkipCondition: { name: lbl_show_skip_condition,
type: 'bool',
description: lbl_show_skip_condition_des,
value: false,
summary: true,
display_if_true_ctrl: 'skipconds',
info_msg: hl_shared_di_jt + '#jump-to',
uncheck_if_true_ctrl: 'isShowSkipIf',
info_icon: true},
isShowSkipIf: { name: lbl_show_skip_if,
type: 'bool',
description: '',
value: false,
summary: true,
display_if_true_ctrl: 'skipIfConditions',
info_msg: hl_shared_di_jt + '#jumptoif',
uncheck_if_true_ctrl: 'isShowSkipCondition',
info_icon: true},
skipconds: { name: lbl_skip_cond,
type: 'skipConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowSkipCondition',
show_condition_ques_val: true
},
relevanceconds: { name: lbl_rel_cond,
type: 'relevanceConditionsEditor',
value: [],
summary: false,
show_condition_ques: 'isShowRelevanceCondition',
show_condition_ques_val: true
},
skipIfConditions: { name: lbl_skip_if_cond,
type: 'skipIfConditionsEditor',
value: {
conditions:[],
resultTrue:'',
hasResultElse: false,
resultFalse:''},
summary: false,
show_condition_ques: 'isShowSkipIf',
show_condition_ques_val: true,
advanced: true
},
showGroupAppearance: { name: lbl_apperance,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
info_msg: hl_shared_ajr + '#appearance',
insertBefore: 'justificationGroup'},
showGroupRulesPermissions: { name: lbl_group_rules_permissions,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
collapse_expand_ctrl: true,
info_icon: true,
insertBefore: 'readOnlyGroup',
info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS},
showGroupActions: { name: lbl_action_group,
type: 'sliderOnOff',
description: '',
value: false,
valueIfUndefined: false,
summary: true,
info_icon: true,
collapse_expand_ctrl: true,
info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS,
insertBefore: 'actionGroup'}},
};
// Remove property dispatchRequired in case of checking wrong version
if (false == isUsingDispatchRequiredCustom()) {
// List all available controls we want to remove property dispatchRequired
var allControls = [
CONST_CTRL_TYPE_INPUT_TEXT
,CONST_CTRL_TYPE_INPUT_NUMERIC
,CONST_CTRL_TYPE_INPUTTRENDS
,CONST_CTRL_TYPE_INPUTDATE
,CONST_CTRL_TYPE_INPUTLOCATION
,CONST_CTRL_TYPE_INPUTIMAGE
,CONST_CTRL_TYPE_INPUTAUDIO
,CONST_CTRL_TYPE_INPUTVIDEO
,CONST_CTRL_TYPE_INPUTSKETCH
,CONST_CTRL_TYPE_INPUTBARCODE
,CONST_CTRL_TYPE_INPUTNFC
,CONST_CTRL_TYPE_INPUTFORWARD
,CONST_CTRL_TYPE_INPUTSECUREFORWARD
,'inputPageBreak'
,'inputLabel'
,CONST_CTRL_TYPE_INPUTSCORESUMMARY
,CONST_CTRL_TYPE_INPUTNUMBERING
,CONST_CTRL_TYPE_INPUTACTION
,CONST_CTRL_TYPE_INPUTPAYMENT
,'inputSaveAndSend'
,'inputInstruction'
,CONST_CTRL_TYPE_INPUTEMAILREPORT
,CONST_CTRL_TYPE_INPUTFAX
,CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT
,CONST_CTRL_TYPE_INPUTAPPROVAL
,CONST_CTRL_TYPE_INPUTCALCULATE
,CONST_CTRL_TYPE_INPUTLOOKUP
,CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE
,CONST_CTRL_TYPE_INPUTLFBLUETOOTH
,'inputLookupMulti'
,CONST_CTRL_TYPE_INPUTSELECTONE
,CONST_CTRL_TYPE_INPUTSCOREONE
,CONST_CTRL_TYPE_INPUTSELECTMANY
,CONST_CTRL_TYPE_GROUP
,CONST_CTRL_TYPE_CTRLTABLE
,CONST_CTRL_TYPE_CTRLSCHEDULE
,CONST_CTRL_TYPE_CTRLSCORETABLE
,CONST_CTRL_TYPE_CTRLGRID
,'inputFacingTable'
,CONST_CTRL_TYPE_INPUTCOUNTER
,CONST_CTRL_TYPE_INPUTNUMBERING
];
var ctrlPropertiesCheck = $.fn.odkControl.controlProperties;
for (var t = 0; t < allControls.length; t++) {
// Check available controls and properties
var ctrlName = allControls[t];
if (ctrlPropertiesCheck[ctrlName] !== undefined) {
// Delete selected property [dispatchRequired]
if (ctrlPropertiesCheck[ctrlName].dispatchRequired !== undefined) {
delete ctrlPropertiesCheck[ctrlName].dispatchRequired;
}
}
}
}
// Remove property isNotUseDispatchTab in case of checking wrong version
// (using in Lookup)
if (false == isUsingNotUseLKInDispatchCustom()) {
var ctrlPropertiesCheck = $.fn.odkControl.controlProperties;
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP] !== undefined) {
// Delete selected property [isNotUseDispatchTab] for Lookup Fields
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP].isNotUseDispatchTab !== undefined) {
delete ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP].isNotUseDispatchTab;
}
}
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE] !== undefined) {
// Delete selected property [isNotUseDispatchTab] for Lookup Fields
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE].isNotUseDispatchTab !== undefined) {
delete ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE].isNotUseDispatchTab;
}
}
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLFBLUETOOTH] !== undefined) {
// Delete selected property [isNotUseDispatchTab] for Lookup Fields
if (ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLFBLUETOOTH].isNotUseDispatchTab !== undefined) {
delete ctrlPropertiesCheck[CONST_CTRL_TYPE_INPUTLFBLUETOOTH].isNotUseDispatchTab;
}
}
}
};
var addCboPODFillField = function(controls, ctrlPODId){
var cboLookupFillControl = $('.lookupFillEditorValueField .cboLookupFillField');
var cboLookupFillFieldVals = [];
if(cboLookupFillControl.length > 1){
var i =0;
_.each(cboLookupFillControl, function(item){
cboLookupFillFieldVals[i] = $(item).val();
i ++;
});
}else{
cboLookupFillFieldVals[0] = cboLookupFillControl.val();
}
cboLookupFillControl.empty();
cboLookupFillControl.append($(' '));
_.each(controls, function(control)
{
if(ctrlPODId == control.id){
_.each(control.children, function(controlPOD)
{
$item = $(' ')
.attr(CONST_VALUE, controlPOD.id)
.text(controlPOD.name);
cboLookupFillControl.append($item);
});
return false;
}
});
if(cboLookupFillControl.length > 1){
i = 0;
_.each(cboLookupFillControl, function(item){
$(item).val(cboLookupFillFieldVals[i]);
i ++;
});
}else{
cboLookupFillControl.val(cboLookupFillFieldVals[0]);
}
}
var controlDataChange = function(){
if(isVersion(VERSION_BUILD_FORM_NEW)){
extractRecurseData = {};
}
}
var validateCtrlCopyAndPastePosition = function(selectedItem){
if(!selectedItem){
return true;
}
if(copyPasteCtrlInfo['copyProperty'] == undefined || copyPasteCtrlInfo['copyProperty'].length == 0){
return true;
}
var target = selectedItem.parents('.control');
var $target = undefined;
if(target.length > 0){
$target = $(target[0]);
}else{
return true;
}
for(var i=0; i ').addClass(itemData.type).data('odkControl-type', itemData.type);
if(!checkCanDropIntoGroup(ctrl, $target)){
return false;
}
}
return true;
}
var isParentSelected = function(ctrl){
if(ctrl.parents('.multi-selected').length > 0){
return true;
}
return false;
}
var removeChildSelected = function(ctrl){
ctrl.find('.workspaceInnerWrapper .multi-selected').removeClass('multi-selected');
}
var loadUserVariable = function(isPrecessError, isRefreshCbo, isWaitLoading){
var async = true;
if(isWaitLoading){
async = false;
}
$.ajax({
url: '/webuser/UserVariablesServlet',
contentType: 'application/json; charset=UTF-8',
dataType: 'json',
type: 'POST',
data: JSON.stringify({
action : 'get_information'
}),
cache: false,
async: async,
complete: function()
{
waitForDataLoading(false);
},
success: function(response, status)
{
if(!response){
if(typeof jAlert != 'undefined') {
jAlert(msg_unknown_error);
}
return;
}
// Get data from server and fill into the email alias region
if (response['status'] === false) {
jAlert(msg_unknown_error);
return;
}else if(response['errorcode'] === '928'){
jAlert(msg_read_permission_required);
return;
}
userVariables = {};
userVariables.loaded = true;
userVariables.MobileUserData = {
text: [],
integer: [],
date: [],
time: [],
datetime: [],
email: [],
phoneNumber: [],
textNumLock: []
};
if(response.MobileUserData){
var mobileItemIdex = 0;
while(response.MobileUserData[mobileItemIdex.toString()]){
var itemData = response.MobileUserData[mobileItemIdex.toString()];
var dataName = itemData.DataName;
if(dataName && dataName != ''){
dataName = 'var_' + dataName ;
var type = itemData.Type;
var id = itemData.ID;
var item = {id: id,
value: dataName,
edit: itemData.Edit,
ask: itemData.Ask,
sync: itemData.Sync};
switch(type){
case 'text':
userVariables.MobileUserData.text.push(item);
break;
case 'integer':
case 'decimal':
userVariables.MobileUserData.integer.push(item);
break;
case CONST_VALUE_DATE_LOWERCASE:
userVariables.MobileUserData.date.push(item);
break;
case CONST_VALUE_TIME_LOWERCASE:
userVariables.MobileUserData.time.push(item);
break;
case CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE:
userVariables.MobileUserData.datetime.push(item);
break;
case 'email':
userVariables.MobileUserData.email.push(item);
break;
case 'phoneNumber':
userVariables.MobileUserData.phoneNumber.push(item);
break;
case 'textNumLock':
userVariables.MobileUserData.textNumLock.push(item);
break;
}
}
mobileItemIdex++;
}
}
userVariables.WebUserData = {
text: [],
integer: [],
date: [],
time: [],
datetime: [],
email: [],
phoneNumber: [],
textNumLock: []
};
if(response.WebUserData){
var userItemIdex = 0;
while(response.WebUserData[userItemIdex.toString()]){
var itemData = response.WebUserData[userItemIdex.toString()];
var dataName = itemData.DataName;
if(dataName && dataName != ''){
dataName = 'var_wu_' + dataName;
var type = itemData.Type;
var id = itemData.ID;
var item = {id: id,
value: dataName,
edit: itemData.Edit,
ask: itemData.Ask,
sync: itemData.Sync};
switch(type){
case 'text':
userVariables.WebUserData.text.push(item);
break;
case 'integer':
case 'decimal':
userVariables.WebUserData.integer.push(item);
break;
case CONST_VALUE_DATE_LOWERCASE:
userVariables.WebUserData.date.push(item);
break;
case CONST_VALUE_TIME_LOWERCASE:
userVariables.WebUserData.time.push(item);
break;
case CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE:
userVariables.WebUserData.datetime.push(item);
break;
case 'email':
userVariables.WebUserData.email.push(item);
break;
case 'phoneNumber':
userVariables.WebUserData.phoneNumber.push(item);
break;
case 'textNumLock':
userVariables.WebUserData.textNumLock.push(item);
break;
}
}
userItemIdex++;
}
}
},
error: function(request, status, error)
{
if(isPrecessError){
if(getStatus(request) == 401){
jAlert(msg_read_permission_required);
}else{
jAlert(msg_error_try);
}
}
}
});
}
var appendUserVariable = function(integerCbo, textCbo, dateCbo){
if(isVersion(VERSION_USE_VARIABLE_BF)){
var intOptList = [];
var txtOptList = [];
var dateOptList = [];
if(userVariables){
if(userVariables.MobileUserData){
// append all text variable
//if(textCbo){
for(var itemKey in userVariables.MobileUserData.text){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.text[itemKey];
if(item == undefined){
continue;
}
//textCbo.append($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
//}
// append all integer variable
for(var itemKey in userVariables.MobileUserData.integer){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.integer[itemKey];
if(item == undefined){
continue;
}
/*if(integerCbo){
integerCbo.append($('' + item.value + ' '));
}
if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
intOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all date variable
for(var itemKey in userVariables.MobileUserData.date){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.date[itemKey];
if(item == undefined){
continue;
}
/*if(dateCbo){
dateCbo.append($('' + item.value + ' '));
}
if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all time variable
for(var itemKey in userVariables.MobileUserData.time){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.time[itemKey];
if(item == undefined){
continue;
}
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all date time variable
for(var itemKey in userVariables.MobileUserData.datetime){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.datetime[itemKey];
if(item == undefined){
continue;
}
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all email variable
for(var itemKey in userVariables.MobileUserData.email){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.email[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
// append all phoneNumber variable
for(var itemKey in userVariables.MobileUserData.phoneNumber){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.phoneNumber[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
// append all textNumLock variable
for(var itemKey in userVariables.MobileUserData.textNumLock){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.textNumLock[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
}
if(userVariables.WebUserData){
// append all text variable
//if(textCbo){
for(var itemKey in userVariables.WebUserData.text){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.text[itemKey];
if(item == undefined){
continue;
}
//textCbo.append($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
//}
// append all integer variable
for(var itemKey in userVariables.WebUserData.integer){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.integer[itemKey];
if(item == undefined){
continue;
}
/*if(integerCbo){
integerCbo.append($('' + item.value + ' '));
}
if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
intOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all date variable
for(var itemKey in userVariables.WebUserData.date){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.date[itemKey];
if(item == undefined){
continue;
}
/*if(dateCbo){
dateCbo.append($('' + item.value + ' '));
}
if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all time variable
for(var itemKey in userVariables.WebUserData.time){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.time[itemKey];
if(item == undefined){
continue;
}
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all date time variable
for(var itemKey in userVariables.WebUserData.datetime){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.datetime[itemKey];
if(item == undefined){
continue;
}
dateOptList.push($('' + item.value + ' '));
txtOptList.push($('' + item.value + ' '));
}
// append all email variable
for(var itemKey in userVariables.WebUserData.email){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.email[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
// append all phoneNumber variable
for(var itemKey in userVariables.WebUserData.phoneNumber){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.phoneNumber[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
// append all textNumLock variable
for(var itemKey in userVariables.WebUserData.textNumLock){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.textNumLock[itemKey];
if(item == undefined){
continue;
}
/*if(textCbo){
textCbo.append($('' + item.value + ' '));
}*/
txtOptList.push($('' + item.value + ' '));
}
}
if(integerCbo && intOptList.length > 0){
intOptList.sort(function(a, b){
var aValue = $(a).text().toLowerCase();
var bValue = $(b).text().toLowerCase();
return ((aValue < bValue) ? -1 : ((aValue > bValue) ? 1 : 0));
});
for(var i=0; i < intOptList.length; i++){
appendToComboArr(integerCbo, intOptList[i]);
}
}
if(textCbo && txtOptList.length > 0){
txtOptList.sort(function(a, b){
var aValue = $(a).text().toLowerCase();
var bValue = $(b).text().toLowerCase();
return ((aValue < bValue) ? -1 : ((aValue > bValue) ? 1 : 0));
});
for(var i=0; i < txtOptList.length; i++){
appendToComboArr(textCbo, txtOptList[i]);
}
}
if(dateCbo && dateOptList.length > 0){
dateOptList.sort(function(a, b){
var aValue = $(a).text().toLowerCase();
var bValue = $(b).text().toLowerCase();
return ((aValue < bValue) ? -1 : ((aValue > bValue) ? 1 : 0));
});
for(var i=0; i < dateOptList.length; i++){
appendToComboArr(dateCbo, dateOptList[i]);
}
}
}
}
}
var appendToComboArr = function(cbos, value){
if(!Array.isArray(cbos)){
cbos.append(value);
}else{
for(var i=0; i < cbos.length; i++){
cbos[i].append(value);
}
}
}
var appendUserVariableWithClass = function(cbo, variableKind){
if(!cbo){
return;
}
if(isVersion(VERSION_USE_VARIABLE_BF)){
if(userVariables){
if(userVariables.MobileUserData){
// append all text variable
for(var itemKey in userVariables.MobileUserData.text){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.text[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all integer variable
for(var itemKey in userVariables.MobileUserData.integer){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.integer[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all date variable
for(var itemKey in userVariables.MobileUserData.date){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.date[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all time variable
for(var itemKey in userVariables.MobileUserData.time){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.time[itemKey];
if(item == undefined){
continue;
}
cbo.append($('' + item.value + ' '));
}
// append all date time variable
for(var itemKey in userVariables.MobileUserData.datetime){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.datetime[itemKey];
if(item == undefined){
continue;
}
cbo.append($('' + item.value + ' '));
}
// append all email variable
for(var itemKey in userVariables.MobileUserData.email){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.email[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all phoneNumber variable
for(var itemKey in userVariables.MobileUserData.phoneNumber){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.phoneNumber[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all textNumLock variable
for(var itemKey in userVariables.MobileUserData.textNumLock){
if(itemKey == 'append') {
continue;
}
var item = userVariables.MobileUserData.textNumLock[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
}
if(userVariables.WebUserData){
// append all text variable
for(var itemKey in userVariables.WebUserData.text){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.text[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all integer variable
for(var itemKey in userVariables.WebUserData.integer){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.integer[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all date variable
for(var itemKey in userVariables.WebUserData.date){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.date[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all time variable
for(var itemKey in userVariables.WebUserData.time){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.time[itemKey];
if(item == undefined){
continue;
}
cbo.append($('' + item.value + ' '));
}
// append all date time variable
for(var itemKey in userVariables.WebUserData.datetime){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.datetime[itemKey];
if(item == undefined){
continue;
}
cbo.append($('' + item.value + ' '));
}
// append all email variable
for(var itemKey in userVariables.WebUserData.email){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.email[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all phoneNumber variable
for(var itemKey in userVariables.WebUserData.phoneNumber){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.phoneNumber[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
// append all textNumLock variable
for(var itemKey in userVariables.WebUserData.textNumLock){
if(itemKey == 'append') {
continue;
}
var item = userVariables.WebUserData.textNumLock[itemKey];
if(item == undefined){
continue;
}
/*if(variableKind != undefined){
switch(variableKind){
case CONST_VARIABLE_KIND_EDIT:
if(!item[CONST_VARIABLE_KIND_EDIT]){
continue;
}
break;
}
}*/
cbo.append($('' + item.value + ' '));
}
}
}
}
}
function getInsertAfterValue(insertAfterProperty){
var arr = insertAfterProperty.split(CONST_COMMA);
var insertAfterClass = arr[0];
for(var i=0; i 0 && !prevCtrl.hasClass(CONST_CLASS_CONTROL)){
prevCtrl = prevCtrl.prev();
}
if(prevCtrl.length == 0){
return true;
}
}
return false;
}
function isLastCtrlInGroup(ctrl){
if(ctrl){
var nextCtrl = ctrl.next();
while(nextCtrl.length > 0 && !nextCtrl.hasClass(CONST_CLASS_CONTROL)){
nextCtrl = nextCtrl.next();
}
if(nextCtrl.length == 0){
return true;
}
}
return false;
}
// START CO-1457 Copy Questions of Source POD into Destination POD
function duplicatePod(control, type, copiedQuestionPostion, properties, parentID)
{
var newProperties = null;
if ((type == CONST_CTRL_TYPE_GROUP) ||
(type == CONST_CTRL_TYPE_CTRLTABLE) ||
(type == CONST_CTRL_TYPE_CTRLSCHEDULE) ||
(type == CONST_CTRL_TYPE_CTRLPOD) ||
(type == CONST_CTRL_TYPE_CTRLINV) ||
(type == CONST_CTRL_TYPE_CTRLSCORETABLE) ||
(type == CONST_CTRL_TYPE_CTRLGRID) ||
(type == 'branch') ||
(type == 'inputPageBreak') ||
(type == 'inputLabel') ||
(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ||
(type == CONST_CTRL_TYPE_INPUTNUMBERING) ||
(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) ||
(type == CONST_CTRL_TYPE_INPUTACTION) ||
(type == CONST_CTRL_TYPE_INPUTPAYMENT) ||
(type == 'inputInstruction') ||
//(type == CONST_CTRL_TYPE_INPUTCALCULATE) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP) ||
(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) ||
(type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) ||
(type == 'inputFacingTable') ||
(type == 'inputLookupMulti') ||
(type == CONST_CTRL_TYPE_INPUTEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTFAX) ||
(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) ||
(type == CONST_CTRL_TYPE_INPUTAPPROVAL) ||
(type == 'inputSaveAndSend') ||
(type == 'ctrlDataSource') ||
(type == 'ctrlHeaderGrid') ||
(type == 'ctrlDataFilter') ||
(type == 'ctrlReportBreakPoint') ||
(type == 'ctrlBreakPointData') ||
(type == 'ctrlBreakPointDataElement') ||
(type == 'ctrlFooterGrid') ||
(type == 'ctrlEmailSchedule')){
newProperties = $.extend(true, {}, $.fn.odkControl.controlProperties[type]);
}else{
newProperties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties),
$.fn.odkControl.controlProperties[type]);
removeUnsupportProperty(newProperties, type);
}
removeUnuseVersion(newProperties);
copyProperties(properties, newProperties);
newProperties.id.value = utils.seq.getUniqueId();
//newProperties.name.valueinput = ''; //CO-205 Copy Fields Bug - Build Forms
// Rename for copied question allow rule: P(POD-ID)_(COPIED-QUESTION-NAME)
newProperties.name.valueinput = 'P' + parentID + '_' + properties.name.value;
newProperties.name.value = newProperties.name.valueinput;
newProperties.ctrlProperty.name = newProperties.name.valueinput;
var oldProperties = properties.id.value + '';
if(oldProperties.indexOf(POD_ID_COL_ID) == 0){
newProperties.id.value = POD_ID_COL_ID_COPIED + parentID;
newProperties.name.valueinput = 'P' + parentID + '_' + properties.name.value;
newProperties.name.value = newProperties.name.valueinput;
newProperties.ctrlProperty.name = newProperties.name.valueinput;
}
var $dupControl = $('#templates .control')
.clone()
.addClass(type)
.addClass(CONST_DUPLICATING)
.addClass('caption-just-paste') // 2548
.odkControl(type, null, newProperties);
$dupControl.find('.controlErrorMessage').addClass('ctrlId_' + newProperties.id.value);
// get number of question of destination pod
var totalQOfDesPod = $('#workspaceScrollArea .control.selected > .workspaceInnerWrapper > .workspaceInner > div').length;
// copiedQuestionPostion + 1 = total question from 1 to position of copied question in source pod
if(copiedQuestionPostion >= 1 && totalQOfDesPod <= (copiedQuestionPostion + 1)) {
control = $('#workspaceScrollArea .control.selected > .workspaceInnerWrapper > .workspaceInner > div:last-child');
control.after($dupControl);
} else if(copiedQuestionPostion == 0) {
control = $('#workspaceScrollArea .control.selected > .workspaceInnerWrapper > .workspaceInner > div:nth-child(' + (copiedQuestionPostion + 1) + ')');
// Add to first position
control.before($dupControl);
} else {
control = $('#workspaceScrollArea .control.selected > .workspaceInnerWrapper > .workspaceInner > div:nth-child(' + copiedQuestionPostion + ')');
control.after($dupControl);
}
if($dupControl.position().top + 150 > $('.workspaceScrollArea:visible').height()){
$('.workspaceScrollArea:visible').scrollTop($('.workspaceScrollArea:visible').scrollTop() + $dupControl.position().top + 150 - $('.workspaceScrollArea:visible').height());
}
// selectControl($dupControl, type, null, newProperties, true);
$dupControl.removeClass(CONST_DUPLICATING);
};
// END CO-1457 Copy Questions of Source POD into Destination POD
var loadAccountVariable = function(){
accountVariables = {};
accountVariables.loaded = true;
accountVariables.data = {text: [],
number: []};
var prefix = '(Account variable)';
var item = {id: 'accVarCompanyName',
value: 'Company name' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarAddress',
value: 'Address' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarCity',
value: 'City' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarState',
value: 'State' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarZipCode',
value: 'Zip code' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarPhoneNumber',
value: 'Phone number' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarFaxNumber',
value: 'Fax number' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarWebsite',
value: 'Website' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarLicenceNumber',
value: 'Licence number' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarTagLine',
value: 'Tag line' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarMileageRate',
value: 'Mileage rate' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarDefaultTaxRate',
value: 'Default tax rate' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarUsingPayment',
value: 'Using payment' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarUsingPrinter',
value: 'Using printer' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarAccountVariable1',
value: 'Account variable 1' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarAccountVariable2',
value: 'Account variable 2' + prefix};
accountVariables.data.text.push(item);
item = {id: 'accVarMileageRate',
value: 'Mileage rate' + prefix};
accountVariables.data.number.push(item);
item = {id: 'accVarDefaultTaxRate',
value: 'Default tax rate' + prefix};
accountVariables.data.number.push(item);
}
var appendAccountVariable = function(numberCbo, textCbo){
if(isVersion(VERSION_USE_VARIABLE_BF)){
if(accountVariables){
if(accountVariables.data){
// append all text variable
if(numberCbo){
accountVariables.data.number.forEach(function(item) {
numberCbo.append($('' + item.value + ' '));
});
}
if(textCbo){
accountVariables.data.text.forEach(function(item) {
textCbo.append($('' + item.value + ' '));
});
}
}
}
}
}
var destinationFieldStack = [];
var destinationFieldStackCount = 0;
var findDestinationField = function(controls, ctrlId, level, isGetCalculateCtrl, destinationWidgets){
/*
destinationWidgets = {widgetType_1: true, kinds:[kind 1,...., kind n],
...
widgetType_n: true, kinds:[kind 1,...., kind n]}
*/
var addNode = false;
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(ctrlId == control.id){
addNode = true;
}
if(!addNode && control.type == CONST_CTRL_TYPE_GROUP){
addNode = findDestinationField(control.children, ctrlId, level + 1, isGetCalculateCtrl, destinationWidgets);
}else if(!addNode && control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findDestinationField(control.children, ctrlId, level + 1, isGetCalculateCtrl, destinationWidgets);
}else if(!addNode && (control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV)){
addNode = findDestinationField(control.children, ctrlId, level + 1, isGetCalculateCtrl, destinationWidgets);
}else if(!addNode && control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findDestinationField(control.children, ctrlId, level + 1, isGetCalculateCtrl, destinationWidgets);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(controlGrd){
if(ctrlId == controlGrd.id){
addNode = true;
}
if(!isControlCorrectType(controlGrd, destinationWidgets)){
return true;
}
if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.addClass('optionType_string answerQuestionOptions')
.text(controlGrd.name);
i++;
}else if((controlGrd.type == 'inputFacingTable'
|| controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT
|| controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| controlGrd.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| controlGrd.type == CONST_CTRL_TYPE_INPUTTRENDS
|| controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTMANY
|| controlGrd.type == CONST_CTRL_TYPE_INPUTEMAILREPORT
|| controlGrd.type == CONST_CTRL_TYPE_INPUTFORWARD
|| controlGrd.type == CONST_CTRL_TYPE_INPUTSECUREFORWARD
|| controlGrd.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| controlGrd.type == CONST_CTRL_TYPE_INPUTIMAGE
|| (isGetCalculateCtrl && controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE)
|| controlGrd.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
var optionType = 'string';
switch(controlGrd.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
case CONST_CTRL_TYPE_INPUTIMAGE.toLowerCase():
optionType = 'image';
break;
default:
optionType = 'string';
break;
}
if(controlGrd.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && controlGrd.kind == 'String') {
optionType = 'string';
}
if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(controlGrd.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions')
.text(controlGrd.name);
i++;
}
});
}else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
if(!isControlCorrectType(control, destinationWidgets)){
return true;
}
if(!control.isRetrieve){
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.addClass('optionType_string answerQuestionOptions')
.text(control.name);
i++;
}
}else if((control.type == 'inputFacingTable'
|| control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTTRENDS
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| control.type == CONST_CTRL_TYPE_INPUTSELECTMANY
|| control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT
|| control.type == CONST_CTRL_TYPE_INPUTFORWARD
|| control.type == CONST_CTRL_TYPE_INPUTSECUREFORWARD
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTIMAGE
|| (isGetCalculateCtrl && control.type == CONST_CTRL_TYPE_INPUTCALCULATE)
|| control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){
if(!isControlCorrectType(control, destinationWidgets)){
return true;
}
var optionType = 'string';
switch(control.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
case CONST_CTRL_TYPE_INPUTIMAGE.toLowerCase():
optionType = 'image';
break;
default:
optionType = 'string';
break;
}
if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') {
optionType = 'string';
}
if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(control.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.addClass('optionType_' + optionType + ' answerQuestionOptions')
.text(control.name);
i++;
}
});
if(level == 0 || addNode){
for(var j=i; j>0; j--){
destinationFieldStack[destinationFieldStackCount] = tmp[j-1];
destinationFieldStackCount++;
}
}
return addNode;
}
var allControlStack = [];
var allControlStackCount = 0;
var findAllControl = function(controls, ctrlId){
var tmp = [];
var i = 0;
_.each(controls, function(control)
{
if(ctrlId == control.id){
return true;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
findAllControl(control.children, ctrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
findAllControl(control.children, ctrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV){
findAllControl(control.children, ctrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
findAllControl(control.children, ctrlId);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
findAllControl(control.children, ctrlId);
}
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.text(control.name);
i++;
});
for(var j=i; j>0; j--){
allControlStack[allControlStackCount] = tmp[j-1];
allControlStackCount++;
}
}
var updateCboCompareType = function(cboCompareType, type){
if(type == CONST_CTRL_TYPE_INPUT_TEXT){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTTRENDS){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTDATE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTLOCATION){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == mdi_kind_inputImage
|| type == mdi_kind_inputAudio
|| type == mdi_kind_inputVideo
|| type == CONST_CTRL_TYPE_INPUTMEDIA
|| type == mdi_kind_inputSketch
|| type == mdi_kind_inputSignature
|| type == 'inputDraw'
|| type == CONST_CTRL_TYPE_INPUTATTACHMENT ){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTBARCODE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTNFC){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTCOUNTER){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTSELECTONE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTSCOREONE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){
}else if(type == CONST_CTRL_TYPE_INPUTSELECTMANY){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTCALCULATE){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}else if(type == CONST_CTRL_TYPE_INPUTACTION){
cboCompareType.empty();
cboCompareType.append('' + lbl_click + ' ');
}/*else if(type == 'inputRIF'){
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}*/else{
cboCompareType.empty();
cboCompareType.append('' + lbl_equal + ' ');
cboCompareType.append('' + lbl_not_equal + ' ');
cboCompareType.append('' + lbl_lt + ' ');
cboCompareType.append('' + lbl_lte + ' ');
cboCompareType.append('' + lbl_gt + ' ');
cboCompareType.append('' + lbl_gte + ' ');
cboCompareType.append('' + lbl_is_empty + ' ');
cboCompareType.append('' + lbl_not_is_empty + ' ');
}
};
var appendDistinationValue4SendRoute = function(){
var isRemove = true;
var imgActionParamMapAdd = $('#property_imgActionParamMapAdd');
if(!(imgActionParamMapAdd.length == 0 || imgActionParamMapAdd.css('display') == 'none' || imgActionParamMapAdd.css("visibility") == "hidden")){
var imgActionParamMapAddVal = imgActionParamMapAdd.val();
switch(imgActionParamMapAddVal){
case CONST_ACTION_OPEN_MFR_N_RS:
isRemove = false;
break;
}
}
var cboActionDestinationFillValue = $('.actionDestinationFillEditorValueField .cboActionDestinationFillValue');
if(isRemove){
cboActionDestinationFillValue.find('.optionType-send-route').remove();
}else{
var optionItem = $(' ');
optionItem.attr('value', CONST_SEND_ROUTE_DISTANCE).empty().append(lbl_send_route_distance);
optionItem.insertBefore(cboActionDestinationFillValue.find('.optionType_other_value'));
//cboActionDestinationFillValue.append(optionItem);
optionItem = $(' ');
optionItem.attr('value', CONST_SEND_ROUTE_TRAVEL).empty().append(lbl_send_route_travel);
optionItem.insertBefore(cboActionDestinationFillValue.find('.optionType_other_value'));
//cboActionDestinationFillValue.append(optionItem);
optionItem = $(' ');
optionItem.attr('value', CONST_SEND_ROUTE_MAP).empty().append(lbl_send_route_map);
optionItem.insertBefore(cboActionDestinationFillValue.find('.optionType_other_value'));
//cboActionDestinationFillValue.append(optionItem);
}
}
var addOptionTypeClass = function(control, opt){
if(control == undefined){
return;
}
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){
opt.addClass('optionType_string');
}else if((control.type == 'inputFacingTable'
|| control.type == CONST_CTRL_TYPE_INPUT_TEXT
|| control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTTRENDS
|| control.type == CONST_CTRL_TYPE_INPUTSELECTONE
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE
|| control.type == CONST_CTRL_TYPE_INPUTDATE
|| control.type == CONST_CTRL_TYPE_INPUTIMAGE) && isVersion2_12()){
var optionType = 'string';
switch(control.type.toLowerCase()) {
case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase():
case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase():
case CONST_CTRL_KIND_INTEGER.toLowerCase():
case CONST_CTRL_KIND_DECIMAL.toLowerCase():
case CONST_CTRL_KIND_PERCENT.toLowerCase():
case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase():
optionType = 'number';
break;
default:
optionType = 'string';
break;
}
if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') {
optionType = 'string';
}
if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
switch(control.kind.toLowerCase()) {
case CONST_VALUE_DATE.toLowerCase():
optionType = 'date';
break;
case CONST_VALUE_DATE_SPACE_TIME.toLowerCase():
optionType = 'datetime';
break;
case CONST_VALUE_TIME.toLowerCase():
optionType = 'time';
break;
}
}else if(control.type == CONST_CTRL_TYPE_INPUTIMAGE) {
optionType = 'image';
}
opt.addClass('optionType_' + optionType);
}
}
var findNode = function(controls, selectedCtrlId, isEndIfExist, isIgnoreLabel, acceptCtrlList, isAddTableField, isAddRepeatField, isInTable, isInRepeat, isGetControlLabel){
if(isAddTableField == undefined){
isAddTableField = false;
}
if(isAddRepeatField == undefined){
isAddRepeatField = false;
}
if(isInTable == undefined){
isInTable = false;
}
if(isInRepeat == undefined){
isInRepeat = false;
}
var addNode = false;
var tmp = [];
var i = 0;
var tmpPage = [];
var iPage = 0;
var tmpTable = [];
var iTable = 0;
if(selectedCtrlId == undefined){
addNode = true;
}
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
if(isEndIfExist){
addNode = true;
}
return false;
}
if(isEndIfExist && addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findNode(control.children, selectedCtrlId, isEndIfExist, isIgnoreLabel, acceptCtrlList, isAddTableField, isAddRepeatField, false, true, isGetControlLabel);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
if(control.type == CONST_CTRL_TYPE_CTRLTABLE){
var ctrlData = control.type;
var optText = getOptionText(control, true);
tmpTable[iTable] = $(' ')
.attr(CONST_VALUE, control.id)
.attr(CONST_DATA, ctrlData)
.text(optText);
iTable++;
}
addNode = findNode(control.children, selectedCtrlId, isEndIfExist, isIgnoreLabel, acceptCtrlList, isAddTableField, isAddRepeatField, true, false, isGetControlLabel);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV){
addNode = findNode(control.children, selectedCtrlId, isEndIfExist, isIgnoreLabel, acceptCtrlList, isAddTableField, isAddRepeatField, false, false, isGetControlLabel);
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
addNode = findNode(control.children, selectedCtrlId, isEndIfExist, isIgnoreLabel, acceptCtrlList, isAddTableField, isAddRepeatField, false, false, isGetControlLabel);
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
_.each(control.children, function(controlGrd)
{
if(selectedCtrlId == controlGrd.id){
if(isEndIfExist){
addNode = true;
}
return false;
}
if(isEndIfExist && addNode){
return false;
}
if(isIgnoreLabel && controlGrd.type == 'inputLabel'){
return;
}
if(acceptCtrlList && !acceptCtrlList[controlGrd.type]){
return;
}
var ctrlData = controlGrd.type;
if(controlGrd.kind){
if(acceptCtrlList && acceptCtrlList[controlGrd.type]['kind'] != undefined && acceptCtrlList[controlGrd.type]['kind'] != controlGrd.kind){
if(Array.isArray(acceptCtrlList[controlGrd.type]['kind'])){
if(!acceptCtrlList[controlGrd.type]['kind'].includes(controlGrd.kind)){
return;
}
}else{
return;
}
}
ctrlData += '_' + controlGrd.kind;
}
if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP){
if(acceptCtrlList && acceptCtrlList[controlGrd.type]['isRetrieve'] != undefined && acceptCtrlList[controlGrd.type]['isRetrieve'] != controlGrd.isRetrieve){
return;
}
ctrlData = CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE;
}
var optText = getOptionText(controlGrd, isGetControlLabel);
tmp[i] = $(' ')
.attr(CONST_VALUE, controlGrd.id)
.attr(CONST_DATA, ctrlData)
.text(optText);
addOptionTypeClass(controlGrd, tmp[i]);
i++;
});
}else if(control.type == 'inputPageBreak'){
var pageName = iPage + 1;
if(control.label.eng !== undefined && jQuery.trim(control.label.eng) !== ''){
pageName = pageName + ' (' + control.label.eng + ')';
}
var ctrlData = control.type;
if(control.kind){
ctrlData += '_' + control.kind;
}
tmpPage[iPage] = $(' ')
.attr(CONST_VALUE, control.id)
.attr(CONST_DATA, ctrlData)
.text(pageName);
iPage++;
}else{
if(acceptCtrlList && !acceptCtrlList[control.type]){
}else if(isIgnoreLabel && control.type == 'inputLabel'){
}else{
var ctrlData = control.type;
if(control.kind){
if(acceptCtrlList && acceptCtrlList[control.type]['kind'] != undefined && acceptCtrlList[control.type]['kind'] != control.kind){
if(Array.isArray(acceptCtrlList[control.type]['kind'])){
if(!acceptCtrlList[control.type]['kind'].includes(control.kind)){
return;
}
}else{
return;
}
}
ctrlData += '_' + control.kind;
}
if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP){
if(acceptCtrlList && acceptCtrlList[control.type]['isRetrieve'] != undefined && acceptCtrlList[control.type]['isRetrieve'] != control.isRetrieve){
return;
}
ctrlData = CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE;
}
var optText = getOptionText(control, isGetControlLabel);
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr(CONST_DATA, ctrlData)
.text(optText);
addOptionTypeClass(control, tmp[i]);
i++;
}
}
});
if(isEndIfExist){
if(addNode){
if(isAddTableField == false && isAddRepeatField == false){
for(var j=i; j>0; j--){
stack[stackCount] = tmp[j-1];
stackCount++;
}
}else{
var isAdded = false;
if(isAddTableField && isInTable){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Table) ' + text);
stack[stackCount] = opt;
stackCount++;
}
isAdded = true;
}
if(isAddRepeatField && isInRepeat){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Repeat) ' + text);
stack[stackCount] = opt;
stackCount++;
}
isAdded = true;
}
if(!isAdded){
for(var j=i; j>0; j--){
stack[stackCount] = tmp[j-1];
stackCount++;
}
}
}
for(var j=iPage; j>0; j--){
stackPage[stackPageCount] = tmpPage[j-1];
stackPageCount++;
}
for(var j=iTable; j>0; j--){
stackTable[stackTableCount] = tmpTable[j-1];
stackTableCount++;
}
return true;
}else{
if(isAddTableField && isInTable){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Table) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
if(isAddRepeatField && isInRepeat){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Repeat) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
return false;
}
}else{
for(var j=i; j>0; j--){
stack[stackCount] = tmp[j-1];
stackCount++;
}
for(var j=iPage; j>0; j--){
stackPage[stackPageCount] = tmpPage[j-1];
stackPageCount++;
}
for(var j=iTable; j>0; j--){
stackTable[stackTableCount] = tmpTable[j-1];
stackTableCount++;
}
return true;
}
}
// function for location destination field
var addLocationDestinationFillField = function(controls, ctrlId){
//var cboActionDestinationFillControl = $('li.destinationdata .cboActionDestinationFillField');
var cboActionDestinationFillControl = $('li.destinationdata select').not('.cboActionDestinationMap');
var cboActionDestinationFillMap = $('li.destinationdata').find('.cboActionDestinationMap');
var cboActionDestinationFillFieldVals = [];
var i =0;
if(cboActionDestinationFillControl.length > 1){
_.each(cboActionDestinationFillControl, function(item){
cboActionDestinationFillFieldVals[i] = $(item).val();
i ++;
});
cboActionDestinationFillFieldVals[cboActionDestinationFillFieldVals.length] = cboActionDestinationFillMap.val();
}else{
cboActionDestinationFillFieldVals[0] = cboActionDestinationFillControl.val();
}
cboActionDestinationFillControl.empty();
cboActionDestinationFillControl.append($(' '));
cboActionDestinationFillMap.empty();
cboActionDestinationFillMap.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTDATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTIMAGE] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
var tmpOption = stack[j-1];
if('optionType_image' === tmpOption.attr('class')){
cboActionDestinationFillMap.append(tmpOption.clone());
} else{
cboActionDestinationFillControl.append(tmpOption.clone());
}
}
}
// CO-4086 Add user variables as destination field targets start
if(isVersion(VERSION_ADD_USER_VARIABLE_4_DES)){
appendUserVariableWithClass(cboActionDestinationFillControl, CONST_VARIABLE_KIND_EDIT);
}
// CO-4086 Add user variables as destination field targets end
if(cboActionDestinationFillControl.length > 1){
i = 0;
_.each(cboActionDestinationFillControl, function(item){
$(item).val(cboActionDestinationFillFieldVals[i]);
i ++;
});
cboActionDestinationFillMap.val(cboActionDestinationFillFieldVals[cboActionDestinationFillFieldVals.length-1]);
}else{
cboActionDestinationFillControl.val(cboActionDestinationFillFieldVals[0]);
}
};
var addLocationDestinationFillValue = function(controls, ctrlId){
var cboActionDestinationFillValue = $('li.destinationdata .cboActionDestinationFillValue');
var cboActionDestinationFillValueVals = [];
var i =0;
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
cboActionDestinationFillValueVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillValueVals[0] = cboActionDestinationFillValue.val();
}
cboActionDestinationFillValue.empty();
cboActionDestinationFillValue.append($(' '));
cboActionDestinationFillValue.append($('' + lbl_location_lat + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_lon + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_alt + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_acc + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_date + ' '));
cboActionDestinationFillValue.append($('' + lbl_location_map + ' '));
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
$(item).val(cboActionDestinationFillValueVals[i]).trigger('change');
i ++;
});
}else{
cboActionDestinationFillValue.val(cboActionDestinationFillValueVals[0]).trigger('change');
}
};
var loadLocationDestinationData = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_LOCATION_STYLE) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLOCATION){
addLocationDestinationFillField(controls, properties.id.value);
addLocationDestinationFillValue(controls, properties.id.value);
var $actionDestinationFillValue = $('.propertyList:visible').find('li.destinationdata .actionDestinationFillEditorValueField');
$actionDestinationFillValue.find('.cboActionDestinationFillField').trigger('change');
}
}
// function for get address field
var addGetAddressFillField = function(controls, ctrlId){
//var cboActionDestinationFillControl = $('li.addressData .cboActionDestinationFillField');
var cboActionDestinationFillControl = $('li.addressData select');
var cboActionDestinationFillFieldVals = [];
var i =0;
if(cboActionDestinationFillControl.length > 1){
_.each(cboActionDestinationFillControl, function(item){
cboActionDestinationFillFieldVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillFieldVals[0] = cboActionDestinationFillControl.val();
}
cboActionDestinationFillControl.empty();
cboActionDestinationFillControl.append($(' '));
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboActionDestinationFillControl.append(stack[j-1].clone());
}
}
// CO-4086 Add user variables as destination field targets start
if(isVersion(VERSION_ADD_USER_VARIABLE_4_DES)){
appendUserVariableWithClass(cboActionDestinationFillControl, CONST_VARIABLE_KIND_EDIT);
}
// CO-4086 Add user variables as destination field targets end
if(cboActionDestinationFillControl.length > 1){
i = 0;
_.each(cboActionDestinationFillControl, function(item){
$(item).val(cboActionDestinationFillFieldVals[i]);
i ++;
});
}else{
cboActionDestinationFillControl.val(cboActionDestinationFillFieldVals[0]);
}
};
var addGetAddressFillValue = function(controls, ctrlId){
var cboActionDestinationFillValue = $('li.addressData .cboActionDestinationFillValue');
var cboActionDestinationFillValueVals = [];
var i =0;
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
cboActionDestinationFillValueVals[i] = $(item).val();
i ++;
});
}else{
cboActionDestinationFillValueVals[0] = cboActionDestinationFillValue.val();
}
cboActionDestinationFillValue.empty();
cboActionDestinationFillValue.append($(' '));
cboActionDestinationFillValue.append($('' + lbl_complete_address + ' '));
cboActionDestinationFillValue.append($('' + lbl_street + ' '));
cboActionDestinationFillValue.append($('' + lbl_city + ' '));
cboActionDestinationFillValue.append($('' + lbl_state + ' '));
cboActionDestinationFillValue.append($('' + lbl_zip + ' '));
if(cboActionDestinationFillValue.length > 1){
i = 0;
_.each(cboActionDestinationFillValue, function(item){
$(item).val(cboActionDestinationFillValueVals[i]).trigger('change');
i ++;
});
}else{
cboActionDestinationFillValue.val(cboActionDestinationFillValueVals[0]).trigger('change');
}
};
var loadAddressData = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_LOCATION_STYLE) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLOCATION){
addGetAddressFillField(controls, properties.id.value);
addGetAddressFillValue(controls, properties.id.value);
var $actionDestinationFillValue = $('.propertyList:visible').find('li.addressData .actionDestinationFillEditorValueField');
$actionDestinationFillValue.find('.cboActionDestinationFillField').trigger('change');
}
}
var addNumberOfCopyField = function(controls, ctrlId){
var cboNumberOfCopyQues = $('#property_numberOfCopyQues');
var cboNumberOfCopyQuesVals = cboNumberOfCopyQues.val();
var i =0;
cboNumberOfCopyQues.empty();
cboNumberOfCopyQues.append($(' '));
stack = [];
stackCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = {kind: 'Integer'};
acceptCtrlList[CONST_CTRL_TYPE_INPUTCOUNTER] = true;
var end = findNode(controls, ctrlId, false, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboNumberOfCopyQues.append(stack[j-1].clone());
}
}
cboNumberOfCopyQues.val(cboNumberOfCopyQuesVals);
};
function nextInvLuFieldIndex(invFieldID){
var id = parseInt(invFieldID);
var i = 0;
var nextId = id - i;
var searchID = '#selectedCtrlFocus' + nextId;
while($(searchID).length>0){
i++;
nextId = id - i;
searchID = '#selectedCtrlFocus' + nextId;
}
return nextId.toString();
}
function getLookupFieldName(lookupTable, colKey){
var element = lookupdatainf.LookupTablesHeaders[lookupTable][colKey];
var startPos = element.indexOf("[");
var endPos = element.indexOf("]");
if(startPos > 0 && endPos > startPos){
var keyStr = element.substring(startPos + 1, endPos);
var fieldName = element.substring(0, startPos);
element = fieldName +' (table)';
}
return element;
}
var loadShippingCombo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_INPUT_SHIPPING) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUT_SHIPPING){
var addQuestionToShippingCbo = function(controls, selectedCtrlId){
var cboFromAddress = $('li.fromAddress .editorSelect');
var cboToAddress = $('li.toAddress .editorSelect');
var cboFromName = $('li.fromName .editorSelect');
var cboToName = $('li.toName .editorSelect');
var cboServiceCarrier = $('li.serviceCarrier .editorSelect');
var cboLength = $('li.length .editorSelect');
var cboWidth = $('li.width .editorSelect');
var cboHeight = $('li.height .editorSelect');
//var cboDistanceUnit = $('li.shipDistanceUnit .editorSelect');
var cboWeight = $('li.weight .editorSelect');
var cboParcelTemplate = $('li.parcelTemplate .editorSelect');
//var cboMassUnit = $('li.massUnit .editorSelect');
//var cboFileFormat = $('li.fileFormat .editorSelect');
var cboFromAddressVal = cboFromAddress.val();
var cboToAddressVal = cboToAddress.val();
var cboFromNameVal = cboFromName.val();
var cboToNameVal = cboToName.val();
//var cboServiceCarrierVal = cboServiceCarrier.val();
var cboLengthVal = cboLength.val();
var cboWidthVal = cboWidth.val();
var cboHeightVal = cboHeight.val();
//var cboDistanceUnitVal = cboDistanceUnit.val();
var cboWeightVal = cboWeight.val();
var cboParcelTemplateVal = cboParcelTemplate.val();
//var cboMassUnitVal = cboMassUnit.val();
//var cboFileFormatVal = cboFileFormat.val();
/*cboServiceCarrier.off().change(function(){
var serviceCarier = $(this).val();
if(serviceCarier != undefined){
var arr = serviceCarier.split('|');
loadServiceLevelCombo(arr[0]);
}else{
loadServiceLevelCombo(serviceCarier);
}
})*/
cboFromAddress.empty();
cboFromAddress.append('' + lbl_select_opt + ' ');
cboToAddress.empty();
cboToAddress.append('' + lbl_select_opt + ' ');
cboFromName.empty();
cboFromName.append('' + lbl_select_opt + ' ');
cboToName.empty();
cboToName.append('' + lbl_select_opt + ' ');
//cboServiceCarrier.empty();
//cboServiceCarrier.append('' + lbl_select_opt + ' ');
cboLength.empty();
cboLength.append('' + lbl_select_opt + ' ');
cboWidth.empty();
cboWidth.append('' + lbl_select_opt + ' ');
cboHeight.empty();
cboHeight.append('' + lbl_select_opt + ' ');
/*cboDistanceUnit.empty();
cboDistanceUnit.append('' + lbl_select_opt + ' ');*/
cboWeight.empty();
cboWeight.append('' + lbl_select_opt + ' ');
/*cboMassUnit.empty();
cboMassUnit.append('' + lbl_select_opt + ' ');*/
/*cboFileFormat.empty();
cboFileFormat.append('' + lbl_select_opt + ' ');*/
cboParcelTemplate.empty();
cboParcelTemplate.append('' + lbl_select_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Text widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboFromAddress.append(inputSourceStack[j-1].clone());
cboToAddress.append(inputSourceStack[j-1].clone());
cboFromName.append(inputSourceStack[j-1].clone());
cboToName.append(inputSourceStack[j-1].clone());
cboParcelTemplate.append(inputSourceStack[j-1].clone());
//cboServiceCarrier.append(inputSourceStack[j-1].clone());
//cboFileFormat.append(inputSourceStack[j-1].clone());
}
cboFromAddress.val(cboFromAddressVal);
cboFromAddress.trigger('change');
cboToAddress.val(cboToAddressVal);
cboToAddress.trigger('change');
cboFromName.val(cboFromNameVal);
cboFromName.trigger('change');
cboToName.val(cboToNameVal);
cboToName.trigger('change');
//cboServiceCarrier.val(cboServiceCarrierVal);
//cboServiceCarrier.trigger('change');
//cboFileFormat.val(cboFileFormatVal);
//cboFileFormat.trigger('change');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Numeric widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboLength.append(inputSourceStack[j-1].clone());
cboWidth.append(inputSourceStack[j-1].clone());
cboHeight.append(inputSourceStack[j-1].clone());
//cboDistanceUnit.append(inputSourceStack[j-1].clone());
cboWeight.append(inputSourceStack[j-1].clone());
//cboMassUnit.append(inputSourceStack[j-1].clone());
}
cboLength.val(cboLengthVal);
cboLength.trigger('change');
cboWidth.val(cboWidthVal);
cboWidth.trigger('change');
cboHeight.val(cboHeightVal);
cboHeight.trigger('change');
/*cboDistanceUnit.val(cboDistanceUnitVal);
cboDistanceUnit.trigger('change');*/
cboWeight.val(cboWeightVal);
cboWeight.trigger('change');
/*cboMassUnit.val(cboMassUnitVal);
cboMassUnit.trigger('change');*/
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'ChooseOne widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboParcelTemplate.append(inputSourceStack[j-1].clone());
}
cboParcelTemplate.val(cboParcelTemplateVal);
cboParcelTemplate.trigger('change');
}
$('ul.propertyList.inputShipping').off('InputSourceChange')
.on('InputSourceChange', function(event){
addQuestionToShippingCbo(controls, properties.id.value);
}).trigger('InputSourceChange');
}
}
var loadShippingDestinationCombo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_INPUT_SHIPPING) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUT_SHIPPING){
var addQuestionToShippingDestinationCbo = function(controls, selectedCtrlId){
var cboCarrier = $('li.carrier .editorSelect');
var cboServiceLevel = $('li.level .editorSelect');
var cboTrackingNumber = $('li.trackingNumber .editorSelect');
var cboTrackingUrl = $('li.trackingUrl .editorSelect');
var cboRateAmount = $('li.rateAmount .editorSelect');
var cboRateCurrency = $('li.rateCurrency .editorSelect');
var cboEstimatedDays = $('li.estimatedDays .editorSelect');
var cboLabelUrl = $('li.labelUrl .editorSelect');
var cboLabelImage = $('li.labelImage .editorSelect');
var cboCarrierVal = cboCarrier.val();
var cboServiceLevelVal = cboServiceLevel.val();
var cboTrackingNumberVal = cboTrackingNumber.val();
var cboTrackingUrlVal = cboTrackingUrl.val();
var cboRateAmountVal = cboRateAmount.val();
var cboRateCurrencyVal = cboRateCurrency.val();
var cboEstimatedDaysVal = cboEstimatedDays.val();
var cboLabelUrlVal = cboLabelUrl.val();
var cboLabelImageVal = cboLabelImage.val();
cboCarrier.empty();
cboCarrier.append('' + lbl_select_opt + ' ');
cboServiceLevel.empty();
cboServiceLevel.append('' + lbl_select_opt + ' ');
cboTrackingNumber.empty();
cboTrackingNumber.append('' + lbl_select_opt + ' ');
cboTrackingUrl.empty();
cboTrackingUrl.append('' + lbl_select_opt + ' ');
cboRateAmount.empty();
cboRateAmount.append('' + lbl_select_opt + ' ');
cboRateCurrency.empty();
cboRateCurrency.append('' + lbl_select_opt + ' ');
cboEstimatedDays.empty();
cboEstimatedDays.append('' + lbl_select_opt + ' ');
cboLabelUrl.empty();
cboLabelUrl.append('' + lbl_select_opt + ' ');
cboLabelImage.empty();
cboLabelImage.append('' + lbl_select_opt + ' ');
destinationFieldStack = [];
destinationFieldStackCount = 0;
findDestinationField(controls, selectedCtrlId, 0, false);
for(var j=destinationFieldStackCount; j>0; j--){
cboCarrier.append(destinationFieldStack[j-1].clone());
cboServiceLevel.append(destinationFieldStack[j-1].clone());
cboTrackingNumber.append(destinationFieldStack[j-1].clone());
cboTrackingUrl.append(destinationFieldStack[j-1].clone());
cboRateAmount.append(destinationFieldStack[j-1].clone());
cboRateCurrency.append(destinationFieldStack[j-1].clone());
cboEstimatedDays.append(destinationFieldStack[j-1].clone());
cboLabelUrl.append(destinationFieldStack[j-1].clone());
}
cboCarrier.val(cboCarrierVal);
cboCarrier.trigger('change');
cboServiceLevel.val(cboServiceLevelVal);
cboServiceLevel.trigger('change');
cboTrackingNumber.val(cboTrackingNumberVal);
cboTrackingNumber.trigger('change');
cboTrackingUrl.val(cboTrackingUrlVal);
cboTrackingUrl.trigger('change');
cboRateAmount.val(cboRateAmountVal);
cboRateAmount.trigger('change');
cboRateCurrency.val(cboRateCurrencyVal);
cboRateCurrency.trigger('change');
cboEstimatedDays.val(cboEstimatedDaysVal);
cboEstimatedDays.trigger('change');
cboLabelUrl.val(cboLabelUrlVal);
cboLabelUrl.trigger('change');
destinationFieldStack = [];
destinationFieldStackCount = 0;
var destinationWidgets = {'inputImage': true};
findDestinationField(controls, selectedCtrlId, 0, false, destinationWidgets);
for(var j=destinationFieldStackCount; j>0; j--){
cboLabelImage.append(destinationFieldStack[j-1].clone());
}
cboLabelImage.val(cboLabelImageVal);
cboLabelImage.trigger('change');
}
$('ul.propertyList.inputShipping').off('DestinationChange')
.on('DestinationChange', function(event){
addQuestionToShippingDestinationCbo(controls, properties.id.value);
}).trigger('DestinationChange');
}
}
var loadServiceLevelCombo = function(serviceCarier, selectedCtrlId, cboServiceLevel){
if(cboServiceLevel == undefined){
cboServiceLevel = $('li.serviceLevel .editorSelect');
}
var cboServiceLevelVal = cboServiceLevel.val();
cboServiceLevel.empty();
cboServiceLevel.append('' + lbl_select_opt + ' ');
switch(serviceCarier){
case 'apc_postal':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel['apc_postal'] = {apc_postal_parcelconnect_expedited:'parcelConnect Expedited',
apc_postal_parcelconnect_priority:'parcelConnect Priority',
apc_postal_parcelconnect_priority_delcon:'parcelConnect Priority Delcon',
apc_postal_parcelconnect_priority_pqw:'parcelConnect Priority PQW',
apc_postal_parcelconnect_book_service:'parcelConnect Book Service',
apc_postal_parcelconnect_standard:'parcelConnect Standard',
apc_postal_parcelconnect_epmi:'parcelConnect ePMI',
apc_postal_parcelconnect_epacket:'parcelConnect ePacket',
apc_postal_parcelconnect_epmei:'parcelConnect ePMEI'};
}
break;
case 'australia_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {australia_post_express_post:'Express Post',
australia_post_parcel_post:'Parcel Post',
australia_post_pack_and_track_international:'Pack and Track International',
australia_post_international_airmail:'International Airmail',
australia_post_express_post_international:'Express Post International',
australia_post_express_courier_international:'Express Courier International',
australia_post_international_express:'International Express',
australia_post_international_standard:'International Standard',
australia_post_international_economy:'International Economy'};
}
break;
case 'aramex':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'asendia_us':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {asendia_us_priority_tracked:'Asendia USA Priority Tracked',
asendia_us_international_express:'Asendia USA International Express',
asendia_us_international_priority_airmail:'Asendia USA International Priority Airmail',
asendia_us_international_surface_airlift:'Asendia USA International Surface Air Lift',
asendia_us_priority_mail_international:'Asendia USA Priority Mail International',
asendia_us_priority_mail_express_international:'Asendia USA Priority Mail Express International',
asendia_us_epacket:'Asendia USA International ePacket',
asendia_us_other:'Asendia USA Other Services (custom)'};
}
break;
case 'axlehire':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {axlehire_next_day:'Next Day'};
}
break;
case 'borderguru':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'boxberry':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'bring':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'canada_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {canada_post_regular_parcel:'Regular Parcel',
canada_post_expedited_parcel:'Expedited Parcel',
canada_post_priority:'Priority',
canada_post_xpresspost:'Xpresspost',
canada_post_xpresspost_international:'Xpresspost International',
canada_post_xpresspost_usa:'Xpresspost USA',
canada_post_expedited_parcel_usa:'Expedited Parcel USA',
canada_post_tracked_packet_usa:'Tracked Packet USA',
canada_post_small_packet_usa_air:'Small Packet USA Air',
canada_post_tracked_packet_international:'Tracked Packet International',
canada_post_small_packet_international_air:'Small Package International Air'};
}
break;
case 'cdl':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {cdl_next_day:'Next Day'};
}
break;
case 'correios_br':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'correos_espana':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'collect_plus':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'couriersplease':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {couriersplease_domestic_priority_auth_to_leave:'Domestic Priority - Authority To Leave/POPPoints',
couriersplease_domestic_priority_sign_required:'Domestic Priority - Signature Required',
couriersplease_gold_domestic_auth_to_leave:'Gold Domestic - Authority To Leave/POPPoints',
couriersplease_gold_domestic_sign_required:'Gold Domestic - Signature Required',
couriersplease_off_peak_auth_to_leave:'Off Peak - Authority To Leave/POPPoints',
couriersplease_off_peak_sign_required:'Off Peak - Signature Required',
couriersplease_parcel_auth_to_leave:'Parcel - Authority To Leave',
couriersplease_parcel_sign_required:'Parcel - Signature Required',
couriersplease_road_express:'Road Express',
couriersplease_satchel_auth_to_leave:'Satchel - Authority To Leave',
couriersplease_satchel_sign_required:'Satchel - Signature Required'};
}
break;
case 'deutsche_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {deutsche_post_postkarte:'Postkarte',
deutsche_post_standardbrief:'Standardbrief',
deutsche_post_kompaktbrief:'Kompaktbrief',
deutsche_post_grossbrief:'Grossbrief',
deutsche_post_maxibrief:'Maxibrief',
deutsche_post_maxibrief_plus:'Maxibrief Plus',
deutsche_post_warenpost_international_xs:'Warenpost International XS',
deutsche_post_warenpost_international_s:'Warenpost International S',
deutsche_post_warenpost_international_m:'Warenpost International M',
deutsche_post_warenpost_international_l:'Warenpost International L'};
}
break;
case 'dhl_benelux':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'dhl_germany':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {dhl_germany_europaket:'DHL Germany Europaket',
dhl_germany_paket:'DHL Germany Paket',
dhl_germany_paket_connect:'DHL Germany Paket Connect',
dhl_germany_paket_international:'DHL Germany Paket International',
dhl_germany_paket_priority:'DHL Germany Paket Priority',
dhl_germany_paket_sameday:'DHL Germany Paket Sameday'};
}
break;
case 'dhl_ecommerce':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {dhl_ecommerce_marketing_parcel_expedited:'Marketing Parcel Expedited',
dhl_ecommerce_globalmail_business_ips:'Parcel International Expedited',
dhl_ecommerce_parcel_international_direct:'GlobalMail Business Standard',
dhl_ecommerce_parcels_expedited_max:'Parcels Expedited Max',
dhl_ecommerce_bpm_ground:'Bounded Printed Matter Ground',
dhl_ecommerce_priority_expedited:'Priority Expedited',
dhl_ecommerce_globalmail_packet_ipa:'GlobalMail Packet Priority',
dhl_ecommerce_globalmail_packet_isal:'GlobalMail Packet Standard',
dhl_ecommerce_easy_return_plus:'Easy Return Plus',
dhl_ecommerce_marketing_parcel_ground:'Marketing Parcel Ground',
dhl_ecommerce_first_class_parcel_expedited:'First Class Parcel Expedited',
dhl_ecommerce_globalmail_business_priority:'Parcel International Standard',
dhl_ecommerce_parcels_expedited:'Parcels Expedited',
dhl_ecommerce_globalmail_business_isal:'Parcel International Direct',
dhl_ecommerce_parcel_plus_expedited_max:'Parcel Plus Expedited Max',
dhl_ecommerce_globalmail_packet_plus:'GlobalMail Packet IPA',
dhl_ecommerce_parcels_ground:'Parcels Ground',
dhl_ecommerce_expedited:'Expedited',
dhl_ecommerce_parcel_plus_ground:'Parcel Plus Ground',
dhl_ecommerce_parcel_international_standard:'GlobalMail Business ISAL',
dhl_ecommerce_bpm_expedited:'Bounded Printed Matter Expedited',
dhl_ecommerce_parcel_international_expedited:'GlobalMail Business IPA',
dhl_ecommerce_globalmail_packet_priority:'GlobalMail Packet ISAL',
dhl_ecommerce_easy_return_light:'Easy Return Light',
dhl_ecommerce_parcel_plus_expedited:'Parcel Plus Expedited',
dhl_ecommerce_globalmail_business_standard:'GlobalMail Packet Plus',
dhl_ecommerce_ground:'Ground',
dhl_ecommerce_globalmail_packet_standard:'GlobalMail Business Priority'};
}
break;
case 'dhl_express':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {dhl_express_domestic_express_doc:'Domestic Express Doc',
dhl_express_economy_select_doc:'Economy Select Doc',
dhl_express_worldwide_nondoc:'Express Worldwide Nondoc',
dhl_express_worldwide_doc:'Express Worldwide Doc',
dhl_express_worldwide:'Worldwide',
dhl_express_worldwide_eu_doc:'Express Worldwide EU Doc',
dhl_express_break_bulk_express_doc:'Break Bulk Express Doc',
dhl_express_express_9_00_nondoc:'Express 9:00 NonDoc',
dhl_express_economy_select_nondoc:'Economy Select NonDoc',
dhl_express_break_bulk_economy_doc:'Break Bulk Economy Doc',
dhl_express_express_9_00_doc:'Express 9:00 Doc',
dhl_express_express_10_30_doc:'Express 10:30 Doc',
dhl_express_express_10_30_nondoc:'Express 10:30 NonDoc',
dhl_express_express_12_00_doc:'Express 12:00 Doc',
dhl_express_europack_nondoc:'Europack NonDoc',
dhl_express_express_envelope_doc:'Express Envelope Doc',
dhl_express_express_12_00_nondoc:'Express 12:00 NonDoc',
dhl_express_express_12_doc:'Domestic Express 12:00',
dhl_express_worldwide_b2c_doc:'Express Worldwide (B2C) Doc',
dhl_express_worldwide_b2c_nondoc:'Express Worldwide (B2C) NonDoc',
dhl_express_medical_express:'Medical Express',
dhl_express_express_easy_nondoc:'Express Easy NonDoc'};
}
break;
case 'dpd_germany':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'dpd_uk':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'estafeta':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'fastway_australia':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {fastway_australia_parcel:'Parcel',
fastway_australia_satchel:'Satchel',
fastway_australia_box_small:'Box Small',
fastway_australia_box_medium:'Box Medium',
fastway_australia_box_large:'Box Large'};
}
break;
case 'fedex':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel['fedex'] = {fedex_ground:'FedEx Ground®',
fedex_home_delivery:'FedEx Home Delivery®',
fedex_smart_post:'FedEx SmartPost®',
fedex_2_day:'FedEx 2Day®',
fedex_2_day_am:'FedEx 2Day® A.M.',
fedex_express_saver:'FedEx Express Saver®',
fedex_standard_overnight:'FedEx Standard Overnight®',
fedex_priority_overnight:'FedEx Priority Overnight®',
fedex_first_overnight:'FedEx First Overnight®',
fedex_freight_priority:'FedEx Freight® Priority',
fedex_next_day_freight:'FedEx Next Day Freight',
fedex_freight_economy:'FedEx Freight® Economy',
fedex_first_freight:'FedEx First Freight',
fedex_international_economy:'FedEx International Economy®',
fedex_international_priority:'FedEx International Priority®',
fedex_international_first:'FedEx International First®',
fedex_europe_first_international_priority:'FedEx International First®',
international_economy_freight:'FedEx International Economy® Freight',
international_priority_freight:'FedEx International Priority® Freight'};
}
break;
case 'gls_de':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {gls_deutschland_business_parcel:'Business Parcel'};
}
break;
case 'gls_fr':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {gls_france_business_parcel:'Business Parcel'};
}
break;
case 'globegistics':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {globegistics_priority_mail_express_international:'Globegistics Priority Mail Express International',
globegistics_priority_mail_international:'Globegistics Priority Mail International',
globegistics_priority_mail_express_international_pds:'Globegistics Priority Mail Express International PreSort Drop Ship',
globegistics_priority_mail_international_pds:'Globegistics Priority Mail International PreSort Drop Ship',
globegistics_epacket:'Globegistics ePacket',
globegistics_ecom_tracked_ddp:'Globegistics eCom Tracked DDP',
globegistics_ecom_packet_ddp:'Globegistics eCom Packet DDP',
globegistics_ecom_priority_mail_international_ddp:'Globegistics eCom Priority Mail International DDP',
globegistics_ecom_priority_mail_express_international_ddp:'Globegistics eCom Priority Mail Express International DDP',
globegistics_ecom_extra:'Globegistics eCom Extra',
globegistics_ecom_international_priority_airmail:'Globegistics eCom International Priority Airmail',
globegistics_ecom_international_surface_airlift:'Globegistics eCom International Surface Air Lift'};
}
break;
case 'gophr':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'gso':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'hermes_uk':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {hermes_uk_parcelshop:'ParcelShop',
hermes_uk_home_delivery:'Home Delivery'};
}
break;
case 'hongkong_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'lasership':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {lasership_routed_delivery:'Routed Delivery'};
}
break;
case 'lso':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {lso_ground:'Ground',
lso_economy_next_day:'Economy Next Day',
lso_saturday_delivery:'Saturday Delivery',
lso_2nd_day:'2nd Day',
lso_priority_next_day:'Priority Next Day',
lso_early_overnight:'Early Overnight'};
}
break;
case 'mondial_relay':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {mondial_relay_pointrelais:'Point Relais'};
}
break;
case 'new_zealand_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'newgistics':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {newgistics_parcel_select_lightweight:'Parcel Select Lightweight',
newgistics_parcel_select:'Parcel Select',
newgistics_priority_mail:'Priority Mail',
newgistics_first_class_mail:'First Class Mail'};
}
break;
case 'nippon_express':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'ontrac':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {ontrac_ground:'Ground',
ontrac_sunrise_gold:'Sunrise Gold',
ontrac_sunrise:'Sunrise'};
}
break;
case 'orangeds':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'parcel':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {parcelforce_express48:'Express 48',
parcelforce_express24:'Express 24',
parcelforce_expressam:'Express AM'};
}
break;
case 'pcf':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {pcf_standard:'Standard',
pcf_standard_am:'Standard AM',
pcf_second_day:'Second Day'};
}
break;
case 'posti':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'purolator':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {purolator_ground:'Ground',
purolator_ground9_am:'Ground 9am',
purolator_ground1030_am:'Ground 10:30am',
purolator_ground_distribution:'Ground Distribution',
purolator_ground_evening:'Ground Evening',
purolator_ground_us:'Ground US',
purolator_express:'Express',
purolator_express9_am:'Express 9am',
purolator_express1030_am:'Express 10am',
purolator_express_evening:'Express Evening',
purolator_express_us:'Express US',
purolator_express_us9_am:'Express US 9am',
purolator_express_us1030_am:'Express US 10:30am',
purolator_express_us1200:'Express US 12pm',
purolator_express_international:'Express International',
purolator_express_international9_am:'Express International 9am',
purolator_express_international1030_am:'Express International 10:30am',
purolator_express_international1200:'Express International 12pm'};
}
break;
case 'rr_donnelley':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {rr_donnelley_domestic_economy_parcel:'Domestic Economy Parcel',
rr_donnelley_domestic_priority_parcel:'Domestic Priority Parcel',
rr_donnelley_domestic_parcel_bpm:'Domestic Parcel BPM',
rr_donnelley_priority_domestic_priority_parcel_bpm:'Domestic Priority Parcel BPM',
rr_donnelley_priority_parcel_delcon:'International Priority Parcel DelCon',
rr_donnelley_priority_parcel_nondelcon:'International Priority Parcel NonDelcon',
rr_donnelley_economy_parcel:'Economy Parcel Service',
rr_donnelley_ipa:'International Priority Airmail (IPA)',
rr_donnelley_courier:'International Courier',
rr_donnelley_isal:'International Surface Air Lift (ISAL)',
rr_donnelley_epacket:'e-Packet',
rr_donnelley_pmi:'Priority Mail International',
rr_donnelley_emi:'Express Mail International'};
}
break;
case 'russian_post':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'sendle':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = {sendle_parcel:'Sendle Parcel'};
}
break;
case 'skypostal':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'stuart':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
case 'ups':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel['ups'] = {ups_standard:'Standard℠',
ups_ground:'Ground',
ups_saver:'Saver®',
ups_3_day_select:'3 Day Select®',
ups_second_day_air:'2nd Day Air®',
ups_second_day_air_am:'2nd Day Air® A.M.',
ups_next_day_air:'Next Day Air®',
ups_next_day_air_saver:'Next Day Air Saver®',
ups_next_day_air_early_am:'Next Day Air® Early',
ups_mail_innovations_domestic:'Mail Innovations (domestic)',
ups_surepost:'Surepost',
ups_surepost_bound_printed_matter:'SurePost® Bound Printed Matter',
ups_surepost_lightweight:'Surepost Lightweight',
ups_surepost_media:'SurePost® Media',
ups_express:'Express®',
ups_express_1200:'Express 12:00',
ups_express_plus:'Express Plus®',
ups_expedited:'Expedited®'};
}
break;
case 'usps':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel['usps'] = {usps_priority:'Priority Mail',
usps_priority_express:'Priority Mail Express',
usps_first:'First Class Mail/Package',
usps_parcel_select:'Parcel Select',
usps_media_mail:'Media Mail, only for existing Shippo customers with grandfathered Media Mail option.',
usps_priority_mail_international:'Priority Mail International',
usps_priority_mail_express_international:'Priority Mail Express International',
usps_first_class_package_international_service:'First Class Package International'};
}
break;
case 'yodel':
if(serviceLevel[serviceCarier] == undefined){
serviceLevel[serviceCarier] = undefined;
}
break;
}
addJsonObjToCombo(cboServiceLevel, serviceLevel[serviceCarier]);
if(isVersion(VERSION_ADD_TEXT_CHOOSE_ONE_TO_CARRIER_N_LEVEL)){
addTextChooseOneControlToCombo(cboServiceLevel, selectedCtrlId);
}
if(serviceLevel[serviceCarier] == undefined){
//$('li.serviceLevel .serviceLevel').addClass(CONST_CSS_CLASS_HIDE_SESSION);
cboServiceLevelVal = '';
}else{
//$('li.serviceLevel .serviceLevel').removeClass(CONST_CSS_CLASS_HIDE_SESSION);
}
cboServiceLevel.val(cboServiceLevelVal);
if(cboServiceLevel.val() != cboServiceLevelVal){
cboServiceLevel.val('');
}
cboServiceLevel.trigger('change');
}
var addJsonObjToCombo = function(cbo, jsonObj){
cbo.empty();
cbo.append('' + lbl_select_opt + ' ');
if(jsonObj == undefined){
return;
}
_.each(jsonObj, function(value, key)
{
var opt = $(' ');
opt.attr('value', key).append(value);
cbo.append(opt);
})
}
var addTextChooseOneControlToCombo = function(cbo, selectedCtrlId){
var cboVal = cbo.val();
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Text|ChooseOne widget';
var controls = odkmaker.data.extract().controls;
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cbo.append(inputSourceStack[j-1].clone());
}
cbo.val(cboVal);
}
var loadAuditInputQuestion = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_ACTION_AUDIT) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
var addQuestionToInputQuestion = function(controls, selectedCtrlId){
var cboInputQuestion = $('li.auditInputQuestion .editorSelect');
var cboInputQuestionVal = cboInputQuestion.val();
cboInputQuestion.empty();
cboInputQuestion.append('' + lbl_sel_question + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = true;
var isAddTableField = true;
var isAddRepeatField = true;
var isInTable = false;
var isInRepeat = false;
var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList, isAddTableField, isAddRepeatField, isInTable, isInRepeat);
if(end){
for(var j=stackCount; j>0; j--){
cboInputQuestion.append(stack[j-1].clone());
}
}
cboInputQuestion.val(cboInputQuestionVal);
cboInputQuestion.trigger('change');
}
$('ul.propertyList.inputAction').off('AuditDataChange')
.on('AuditDataChange', function(event){
addQuestionToInputQuestion(controls, properties.id.value);
}).trigger('AuditDataChange');
}
}
var loadAuditDataLookup = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_ACTION_AUDIT) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
var addQuestionToAuditDataLookup = function(controls, selectedCtrlId){
var cboControl = $('li.auditDataLookup .editorSelect');
var cboControlVal = cboControl.val();
cboControl.empty();
cboControl.append('' + lbl_sel_question + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList);
if(end){
for(var j=stackCount; j>0; j--){
cboControl.append(stack[j-1].clone());
}
}
cboControl.val(cboControlVal);
cboControl.trigger('change');
}
$('ul.propertyList.inputAction').off('AuditDataChange')
.on('AuditDataChange', function(event){
addQuestionToAuditDataLookup(controls, properties.id.value);
}).trigger('AuditDataChange');
}
}
var findTableNRepeatFields = function(controls, selectedCtrlId){
var addNode = false;
var tmp = [];
var i = 0;
var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : '';
_.each(controls, function(controlTmp)
{
if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE ||
controlTmp.type == CONST_CTRL_TYPE_GROUP){
var prefix = '(Table) ';
var addCls = 'table_item';
if(controlTmp.type == CONST_CTRL_TYPE_GROUP){
prefix = '(Repeatable) ';
addCls = 'repeatable_item';
}
_.each(controlTmp.children, function(control)
{
if(control.isRetrieve){
return true;
}
var optionRow = $(' ')
.attr(CONST_VALUE, control.id)
//.addClass('for_retrieve_modify_only hide_in_modify ' + addCls)
.addClass('for_retrieve_modify_only ' + addCls)
.attr('data', controlTmp.id)
.text(prefix + control.name);
if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC
|| control.type == CONST_CTRL_TYPE_INPUTCOUNTER
|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING
|| control.type == CONST_CTRL_TYPE_INPUTCALCULATE) {
// Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it
optionRow.addClass('modifyaction_numeric').hide();
} else if(control.type == CONST_CTRL_TYPE_INPUTDATE) {
// Add modifyaction_date class for datetime options use for "Change Date" action and hide it
optionRow.addClass('modifyaction_date').hide();
} else {
// Add modifyaction_none class for options and hide it
optionRow.addClass('modifyaction_none').hide();
}
switch(actionType) {
case CONS_RETRIVE_ACTION_ADD_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACT_VALUE:
case CONS_RETRIVE_ACTION_ADDDAYS_VALUE:
case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE:
if(optionRow[0].className == 'modifyaction_numeric'){
optionRow.show();
}
break;
case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE:
if(optionRow[0].className == 'modifyaction_date'){
optionRow.show();
}
break;
default:
optionRow.show();
break;
}
tmp[i] = optionRow;
i++;
});
}
});
if(i > 0){
for(var j=i; j>0; j--){
conditionStack[conditionStackCount] = tmp[j-1];
conditionStackCount++;
}
return true;
}else{
return false;
}
}
var loadAuditDestinationQuestion = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_ACTION_AUDIT) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
var addQuestionToDestination = function(controls, selectedCtrlId){
var cbo = $('li .boolWithSelect .editorSelect');
var i = 0;
var cboVals = [];
if(cbo.length == 1){
cboVals[i] = cbo.val();
}else{
_.each(cbo, function(item)
{
cboVals[i] = $(item).val();
i ++;
});
}
cbo.empty();
cbo.append('' + lbl_sel_question + ' ');
stack = [];
stackCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
var isInTable = false;
var isInRepeat = false;
var end = findNodeInTableGroupOnly(controls, selectedCtrlId, false, acceptCtrlList, isInTable, isInRepeat);
if(end){
for(var j=stackCount; j>0; j--){
cbo.append(stack[j-1].clone());
}
}
if(cbo.length == 1){
cbo.val(cboVals[0]);
}else{
i = 0;
_.each(cbo, function(item)
{
$(item).val(cboVals[i]);
i ++;
});
}
cbo.trigger('change');
}
$('ul.propertyList.inputAction').off('AuditDestinationChange')
.on('AuditDestinationChange', function(event){
addQuestionToDestination(controls, properties.id.value);
}).trigger('AuditDestinationChange');
}
}
var findNodeInTableGroupOnly = function(controls, selectedCtrlId, isEndIfExist, acceptCtrlList, isInTable, isInRepeat){
var addNode = false;
var tmp = [];
var i = 0;
var tmpPage = [];
if(selectedCtrlId == undefined){
addNode = true;
}
_.each(controls, function(control)
{
if(selectedCtrlId == control.id){
if(isEndIfExist){
addNode = true;
}
return false;
}
if(isEndIfExist && addNode){
return false;
}
if(control.type == CONST_CTRL_TYPE_GROUP){
addNode = findNodeInTableGroupOnly(control.children, selectedCtrlId, isEndIfExist, acceptCtrlList, false, true);
}else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){
addNode = findNodeInTableGroupOnly(control.children, selectedCtrlId, isEndIfExist, acceptCtrlList, true, false);
}else if(control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV){
}else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){
}else if(control.type == CONST_CTRL_TYPE_CTRLGRID){
}else if(control.type == 'inputPageBreak'){
}else if(isInTable || isInRepeat){
if(acceptCtrlList && !acceptCtrlList[control.type]){
}else{
var ctrlData = control.type;
if(control.kind){
if(acceptCtrlList && acceptCtrlList[control.type]['kind'] != undefined && acceptCtrlList[control.type]['kind'] != control.kind){
if(Array.isArray(acceptCtrlList[control.type]['kind'])){
if(!acceptCtrlList[control.type]['kind'].includes(control.kind)){
return;
}
}else{
return;
}
}
ctrlData += '_' + control.kind;
}
tmp[i] = $(' ')
.attr(CONST_VALUE, control.id)
.attr(CONST_DATA, ctrlData)
.text(control.name);
addOptionTypeClass(control, tmp[i]);
i++;
}
}
});
if(isEndIfExist){
if(addNode){
if(isInTable){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Table) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
if(isInRepeat){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Repeat) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
return true;
}else{
if(isInTable){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Table) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
if(isInRepeat){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Repeat) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
return true;
}
}else{
if(isInTable){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Table) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
if(isInRepeat){
for(var j=i; j>0; j--){
var opt = tmp[j-1];
var text = opt.text();
opt.text('(Repeat) ' + text);
stack[stackCount] = opt;
stackCount++;
}
}
return true;
}
}
function isControlCorrectType(control, destinationWidgets){
if(destinationWidgets != undefined){
if(destinationWidgets[control.type] == undefined){
return false;
}
var objInfo = destinationWidgets[control.type];
if(objInfo.kind != undefined && objInfo.kind.indexOf(control.kind)<0){
return false;
}
}
return true;
}
var loadMiPosCbo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_PAYMENT_MIPOS) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTNEWPAYMENT){
var addQuestionToCbo = function(controls, selectedCtrlId, properties){
var cboPP_Amount = $('#editor_imgActionParamPP_Amount .editorSelect');
var cboPP_AmountVal = cboPP_Amount.val();
cboPP_Amount.empty();
cboPP_Amount.append('' + lbl_paypro_amount_opt + ' ');
transStack = [];
findTransCtrlToNode(controls, selectedCtrlId, 'Amount');
for(var j=transStack.length; j>0; j--){
cboPP_Amount.append(transStack[j-1].clone());
}
cboPP_Amount.val(cboPP_AmountVal);
cboPP_Amount.trigger('change');
};
}
}
var loadPTouchCbo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_BROTHER_TEMPLATE_TYPE) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
var addQuestionToCbo = function(controls, selectedCtrlId, properties){
var cboPTouchPrintFields = $('.cboPTouchPrintField');
var cboPTouchPrintFieldVals = [];
for(var i = 0; i' + lbl_sel_question + '');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var end = findNode(controls, selectedCtrlId, undefined, undefined, undefined, undefined, undefined, undefined, undefined, true);
if(end){
for(var j=stackCount; j>0; j--){
cboPTouchPrintFields.append(stack[j-1].clone());
}
}
for(var i = 0; i' + lbl_sel_question + '');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
var isAddTableField = false;
var isAddRepeatField = false;
var isInTable = false;
var isInRepeat = false;
var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList, isAddTableField, isAddRepeatField, isInTable, isInRepeat);
if(end){
for(var j=stackCount; j>0; j--){
cboInputQuestion.append(stack[j-1].clone());
}
}
cboInputQuestion.val(cboInputQuestionVal);
cboInputQuestion.trigger('change');
}
addQuestionToInputQuestion(controls, properties.id.value);
}
}
var loadActionCloseNRetrieveCbo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
if(isVersion(VERSION_CLOSE_AND_RETRIEVE) && properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){
var addCurFormQuestionToCbo = function(controls, selectedCtrlId){
var cboDateQuestion = $('li.retrieveCondCreateDateCustom #property_retrieveCondCreateDateCustomBegin, li.retrieveCondCreateDateCustom #property_retrieveCondCreateDateCustomEnd, li.retrieveCondCreateDateCustom #property_retrieveCondCreateDateCustomDate');
var cboAnswerQuestion = $('li.retrieveCondAnsw #property_retrieveCondAnsw, li.retrieveCondAnsw2 #property_retrieveCondAnsw2');
var cboDateQuestionVals = [];
if(cboDateQuestion.length == 1){
cboDateQuestionVals[i] = cboDateQuestion.val();
}else{
var i = 0;
_.each(cboDateQuestion, function(item)
{
cboDateQuestionVals[i] = $(item).val();
i ++;
});
}
var cboAnswerQuestionVals = [];
if(cboAnswerQuestion.length == 1){
cboAnswerQuestionVals[i] = cboAnswerQuestion.val();
}else{
var i = 0;
_.each(cboAnswerQuestion, function(item)
{
cboAnswerQuestionVals[i] = $(item).val();
i ++;
});
}
cboDateQuestion.empty();
cboDateQuestion.append('' + lbl_sel_question + ' ');
cboAnswerQuestion.empty();
cboAnswerQuestion.append('' + lbl_sel_question + ' ');
stack = [];
stackPage = [];
stackCount = 0;
stackPageCount = 0;
var acceptCtrlList = {};
acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUT_NUMERIC] = true;
acceptCtrlList[CONST_CTRL_TYPE_INPUTDATE] = {kind: [CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME, CONST_VALUE_DATE]};
var isAddTableField = false;
var isAddRepeatField = false;
var isInTable = false;
var isInRepeat = false;
var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList, isAddTableField, isAddRepeatField, isInTable, isInRepeat);
if(end){
for(var j=stackCount; j>0; j--){
var dataAttr = stack[j-1].attr('data');
if(dataAttr && dataAttr.indexOf(CONST_CTRL_TYPE_INPUTDATE)>=0){
cboDateQuestion.append(stack[j-1].clone());
}
cboAnswerQuestion.append(stack[j-1].clone());
}
}
if(cboDateQuestion.length == 1){
cboDateQuestion.val(cboDateQuestionVals[0]);
}else{
var i = 0;
_.each(cboDateQuestion, function(item)
{
$(item).val(cboDateQuestionVals[i]);
i ++;
});
}
if(cboAnswerQuestion.length == 1){
cboAnswerQuestion.val(cboAnswerQuestionVals[0]);
}else{
var i = 0;
_.each(cboAnswerQuestion, function(item)
{
$(item).val(cboAnswerQuestionVals[i]);
i ++;
});
}
}
$('ul.propertyList.inputAction').off('CloseNRetrieveDataChange')
.on('CloseNRetrieveDataChange', function(event){
addCurFormQuestionToCbo(controls, properties.id.value);
}).trigger('CloseNRetrieveDataChange');
var formKey = $('select#property_retrieveForm').val();
var formFields = loadRetrieveFormFields(formKey, true);
var retrieveFormFieldCbos = $('li.retrieveCondQues #property_retrieveCondQues, li.retrieveCondQues2 #property_retrieveCondQues2, li.retrieveDisplayFields .cboPrintField');
addCloseNRetrieveFormFieldsToCbo(retrieveFormFieldCbos, formFields);
var isDateTimeFieldOnly = true;
var formDateTimeFields = loadRetrieveFormFields(formKey, true, isDateTimeFieldOnly);
var dateTimeQuetionsCbo = $('li.retrieveDateQuestion #property_retrieveDateQuestion');
addCloseNRetrieveFormDateTimeFieldsToCbo(dateTimeQuetionsCbo, formDateTimeFields);
}
}
var updateRuntimeVersion4ControlProperties = function(property){
if(property.updateVersionName && property.updateVersionName != ''){
try{
var curVer = eval(property.updateVersionName).toString();
if(isNaN(curVer) == false){
property.version = curVer;
}
}catch(e){}
}
}
var appendProperties4AttachFormWidget = function(properties){
var defaultProperties = $.extend(true, {}, $.fn.odkControl.defaultProperties);
var appendPropNames = ["readOnlyGroup",
"readOnlyViewDataGroup",
"readOnlyViewEdit",
"readOnlyDispatchGroup",
"readOnlyDispatchNew",
"readOnlyDispatchEdit",
"readOnlyFillNSendGroup",
"readOnlyFillAndSend",
"readOnlyUsersGroup",
"readOnly",
"readOnlyWebAppGrp",
"readOnlyViewNew",
"readOnlyDispatchToEmail",
"readOnlyFillAndSendEdit",
"readOnlyWebApp",
"readOnlyEmbeddedForm",
"readOnlyFormLinks",
"readOnlyDsp",
"readOnlyForwardedGroup",
"readOnlyForwarded",
"readOnlyRetrieveGroup",
"readOnlyOnRetrieve",
"requiredGroup",
"requiredViewDataGroup",
"requiredViewEdit",
"requiredDispatchGroup",
"requiredDispatchNew",
"requiredDispatchEdit",
"requiredFillNSendGroup",
"requiredFillAndSend",
"requiredUsersGroup",
"required",
"requiredWebAppGrp",
"requiredViewNew",
"requiredDispatchToEmail",
"requiredFillAndSendEdit",
"requiredWebApp",
"requiredEmbeddedForm",
"requiredFormLinks",
"dispatchRequired",
"requiredForwardedGroup",
"requiredForwarded",
"requiredRetrieveGroup",
"requiredOnRetrieve",
"clearGroup",
"clearRetrieveGroup",
"clearOnRetrieve"];
_.each(appendPropNames, function(item){
properties[item] = defaultProperties[item];
});
properties.readOnlyGroup.insertBefore = 'showGroupActions';
properties.requiredGroup.insertBefore = 'showGroupActions';
properties.clearGroup.insertBefore = 'showGroupActions';
properties.label.resetValue = false;
properties.hint.resetValue = false;
}
var loadImageViewerCombo = function(controls, properties){
if(controls == undefined){
controls = controlsTmp;
}
var addQuestionToImageURLCbo = function(controls, selectedCtrlId){
var cboImageURL = $('li.imageUrl .editorSelect');
var cboImageURLVal = cboImageURL.val();
cboImageURL.empty();
cboImageURL.append('' + lbl_select_opt + ' ');
inputSourceStack = [];
inputSourceStackCount = 0;
inputSource = 'Text widget';
findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource);
for(var j=inputSourceStackCount; j>0; j--){
cboImageURL.append(inputSourceStack[j-1].clone());
}
cboImageURL.val(cboImageURLVal);
}
$('ul.propertyList.inputImageViewer').off('CtrlDataChangeChange')
.on('CtrlDataChangeChange', function(event){
addQuestionToImageURLCbo(controls, properties.id.value);
}).trigger('CtrlDataChangeChange');
}
;(function($){
control_init($);
if(isVersion(VERSION_USE_VARIABLE_BF)){
loadUserVariable(false, false, true);
}
if(isVersion(VERSION_ACCOUNT_VARIABLES_MANAGE)){
loadAccountVariable();
}
})(jQuery);