This topic is locked

Custom link to search passing ID by url

2/20/2011 9:30:09 AM
PHPRunner General questions
J
Juri author

Hi everyone,
i'm in the need of putting a link in a page view that leads to a custom search done by the ID of the page view item

i'll try to explain that better..
I have two tables, customers and events.

I need to put a custom link in the Customers_view.php that leads to Events_search.php. The search must find all events in witch the customers seen in the view page is involved
The only way i found is having the link of o normal search, es:

http://10.0.0.9/test001/Events_list.php?a=integrated&simpleSrchFieldsComboOpt=&simpleSrchTypeComboNot=&simpleSrchTypeComboOpt=&criteria=and&type1=&value11=xxxx&field1=ID_Utente&option1=Contains&not1=

where xxxx is the ID of the customer, and replace it with a variable in the code, but i can' figure out how write it in the correct way/syntax.

I've tried something like {$row.ID}, "ID_value", but i'm no programmer, so no data is coming out..
Anyboby can help me?

Or maybe is there a simplier way?
Thanks in advance
Juri

Sergey Kornilov admin 2/20/2011

The best advice is to set 'View as' of one of fields to 'Custom'. In this case you can access value of any field as $data["FieldName"].