내용으로 건너뛰기

What should I use instead of ui. for fetch data of components of another page?

0

The ui namespace will only show components on the current page, as components are scoped to their respective pages. but what if i need to access components from another page

질문됨 한 달 전7회 조회
1개 답변
0

In AWS App Studio, the ui namespace is limited to accessing components only on the current page, as components are scoped to their respective pages. If you need to access components or data from another page, you should consider alternative approaches:

  1. For Amazon Connect views, you can use the "Set JSON" option in the Show view block, which allows you to reference all namespaces in flows, including $.External. This enables you to share data from external systems to your agent in any view you create.

  2. In general, for cross-page data sharing, you should consider:

  • Using a shared data store or state management
  • Passing data through parameters when navigating between pages
  • Using automation actions to store and retrieve data that needs to be accessed across different pages

The component scoping limitation is intentional in the design of AWS App Studio to maintain proper separation between pages.
Sources
Using JavaScript to write expressions in App Studio - AWS App Studio
Views: UI templates to customize an agent's workspace in Amazon Connect - Amazon Connect

답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠