Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Widget update

$
0
0

Hello,

 

I have a problem with widget updating on the Cloud Portal.

Here what is going on:

1. I create a widget, upload it to Cloud Portal. Then I can drag the widget to a site, it works OK.

2. I make some changes in JavaScript code of the widget in Eclipse.

3. I delete currently uploaded widget from the content.

4. The updated widget is uploaded to Cloud Portal.

5. Using the Network tab of the developer tools, I can see that the code of my JS file did not change (and, of course, the widget doesn't work as it should after the changes to the code were made).

 

In my case, at the beginning, I had a table in widget that was defined as follows:

 

oTable = new sap.m.Table( {   

               id: "descriptionTable",

               mode: sap.m.ListMode.SingleSelect,

               backgroundDesign: sap.m.BackgroundDesign.Translucent,

               columns: [

                         oPopulation,

                          oCapital,

                ],

});

  Then, I have updated the table as follows:

 

oTable = new sap.m.Table( {   

                id: "descriptionTable",

                mode: sap.m.ListMode.SingleSelectMaster,

                selectionChange: prepublish,

                backgroundDesign: sap.m.BackgroundDesign.Translucent,

                columns: [oPopulation, oCapital ],

});

But the table still looks as it is shown in the first code snippet.

 

The question is how do I update widgets on the Cloud Portal after I update their code in Eclipse?

 

Regards,

Yuri.


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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