on 12-30-2014 9:21 PM
I am exploring the launchpad configuration options to disable Personalization options like move, rename, delete, reset or create new groups. In addition, disable the ability to change Theme under user preferences.
As SAP help suggested multiple approaches, I have started working on the approach to copy the out of the box fiori launchpad(BSP name: /UI2/USHELL) to custom BSP application(YTEST) and edited the files PersonalizationOff.json and FioriLaunchpad.html. These edits were carried out in the copied application in the sandbox.
When the custom launchpad is launched, Configurations maintained in PersonalizationOff.json file, which is referred in the FioriLaunchpad.html were not applied as expected.
Below are the screen shots of the PersonalizationOff.json , FioriLaunchpad.html and error that was captured into console.
Any inputs to have PersonalizationOff.json setting applied to custom launchpad is much appreciated. Thanks.
Hi ANil,
Were u able to resolve the issue ??
Actually im faacing the similar issue. I want to know where to add the parameters inside fiorilaunchpad.html file?
Once i added im getting the sysntax error.
Regards
karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kathik,
Seemingly you deleted a significant amount of JavaScript code from the file and the structure is corrupted. (I don't want to write down how you can "sweep the problem under the rug")
Please restore the original version otherwise it would cause some unexpected behavior and it can expose your system to serious security risks.
After you restore the original state it is advised to modify only the part documented in the following article:
- Setting Parameters in the FioriLaunchpad.html File
http://help.sap.com/saphelp_uiaddon10/helpdata/en/8f/f1fd49eddf40c9a3450a1a37065a62/content.htm
There are more sophisticated methods to make the configuration than the direct modification of the Launchpad file. They can spare you a lot of time and a problems.
Please see this article:
- Configuring the Launchpad
Regards,
Adam
Hi Adam,
I did not delete any scipt code from html file. I have just added some code. Now i have reverted it back to the original state.
But kindly tell me hhow to add the code for parameters inside html file. What is the sysntax.
the following code i want to add inside fiorilaunchpad.html
// platform specific (ABAP) bootstrap configuration
"bootstrap" : {
"serverConfiguration" : {
"sap-ushell-config-url" : undefined, // optionally define a hard coded absolute or relative path here (prevents using url filename!)
"serverConfigurationFolderWhitelist": {
"" : true,
"cfg/" : true,
"cfg/sap/" : true,
"/sap/ushell_config/" : true,
"/sap/bc/ui5_demokit/test-resources/sap/ushell/demoapps/BootstrapConfigSamples/" : true
}
}
}
kindly help me. whre to add along with the syntax
Regards
Karthik
Hi Karthik,
The first part of the corresponding JavaScript object is missing that is why you get the error message.
It was probably deleted. (may be not by you)
Depending on the Launchpad version at least a dozen of lines are not in place.
Within that script tag there should be a function() for the initialization. The JS object for the configuration is part of that particular function.
If you are not able to restore the file to it's original state then you should reapply the corresponding note for the Launchpad.
Regards,
Adam
Add below code to the custom launchpad.html and did worked for me.
// platform specific (ABAP) launchpad configuration
"launchpadConfiguration" : {
"configurationFile" : {
"sap-ushell-config-url" : "/sap/bc/ui5_ui5/sap/ZLPAD_NEW/shells/abap/cfg/sap/PersonalizationOff.json" // optionally define a hard coded absolute or relative path here (prevents using url filename!)
"configurationFileFolderWhitelist": {
"" : true,
"cfg/" : true,
"cfg/sap/" : true,
"/sap/ushell_config/" : true,
"/sap/bc/ui5_demokit/test-resources/sap/ushell/demoapps/LaunchpadConfigFileExamples/" : true
}
}
}
Hi Anil,
I have made a copy of standard fiori launchpad html.
I'm still not able to find where should i write the code inside html . I get the syntax error in the page if i just copy and paste.
the following code
// platform specific (ABAP) launchpad configuration
"launchpadConfiguration" : {
"configurationFile" : {
"sap-ushell-config-url" :"/sap/bc/ui5_ui5/sap/ZLPAD_NEW/shells/abap/cfg/sap/PersonalizationOff.json"// optionally define a hard coded absolute or relative path here (prevents using url filename!)
"configurationFileFolderWhitelist": {
"" : true,
"cfg/" : true,
"cfg/sap/" : true,
"/sap/ushell_config/" : true,
"/sap/bc/ui5_demokit/test-resources/sap/ushell/demoapps/LaunchpadConfigFileExamples/" : true
}
}
}
Can anyone please post the function inside which i should write the above code.
Hi Karthik,
If somebody just sends you a bunch of code lines and you just copy and paste it into to the .html file you could face the following consequences:
- there is no guarantee that it will work because e.g. it is from a different version and it uses and references resources and UI5 codes that are not in your current installation --> you will end up with ten times more errors
- if it would not be sent with someones best intentions it could break the normal operation of you Launchpad --> use your imagination
That is why I suggested that you should rather re-apply the latest Launchpad update from the original source. The built in mechanisms know best what you should use and what you shouldn't.
It is up to you but you should not expect to help you in a risky scenario you plan.
If you have still doubts then you should contact SAP support.
Regards,
Adam
Dear Anil,
As the name suggests in the "serverConfigurationFolderWhitelist" JS object you should specify the the list of FOLDERS (string-value pairs) which are considered to be permitted.
You specified the name of config file instead of the folder's.
In this case the launchpad bootstrap considers the /sap/.../PersonalizationOff.json directory the permitted one (which obviously not present)
So basically the config file you specified does not match any of the items in the white list.
Long story short: delete "PersonalizationOff.json" from the corresponding white list item and it would work fine.
Regards,
Adam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.