How to use the @nakedobjects/restful-objects.inlinePropertyDetails function in @nakedobjects/restful-objects

To help you get started, we’ve selected a few @nakedobjects/restful-objects examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / services / src / context.service.ts View on Github external
private editOrReloadObject(paneId: Pane, object: Ro.DomainObjectRepresentation, inlineDetails: boolean) {
        const parms = Ro.inlinePropertyDetails(inlineDetails);

        return this.repLoader.retrieveFromLink(object.selfLink(), parms)
            .then(obj => {
                this.currentObjects[paneId] = obj;
                const oid = obj.getOid();
                this.dirtyList.clearDirty(oid);
                this.cacheRecentlyViewed(obj);
                return Promise.resolve(obj);
            });
    }