| Index
» Projects
» phpMyEdit
» Forum
» Link to id to edit particular row |
 |
callitkarma67
Joined: 21 Nov 2014
Posts: 1
Posted: 2014-11-21 07:37
Back to top
Reply with quote
|
Hey all,
I'm looking to directly edit a row (by its ID) by adding the ?id=(##) to my edit link on my display page. I have a custom display table that I need to continue to use. Basically my users do not like to click the edit link just to find the particular row, select it, and click edit again. Just trying to eliminate the middle step. It would also be nice to add a link on the (actual) edit form page to return to my display table page. Any help is must appreciated.
Thank you very much in advance.
|
Paulo Fernando
Joined: 05 Oct 2014
Posts: 19
Posted: 2014-11-21 09:39
Back to top
Reply with quote
|
$opts['fdd']['dummy2'] = array (
'name' => 'Produtos',
'sql|VLF' => 'if(cod_venda <> "",
CONCAT("<a href=\"vendidos.php?s=22&PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=1&PME_sys_qf2=", cod_venda, "\" >Produtos</a>"),
"")',
'options' => 'VLF',
'input' => 'R',
'escape' => false,
'sort' => false
);
Transforms a column link to the desired line
if ($_POST['PME_sys_operation'] != 'Change') {
$opts['cgi']['overwrite']['PME_sys_operation'] = 'View';
$opts['cgi']['overwrite']['PME_sys_rec'] = $RecID;
}
Changes the way you view the table, can be adapted to display the selected row in edit mode directly
|
|
Post new topic
Reply to topic
|
|
|
|