cancel
Showing results for 
Search instead for 
Did you mean: 

2 UI Table elements share one context but different data records

abhishek_nms
Participant
0 Kudos

Hi All,

Existing Scenario:

I have 2 UI Table element mapped to two Different Context Nodes ( for Example Existing Roles & Requested Roles ) . But as a Code improvision, I was thinking to reduce it one Single Context as both have same structures !

The problem is: How to filter the Corresponding Data Records ( Existing & New ) from the single Context  to each corresponding UI element

(i.e., Existing Roles Record should be shown in Existing Roles Table  while New Roles Record should be shown in New Roles Table ) ?

Is it Possible ?  If possible how ?

My Assumption: Each UI element is mapped to One Context NODE, though multiple UI elements can be mapped to One Context, but there cannot be difference in data shown. Is this true ?

Accepted Solutions (1)

Accepted Solutions (1)

chengalarayulu
Active Contributor
0 Kudos

Abhishek,

If the both Table UI elements are on the same page, then there should be two nodes to bound. If they are on different pages, then you can go forward with single context.

And Your assumption is absolutely correct. there is no difference in context existed data.

abhishek_nms
Participant
0 Kudos

Yes, Both exist in One View,

So, you mean to say we CANNOT filter the data from the Context ( that has both Existing & New Roles Together) before passing it  (I know it is binded, looking for provision to filter the data ) to the corresponding UI element ?

Thanks for the Answer

chengalarayulu
Active Contributor
0 Kudos

Yes, we can't abhishek.

Answers (1)

Answers (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

HI,

As mentioned if you need the 2 different nodes for 2 UI element in the same view.

If you are in 2 different views, you can use the same context node from component controller's context node binding and then populate the data differently in internal tables in the views and then bind it to the node.