Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: Error when using MII with SAPUI5

$
0
0

You still do not understand.....we have to use the JSON model. - sap.ui.model.json.JSONModel()

 

The xml file already got converted to JSON.

 

Also in the XML file it does not have an element.

 

The following XML is what we have:

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="ProjectsStatus_Applications.xsl"?>
<Rowsets CachedTime="" DateCreated="2014-05-12T10:31:48" EndDate="2014-05-12T10:31:48" StartDate="2014-05-12T09:31:48" Version="14.0 SP4 Patch 1 (Jan 8, 2014)">
    <Rowset>
        <Columns>
            <Column Description="Applications Name" MaxRange="100" MinRange="0" Name="Applications" SQLDataType="12" SourceColumn="Jobs"/>
            <Column Description="" MaxRange="100" MinRange="0" Name="PercentComplete" SQLDataType="4" SourceColumn="PercentComplete"/>
            <Column Description="Date in ascending order" MaxRange="100" MinRange="0" Name="DateDue" SQLDataType="93" SourceColumn="DateDue"/>
            <Column Description="" MaxRange="100" MinRange="0" Name="TestingDue" SQLDataType="12" SourceColumn="TestingDue"/>
        </Columns>
        <Row>
            <Applications>WVL BOD 9212</Applications>
            <PercentComplete>75</PercentComplete>
            <DateDue>6/16/2014</DateDue>
            <TestingDue>6/23/2014</TestingDue>
        </Row>
       <Row>
            <Applications>WVL BOD 9211</Applications>
            <PercentComplete>75</PercentComplete>
            <DateDue>6/16/2014</DateDue>
            <TestingDue>6/24/2014</TestingDue>
        </Row>
        <Row>
            <Applications>ETW BOD 3303</Applications>
            <PercentComplete>75</PercentComplete>
            <DateDue>6/16/2014</DateDue>
            <TestingDue>6/25/2014</TestingDue>
        </Row>
       <Row>
            <Applications>ETW BOD 3304</Applications>
            <PercentComplete>75</PercentComplete>
            <DateDue>6/16/2014</DateDue>
            <TestingDue>6/26/2014</TestingDue>
        </Row>
        <Row>
            <Applications>CLE BOD 1902</Applications>
            <PercentComplete>75</PercentComplete>
            <DateDue>6/16/2014</DateDue>
            <TestingDue>6/27/2014</TestingDue>
        </Row>
       <Row>
            <Applications>ISO HAZ</Applications>
            <PercentComplete>80</PercentComplete>
            <DateDue>6/1/2014</DateDue>
            <TestingDue>6/8/2014</TestingDue>
        </Row>
        <Row>
            <Applications>ISO CWO</Applications>
            <PercentComplete>80</PercentComplete>
            <DateDue>6/1/2014</DateDue>
            <TestingDue>6/8/2014</TestingDue>
        </Row>
       <Row>
            <Applications>WVL 3 Stream</Applications>
            <PercentComplete>60</PercentComplete>
            <DateDue>6/29/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>ISO Integration</Applications>
            <PercentComplete>10</PercentComplete>
            <DateDue>6/1/2014</DateDue>
            <TestingDue>6/8/2014</TestingDue>
        </Row>
        <Row>
            <Applications>WVL 7 QM Charts</Applications>
            <PercentComplete>15</PercentComplete>
            <DateDue>6/15/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
       <Row>
            <Applications>SCB PCO</Applications>
            <PercentComplete>10</PercentComplete>
            <DateDue></DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>SCB Top Chart</Applications>
            <PercentComplete>95</PercentComplete>
            <DateDue>5/20/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>Project Status</Applications>
            <PercentComplete>25</PercentComplete>
            <DateDue>7/25/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>WVL LOI</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>4/20/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
       <Row>
            <Applications>DSS (HTML5)</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>3/31/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>ETW 3304 BOD Pilot</Applications>
            <PercentComplete100></PercentComplete>
            <DateDue>11/16/2013</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>HTMl 5 Table Tools</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>2/12/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>ISO JAX</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>7/31/2013</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>ISO FEN</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>1/10/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>
        <Row>
            <Applications>WVL QM Display</Applications>
            <PercentComplete>100</PercentComplete>
            <DateDue>2/12/2014</DateDue>
            <TestingDue></TestingDue>
        </Row>

    </Rowset>
</Rowsets>

 

 


Than it got converted to the following JSON:

 

[{

    Applications: "BOD ETW 3304",

    PercentComplete: "85",

    Date_Due: "2014-06-16T11:25:00",   

    Testing_Due: "" }, {

    Applications: "BOD ETW 3304",

    PercentComplete: "85",

    Date_Due: "2014-06-16T11:25:00",   

    Testing_Due: "" }, {

    Applications: "BOD WLV9212",

    PercentComplete: "85",

    Date_Due: "2014-06-16T11:25:00",   

    Testing_Due: "" }, {

    Applications: "BOD WLV9212",

    PercentComplete: "85",

    Date_Due: "2014-06-16T11:25:00",   

    Testing_Due: "" }, {

    Applications: "BOD ETW 3303",

    PercentComplete: "85",

    Date_Due: "2014-06-16T11:25:00",   

    Testing_Due: "" }];

 

Now we need to display above using SAPUI5 JSON Table Binding with the following headings: -as you can see - right now it is not displaying any data.

 

SAPUI 5 JSON Table Binding.PNG


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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