blue-mouse
Member
Hi,
I have nice js code that works for element ___ip_konfig3 --- javascript-action:load
Now, i use edit record from list1 - and js works - show/display proper values for fields:
pp BCD --- ___pp_bcd
ppp BD --- ___pp_pb
ppp C --- ___pp_pc
when save record - then displayed by js code values are saved in table and are visible on list1.
What i need is to do the same for multiple records - by checking records on list and run php(java)-plugin for list.
My problem is how to modify my starting js code ( element---javascript ---action:load) when place this code to php(java) list plugin -- to store values in database table1 --- this table is table for current list. ?
I have read WIKI - list plugin - php - but this is not enought for me to code "UPDATE table1 SET `pp_bcd`='???1', `pp_pb`='???2', `pp_pc`='???3' WHERE `id`='selected/checked on list1 records'
I have nice js code that works for element ___ip_konfig3 --- javascript-action:load
Now, i use edit record from list1 - and js works - show/display proper values for fields:
pp BCD --- ___pp_bcd
ppp BD --- ___pp_pb
ppp C --- ___pp_pc
when save record - then displayed by js code values are saved in table and are visible on list1.
What i need is to do the same for multiple records - by checking records on list and run php(java)-plugin for list.
My problem is how to modify my starting js code ( element---javascript ---action:load) when place this code to php(java) list plugin -- to store values in database table1 --- this table is table for current list. ?
I have read WIKI - list plugin - php - but this is not enought for me to code "UPDATE table1 SET `pp_bcd`='???1', `pp_pb`='???2', `pp_pc`='???3' WHERE `id`='selected/checked on list1 records'
JavaScript:
var bcd = Fabrik.getBlock('form_320').formElements.get('ccjom_cc_kk_karta_rejestr___ip_konfig3').getValue();
var jest = 1;
var niema = 0;
$('ccjom_cc_kk_karta_rejestr___pp_bcd').value = bcd;
if(bcd.contains('PB')==true){
var ppb = 1;
}
else
{
var ppb = 0;
}
if(bcd.contains('PD')==true){
var ppd = 1;
}
else
{
var ppd = 0;
}
var ppbd = ppb + ppd;
$('ccjom_cc_kk_karta_rejestr___pp_pb').value = Number(ppbd);
if(bcd.contains('PC')==true){
var ppc = 1;
}
else
{
var ppc = 0;
}
$('ccjom_cc_kk_karta_rejestr___pp_pc').value = Number(ppc);
Attachments
Last edited: