Hi,
I have the following count and total scripts that work on add but not on edit:
Count script on add row:
count = 0;
for each record in Bin_Weights
{
count = (count + 1);
}
row.Winery_Bin_ID = count;
Total script on Gross_Bin_Weight user input:
temptotal = 0;
for each record in Bin_Weights
{
temptotal = (temptotal + record.Gross_Bin_Weight - 93);
}
input.Total_Net_Weight = temptotal;
I am populating the Harvest form from my Work Order form by the following:
if (input.Work_Order_Operation = 1441695000000102100)
{
insert into Harvest
[
Date_Time = zoho.currenttime
Work_Order = input.WO
Vineyard = input.Vineyard
Weighing_Status = "Not Completed"
Block = input.Block
Added_User = zoho.loginuser
]
}
I also disabled fields on edit load so users cannot edit populated data.
The Harvest form populates fine. When I try to edit the record from a custom view, the disabled fields are not disabled and the count and total scripts are not working. If I create a new record, the disabled fields work and the count and total scripts work fine. The scripts are the same in both.
I would greatly appreciate any advice.
Best regards,
Jeff