Array data from ajax

15 views
Skip to first unread message

Nanang Suryadi

unread,
Mar 1, 2015, 1:37:30 PM3/1/15
to acti...@googlegroups.com
Hi Igor,

How should i get data array from ajax on controller?

like this on ajax :
var record = [];
data: {
period: dateperiod.value,
total: all_cost.value,
weight: total_berat.value,
hpp: hpp.value,
record: record
},

with params1st()
i just get record like this

Key : record[1][usage] Value : 1
Key : total Value : 0
Key : record[0][id] Value : 1491
Key : weight Value : 985
Key : record[0][usage] Value : 1
Key : record[1][code] Value : Ctg-001
Key : record[0][name] Value : Catridge HP Black 60
Key : record[1][name] Value : Catridge HP Black 60
Key : record[1][price] Value : 0
Key : period Value : 2014-07-15
Key : record[1][id] Value : 1491
Key : record[0][code] Value : Ctg-001
Key : hpp Value : 0
Key : record[0][price] Value : 0

i want that record be ArrayList<Model>

thanks

Igor Polevoy

unread,
Mar 3, 2015, 12:31:49 PM3/3/15
to acti...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages