Hi,
i am not loading a xml or a json file in to the form i am using the connector and dataprocessor to connect the server side data to the client side form in that i want to perform the traverse (previous record , next record), the connector generates the xml file and i am loading it using form.load help me if u can sample code as below
formData = [
{ type:“input” , name:“NAME”, label:“Name”, position:"" },
{ type:“calendar” , name:“DOB”, label:“dhxCalendar”, dateFormat:"%Y-%m-%d", serverDateFormat: “%Y-%m-%d”, readonly: true, position:"" },
{ type:“calendar” , name:“DOJ”, label:“dhxCalendar”, dateFormat:"%Y-%m-%d", serverDateFormat: “%Y-%m-%d”, readonly: true, position:"" },
{ type:“button” , name:“add”, value:“Add”, position:"" },
{ type:“button” , name:“save”, value:“Save”, position:"" },
{ type:“button” , name:“prev”, value:“Prev”, position:"" },
{ type:“button” , name:“next”, value:“Next”, position:"" }
];
var myForm = new dhtmlXForm("box",formData);
myForm.load('CheckForm.do');
var mydp = new dataProcessor ("CheckForm.do");
mydp.init(myForm);
myForm.attachEvent("onButtonClick", function(id){
if(id=="save"){
myForm.save();
alert("saved");
}
else if(id=="add"){
myForm.clear();
}
else if(id=="next"){
}
else if(id=="prev"){
}
});