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

Re: Use Odata recovered in table

$
0
0

Hi,

 

 

How to recover the values "Evaluation" in the JSON?

 

 

the development

 

 

  Json Odata Gateway

 

  {

  "d" : {

    "results" : [

      {

        "__metadata" : {

          "id" : "http://odata/LotsSet('000000497417')",

          "uri" : "http://odata/LotsSet('000000497417')",

          "type" : "odata.Lots"

        },

        "Insplot" : "000000497417",

        "DelivNoteDelivNumb" : "",

        "InsplotSize" : "800.000",

        "InsplotBaseUom" : "KG",

        "MatDoc" : "5004059328",

        "Center" : "0501",

        "CreatDate" : "\/Date(1459209600000)\/",

        "LotToOperation" : {

          "results" : [

            {

              "__metadata" : {

                "id" : "http://odata/OperationsSet(Insplot='000000497417',Inspoper='0010')",

                "uri" : "http://odata/OperationsSet(Insplot='000000497417',Inspoper='0010')",

                "type" : "odata.Operations"

              },

              "Insplot" : "000000497417",

              "Inspoper" : "0010",

              "TxtOper" : "Inspección Visual",

              "OperationToCharacteristic" : {

                "results" : [

                  {

                    "__metadata" : {

                      "id" : "http://odata/CharacteristicsSet(Insplot='000000497417',Inspoper='0010',Inspchar='0070')",

                      "uri" : "http://odata/CharacteristicsSet(Insplot='000000497417',Inspoper='0010',Inspchar='0070')",

                      "type" : "odata.Characteristics"

                    },

                    "Insplot" : "000000497417",

                    "Inspoper" : "0010",

                    "Inspchar" : "0070",

                    "Evaluation" : "R1",

                    "UpTolLmt" : "",

                    "LwTolLmt" : ""

                  },

   {

                    "__metadata" : {

                      "id" : "http://odata/CharacteristicsSet(Insplot='000000497418',Inspoper='0010',Inspchar='0070')",

                      "uri" : "http://odata/CharacteristicsSet(Insplot='000000497418',Inspoper='0010',Inspchar='0070')",

                      "type" : "odata.Characteristics"

                    },

                    "Insplot" : "000000497418",

                    "Inspoper" : "0010",

                    "Inspchar" : "0070",

                    "Evaluation" : "R2",

                    "UpTolLmt" : "",

                    "LwTolLmt" : ""

                  }

                ]

              }

            }

          ]

        }

      }

  ]

  }

}

 

  XML View DEtail

 

  <Table id ="id_table" >

  <columns>

  <!--Product description-->

  <Column minScreenWidth="Tablet" demandPopin="true" width="30%">

  <header>

  <Label text="Table example" />

  </header>

  </Column>

 

 

 

 

  </columns>

  <ColumnListItem id ="ItemList">

  <cells>

  <!--Product description-->

  <Text text="{Evaluation}"  />

  </cells>

  </ColumnListItem>

  </Table>

 

 

  Code controller view detail

 

  this.oItemTemplate = this.byId("ItemList").clone();

 

  var oItemTable = this.byId("id_table");

 

  var path2 = sEntityPath + "/LotToOperation(Insplot='"+oParameters.arguments.id+"',Inspoper='0010')/OperationToCharacteristic";

 

 

  oItemTable.bindItems({

  path: path2,

  template: this.oItemTemplate

  });

 

regards

Diego


Viewing all articles
Browse latest Browse all 2807

Trending Articles



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