This topic is locked

Multiple Inline Edit

5/6/2011 5:22:14 PM
PHPRunner General questions
Jessica author

Hi All,
Scenario <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=16975&image=1&table=forumtopics' class='bbcemoticon' alt='<<' />

Page displays multiple records. Inline Edit option which updates 1 field in each record.
The Catch <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=16975&image=2&table=forumtopics' class='bbc_emoticon' alt=':blink:' />

2 fields in each record are utilizing encryption/decryption code and after an Inline Edit these 2 fields display as encrypted unless user manually refreshes page.
Need <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=16975&image=3&table=forumtopics' class='bbc_emoticon' alt=':(' />

How do I allow multiple Inline Edits and then refresh the list page after all records have been updated?
Any and all feedback will be greatly appreciated!
Kindest Regards,

Jess
(PHP Runner 5.3 / Build 7474)

Sergey Kornilov admin 5/6/2011

You can override the default behaviour of 'Save all' button adding the following code to Javascript OnLoad event of the List page:

this.inlineEdit.saveAllButt.bind("click", function(e){

inlineEdit.saveAll();

location.reload();

});
Jessica author 5/7/2011

I could not get the code you suggested to work??? Made no difference...
MORE INFO

My problem is a little more complicated than I realized yesterday, below are the details.
I have a List Page that displays multiple records. Inline Edit is an option which edits only 1 field in each record. 2 completely different fields in each record are utilizing encryption/decryption code and after an Inline Edit the data in these 2 fields are deleted, in other words the fields are empty. Why is this happening and how can I fix it? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=58159&image=1&table=forumreplies' class='bbc_emoticon' alt=':huh:' />
The below code is at Events, Edit Page, Before Record Updated. If I comment out the code the data in the field does not get deleted and Inline Edit of the 1 field works fine. If I do an Inline Edit of the 2 encrypted fields along with the other field the data does not get deleted. The 2 fields are only deleted when I do not allow them as an Inline Edit option.

$values["MyFieldName"] = encrypt($values["MyFieldName"]);


I hope the above makes sense...
Kindest Regards,

Jess
(PHP Runner 5.3 / Build 7474)

Sergey Kornilov admin 5/7/2011

I guess I need to see your application in order to find what's wrong. Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.