Hey everyone
I have form named "sprawa" and in this form I display (in group in Intro) list "sprawa_17_repeat" with this code:
In form "sprawa" I created button to add new record to the list "sprawa_17_repeat"
Of course, the list "sprawa_17_repeat" has a custom template without < form></form> to don't brake main form "sprawa"
Now, when I add new record to the list "sprawa_17_repeat" , after add the list "sprawa_17_repeat" disappears in from "sprawa" but when I reload (not refresh F5 - because did not work) form "sprawa" list is display again properly with a newly added reekord.
The question is, what should I add to the form list "sprawa_17_repeat" so that after adding the record it reloads the main form "sprawa" and displays the list "sprawa_17_repeat" again properly.
It would be good to use refresh page in ajax
Something similar to note plugin
I have form named "sprawa" and in this form I display (in group in Intro) list "sprawa_17_repeat" with this code:
Code:
{fabrik view=list id=30 sprawa_17_repeat___parent_id=[rowid]}
In form "sprawa" I created button to add new record to the list "sprawa_17_repeat"
JavaScript:
var parent_id =Fabrik.getBlock('form_3').formElements.get('sprawa___id').getValue();
var url = "/sprawa/form/30/?sprawa_17_repeat___parent_id=" + parent_id + "&ajax=1&format=partial";
Fabrik.getWindow({
id: 'add_note',
contentType: 'html',
contentURL: url,
loadMethod: 'xhr',
title: 'Dodaj notatke',
width: 600,
height: 450,
'minimizable': false,
'collapsible': false
});
Of course, the list "sprawa_17_repeat" has a custom template without < form></form> to don't brake main form "sprawa"
Now, when I add new record to the list "sprawa_17_repeat" , after add the list "sprawa_17_repeat" disappears in from "sprawa" but when I reload (not refresh F5 - because did not work) form "sprawa" list is display again properly with a newly added reekord.
The question is, what should I add to the form list "sprawa_17_repeat" so that after adding the record it reloads the main form "sprawa" and displays the list "sprawa_17_repeat" again properly.
It would be good to use refresh page in ajax
Something similar to note plugin
Last edited: