Skip to Content
0
Former Member
Sep 12, 2018 at 10:52 AM

sap.m.TablePersoController multiple tables personalization

198 Views Last edit Sep 12, 2018 at 11:35 AM 3 rev

I am trying to apply a single table personalization to multiple tables. This is the instantiation of my tableperscontroller:

var oProvider;
if (sap.ushell) {
				// Create a persistence key
	var oPersId = {
		container: "persistanceContainerB1",
		item: "persistanceItemB1"
	};
	oProvider = sap.ushell.Container.getService("Personalization").getPersonalizer(oPersId);
} else {
	oProvider = TablePersoService;
}

// Init and activate controller
this._oTPC = new TablePersoController({
  tables: [this.oTable, this.oTableHeader],
  componentName: "com.cap.rtt2",
  persoService: oProvider
}).activate();

But it does not apply to both of them, only for one.

Does anyone have experience with applying the personalization to both tables?

Thank you in advance,

Best,
Thijs