Skip to Content

Pass Input Parameter to CV in XSJS file

Hi Folks,

I am trying to pass input parameter from xsjs url to CV but I am not able to do this.

No matter what I pass in the URL it is taking Default Value of input parameter from CV.

I used :

var abc= $.request.parameters.get('x');

var query=select * from <CV_NAME>('placeholder'=('$$input_para$$',"+abc+"));

Even if I am Hardcoding 2nd statement it is not working:

var query=select * from CV ('Placeholder'=('$$input_para$$',\'123\'))

this is also giving the default value of parameter mentioned in the CV not the hard coded one.

Please help me though this.

Thank you all!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 17, 2016 at 02:15 PM

    Please can you paste your complete code snippet. The provided erroneous things do not give any hint, what db interface you used, what methods you used ...

    Thx.

    Florian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.