Closed (won't fix)
Project:
Editable Fields
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 May 2009 at 15:40 UTC
Updated:
14 Mar 2014 at 22:54 UTC
Jump to comment: Most recent
Comments
Comment #1
markfoodyburton commentedI'd like that too - :-)
Comment #2
LEternity commentedMe too!
Comment #3
astuteman247 commentedme too
Comment #4
bfr commentedThere was some kind ajax refresh module, that helps in this problem.
Comment #5
LEternity commentedbfr would you describe your solution? Thanks!
Comment #6
LEternity commentedComment #7
dogboy72 commentedCouldn't this be done by adding this to the editablefields.js file?:
$(document).ajaxStop(function() { location.reload(true); });Comment #8
karenann commentedMy problem is that I had Editablefield setup on a Content Type "Invoices" and I needed to update a computed field in "Purchase Order" when a field in "Invoices" was changed. In this case, "Invoices" were linked to a "Purchase Order" by a node reference.
I don't like editing modules, so here's what I did. It's not totally tested yet, but seems to work alright so far. It's still kinda hacky, but...
I created a new module mymodule and I'm grabbing the menu item that's called when editablefields submits to make my own function.
I then grabbed the entirety of editablefields_submit() from editablefields.module and pasted it into my new function. Now for the editing:
Since computed fields update on save, I simply needed to execute a save on the referenced node.
I looked for node_save($node), which is what saves the "Invoice" fields and did the following:
I then added a new function that's called above.
Comment #9
dogboy72 commentedIronically, I too am working with a content types named "Purchase Order" and "Purchase Order Details" with the latter having a node reference to the former. Your solution looks good and I agree its better not to hack a module, but in my case this is the only field (so far) that uses editablefields.
I'll give it a try. Thanks for sharing.
Comment #10
amal850720 commentedhi dogboy. how's your testing so far? going good?
Comment #11
ledom commentedThank you dogboy72
Using your tip allow to reload the page and get computed fields updated. We lose benefits of ajax saving but at list it works.
Is there a way to reload only the line where there is the update?
Comment #12
amal850720 commentedthanks too do dogboy72. it works fine with a simple single line of code.
i guess it'll be a lot better if only the computed field is updated, instead of the whole page. is there a way to do so?
Comment #13
snoopy_tn commentedThe 1-line fix in post #7 doesn't seem to work for the D7 version. I'm trying to get this to work with check boxes. Any help would be appreciated.
Comment #14
danisha commentedThe 1 line fix on post #7 doesnt work on drupal 6 also. Its useless. The whole page loads again and again continuously. I need some working fix on this. The editable field on node view page, when edited is saved in the database. But the computed field doesnt have an option to be made an editable field which can change. There has to be some solution for this. please help.
Comment #15
mengi commentedPer https://drupal.org/node/2148735, 6.x is longer maintained so issue is closed. If you wish to be a maintainer of the 6.x branch please create a new issue.