Hi experts,
I am developing a SAS Visual Investigator custom page extension and I am using the SVI API documented at:
Hi @EyalGonen
The pageModel.data contains:
These are retrieved as part of the object page request and are used when saving an object - child objects are saved alongside their parent.
Other related-object data is not stored in pageModel.data, but can be fetched separately.
e.g.
check traversal UUID with:
https://developer.sas.com/sdk/vi/apiDocs/interfaces/traversal.TraversalApi.html#getTraversals
and then fetch records with:
Hi @EyalGonen
The pageModel.data contains:
These are retrieved as part of the object page request and are used when saving an object - child objects are saved alongside their parent.
Other related-object data is not stored in pageModel.data, but can be fetched separately.
e.g.
check traversal UUID with:
https://developer.sas.com/sdk/vi/apiDocs/interfaces/traversal.TraversalApi.html#getTraversals
and then fetch records with:
Hi @EwanSkene
Thanks for replying.
1. So I understand there is no single API which generally allows access to all data displayed on the entity page regardless of the component type?
2. Let's say I am opening a page for entity type PERSON with ID=11111. I need to access these two values ("PERSON" and "11111") for calling the function you recommended: https://developer.sas.com/sdk/vi/apiDocs/interfaces/traversal.TraversalApi.html#getFieldsByTraversal... how can I obtain these values?
1. That's right.
I don't know your use case, but would document generation help here to gather/display object and related data?: https://go.documentation.sas.com/doc/en/vicdc/v_037/visgatorag/custom-document-templates.htm
2. The pageModel.type and pageModel.id correspond to these values.
You'll also need field names which can be specified, or could take all names from the related object type's metadata fields:
https://developer.sas.com/sdk/vi/apiDocs/interfaces/metadata.MetadataApi.html#getEntity
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!