This topic is locked
[SOLVED]

 List page span question

10/4/2007 11:29:49 AM
PHPRunner General questions
hfg author

I am trying to add a custom link to a list page that will take the user to an edit page for another related record.
I have put the following code in the list:

<A href="http://10.0.0.3/apps/qatraffic/Active_Customers_edit.php?editid1={$row.1Cust_ID_value}">Customer</A>;
Note, the CUST_ID field cannot be edited when the in line edit is used.
I hoped to end up with this:
http://10.0.0.3/apps/qatraffic/Active_Cust...hp?editid1=1153
But I get this:
http://10.0.0.3/apps/qatraffic/Active_Cust...ditid1=<span id="edit1_Cust_ID" >1153</span>
Is there anyway to eliminate the span id for this field?
Thanks

Alexey admin 10/5/2007

Hi,
the <span... code is added to serve Inline Add/Edit.

So you can just disable Inline Add/Edit for this table.
If you don't want to disable Inline Edit do the following.

  1. Modify your code in Visual Editor this way:
    <A href="http://10.0.0.3/apps/qatraffic/Active_Customers_edit.php?editid1={$row.1Cust_ID_clean}">Customer</A>



2. Add this code to After record processed event:

$row[$col."Cust_ID_clean"]=$data["Cust_ID"];


Please note that field names are case sensitive here.

hfg author 10/5/2007

Worked great, thank much