using Statement error in a WBT Course - Forum - OpenEdge Development - Progress Community

using Statement error in a WBT Course

 Forum

using Statement error in a WBT Course

This question is answered

Hi --

I'm enrolled in one of the web-based training courses: "Providing Progress OpenEdge Applications as REST Web Applications (1000-053)" and I'm getting an error in a lot of the sample code that comes with the class. That probably means there's something wrong in my configuration....

I believe the root cause is in a statement: "using Appserver.crm.Customer" because when I hover over that line in Dev Studio, it pops up with "unable to resolve 'Appserver.crm.Customer'".

This is my first day with the "using" statement  :-)  Can I tell where "using" is looking for that resource (PROPATH?) and, if I can determine where it should be looking, how can I influence it?

Probably not relevant, but I'm using an eval PDSOE 11.6 license on Win7 64-bit. The course looks like it was developed in 11.5.

In general, is there tech support for the wbt courses?

Thanks in advance -- Jim

Verified Answer
  • Started over and got success!

    Thanks Peter & Matheu for your help.

    FYI: I'll probably never know for sure but I think that in Ex. 1.1, Part 2, Step 4t, when setting up the database connections, I simply clicked OK, *without* having checkboxed the testdb connection.

All Replies
  • Probably not relevant, but I'm using an eval PDSOE 11.6 license on Win7 64-bit. The course looks like it was developed in 11.5.

    Should not be a problem.
     
     

    I believe the root cause is in a statement: "using Appserver.crm.Customer" because when I hover over that line in Dev Studio, it pops up with "unable to resolve 'Appserver.crm.Customer'".

    The USING statement – and in general, the compiler when it tries to resolve class/type names – is relative to PROPATH. It also has to match the package name in the type statement (ie CLASS this.is.the.Package.AndClass ).  Given the name of the course and the leading "Appserver" that the leading APpServer is not necessary, since that's a folder on propath already. You can check this in the project properties (right-click on the project name) and navigate into the OE properties and propath.
     
    Did you add this USING line, or did PDSOE add it automatically?
     
     
     
  • I did the same course as you also in 11.6, could you tell what part of the course you are? I'll try do the course again and see if I can help.

  • Think I got it. Did you add a database conection on the CustomerOrderApp?

    Click over the CustomerOrderApp (not the ClientCustomerOrderApp), and acess the Properties.

    Go to: Progress OpenEdge -> Database Connections.

    Here you need to configure you database, that you created previously (proenv -> prodb) in the section below:

    Guided exercice 1.1: Prepating your training enviroment  - Part 2 -Creating and connection the database to the sample application.

    After you do this, this problem "unable to resolve 'Appserver.crm.Customer'" should be solved.

  • Still no joy. I did all of that, back in Part 2.

    I think I'll delete everything and start again from Square #1.

    Thanks for letting me know that success is at least possible.   :-)

  • Q: "Did you add this USING line, or did PDSOE add it automatically?"

    A: It is part of the sample code I downloaded as part of the course; I am assuming PDSOE did NOT generate it on the fly.

  • Started over and got success!

    Thanks Peter & Matheu for your help.

    FYI: I'll probably never know for sure but I think that in Ex. 1.1, Part 2, Step 4t, when setting up the database connections, I simply clicked OK, *without* having checkboxed the testdb connection.