Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  using phpMyEdit for just view/update record?

phpMyEdit Configuration     using phpMyEdit for just view/update record?
Odoslať novú tému   Odpovedať na tému    
 
RedBullet     Založený: 02.12.2010   Príspevky: 7  
Príspevok 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)
Príspevok 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  
Príspevok 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)
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov