Problem
Die Standardmethode gibt vom current die aktuelle Baseline zurück. Es soll aber die vorherige ermittelt warden.
Ansatz – Approach
Es wird durch die Baselines iteriert
Iterate through all baselines and get the previous (not the most recent) Baseline
Solution – Lösung
string getPreviousBaselineVersion(Module m)
{
Baseline b;
Module currentModule=current;
int blCount=0;
int minorVersion=0;
int majorVersion=0;
for b in currentModule do
{
blCount++;
}
int bl2Count=0;
for b in currentModule do
{
if(bl2Count==blCount-2)
{
minorVersion = (minor b);
majorVersion = (major b);
}
bl2Count++;
}
return majorVersion "." minorVersion "";
}
print getPreviousBaselineVersion(current);
Dear,
could you please tell me how to get acess to MySQL in Doors? Can you give me the DXL script. I use the script(http://www.capri-soft.de/blog/?p=761) but failed. Shoud I install any OLE tools?
Many thanks.