Your Privacy
We use cookies to give you a better experience in BlueWorx
You can learn more about what kind of cookies we use, why, and how from our Privacy Policy. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings in our cookie banner to change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. For more details, check out our Privacy Policy link below.
Strictly Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off in our systems, but do not store any person information. They are usually set in response to your actions that triggers a request for services, such as setting your privacy preferences, logging in or filling forms. You can change your browser settings to alert you about these cookies, but some parts of the Website may not work.
View Cookies
One of the common Neptune Development practices is to load an app directly into the browser and then check the values and properties of SAP UI5 objects directly in the browser console. In the recent releases of the Neptune Planet 8 Platform the way that the application code is loaded has changed and you can no longer directly access the UI5 objects.
The screenshot below shows accessing the Admin App Settings Tab Bar in a version prior to version 6 of the Planet 8 Platform.
The object is shown and it's properties can be accessed. This is very useful when debugging and developing applications.
Doing the same in the latest Planet 8 version 6 releases returns the DOM element, not the UI5 Object.
The UI5 Framework keeps track of all the objects, and the UI5 Framework is in the global scope so we can access UI5 Objects by their id.
sap.ui.getCore().byId("tabBarSettingsDefaults").getText(); "Settings"If you want to create a shortcut to save on typing create a variable that accesses sap.ui.getCore().byId.
In this case I've made a shortcut variable "z" so that I can call z("tabBarSettingsDefaults") to access the tabBarSettingsDefaults object.
Happy Coding!
1 Votes
0 Comments
Login or Sign up to post a comment