Tani hosting

Error on javascript
kevinmanuel Offline
Użytkownik

Liczba postów: 22
Reputacja: 0
Post: #1
Error on javascript 09-04-2018 16:13
Hi,


I have been using this javascript code and it's running fine and displayed the value correctly when in preview mode but when I raised the form from new case, the code seems not running and display nothing when I key in the field accordingly. Is this a bug? 
function showTotal() {
getField('bafSales').value = getField("SYS_GRID_AGGREGATE_bafDetailBrand_bafTotal").value;
getField('test').value = getField("SYS_GRID_AGGREGATE_bafDetails_bafExpenses").value;
getField('bafRatio').value = getField('test').value / getField('bafSales').value;
getField('bafRatio').value = roundNumber(getField('bafRatio').value,2).toFixed(2) * 100;
}
getGridField('bafDetailBrand', 1 , 'bafTotal').onchange = showTotal;
grid_bafDetailBrand.onaddrow = function(row){
getGridField('bafDetailBrand',row , 'bafTotal').onchange = showTotal;
}
I've tried on Pm ver 2.0.45 and 2.0.46 testing 5 also having the similar issue

Any help will be apprecited.

I didn't find the right solution from the Internet. 

References:
https://forum.processmaker.com/viewtopic.php?t=26090
Digital production studio

Thank you.
Cytuj
Diabeł Online
Użyszkodnik


Liczba postów: 777
Reputacja: 666


Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości