supra01 Posted December 14, 2012 Report Share Posted December 14, 2012 In the Select Query while using Caspio Web Services API, SAY stub.selectDataRaw("acnt name", "API profilename ", new String(""), "tablename", true, "proj_comp_id, timesheet_from_date , timesheet_to_date", "criteriaField.getText()" , orderByField.getText(), ",", ","); Need to know how to pass the criteria dynamically as "proj_comp_id = $project_Id" for criteriaField.getText()??? If I hard code the value of project id to be some value say 140, it works..Struck with passing it dynamically. Thanks geatoesty, AiuryShaharr, wayanmariasa and 3 others 6 Quote Link to comment Share on other sites More sharing options...
0 casyana Posted December 18, 2012 Report Share Posted December 18, 2012 Hi Supra01, Could you, please, elaborate a little bit more: which language do you use to call WS API methods, and from where the dynamic criteria should be taken? For now you may try to create a variable, assign the dynamic value to this variable and use it in the method call. Quote Link to comment Share on other sites More sharing options...
Question
supra01
In the Select Query while using Caspio Web Services API, SAY
stub.selectDataRaw("acnt name", "API profilename ", new String(""), "tablename", true, "proj_comp_id, timesheet_from_date , timesheet_to_date", "criteriaField.getText()" , orderByField.getText(), ",", ",");
Need to know how to pass the criteria dynamically as "proj_comp_id = $project_Id" for criteriaField.getText()???
If I hard code the value of project id to be some value say 140, it works..Struck with passing it dynamically.
Thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.