Check if module is available in Exlusive-Edit mode before opening

Hello,

from time to time I have to run some scripts in DOORS which must open the modules in exclusive edit-mode.

If someone else is working in this module, I will be asked if I want to open the module in read-only mode. I don't want to be prompted and I don't want to open the module in read-only mode. I just want to print an errormessage and go on with the next module.

My first try was:
 

for item_i in current Project do
{
    if (type(item_i) == "Formal")
    {
        if (!canModify(item_i)) //Check if module is editable
        {
            outstream << "Error! Module not accessible."
                continue //next module
        }
    }
}

 


But it didn't work. The canModify(item_i) only checks if I have the general access-rights to this module :-(

Any ideas?

 


Senseo - Wed Dec 09 02:46:42 EST 2009

Re: Check if module is available in Exlusive-Edit mode before opening
Peter_Albert - Wed Dec 09 03:15:05 EST 2009

See this thread.

Regards,

Peter