This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to display in js file,here i am using fluxigrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to display in js file,here i am using fluxigrid" Watch "how to display in js file,here i am using fluxigrid" New topic
Author

how to display in js file,here i am using fluxigrid

Rajasekhar Reddy Ketham
Greenhorn

Joined: Jun 04, 2013
Posts: 5
{"id":85,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":809,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS002AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":84,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":83,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":82,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":81,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":80,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null},{"id":79,"file":null,"stockReferenceDate":null,"accNumberTo":null,"accnNumberFrom":null,"userId":0,"catalogueCopyDetails":{"location":null,"id":810,"size":null,"source":null,"duration":null,"user":null,"accnNo":"FS003AA","catalogueBase":{"id":312,"subject":{"id":53,"description":"englishhistory","parentSubjectCode":666,"deweyNo":44},"title":"","titleNumber":"FS001AA","noofcopies":3,"subTitle":"","publishedplace":"","publishedyear":"","translator":null,"remarks":"","custom1":"","bookAbstract":"","custom2":"","callnumber":"","volume":"","guide":"","developer":"","producer":"","series":",","specialization":"","responsibility":"","issuenumber":"","edition":"","classnumber":null,"publisher":{"address":"bangalore1","name":"B Jain ","id":1,"description":"","email":"","url":"","phone":"0","fax":"0"},"enumLanguage":{"name":"English1A","id":36,"shortName":"ENG","status":false},"enumSection":{"name":"First Standerd","id":35,"shortName":"FS"},"gradeSection":null,"company":null},"isissued":false,"iswithdrawn":false,"price":null,"custom3":null,"custom4":null,"entrydate":null,"copyAbstract":null,"aside":null,"bside":null,"rate":null,"cost":null,"netcost":null,"noofpages":null,"vendor":null,"enumCategory":null,"department":null,"discountpercentage":null,"enumCurrency":null},"stockverificationnumbermaintainance":{"id":12,"stockVerificationToken":3,"stockverificationjob":{"id":5,"jobReferenceDate":1378146600000,"remarks":"","startDate":1378146600000,"endDate":1379615400000,"jobStatus":0,"createdBy":null,"createdOn":null,"totalNoOfItemsVerified":0,"startDateDispaly":"03-Sep-2013","endDateDisplay":"20-Sep-2013","referenceDateDisply":"03-Sep-2013","createdDateDislay":""},"userId":"mallik","startDate":1379010600000,"endDate":1378751400000,"endDateDisplay":"10-Sep-2013","startDateTime":1379010600000,"endDateTime":1378665000000,"noOfItemsVerified":0,"referenceDate":1378146600000,"startDateDisplay":"13-Sep-2013","startDateTimeDisplay":"10-Sep-2013","endDateTimeDisplay":"10-Sep-2013","referencedateDisplay":"03-Sep-2013"},"accnNumber":null}]

and below file is used for displaying above json data

$(document)
.ready(
function() {
$("#stockEntryGrid")
.flexigrid(
{
url : '../stockEntry/list.action',
dataType : 'json',
colModel : [
{
display : 'ID',
name : 'id',
width : 50,
sortable : true,
align : 'left'
},
{
display : 'Stock numberDetails ',
name : 'stockverificationnumbermaintainance',
width : 100,
sortable : true,
align : 'left'
},
{
display : 'Catalogue Details',
name : 'catalogueBase.id',
width : 100,
sortable : true,
align : 'left'
} ],

buttons : [ {
id : 'addSub',
name : 'Add',
bclass : 'add',
onpress : newStockEntry
}, {
name : 'Delete',
bclass : 'delete',
onpress : deleteStockEntry
}, {
separator : true
} ],
searchitems : [ {
display : 'Subject Name',
name : 'code'
} ],
sortname : "id",
sortorder : "asc",
usepager : true,
title : 'Stock Entry',
useRp : true,
rp : 10,
showTableToggleBtn : true,
width : 950,
height : 400
});
});

function newStockEntry() {
$("#stockEntry").load("../stockEntry/new.action").dialog("open");
};

function formatData(data) {
var rows = Array();
$.each(data.objects, function(i, object) {
// id can be mapped to any attribute of the return object in the list
rows.push({
id : object.val1,
cell : [ object.val1 ]
});
});
return {
total : data.total,
page : data.page,
rows : rows
};
}

function deleteStockEntry(com, grid) {
if (com == 'Delete') {
if ($('.trSelected', grid).length > 0) {
if (confirm('Delete ' + $('.trSelected', grid).length + ' items?')) {
var items = $('.trSelected', grid);
var itemlist = [];
for (i = 0; i < items.length; i++) {
itemlist.push(items[i].id.substr(3));
}
itemlist1 = "[" + itemlist + "]" // JSON.stringify(itemlist);
$.ajax({
type : "POST",
dataType : "json",
contentType : "application/json; charset=utf-8",
url : "../stockEntry/delete.action",
data : itemlist1,
success : function(data) {
if (data == true) {
$("#stockEntryGrid").flexReload();
} else {
alert('some database problem');
}
}
});
}
} else {
return false;
}
} else if (com == 'Add') {
alert('Add New Item Action');
}
};





 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to display in js file,here i am using fluxigrid
 
Similar Threads
Assigning jsonobject to java class having one to many relationship
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
Scheduler and joblistener
Customizing the included content with jsp:param.