You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cause of the problem seems to be in getProfile (). The label is used in stead of the profile name.
export function getProfile(node: IZoweTreeNode) {
let profile = node.getSessionNode().label.trim();
// if this is a favorite node, further extraction is necessary
if (profile.includes("[")) {
profile = profile.substring(profile.indexOf("[") + 1, profile.indexOf("]"));
}
return profile;
}
Please would it be possible to use the node getProfileName() function instead?
(That way the path would always include profile name instead of Favorite?)
Thanks.
Travis Thorne.
The text was updated successfully, but these errors were encountered:
I would prefer to have an API call to figure out what profile a particular resource belongs to rather than having the extenders parse the document paths.
Thank you for raising this issue.
The community has 90 days to upvote 👍 the issue.
If it receives 10 upvotes, we will move it to our backlog. If not, we will close it.
Hi,
When a "non favorite" data set is opened, the document path is:
temp/_D_/profile name/dataset(member)
This is great as it allows extenders to parse the document path to extract profile and resource name.
However "favorite" data sets result in the profile name of "favorite" instead, e.g.
temp/_D_/favorite/dataset(member)
This makes it impossible to determine which profile was used to open the resource.
Would it be possible to include the profile name in path for favorite data set too?
I think the issue is in the openPS() call to getDocumentFilePath().
...
In get document path there is a call to getProfile:
...
The cause of the problem seems to be in getProfile (). The label is used in stead of the profile name.
Please would it be possible to use the node getProfileName() function instead?
(That way the path would always include profile name instead of Favorite?)
Thanks.
Travis Thorne.
The text was updated successfully, but these errors were encountered: