Forum Discussion
cunderw
10 years agoCommunity Hero
Are you saying files system folders? Or expandable folders in the log itself?
If you want to create folders inside the log, these two functions should give you what you need.
// creates a new sub-section in the log that is indented and collapsable
function indentLog(sDescription) {
var oAttr;
oAttr = Log.CreateNewAttributes();
oAttr.Bold = true;
STEP_ID = Log.CreateFolder(sDescription, "", pmNormal, oAttr);
Log.PushLogFolder(STEP_ID);
}
// restores to last position in the log
function outdentLog(sExpected) {
if(sExpected == undefined) {
sExpected = "Finished";
}
Log.Message(sExpected);
Log.PopLogFolder();
}