This topic is locked

Before Edit Inline question

2/23/2012 6:35:54 AM
PHPRunner General questions
D
dara author

Hello

i have master table Bien, slave table photo.
i display list/edit page of photo on edit page of bien.

i enabled inline edit so i can edit all the photo in once to change for example one of their field called export.
function beforeedit is executed for each photo even if inine= true.

is there a way to store somehow some datas and launch a custom function doing some stuff (which need new window and user interaction) on the photos before updating them.
thanks

Sergey Kornilov admin 2/23/2012

"store somehow some datas and launch a custom function doing some stuff " sounds a bit confusing. Could you elaborate a little bit what you trying to achieve?

D
dara author 2/24/2012

yes i understand it's a bit confusing :

i explain a bit more detailed.
i have this master table Bien with childs photo.

we can edit photo on the Bien Edit page and we can edit photos inline.

i would like when the "export" checkbox field is updated to store somewhere oldvalue[export] and value[export] and keys[ref] and oldvalue[photo]. when all updates are done i would like to open a window with all the information oldavalues values... of all the updated photos.
the concrete application is that i need to recrop manually some photos depending on the website they are exported to.

and instead of opening one window for each photo i would like to open only one window for all.
i tried to store data in $_SESSION arrays etc...

i cannot figure how to open a window when all photos get updated and not when each photo is updated.
maybe it's not possible or you have a better idea for my application. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=64550&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Thanks