Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 Fiori like application

I have an issue and hope you can help me

I developed a Fiori like application that get data from PRD and display it to user

I used master-details view with SplitApp()

all view was created as XML view and controller in controller.js

the issue is when I open the application in google chrome and open the "inspect elements  Ctrl + Shift + I" I found all my controllers code is available to all users as shown in attached file.

How can hide the controller javascript code or run it at server not at client?

Thank you

Salah Afia

Tags:
Former Member
replied

Hi Salah;

As controllers are written in javascript and javascript needs to be executed on the client machine.

It has to be sent to the client machine. So you cannot hide it or prevent users from seeing it if they want to. However you can minify (Minify Javascript Online / Online JavaScript Packer) it or use Obfuscator (http://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx) to make it not easily  understandable.

Regards,

Sarbjeet Singh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question