Unable to access 'chat1' since it is scoped to 'XPage' and 'query1' is scoped to the app

Hello @PraxBlackhorn!

Thank you for sharing the screen shot, that helps a lot.

It looks like you might be able to fix that bug by making 'table_allContacts' and the query that fetches its data globally scoped.

From the error message, 'table_allContacts' scope is limited to only components on the 'Contacts' page.

It seems that 'NewCampaign_campaignsList' is globally scoped as it mentions it is scoped to the app. So any information in that query/component is able to be shared to other pages on the app.

Check out our docs for more information on scoping in multipage apps as it can get a little confusing :sweat_smile:

Going through the docs it seems that "All other frames (e.g., Modal and Drawer) are page-scoped and only available within the app in which they reside." So you might need to have another way to query the selected row data :thinking:

@Anupriya_Dubey I have a hunch that while 'query1' is scoped to the app and can be accessible from anywhere within the app, that the 'chat1' component is limited to a single page's scope (XPage) so you might need to expand the scope on 'chat1' :crossed_fingers: