Telegram_2020-07-20T11

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 07 > 20 >

Telegram_2020-07-20T11

Telegram link

 

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?

 


 

Telegram link

 

2020-07-20T11:39:53

 

Do you.mea. The internal modal.or.using your own modals?

 


 

Telegram link

 

2020-07-20T11:40:17

 

Send it via a callback

 


 

Telegram link

 

2020-07-20T11:40:54

 

Ok

 


 

Telegram link

 

2020-07-20T11:41:14

 

Check the example 'newcallback' in atozed/15 demos

 


 

Telegram link

 

2020-07-20T11:42:19

 

I think I will try my own modal to insert

 


 

Telegram link

 

2020-07-20T11:44:24

 

Yes is better. Because the internal editing Saturday for datatables are not free.

 


 

Telegram link

 

2020-07-20T11:44:38

 

And it is better.

 


 

Telegram link

 

2020-07-20T11:44:51

 

What do you mean about select?

 


 

Telegram link

 

2020-07-20T11:45:28

 

Yes I have tried and I have realized that I have more freedom by doing it myself

 


 

Telegram link

 

2020-07-20T11:45:51

 

Yup.

 


 

Telegram link

 

2020-07-20T11:46:19

 

You adds button in a colum of datatables to edit, delete. And look better

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-07-20T11:48:18

 

So you need to send the key field value to intraweb?

 


 

Telegram link

 

2020-07-20T11:49:12

 

With callbacks should be easy.

 


 

Telegram link

 

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:

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-07-20T11:53:55

 

That’s it!

 


 

Telegram link

 

2020-07-20T11:54:31

 

ok thanks

 


 

Telegram link

 

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

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-07-20T11:56:59

 

Ok thanks