Does someone know how to update a cell browser view on the spot. I am trying refresh and flush but it is not working. I am having to remove the cell browser from the widget and then place it again.
For e.g. If I have a leaf and wants now to add a node to leaf and make it a parent. When I add the children to the leaf (say leaf A), I need to click on another item of the cell browser and then after clicking on another item, then when I click on leaf A which is now a parent it is only then that I see the newly added children
Therefore the problem I am getting it that whenever I add a children to a leaf to make it a parent, I does not see the change on the spot. I need to click on another item and then return back to see the change
Ok, I did it:
In the tree model, the isleaf, i made it return false always. then when adding a node to a leaf, since the browser for the leaf is already open, a a node to the leaf, then just refresh the data provider
Related
When adding a child component to Tabs/Carosel (or any component that uses common panelselect), it does add a tab but it does not show up in panel selector view (to give it a name). However if user closes and reopens that panel to add item, previously added item shows up
Here is my question, I have a simple grid list, where each tile contains a text and a favorite icon.
That grid is linked to a provider (which contains all the data), and each tile is linked to a nested provider which points to an individual element of the list provided above.
Now when I click on a tile I navigate to a details page, which just shows the name of the object, a favorite icon (outlined or not if the object is favorite or not) and a button "mark as favorite".
(I do that via Navigator with an argument representing my object, that I retrieve after from the grid provider)
Now when I click on the button I want to mark that object as a favorite, which is working fine (in the grid it shows the good status thanks to the provider), BUT how do I update my details page right away ?
Should I always use a stateful widget in that case ? or is there another way to "listen" to my item provider ?
I suppose that somehow I should be able to mark my details page as a listener of my provider, but I don't know how cause the details page is not in the same hierarchy as my grid tile...
Thanks for any feedback on this !
I have a SAPUI5 m.columnlist contained inside m.table. I am supposed to click on any one of the item of columnlist which takes you to new page. From new page when you navigate back to the old page, the list scrolls to the top. I wished to maintain its state from where it is clicked and that item to be selected which was selected previously.
Getting no idea ho to go ahead with this.
A user clicks on menu item and a child window is shown (non-modal). How do I prevent user to not open the same window again?
I know I can handle initialize and Closed events of the child window to add.remove it to some collection of opened child windows, but I am looking at the pure and clean MVVM way.
I think you should add one property to your view model class to handle visibility of a view, then bind it to your view. Inside setter section of you property check if its value is changed, if not just return.
You don't need to create a lot of child windows in your application, just control the visibility of existing one and change the data you want to show.
I'm trying to use Firebug to inspect a page element that appears when I hover over a photo.
Problem is, the element's position is dynamically offset from the mouse position, so it's impossible for me to right-click on it to get the "Inspect Element" option.
I had hoped that the onhover element would be inserted into the DOM in a sensible place, but so far, I haven't been able to find it.
Any suggestions?
If you know where in the DOM the new element will be created (quite often those elements are created as children of the body element) you can set up a breakpoint for when it is created.
Let's assume that the element will be created as a child of the body element. You will be able to inspect the element if you follow these steps:
Load the page
activate FireBug's HTML panel
Locate the body element
Right-click on the body element and choose Break on Child Addition or Removal from the popup menu
Go hover over your photo to trigger the wanted element's creation
Script execution should then break as soon as the element is created. At that point you will have all the time you need to inspect that dynamically created element, even in the HTML panel.
This isn't an ideal solution, but you could investigate the onhover code to find out more information about the element that's being created. That info might allow you to find it in Firebug's DOM viewer.
Can you search for the element using the search bar at the top of the firebug window?
You can use CTRL+F to find it in the code view.