Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Link/Button to add to Reference Table lookup

phpMyEdit Features     Link/Button to add to Reference Table lookup
Post new topic   Reply to topic    
 
wdarmajaya     Joined: 13 Jun 2007   Posts: 4  
Post Posted: 2007-06-13 16:34
Back to top  Reply with quote     

Hey all,

Let's say that I have following tables:

table: student
id (pk)
name
addr

table: grade
id (pk)
student_id (reference to student.id)
grade

When user is on PME for grade, they can select student name dropdown (I'm using Table lookup restriction). Is there anything can be done so user can add a new student from the PME ADD grade page? (maybe url link on the column name or subform? )

Thanks for the help in advanced!

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2007-07-25 13:22
Back to top  Reply with quote     

not really, students dropdown are populated when the page is loaded (so adding a student in another window needs reload of the grade page).

it's possible to somehow play with sessions and redirections to add a new student (extra button that will save filled data to session, redirect to student add page, save there, magically know that something is stored in session, redirect back to grade page, fill data stored in session plus the student id, delete data from session, save finally). i tried it once, but it was a hell to debug (sessions last for a long time, users have more than one window open, ...) so good luck.

michal

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov