Hello, am seeking some help to create a custom script to update a custom doctype when a new item is created or update.
Create new item 1010. new item parent record gets inserted into custom doctype as a parent. the custom doctype is a table within the item doctype.
the custom doctype contains:
- download status
- upload status
the idea is when the record is downloaded to the device the device will change the status of the record to indicate record was downloaded so it can’t be downloaded again. when the user updates the record the status should change back to tell the device it can now download the record.
I know this might not be the best solution so I welcome any suggestion.