How do I pass down page parameters to a sub-page/viewport component?

HedgeHodge
Tera Contributor

I have a sysId and a table passed to the record page which renders a viewport component. The problem is that my viewport component doesn't have access to those props.

When I pass @context.props.sysId and @component.props.table to the glide form data resource, I load the page and I see this... 

 

 

1 REPLY 1

sanna3
Tera Contributor

I got it to work by creating a new page parameter/property in the record page and binding "@context.props.sysId" to it.
Then I was able to reference the page parameter name from a subpage.

 

In this post they do the same but with "@context.props.nowRecordFormBlob.sysId":
https://www.servicenow.com/community/next-experience-forum/configurable-workspace-gt-contextual-side...