Quantcast
Viewing all articles
Browse latest Browse all 9052

Shell Workitem content getting deleted?

hi

Am currently working on creating a Shell UI Control with multiple work items & sub items. Each Work-Item Sublink will have different UI content that will be displayed on the Canvas..The content of the 1st sub-link is generated correctly. However, when I navigate to a different sublink, the content is does not generated...Also when I navigate back to the first sublink, its content also get deleted.

here is what I have,

 

Shell Definition

worksetItems : [

                            new sap.ui.ux3.NavigationItem({id : "id_wiAssignment",text : "Assignment",key : "WI_Assign", tooltip : "Assignment",

                                        subItems : [

                                                    new WI("WI_Assign_Lot",{key:"WI_Assign_Lot", text:"Lot/Assignment"}),

                                                    new WI("WI_Assign_Seller",{key:"WI_Assign_Seller", text:"Seller Info"}),

 

 

------some more ----

 

worksetItemSelected : [ function(oEvent) {

                                        var sId = oEvent.getParameter("id");

                                        var oShell = oEvent.getSource();

 

                                        switch (sId){

                                        case "WI_Assign_Lot":

                                                  oShell.destroyContent();

                      oShell.setSelectedWorksetItem("WI_Assign_Lot");

                                                  oShell.setContent(this.createLotContent("WI_Assign_Lot"));

                                                  break;

 

                                        case "WI_Assign_Seller":

                                                  oShell.setSelectedWorksetItem("WI_Assign_Seller");

                                        //          oShell.destroyContent();

                                                  oShell.setContent(this.createSellerContent("WI_Assign_Seller"));

                                                  break;

 

                                        case "id_wiTrip_Comm":

----

 

On the first run of the shell, the content inside the work item WI_Assign_Lot gets created..no problem...if I go to the 2nd sub-link WI_Assign_Seller, content is not created...

 

Also from 2nd sub link, while navigating to the 1st sub-link - the 1st sub-link content is erased.

 

Any help, what could be wrong here.

 

Thanks

Sandip

 

Message was edited by: Sandip Agarwalla


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>