cancel
Showing results for 
Search instead for 
Did you mean: 

sap ui5 input assisted tabular suggestion not working

Former Member
0 Kudos

Hi Gurus,

I have copied the input assisted tabular suggestion code from UI5 toolkit and used it in a project in eclipse but getting the following error.

Please find the snapshot of the project details:

<!DOCTYPE HTML>
<html>

    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta charset="utf-8">

        <title>Input - Assisted Tabular Suggestions</title>

        <script id="sap-ui-bootstrap"
            src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
            data-sap-ui-libs="sap.m"
            data-sap-ui-theme="sap_belize"
            data-sap-ui-xx-bindingSyntax="complex"
            data-sap-ui-preload="async"
            data-sap-ui-compatVersion="edge" 
            data-sap-ui-resourceroots='{"sap.m.sample.InputAssistedTabularSuggestions": "./",  "sap.ui.demo.mock": "mockdata"}'>
        </script>

        <!-- Application launch configuration -->
        <script>

            sap.ui.getCore().attachInit(function() {
                new sap.m.App ({
                    pages: [
                        new sap.m.Page({
                            title: "Input - Assisted Tabular Suggestions", 
                            enableScrolling : true,
                            content: [ new sap.ui.core.ComponentContainer({
                                name : "sap.m.sample.InputAssistedTabularSuggestions"
                            })]
                        })
                    ]
                }).placeAt("content");
            });
        </script>
    </head>
    <!-- UI Content -->
    <body class="sapUiBody" id="content" role="application">
    </body>
</html>

Please suggest how to fix the above errors. Inputs will be really appreciated.

Regards,
Ajay

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

What is line no. 10 in index.html? Click on the error and share it?

Former Member
0 Kudos

Hi Sharath,

Line no 10 in index.html file which i attached above is shown below

Also i am getting other error as shown in previous thread attachment as

2. failed to load 'sap/m/sample/InputAssistedTabularSuggestions/Component-preload.js' from ./Component-preload.js: 404 - Not Found
Caused by: undefined

3. resource sap/m/sample/InputAssistedTabularSuggestions/view.view.xml could not be loaded from ./view.view.xml. Check for 'file not found' or parse errors. Reason: Not Found

Can you please provide some input on these issue?

Regards,

Ajay

Former Member
0 Kudos

Hi Gurus,

Can anyone please help to fix the above issues?

Regards,
Ajay

Sharathmg
Active Contributor
0 Kudos

The resourcetoors refers to the folder structure of your project. The errors indicate that your files are not available in the path. Re-look at the the paths provided.

Former Member
0 Kudos

Hi sharath,

I made the changes as suggested but now i am getting below error.

Former Member
0 Kudos

Hi Gurus,

Can anyone please provide help on the above issue.

Regards,
Ajay