a few days ago i developed a script in dxl to make a "first release" Baseline for each module in a project folder. But when I run the script appears a message saying I have not permissions to do so. This is my code:
void CreateBaseline (Module mod) { // Function to create
create (mod, nextMajor(), "First Release") // baseline
}
Folder fStart = folder "/Z_Training/Baselines" // Folder
Module iCurrent // Module handler
for iCurrent in fStart do{
setExclusive() // Set Exclusive edit
Module (iCurrent, true) // rights
CreateBaseline(iCurrent)
}
As you can see I included the line "setExclusive()" to deal with it, but this does not fix the problem completely since the baseline is created only for the current open Module. Could you help me in this? Thanks in advance.
Seems I omitted a step when answering Is it possible to create a baseline for each module in a Folder using a dxl script (DOORS)?. Sorry, I do not have a DOORS installation at my current computer.
The method how to open a module in exclusive mode is described in the DXL manual, section "Module manipulation". You will need the perm
Module edit(string name [,bool disp[, bool silent[, bool loadStandardView]]])
(see the manual for a description of the parameters).In this example this would be