Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3347

How to code Descriptor Line Below.

$
0
0

Hi friends,

 

I am not sure how to code this Descriptor line below show in image.

 

It seem simple to other please give some knowledge about it.

 

htc.GIF

 

Component.js code,

 

sap.ui.define([

   "sap/ui/core/UIComponent",

   "sap/ui/model/json/JSONModel",

  

], function (UIComponent, JSONModel) {

   "use strict";

   return UIComponent.extend("suda.Component", {

   

    metadata : {

           manifest: "json"

     },

 

 

      init : function () {

         // call the init function of the parent

         UIComponent.prototype.init.apply(this, arguments);

      // set data model

         var odata = {

            path : {

               name : "World"

            }

         };

         var oModel = new JSONModel(odata);

         this.setModel(oModel);

        

     

          }

   });

});

 

index.html,

 

<!DOCTYPE html >

<html>

   <head>

      <meta http-equiv="X-UA-Compatible" content="IE=edge">

      <meta charset="utf-8">

      <title>Walkthrough</title>

      <script

         id="sap-ui-bootstrap"

         src="resources/sap-ui-core.js"

         data-sap-ui-theme="sap_bluecrystal"

         data-sap-ui-libs="sap.m"

         data-sap-ui-compatVersion="edge"

         data-sap-ui-preload="async"

         data-sap-ui-resourceroots='{

            "suda": "./"

         }'  >

      </script>

      <script>

         sap.ui.getCore().attachInit(function () {

            

        new sap.ui.core.ComponentContainer({

                 name : "suda"

              }).placeAt("content");

         });

      </script>

   </head>

   <body class="sapUiBody" id="content">

   </body>

</html>

 

app structure,

htc1.GIF

 

 

Thanks in advance,

sudarshan


Viewing all articles
Browse latest Browse all 3347

Latest Images

Trending Articles



Latest Images

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