How to get SelectedID in TableName_templateDV.html

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
Gerud Mani
Posts: 9
Joined: 2016-08-22 04:18

How to get SelectedID in TableName_templateDV.html

Post by Gerud Mani » 2020-03-06 08:13

I need to pass the SelectedID to a .php file through a link that I added to the code of (TableName_templateDV.html) file but AppGini doesn't show the SelectedID in the url so my javascript function doesn't see it! How to get the SelectedID that I can use in that .html file?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1814
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: How to get SelectedID in TableName_templateDV.html

Post by jsetzer » 2020-03-06 08:21

Maybe this could help:

Code: Select all

<script>
  var selectedID = $j('input[name="SelectedID"]').val();
  if (selectedID) {
    var href = 'TABLENAME.php?SelectedID=' + selectedID
    // ...
  }
</script>
Best,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply