Is there a Previous baseline function in DOORS DXL
I know that there are the nextMajor and nextMinor functions to get those baselines, but is there a way to start at the current baseline and go to the previous baseline? I currently have a module that gives information about some scripts we created here at work. We'd like to create a function that will give the changes we've made to the script between individual baselines, so I'd like to loop through the baselines between the current baseline and the previous baseline then move one to the baseline before that to compare it against the 2nd baseline until we get to the last selected baseline. If it can't be done, then I can start from the older baseline chosen and use the nextMajor and nextMinor functions, but I'd rather give the changes in reverse order so that users can see the history of the module.
Accepted answer
The function below returns the Baseline handle for the previous baseline, you can then load/compare as required.
Comments
So, I assume that if I wanted to get all previous baselines to do something with them, I would use a for-loop or while (!null pb)
Chris
Yes, exactly, so e.g. the following opens all previous baselines in reverse order:
One other answer
When two companies are using DOORS and need to exchange information then the requirements are often provided from one company to another by means of DOORS module archives (.dma). This means that the version that you have been working with your own changes is now superseded by a new module. Target MyBalanceNow