Hi
I am really trying to avoid coding my way out of problems. I have wasted too much time when I then find the function is already there in ChronoForms! So, before I do:-
I have used the 'Handle Arrays' action to pack a check box group into an array and it saves perfectly. It displays OK in a list of the record but my question is, if I add a single record editor, is there some action available to unpack that array into a a check box group in the editor?
Nick
I am really trying to avoid coding my way out of problems. I have wasted too much time when I then find the function is already there in ChronoForms! So, before I do:-
I have used the 'Handle Arrays' action to pack a check box group into an array and it saves perfectly. It displays OK in a list of the record but my question is, if I add a single record editor, is there some action available to unpack that array into a a check box group in the editor?
Nick
Hi Nick,
There's been a thread about this. My recollection is that there was a fix to the Republisher code written to handle it. What I don't remember is if the fix found its way into the current release of CFv4.
Bob
There's been a thread about this. My recollection is that there was a fix to the Republisher code written to handle it. What I don't remember is if the fix found its way into the current release of CFv4.
Bob
Hi Bob
The only thread that I found related to 'packing' the array in the first place. The code to do it is minimal I guess so I will just get on and do it.
Thanks anyway.
The only thread that I found related to 'packing' the array in the first place. The code to do it is minimal I guess so I will just get on and do it.
Thanks anyway.
Hi Nick,
I found a thread back in last June where Max said that he had fixed the original bug with re-loading arrays.
Bob
I found a thread back in last June where Max said that he had fixed the original bug with re-loading arrays.
Bob
Is this the one you meant, Bob?
Did you finish that amended DB load record action? Is that the answer I am looking for?
Nick
Hi,
I found a fix for this problem (actually for a Checkbox group) earlier this week. I have an amended DB Load Record action that fixes it. If anyone needs it let me know; I intend to improve it a bit and publish as a [GH] action in the bext few days.
As kkiddie points out, the problem shows up in data_republish.php but can't easily be fixed there. You have to tell the DB Load Record action which columns contain array data and need to be 'un-packed'.
Bob
Did you finish that amended DB load record action? Is that the answer I am looking for?
Nick
Hi Nick,
Yes that's the thread - but I had Max's post in mind where he said that he'd fixed the bug. I haven't done anything more with the loader action since then.
Bob
Yes that's the thread - but I had Max's post in mind where he said that he'd fixed the bug. I haven't done anything more with the loader action since then.
Bob
Hi Bob,
I 'hand coded' the reverse in the end. Is that sort of thing that goes into 'actions'? Are they easy to put together?
Nick
I 'hand coded' the reverse in the end. Is that sort of thing that goes into 'actions'? Are they easy to put together?
Nick
Hi Nick,
Building actions is fiddly rather than difficult. Quite a lot of code is needed - most of which you can copy and paste but then you have to find every place to change the action name. In my more recent ones I've started using more standard variables (for the action name etc.) and that makes like simpler.
Bob
Building actions is fiddly rather than difficult. Quite a lot of code is needed - most of which you can copy and paste but then you have to find every place to change the action name. In my more recent ones I've started using more standard variables (for the action name etc.) and that makes like simpler.
Bob
This topic is locked and no more replies can be posted.