on 12-16-2014 4:06 PM
Dear experts,
Could you please advise the recommended way to select the first line in Split App view on launch of Fiori app by default?
The steps I took:
1. Created a custom Fiori app as per the guide here (using Split App view): http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8022ac87-1f60-3110-5383-fa68a91d7...
2. All works nicely with one exception. On subsequent launch of the Fiori app, I want the first line to be selected already, so that the Detail view is populated with the details of the first line item by default
Can anyone please advise how to go around doing that?
Thanks in advance.
Pavel
Hi Pavel,
Normally when you load the master view you can use the onInit method to wait for the list to be loaded and then select the first line. The problem is that the list is not available because of the loading of the components. I used the following code:
this.getView().byId("list").attachEventOnce("updateFinished", function(oEvent) {
jQuery.when(this.oUpdateFinishedDeferred).then(jQuery.proxy(function() {
this.selectDetail();
}, this)); this.oUpdateFinishedDeferred.resolve();
}, this);
Greetings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.