cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI5 Building Blocks: How to enable global variant management?

JanKrieg
Discoverer
918

Hi experts,

I am using sap.fe.macros.Table in a freestyle app (not within the FLP) and have set the parameter variantManagement = "Control". I can save variants locally but not globally so that they are available to other users. I assume this requires creating a database table and implementing specific event handlers. However, I haven't found any relevant events in the API documentation.

The API documentation for sap.fe.macros.Table mentions: "If set with value Control, a variant management control is displayed within the table, and the table is linked to it." How can I access this control to attach the necessary event handlers? Is there any sample code available for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion

i don't think you need to do anything,

this is example, my free style page has filter bar and tree table, their vairant are managed by one variantmanagement control.

<v:VariantManagement id="idCCBTVM" for="idFilterBar,idContractListTbl"></v:VariantManagement>
junwu
SAP Champion
SAP Champion
the filter bar is macro control,<macros:FilterBar ,
JanKrieg
Discoverer

Hi Junwu,

I clicked "Save As," entered the name "xyz" for the variant, and additionally checked the "Public" field. However, the variant is saved only locally.

Another user cannot see the variant "xyz." I checked the network traffic, and there is no call to save the variant. How can another user see the variant if it is not saved to the database? This is what I mean by saving it globally.

Thanks,
Jan

junwu
SAP Champion
SAP Champion
what is your environment?
JanKrieg
Discoverer
0 Kudos
The app runs on the BTP. It is a CAP application.