Skip to Content
author's profile photo Former Member
Former Member

Cano't import app from demo toolkit to eclipse

Hi experts.

I"m trying to import an extract file of shopping cart project to eclipse download from SAPUI5 SDK - Demo Kit as existing project getting a message 'No projects are found to import'.

So I did some work around creating a new UI5 project with no view and than import the extract data as file system, When I"m trying to execute the index file nothing happand.

The code in the controllers seems familiar to me from the IDE and seems a little different from eclipse is there a different demo app's for eclipse what could be the problem?

Best regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 19, 2016 at 12:03 PM

    Hi,

    I did the below and was able to run the Shopping Cart app downloaded from the demo kit into Eclipse Mars:

    1. Download the Shopping Cart code from the page SAPUI5 SDK - Demo Kit

    2. Extract the contents of the downloaded .zip file into a folder (ShoppingCart) on my local system.

    3. Create a SAPUI5 application project in Eclipse (Mars); without creating an initial view.

    4. Copy-paste the contents of the ShoppingCart folder from step 2 (containing the files from the downloaded .zip) into the WebContent folder of the

    SAPUI5 application project created in the previous step.

    5. Change the reference to the UI5 core in the index.html file from src='../../../../../resources/sap-ui-core.js' to

    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

    6. Run the project by right clicking on the project folder and select Run As -> Web App Preview

    With this I was able to run the app as shown in the below screen shot:

    Regards,

    Saurabh


    Capture.JPG (94.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2016 at 08:09 AM

    Hi,

    Thanks for the replay.

    I tried your steps in luna eclipse and still nothing happened. The version eclipse could be the problem?

    nevertheless as I mentioned before the controller code as different from other programs in eclipse I did in the past and it familiar to me from the open IDE course is there possibility that sap change the code to fit only to IDE?

    My past controolers:

    The code download:


    my.png (28.0 kB)
    sap.png (30.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2016 at 09:45 AM

    Hi,

    You're right! Now that I see your tree folders I understood that I made a mistake by entering the project files/folders under another folder. Now that I change it to under WebContent everything works fine thanks a lot.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.