문제

{
   "isSuccessful": true,
   "resultSet": [
  {
     "name": "pradeep",
     "password": 123,
     "timestamp": "2014-04-08T12:58:45.000Z"
  },
  {
     "name": "dileep",
     "password": 1234,
     "timestamp": "2014-04-08T13:00:52.000Z"
  }

] }

I have called my procedure and this invocation result i have got.Now i need to display it in the console where i called my procedure(not in client Side).so hw can i achieve this.And alert wont work their so which API i Should use.

도움이 되었습니까?

해결책

You cannot display the response from the adapter invocation in the Eclipse console.
There is no meaning in displaying it in the Eclipse console.

You can see it in the following locations:

  1. By right-clicking on the adapter and choosing Run As > Invoke Worklight procedure.

    This will open a browser window and will display the result

  2. By invoking it via WL.Client.invokeProcedure and parsing the result, and display it in your app

  3. By using console.log to print the result, and then press F12 to open the Chrome Dev Tools (for example) >> Network tab >> pick the response >> Response tab

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top