| Index
» Projekty
» phpMyEdit
» Fórum
» using phpMyEdit for just view/update record? |
 |
RedBullet
Založený: 02.12.2010
Príspevky: 7
Zaslal: 2010-12-19 02:31
Návrat hore
Odpovedať s citátom
|
On my main web site, I would like to include a link to view a record with an update button (that would go into edit mode).
I think I can reverse engineer how you go into view mode on a record and generate an appropriate URL for my site.
My question is, when the user hits the "Save" button, I would like it to update the record, and go back into view mode for that record. And have Cancel close the window.
Any cool tricks you can think of?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-12-21 02:01
Návrat hore
Odpovedať s citátom
|
Search in the forum for PME_sys_operation
| Kód: |
<a href="pagename.php?PME_sys_operation=Add" target="_blank"
title="Add Domain">Add Domain</a>
<a href="pagename.php?PME_sys_operation=PME_op_View&PME_sys_rec=179">View
Record</a> |
A trigger can be created to revert back to View mode. Again, search for trigger & view.
|
RedBullet
Založený: 02.12.2010
Príspevky: 7
Zaslal: 2010-12-21 03:20
Návrat hore
Odpovedať s citátom
|
OK, cool, I think I got that working.
Now, do I have any control over the buttons? For example I think I want to add a button which returns control back to a different page passing the index of the modified/updated record.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-12-21 04:04
Návrat hore
Odpovedať s citátom
|
You would need to be creative with buttons for other purposes. Possibly using a trigger to conditionally create a new FORM element displayed below the form, or an equally creative mechanixm. Or hack the class file somehow (good luck with that).
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|