Topic
  • 2 replies
  • Latest Post - ‏2012-09-18T13:11:05Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic Dynamic SQL for SQL adapter

‏2012-09-18T03:10:39Z |
hi,

In worklight doc, the SQL Adapter required to always call WL.Server.createSQLStatement function outside of a javascript function.
What's reason of the limitation?

Now I need a generic function to call database using parameterized SQL and return an array with hashmap for element of the array. I don't want to list many SQL statement and procedure in the SQL adapter.
Do you have other solutions for this?

thanks!
Daniel
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Dynamic SQL for SQL adapter

    ‏2012-09-18T03:12:54Z  
    update: ... Now I need a generic function to call database using a SQL as a parameter...
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Dynamic SQL for SQL adapter

    ‏2012-09-18T13:11:05Z  
    update: ... Now I need a generic function to call database using a SQL as a parameter...
    Hi Dan,

    What version of Worklight do you have? From previous posts it looked like you were on Worklight v5.0. If so please post your question to the v5.0 Development forum to ensure you're getting the correct help. Thanks.

    Barbara Hampson, Manager, IBM Worklight