I’m trying to create a doctype called Building with the following fields:
Building Name (data)
Building Number (data)
Building Sub-Number (data)
Building Description
I would like the to create a situation where I can perform two different types of Create actions on a property.
If I chose the standard “Create”, a new Building will be created where the Building Number will be set to the next sequential number e.g. “0001” and the Building Sub-Number will default to “0000”
However, If I am in the display/change view of the Building just created and I click on “Create New Sub-Number”, a new Building will be created where the Building Number will remain the same (“0001”) but the Building Sub-Number will be incremented to “0001” and will be incremented every time “Create New Sub-Number” is clicked
Create New Sub-Number should only be called from an existing Building.
I would like to know if/how this numbering can be achieved purely from configuration of the doctype (with as little coding as possible)
I don’t want to use parent and child relationship as it does not quite meet my requirement.
Regards,
cksgb