EasyUI Forum
December 09, 2025, 11:39:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: For what is the idField in datagrid used?  (Read 11224 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: November 06, 2014, 08:22:57 AM »

I have a question: For what is the idField in datagrid used?
Is there an example?
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #1 on: November 06, 2014, 12:08:26 PM »

...
toolbar     : '#tobPferd',
  url         : 'pferd.act.php?frm=HOM&act=V&sel=' + vSEL,
  saveUrl     : 'pferd.act.php?frm=HOM&act=I&lkp=XXX',
  updateUrl   : 'pferd.act.php?frm=HOM&act=U&lkp=XXX',
  destroyUrl  : 'pferd.act.php?frm=HOM&act=D&lkp=XXX',
  remoteSort  : 'true',
  idField     : 'OLT30A001T_KEY',
  queryParams : {sort: 'HOM_NAME'},
...

the idField is post(ed) to the destroyUrl. In my case it is the Primary Key Value for the Delete statement in the MySQL Query.

If you need more, let me know.
Jaimi
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 on: November 07, 2014, 12:31:45 AM »

THX for this example. I try it and its works.
Also it is used by the 'updateUrl'.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!