Problem create xsodata service with eclipse using xsjslib function

Hello experts,

I got a question, maybe someone can help, me.

I created a xsodata service in eclipse containing this code:

service{
	"WORKSHOP_01"."PRODUCT" as "ProductCreate"
	  create using "usersCreateMethod2.xsjslib::usersCreate"; 
}

Than I created a xsjslib file in the same folder(root):

var pStmt;
function usersCreate(param){
  pStmt = param.connection.prepareStatement('insert into "WORKSHOP_01::PRODUCT" values("7","Hallo")' );			
  pStmt.executeUpdate();
  pStmt.close();
}

Than I try to active all.

But I got an error:

Unknown object "usersCreateMethod2.xsjslib::usersCreate". for this resource: UserTestService:UserService2.xsodata

The activation of the xsjslib file alone works. In the repository also files available.

Can anyone help, I can't find solution.

Thanks and a nice weekend

Stefan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 03, 2016 at 01:35 PM

    Solved by my own

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content