Posted by Manuel
2014-04-12

Sorry to bother you again Tom, i did add a code in the main page with a livea ajax style search with an external file doing the mysql query and returning the result....when i search is returning the contact information...now im trying to have the contact ID as a link that when you click on it open a page like the Edit section of the contact...ill do a popup, etc...but is there any variable that i can pass to a function to return thet contact id information. As far as i can see in the Edit button is passing it as post and probably i need to do a Get function in the link. Something that i can pass like index.php?ID=1111

Thanx again!
Posted by Tom
2014-04-13

Yes, both the search page and input page display IDs, it should be very easy to obatin the ID of a particular record if you take a look at the templates. In both web/staff/tpl.(table-name).search.inc.php and web/staff/tpl.(table-name).detail.inc.php, you can display IDs with this php function:
<?php echo $hm->Zb( 'rs:def:addresses_id' ); ?>
Note: You should change 'addresses' to your table name.