Automatically calculate property value on certain doctypes
Hi,
I have a doctype, Raceresult, which has a number of properties. I need to restrict the user adding new instances to only fill in three of the fields. The rest of the values would then be calculated based on data given. For example, age on race day would be calculated based on the date of the parent race and the runner's birthdate. Just as the age graded percentage would be calculated based on calculated age and a table of values.
I can achieve this easily (I think) if I add an Admin section on the front end
but I find this less than ideal.
1) It means I effectively have two back ends for the website
2) For all I know, the SaveWithStatus may not work perfectly and the customer will have to go via the backend to republish
So how do I create a very restricted type of dashboard for this doctype?
Automatically calculate property value on certain doctypes
Hi,
I have a doctype, Raceresult, which has a number of properties. I need to restrict the user adding new instances to only fill in three of the fields. The rest of the values would then be calculated based on data given. For example, age on race day would be calculated based on the date of the parent race and the runner's birthdate. Just as the age graded percentage would be calculated based on calculated age and a table of values. I can achieve this easily (I think) if I add an Admin section on the front end but I find this less than ideal.
1) It means I effectively have two back ends for the website 2) For all I know, the SaveWithStatus may not work perfectly and the customer will have to go via the backend to republish
So how do I create a very restricted type of dashboard for this doctype?
is working on a reply...