This topic is locked

View Format / Edit Format

6/26/2006 3:58:15 AM
PHPRunner General questions
D
dieter author

Step 7
I have the view formatted as hyperlink to another document to search.

(X_list.php?a=search&value=0&SearchField=7&SearchOption=Equals&SearchFor=).
In edit format I want to have the Lookup wizzard (Dropdown), but I only get the Link, when I format as a text field.
Is it possible to get the Link when I have formated as Dropdown field ?
Dieter

Alexey admin 6/26/2006

Dieter,
you need to modify generated list.php file for this.
Replace this snippet:

if(strlen($data["FieldName"]))

{

$strdata = make_db_value("FieldName",$data["FieldName"]);

$LookupSQL="SELECT ...

...

if($lookuprow=db_fetch_numarray($rsLookup))

echo ProcessLargeText($lookuprow[0]);

else

echo ProcessLargeText(GetData($rsData,$data,"FieldName", "Hyperlink"),$iquery);

}



with this one:

echo GetData($rsData,$data,"FieldName", "Hyperlink")

where FieldName is your actual field name.

D
dieter author 6/26/2006

Dieter,

you need to modify generated list.php file for this.
Replace this snippet:
with this one:

where FieldName is your actual field name.


It works (in addition to a ";" at the end of the line <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=9368&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
thank you