on 12-27-2016 8:39 AM
Variant is disabled for botht smart filter and smart table.
I have chked below services are activated in SICF and console is showing the error "Component-changes.json could not be loaded".
/SAP/BC/UI5_UI5
/SAP/BC/LREPissue.pngconsole.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I had similar issue where the variant where disabled but somehow working within the LaunchPad. I had a look at the code and find out that the SmartVariantManagement is calling Utils.js method: _getAppComponentForComponent - in order to get an AppComponent
/**
* Returns the Component that belongs to given component whose type is "application".
*
* @param {sap.ui.base.Component} oComponent - SAPUI5 component
* @returns {sap.ui.base.Component} found component
* private
*/
_getAppComponentForComponent: function (oComponent) {
......
if (oSapApp && oSapApp.type && oSapApp.type !== "application") {
//we need to call this method only when the component
//an instance of Component is in order to walk up the tree.
if (oComponent instanceof sap.ui.core.Component) {
oComponent = this._getComponentForControl(oComponent);
}
return this.getAppComponentForControl(oComponent);
}
return oComponent;
},
My component was declared as type: "component" but then i've switched to type: "application" - the variant management started to work. So it looks like in order to be enabled, the variant management needs to find an AppComponent.
Hope this will help.
Patrice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you start the developers tool(F12) you will see there is an error referring to missing component-changes.json. Add this file to your project at the same level as the Component.js file. Then add below config to the file:
{ "changes": [], "settings": { "isKeyUser": true, "isAtoAvailable": true, "isProductiveSystem": true } }
This way the variant button should be enabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even me too facing the same issue, any one can give me a solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even i faced the same error and got it working after deploying to launchpad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you get a resolution to this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All
I am facing a similar issue where the Variant button is disabled. Please refer to the below screen shot
Below is the code I am using for displaying Smart table
<smartTable:SmartTable id="LineItemsSmartTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar" tableType="ResponsiveTable" useExportToExcel="true" editable="false" useVariantManagement="true" useTablePersonalisation="false" header="Entities" showRowCount="true" enableAutoBinding="true" persistencyKey="SmartTablePkey"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Basavaraja Goudar said it won't work unless you deploy it to the FIORI Launchpad. You are running it in eclipse on local server.
Hello,
whether this issue is solved.?
I am also facing same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.