Tutorial: frame.getParentWindow

frame.getParentWindow

Returns a frame info object containing the frame's parent.

Example

const successCallback = (parentInfo) => console.log(parentInfo); // see return value below
const errorCallback = (errStr, err) => console.log(err);
const myFrame = fin.desktop.Frame.getCurrent();

myFrame.getParentWindow(successCallback, errorCallback);

// example info shape
{
    "uuid": "OpenfinPOC", // parent uuid
    "name": "OpenfinPOC", // parent name
    "parent": {
        "uuid": null, // grandparent uuid, here no grandparent exists
        "name": null  // grandparent name, here no grandparent exists
    },
    "entityType": "window"
}