B4J Question (WebAPP) Buttons to Grid

alienhunter

Active Member
Licensed User
Longtime User
Hi ,
since this is new to me i want to ask if
it is possible to add to the 4-th-column a button when in the loop for filling the values ?
or any kind of elements ?


webapp.jpg
 
Last edited:

billzhan

Active Member
Licensed User
Longtime User
You can try to add a link (looks like a button with jquery ui) with rowid in href for each row. You can override the link with js.

Try (not tested):

B4X:
    <a class="classoverride" href="rowid#1">4th Col</a>

   
$(document).ready(function () {
   
    //...

   
    $('.classoverride').click(function(e) {   
        e.preventDefault();  //override the link
        var link=$(this).attr("href");
        //link=rowid#1
        //...
    });

}
 
Upvote 0

alienhunter

Active Member
Licensed User
Longtime User
You can try to add a link (looks like a button with jquery ui) with rowid in href for each row. You can override the link with js.

Try (not tested):

B4X:
    <a class="classoverride" href="rowid#1">4th Col</a>

  
$(document).ready(function () {
  
    //...

  
    $('.classoverride').click(function(e) {  
        e.preventDefault();  //override the link
        var link=$(this).attr("href");
        //link=rowid#1
        //...
    });

}

thank you i will give it a try
 
Upvote 0
Top