Manoj Chaurasia Posted August 31, 2015 Share Posted August 31, 2015 I am trying to pass a parameter that contains multiple values to open an on demand table. If I pass a single value everything works. How can I pass more than one value in a parameter Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 4, 2015 Author Share Posted September 4, 2015 Are you using a stored procedure in Info link Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 4, 2015 Author Share Posted September 4, 2015 https://tibbr.tibcommunity.com/tibbr/#!/messages/129064 Open this link. this has the code for setting property from marked. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 7, 2015 Author Share Posted September 7, 2015 yeah . that is it . Link to comment Share on other sites More sharing options...
Manoj Singh Posted October 23, 2015 Share Posted October 23, 2015 You can define input of your existing on-demand data table by Edit Menu>>Data Table Properties>>Select On-Demand Table >>Settings.Now you can set/define the input accordingly. Link to comment Share on other sites More sharing options...
Abhishek Singh 7 Posted October 23, 2015 Share Posted October 23, 2015 I guess , you are creating an infomation link , in edit sql option , in place of = , put in , for eg , where [column_name]=value, put where [column_name] in (value) Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted October 23, 2015 Author Share Posted October 23, 2015 Thank you both, but I am having issues getting the parameter passed FROM Table A to contain multiple values. I can configure Table B's input without issue, but If I mark more than one item in table A only 1 value is passed. I want to pass an array of all of the values I mark in table A (for the input column in table B) Link to comment Share on other sites More sharing options...
Abhishek Singh 7 Posted October 23, 2015 Share Posted October 23, 2015 yes , putting an "in" in the sql of table B will work , you must have defined input for the input column for Table B as the value from column of Table A, If you select more than one records from table A , all the input column values will go in the sql like where [TableBcolumn] in ('value1', 'value2') Link to comment Share on other sites More sharing options...
Sushank Goel Posted October 23, 2015 Share Posted October 23, 2015 Also in the Parameter you have created in Information link , Value Type should be of : Array as shown in attached screenshot. Link to comment Share on other sites More sharing options...
Abhishek Singh 7 Posted October 23, 2015 Share Posted October 23, 2015 yeah forgot that . thank Sushank, Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted October 23, 2015 Author Share Posted October 23, 2015 I have set the parameter as an array and spotfire is still only passing a single value. I have verified this on the Sql logs. Would you know how i can pass my marked rows to a property Link to comment Share on other sites More sharing options...
Abhishek Singh 7 Posted October 23, 2015 Share Posted October 23, 2015 What exactly happens when you mark multiple rows in table ADo you see an error notification may be you are missing something somewhere . For passing marked rows to Property , u can refer to the following link http://gabeortiz.com/posts/set-property-from-marked/ Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted October 23, 2015 Author Share Posted October 23, 2015 Abhishek- The website is dead :( I would love to see the instructions though. As for what happens when I mark multipe rows, only the first parameter is passed. No errors are thrown. The SQL Log looks like this: { call "mydatabase"."mschema"."mystoredproc"('01AA1FC576FD4D4096B19D0727137C8D') } I am expecting to get something like this: { call "mydatabase"."mschema"."mystoredproc"('01AA1FC576FD4D4096B19D0727137C8D','12341FC576FD4D4096B19D0727136589','45671FC576FD4D4096B19D0727135421','98761FC576FD4D4096B19D0727133214') } Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted October 23, 2015 Author Share Posted October 23, 2015 I appreciate the help. The link os dead but i have figured it out. Basically i populate a property with my marked values and pass that property to my stored proc Link to comment Share on other sites More sharing options...
Victoria M Posted July 12, 2019 Share Posted July 12, 2019 instead of having ID = Parameter put ID in(Parameter) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now