hardkiffeur
Member
Hi friends,
trying to add a search form for a list, like in the tutorial : http://fabrikar.com/help/tutorials/details/3/26
At this time I've got just one element to see if it's work. But no luck with this and have an error from the console, preatty sure it's about this test.
Form under the default template !
So no Sav button action, for going to the filtered List. And the line 218 is this script.
I'm trying to have a Search form on list with join, so some elements for the form have to be copy from Master Form and some from " Automaticall Joins group " ?
Under the FF console Web I could have this
[12:59:36,347] Une cha?ne vide a ?t? transmise ? ? getElementById() ?. @ http://pglocal/media/jui/js/jquery.js:140
each time I click on save button ....
trying to add a search form for a list, like in the tutorial : http://fabrikar.com/help/tutorials/details/3/26
At this time I've got just one element to see if it's work. But no luck with this and have an error from the console, preatty sure it's about this test.
Code:
TypeError: require is undefined
error source line: 218
require.config({
Code:
<scripttype="text/javascript">
require.config({
baseUrl: 'http://pglocal/',
paths: {
fab : 'media/com_fabrik/js',
element : 'plugins/fabrik_element',
list : 'plugins/fabrik_list',
form : 'plugins/fabrik_form',
cron : 'plugins/fabrik_cron',
viz : 'plugins/fabrik_visualization',
admin : 'administrator/components/com_fabrik/views',
adminfields : 'administrator/components/com_fabrik/models/fields'},
shim: {"fab\/fabrik":{"deps":["fab\/mootools-ext","fab\/lib\/Event.mock","fab\/tipsBootStrapMock"]},"fab\/window":{"deps":["fab\/fabrik"]},"fab\/elementlist":{"deps":["fab\/fabrik","fab\/element"]},"fabrik\/form":{"deps":["fab\/element","lib\/form_placeholder\/Form.Placeholder","fab\/encoder"]},"element\/dropdown\/dropdown":{"deps":["fab\/element"]}}
});
window.addEvent('fabrik.loaded', function () {
Fabrik.liveSite = 'http://pglocal/';
Fabrik.bootstrapped = true;
Fabrik.tips = new FloatingTips('.fabrikTip', {"tipfx":"Fx.Transitions.linear.easeIn","duration":"500","distance":50,"fadein":false});
Fabrik.addEvent('fabrik.list.updaterows', function () {
// Reattach new tips after list redraw
Fabrik.tips.attach('.fabrikTip');
});
Fabrik.addEvent('fabrik.plugin.inlineedit.editing', function () {
Fabrik.tips.hideAll();
});
Fabrik.addEvent('fabrik.list.inlineedit.setData', function () {
Fabrik.tips.attach('.fabrikTip');
});
});
require(['http://pglocal/components/com_fabrik/libs/slimbox2/js/slimbox2.js'], function () {
});
require(['fab/fabrik', 'fab/window', 'fab/lib/form_placeholder/Form.Placeholder', 'fab/form', 'fab/element', 'fab/elementlist', 'element/dropdown/dropdown'], function () {
var form_22 = Fabrik.form('form_22', 22, {"admin":false,"ajax":true,"ajaxValidation":false,"primaryKey":"","error":"Echec de la validation","pages":{"0":[231]},"plugins":[],"multipage_save":0,"editable":true,"start_page":0,"inlineMessage":true,"rowid":"0","listid":0,"images":{"alert":"icon-exclamation-sign ","action_check":"icon-action_check ","ajax_loader":"<i class=\"icon-spinner icon-spin\"><\/i>"},"fabrik_window_id":"","submitOnEnter":false,"hiddenGroup":{"231":false},"maxRepeat":{"231":0},"minRepeat":{"231":0},"showMaxRepeats":{"231":false},"join_group_ids":[],"group_repeats":[],"group_joins_ids":[]});
form_22.addElements(
{"231":[["FbDropdown","___Typologie",{"repeatCounter":0,"editable":true,"value":[""],"label":"Typologie","defaultVal":[],"inRepeatGroup":false,"fullName":"___Typologie","watchElements":[],"canRepeat":false,"isGroupJoin":false,"joinid":0,"allowadd":false,"data":{"studio":"Studio","t2":"2 pi\u00e8ces","t3":"3 pi\u00e8ces","t4":"4 pi\u00e8ces","t5":"5 pi\u00e8ces","maison":"Maison","local_pro":"Local professionnel","local_com":"Local commercial","park":"Parking"}}]]}
);
new Form.Placeholder('.fabrikForm input');
function submit_form() {
return false;
}
function submitbutton(button) {
if (button=="cancel") {
document.location = '/index.php?option=com_fabrik&task=viewTable&cid=';
}
if (button == "cancelShowForm") {
return false;
}
}
});
</script>
So no Sav button action, for going to the filtered List. And the line 218 is this script.
I'm trying to have a Search form on list with join, so some elements for the form have to be copy from Master Form and some from " Automaticall Joins group " ?
Under the FF console Web I could have this
[12:59:36,347] Une cha?ne vide a ?t? transmise ? ? getElementById() ?. @ http://pglocal/media/jui/js/jquery.js:140
each time I click on save button ....