Re: Requirement Folder creation restriction - need input

@Jan Czajkowski Thanks a lot for your input. This logic works for Requirement module.

For Test Lab module, however, the logic is a bit different.

Here I need to identify the level of Test Set Folder that User is trying to create and if the level is more than 2 depth (like: Root\Base_Folder\Leaf_Folder\New Folder Name), then it will allow, otherwise not.

Re: Requirement Folder creation restriction - need input

It is not clear to me from what you write when you get the error and what is the exact error message.One general tip is that when setting ActionCanExecute = False, always do an Exit Function - otherwise the function will be allowed to execute in any case.

The approach I would use to check that folder depth is enough would be to get the father ID of current folder, then father ID of father folder. If not equal to Root ID, allow folder creation.

Jan Czajkowski

[Please do not contact me off line for receiving support. Use the forum!]

Re: Requirement Folder creation restriction - need input

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.