Prashant Sharma
11/08/2022, 3:08 PMdisplayForm.
Note: we are using Goodata CN and Gooddata UI version 8.11.0.
Regards,
PrashantPrashant Sharma
11/08/2022, 3:10 PMbackend.attributes()
.elements()
.forDisplayForm(displayFormRef)
.withOptions({
uris: elementUris,
})
.query()
Prashant Sharma
11/09/2022, 10:05 AMPetr Dolejsi
11/09/2022, 10:47 AMPetr Dolejsi
11/09/2022, 10:50 AMbackend..measures()
Petr Dolejsi
11/09/2022, 10:53 AMbackend.execution()
SPI service that can get you values of a measure in various contexts.Petr Dolejsi
11/09/2022, 10:53 AMPrashant Sharma
11/09/2022, 11:09 AMPrashant Sharma
11/09/2022, 11:17 AMPetr Dolejsi
11/09/2022, 11:19 AMlocalIdentifier
points to a measure in either AFM or in visualizationObject
(or IInsight
, depends where you see this information). You will find it in one of the measure buckets. There will be a ref of the measure or its current title/alias.Petr Dolejsi
11/09/2022, 11:19 AMPetr Dolejsi
11/09/2022, 11:21 AMPrashant Sharma
11/09/2022, 11:27 AMconst insight = await backend
.workspace(workspace)
.insights().getInsight(idRef(INSIGHT_ID));
Prashant Sharma
11/09/2022, 11:27 AMmeasureValueFilter
objectPrashant Sharma
11/09/2022, 11:28 AMPrashant Sharma
11/09/2022, 11:29 AM<Measure Title > GREATER THAN [value]
For example: Sum of Marks GREATER THAN 80
Prashant Sharma
11/09/2022, 11:43 AMPetr Dolejsi
11/09/2022, 11:53 AMbackend.workspace(…).insights().getInsight(ref)
you can call .bucket.flatMap((bucket => bucket.items)).find(item => item.localIdentifier === measureValueFilter.measure.localIdentfier)
Prashant Sharma
11/09/2022, 11:56 AMPetr Dolejsi
11/09/2022, 11:56 AMIAttributeOrMeasure
object. You can check the correct type via isMeasure()
from sdk-model
package and then you will get IMeasure
object that has title
and alias
properties. Measure of the insight in our apps shows alias value if it is defined, if not it shows title. This way you should get the measure name.Prashant Sharma
11/09/2022, 11:57 AMPetr Dolejsi
11/09/2022, 11:57 AMPrashant Sharma
12/06/2022, 11:50 AMPetr Dolejsi
12/06/2022, 12:41 PMPetr Dolejsi
12/06/2022, 12:41 PMJan Soubusta
12/06/2022, 1:19 PMPrashant Sharma
12/06/2022, 2:13 PMPeter Plochan
12/07/2022, 12:34 PMAdmin
group has Organization.MANAGE
access = can “touch” everything in the organization.
• Analyst
group has access only to workspaces which are not parents in the workspace hierarchy.
• You have workspace hierarchy with a parent workspace (let’s say it has ws-parent
ID) and some child where the Analyst group has access (let’s say it has ws-child
ID).
... you performed/tried to perform these operations:
• As Admin, you created an insight (with insight-id
ID) in ws-parent
(POST /api/v1/entities/workspaces/ws-parent/visualizationObjects
).
• As Analyst, you wanted to access this insight in ws-parent
(GET /api/v1/entities/workspaces/ws-parent/visualizationObjects/insight-id
) -> you’ll get 404 because the you don’t have access rights to a ws-parent workspace.
• As Analyst, you were able to access this insight in ws-child
(GET /api/v1/entities/workspaces/ws-child/visualizationObjects/ws-parent:insight-id
) because you have access rights to ws-child and the insight-id is inherited from the ws-parent workspace. Here, as @Jan Soubusta said, the explicit workspace prefixing will be removed in one of next GoodData.CN releases.
Please, correct me if I’m not right. Thanks!Prashant Sharma
12/07/2022, 2:45 PMPrashant Sharma
12/09/2022, 8:25 AMPetr Dolejsi
12/12/2022, 10:24 AM