| Index
» Projekty
» phpMyEdit
» Fórum
» URL extention to view only one record |
 |
Loupblanc
Založený: 09.08.2003
Príspevky: 7
Zaslal: 2003-08-09 22:45
Návrat hore
Odpovedať s citátom
|
one line to be notified
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-08-12 12:07
Návrat hore
Odpovedať s citátom
|
Temporarily change you
['navigation']
option to use text or graphical links instead of buttons and you will get what you want.
You may also consider to use slide extension from CVS repository.
|
Loupblanc
Založený: 09.08.2003
Príspevky: 7
Zaslal: 2003-08-14 19:27
Návrat hore
Odpovedať s citátom
|
Thank you, that's great. My next problem is there:
http://opensource.platon.sk/forum/projects/viewtopic.php?p=404#404
...
;)
|
Niraj
Založený: 26.07.2003
Príspevky: 2
Zaslal: 2003-08-24 08:13
Návrat hore
Odpovedať s citátom
|
I have been able to go right into "view" mode of a particular record via this type of URL:
http://www.c1biker.com/phpmyedit/2004_helfer_akti.php?operation=View&rec=1
|
Niraj
Založený: 26.07.2003
Príspevky: 2
Zaslal: 2003-09-05 05:15
Návrat hore
Odpovedať s citátom
|
| zimdog Napísal: |
How do you get the script to return right to the record view in question after saving instead of listing the whole table? Or better yet how could I get it to return to another script or page? I looked through the documentation but did not see anything about this (or maybe did but didn't understand that was what it was for.)
Thanks,
Mike |
Yeah, we too have been struggling with saving a new record and trying to go back into the "View" mode of that newly created record.
With an "insert-after" Trigger, we can extract the new record ID easily. But then to pass it onwards to the "View" mode, that record ID value gets lost.
We tried using $opts['cgi']['persist'] to no avail. We also tried using session variables to pass it along, still lost the record ID value.
We ended up compromsing by letting the "List" mode present the entire table in a "list of records" format.
We will try the $opts['cgi']['persist'] = Array ('rec' => mysql_insert_id($this->dbh) );
The other option is to put this in the insert-after Trigger:
header ("Location: script.php?rec=$new_rec&operation=View");
That would be a re-direct to the view page of that new record. Don't wanna do that because it seems un-elegant.
Any other ideas on how to create a new record and go directly into view mode for that newly created record?
Thanks,
-- Niraj
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2003-12-06 23:04
Návrat hore
Odpovedať s citátom
|
$this->operation='View';
with $this->rec already set in TIA or TIB
however, the |V option does not take appropriate action.
this subject is discussed somewhere in this forum,
http://opensource.platon.sk/forum/projects/viewtopic.php?t=158
so you probably saw it earlier....
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|