Hi,
I need to setSensitiveRange in form. I loading the form field data from database. while load the dates should set for setSensitiveRange based on the dates getting loaded.
i am getting the date displayed in the form field through window.dhx4.ajax.post
after loading the data. i am unable to create sensitiverange for dates which is displayed.
kindly help me with sample codes. below is form details.
formData = [{type: “settings”,position:“label-left”},
{type: “block”, inputWidth:500,list:[
{type:“fieldset”, inputWidth:500, label:“CFT CALCULATION DETAILS”,list:[
{type:“input”, name:“cclcode”, label:“CH CODE”, labelWidth:“200”,inputWidth:“150”, readonly:true,required:true,validate:“NotEmpty,ValidAplhaNumeric”, readonly:true},
{type:“calendar”, name:“cfstdate”, id:“cfstdate”, label:“CFT CAL. START DATE”, labelWidth:“200”,inputWidth:“100”,required:true,dateFormat: “%d-%m-%Y”, serverDateFormat:“%Y-%m-%d”, calendarPosition:“right”,validate:“NotEmpty”},
{type:“calendar”, name:“cfeddate”, label:“CFT CAL. END DATE”, labelWidth:“200”,inputWidth:“100”,required:true,dateFormat: “%d-%m-%Y”, serverDateFormat:“%Y-%m-%d”, calendarPosition:“right”,validate:“NotEmpty”},
{type:“combo”, id:“cftype”,name:“cftype”, label:“TYPE”, options:[
{text: “SELECT”, value: “”},
{text: “LTL”, value: “LTL”},
{text: “FTL”, value: “FTL”},
{text: “DV”, value: “DV”},
],labelWidth:“200”,inputWidth:“100”,required:true,validate:“NotEmpty”},
{type:“combo”, id:“cftranstype”,name:“cftranstype”, label:“TRANSPORT MODE”,labelWidth:“200”,inputWidth:“100”,required:true,validate:“NotEmpty”},
{type:"combo", id:"cfcontype",name:"cfcontype", label:"CFT CONVERSATION TYPE", options:[
{text: "SELECT", value: ""},
{text: "CMS", value: "CMS"},
{text: "INCHS", value: "INCHS"}
],labelWidth:"200",inputWidth:"150",required:true,validate:"NotEmpty"},
{type:"input",name:"cfbase",label:"CFT CONVERSATION VALUE",labelWidth:"200",inputWidth:"100",readonly:true,required:true,validate:function(v){return v.match(/^[0-9\s&-_]*$/gi)!=null;}},
{type:"input",name:"cftkg",label:"CFT CONVERSATION KGS",value:"",labelWidth:"200",inputWidth:"120",required:true,validate:function(v){return v.match(/^[0-9\s&-_]*$/gi)!=null;}},
{type: "input", name:"remarks",label: "REMARKS", value: "",labelWidth:"100",inputWidth:"300",validate:function(v){return v.match(/^[A-Z0-9\s&-_]*$/gi)!=null;}},
{type:"button" , name:"1", label:"Button", value:"Submit"}
]}
]}
];