| Index
» Projects
» phpMyEdit
» Forum
» URL extention to view only one record |
 |
Loupblanc
Joined: 09 Aug 2003
Posts: 7
Posted: 2003-08-09 22:45
Back to top
Reply with quote
|
one line to be notified
|
nepto
Joined: 06 Jan 2003
Posts: 320
Location: Phoenix, Arizona (USA)
Posted: 2003-08-12 12:07
Back to top
Reply with quote
|
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
Joined: 09 Aug 2003
Posts: 7
Posted: 2003-08-14 19:27
Back to top
Reply with quote
|
Thank you, that's great. My next problem is there:
http://opensource.platon.sk/forum/projects/viewtopic.php?p=404#404
...
;)
|
Niraj
Joined: 26 Jul 2003
Posts: 2
Posted: 2003-08-24 08:13
Back to top
Reply with quote
|
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
Joined: 26 Jul 2003
Posts: 2
Posted: 2003-09-05 05:15
Back to top
Reply with quote
|
| zimdog wrote: |
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
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2003-12-06 23:04
Back to top
Reply with quote
|
$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....
|
|
Post new topic
Reply to topic
|
|
|
|