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

Re: How to bind the property "title" of the StandardTile control to a property of an OData model?

$
0
0

Hallo Rajeesh,

 

first of all THANKS a LOT for your contribution. I went through your code and I tried to adapt my code in the same way. But it is NOT working.

 

In my XML View I wrote the following part

<StandardTile

              

                title            = "{/CPC_BAO_OverviewSet/0/BalanceDPc}"

                info             = "YXZ CFM Demo Apps"

                icon             = "image/xyzlogo.png"

                number           = "34567"

              

                infoState        = "Success"

                type             = "None"

                iconDensityAware = "true"

             />

 

In my Controller I created the OData model instance and  set it to the View=>

//Set model to View so that all UI controls inside that View can use it

         

        this.getView().setModel(oModelZBDFCFM_CPC_BAO_Overview);

 

In your solution you use the ABSOLUTE path there =>

title       

= "{/people/0/name}"

I guess the '0' in the path refers to the 1st Entity(Entry) in your JSON model which has TWO entries. I adjusted my code according to it, where "/CPC_BAO_OverviewSet" is the name of the EntitySet in my OData model which is supposed to CALL the GET_ENTITYSET method. And since in my case this method returns only ONE ENTRY(one ROW) I also used '0' in my ABSOLUTE path. But it is not working. I am really LOST here. Thanks again for your support 


Viewing all articles
Browse latest Browse all 3576

Trending Articles



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