|
<< Click to Display Table of Contents >> Navigation: Telegram > 2020 > 07 > 20 > Telegram_2020-07-20T11 |
2020-07-20T11:26:18
Hi Alexandre! How can I assign a returned value from jQuery or Javascript function to a local variable in Intraweb?
2020-07-20T11:39:53
Do you.mea. The internal modal.or.using your own modals?
2020-07-20T11:40:17
Send it via a callback
2020-07-20T11:40:54
Ok
2020-07-20T11:41:14
Check the example 'newcallback' in atozed/15 demos
2020-07-20T11:42:19
I think I will try my own modal to insert
2020-07-20T11:44:24
Yes is better. Because the internal editing Saturday for datatables are not free.
2020-07-20T11:44:38
And it is better.
2020-07-20T11:44:51
What do you mean about select?
2020-07-20T11:45:28
Yes I have tried and I have realized that I have more freedom by doing it myself
2020-07-20T11:45:51
Yup.
2020-07-20T11:46:19
You adds button in a colum of datatables to edit, delete. And look better
2020-07-20T11:47:04
The idea is when you touch a record in DataTable, it returns the KeyField that I need to update data in database
2020-07-20T11:48:18
So you need to send the key field value to intraweb?
2020-07-20T11:49:12
With callbacks should be easy.
2020-07-20T11:53:31
type: pre $(function() {
$(\#TBLIWGRID1\).DataTable({
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal( {
header: function ( row ) {
var data = row.data();
return 'Details for '+data[0]+' '+data[1];
}
} ),
renderer: $.fn.dataTable.Responsive.renderer.tableAll( {
tableClass: 'table'
} )
}
}
});
}); language:
2020-07-20T11:53:38
Yes I use DataTable on(‘click’,’tbody tr’, function (table.row(this).data()) to return data[col index] to return the value of the KeyField to an Intraweb var that I would use to update database
2020-07-20T11:53:55
That’s it!
2020-07-20T11:54:31
ok thanks
2020-07-20T11:56:08
This demo show a MODAL with data. Look how get data from datatable and execute an ajaxcall to an callback function
2020-07-20T11:56:30
Hi Jose! I like this new IWGridDataTable but it is not responsive; I think if the responsiveness is inserted it will be great
2020-07-20T11:56:59
Ok thanks