Greetings, fellow scripter.
While using view page, i need to hide/show certain row (label-value) based on whenever it has valid value.
This table shows order-price, and using this script:
The alert window only shows till MID 1. In other words, only the first block of the script was successfully executed.
I dont know whats wrong, i think i follows the guide and examples from PHPrunner help.
So, any thoughts will be greatly appreciated.
Thanks.
While using view page, i need to hide/show certain row (label-value) based on whenever it has valid value.
This table shows order-price, and using this script:
alert ("START BAH!!!"); var cPrice2 = Runner.getControl(pageid, 'price2'); var cPrice3 = Runner.getControl(pageid, 'price3'); var cPrice4 = Runner.getControl(pageid, 'price4'); var cPrice5 = Runner.getControl(pageid, 'price5'); var cPrice6 = Runner.getControl(pageid, 'price6'); var cPrice7 = Runner.getControl(pageid, 'price7'); var cPrice8 = Runner.getControl(pageid, 'price8'); var cDisc = Runner.getControl(pageid, 'disc_total'); alert ("MID 1 BAH!!!"); var h2 = cPrice2.getValue(); var h3 = cPrice3.getValue(); var h4 = cPrice4.getValue(); var h5 = cPrice5.getValue(); var h6 = cPrice6.getValue(); var h7 = cPrice7.getValue(); var h8 = cPrice8.getValue(); var dt = cDisc.getValue(); alert ("MID 2 BAH!!!"); if (h2 == 0) $("tr[data-fieldname='order2']").hide(); if (h3 == 0) $("tr[data-fieldname='order3']").hide(); if (h4 == 0) $("tr[data-fieldname='order4']").hide(); if (h5 == 0) $("tr[data-fieldname='order5']").hide(); if (h6 == 0) $("tr[data-fieldname='order6']").hide(); if (h7 == 0) $("tr[data-fieldname='order7']").hide(); if (h8 == 0) $("tr[data-fieldname='order8']").hide(); if (dt == 0) $("tr[data-fieldname='disc_total']").hide(); alert ("END BAH!!!");
The alert window only shows till MID 1. In other words, only the first block of the script was successfully executed.
I dont know whats wrong, i think i follows the guide and examples from PHPrunner help.
So, any thoughts will be greatly appreciated.
Thanks.