Skip to Content
0

xsjs failed with error(s): TypeError: $.request is undefined (line 3 position

May 03 at 07:59 PM

59

avatar image
Former Member

Hi,

I am trying to pass a parameter 'firstId'and I get following error :

TypeError: $.request is undefined (line 3 position

this is the code that I am using:

function My_Test(firstId)

{

var test = $.request.parameters.get("firstId");

var selectContacts ='select * from "abc_TEST"."CONTACTS_TEST" WHERE "Id"<= ?';

var quey = selectContacts.replace('?', firstId);

var connection = $.hdb.getConnection();

var contacts = connection.executeQuery(selectContacts,test)

Any help is highly appreciated.

10 |10000 characters needed characters left characters exceeded

Where are you writting this code at? is this an XSJS file? Are you perhaps trying to use XSJS in client side JavaScript?

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers