Multi value Cascading Parameters Not working

Hi ,
I have created two report parameters and want them as Cascading. District Parameter depends on Region Parameter which should allow Multi selection. When I select single value in Region it works perfectly. But when I choose multiple values, District turns
out to be a blank text box. Can you please advise on how to fix this?
I have used the In clause in my code
SELECT
DISTINCT
SalesDistrict
FROMDistrict(NOLOCK)
WHERESalesRegion
IN(@SalesRegion)
SG

that's because  "public sector,East" is passed as a string rather than multiple values.
you should split them into multiple rows...  there are several functions that do that.. you can pass the string to the function and use  IN clause look them in the district table.
below example is using xml but you can also use functions, if you want... just google  "split comma delimited string to multiple rows" function
declare @District table (Distrcit int,Region varchar(20))
Insert into @District values (1,'East'),(2,'West'),(3,'Public Sector')
declare @xml xml, @s nvarchar(max)
select @s = N'public sector,East'
set @xml = N'<root><r>' + replace(@s,',','</r><r>') + '</r></root>'
select * from @District where Region in
(select t.value('.','varchar(max)') as [delimited items]
from @xml.nodes('//root/r') as a(t))
refer http://www.kodyaz.com/articles/t-sql-convert-split-delimeted-string-as-rows-using-xml.aspx
Hope it Helps!!

Similar Messages

  • Result Type Condition for Multi value Manage Property not working

    Hi All,
    I have created one template & I wanted to show this template on particular condition. So I created the result type. The Managed property (MP) that I used, I have verified its attributes all attributes are selected and its type is Multi value. I am trying
    to apply the "Show fewer conditions" and some how the value not matched.
    I have checked MP ; it has all the values but some how the template not called. When I removed this condition it working and when choose other MP other then Multi valued. It is working as expected.
     Please let me know if i miss something here. 
    PS: I have checked each option from the Query drop down like "Equals any of" and "Contains any of" not working in case of multi value attribute. Please help.
    I have explain this issue more details in this post : http://sharepointfordeveloper.blogspot.com/2015/02/sharepoint-search-2013-result-type-with.html
    Regards,
    Basant Pandey
    http://sharepointfordeveloper.blogspot.com

    Update on above mentioned issue.
    I have verified the same at my end. So I come to this conclusion this is product issue. Either need to raise the ticket to Microsoft related to this issue.
    Regards,
    Basant Pandey
    http://sharepointfordeveloper.blogspot.com

  • Multi value parameter is not working

    Hello There,
    I have been facing below issue and tried to find work around but no luck. Before I explain what issue is let me mention my report. I have a simple report developed in SQL 2K12 SP1 with one multiple value parameter and a text box. I have given an action on
    text box where I am calling the same report by passing one of the possible value to multiple value parameter. Now issue is when I am trying to select another value(s) from multiple value parameter and click on view report it does not keeping the selected value
    in parameter. It keeps on holding the same value which was passed on text box click action. Surprisingly this is working fine in SQL 2K8. Please let me know if need more information on the issue and let me know solution on this asap. I am not sure whether
    this is bug in SQL 2K12.
    Regards,
    Bhushan

    Hi Bhushan,
    After testing the issue in my local SQL 2012 SP1 environment, I can reproduce it. And I also test the same scenario in my SQL 2008R2 environment, it works very well.
    If you have any concern about this, please submit a feedback at
    https://connect.microsoft.com/SQLServer/Feedback. Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn
    about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Passing different (multi-) values for parameters to drill-through report, based on clicked subtotal in main report

    In Report Builder 3.0, I have made a main report in which the user can filter the underlying dataset using three parameters (all multi-value). The report shows totals grouped by these three parameters, as well as a grand total. What I want is to click
    on a total, which then opens the drill-through report for the corresponding records. I have achieved this for the grand total; the action in the corresponding text box passes all selected values of the parameters to the drill-through report.
    What I cannot figure out is how to make this work right when clicking on a subtotal. When I use the same expression as for the grand total, the same values for the parameters are passed, instead of the subset that apply to the corresponding text box in the
    main report. I expected this to work, because Report Builder /does/ correctly calculate the SUMs for the different levels, even though the expressions are the same.
    My question is: how do I pass different drill-through (multi-) values for parameters, corresponding to the respective subtotals in the main report?
    (FYI: I am using Microsoft SQL Server 2008 R2 and Report Builder 3.0 .)

    Hello Katherine,
    Thanks once more for your quick reply.
    I was aware of the textbox action "Go to report", and how to pass parameters in general. My question concerned how to determine the scope of the passed multi-value parameters (to the values that apply to the respective group/subtotal). The article you linked
    to is informative, but not a solution to my problem.
    A colleague of mine came up with a pragmatic solution: instead of trying to determine the scope of the parameter values, now I "look to the left in the results table". The two screenshots below should illustrate this. (Screenshots are in Dutch. Specific information
    is pixelated.)
    Unfortunately, I am not able to post images. Once my account is verified, I will edit them in. For now, I hope the text speaks for itself enough.
    [Screenshot: Drill-through parameters - 01: Report Builder tablix with subtotals]
    [Screenshot: Drill-through parameters - 02: Textbox properties (selected in screenshot 01) - Action - Go to report]
    The first screenshot shows the tablix in the Report Builder. The second screenshot shows the properties of the textbox selected in the first.
    Notice that I do not pass parameters for the first two columns, but the actual values. I only pass the parameter (containing /all/ user-selected values) for the third column. In the textbox below the selected one, I pass the actual values for the first column,
    and parameters for the last two. In the textbox above the selected one, I pass the actual values for all three columns.
    The only (cosmetic) flaw this approach has is that in the drill-through report, the list of selected parameters might show values that do not occur in the (corresponding part of the) results, and only for those parameters for which the main report passes (all
    user-selected) parameter values, and not the actual values in the results. The results are correct, though.
    If there is a way to directly determine the scope of multi-value parameters for passing to a drill-through report, I would still like know. But for now, this seems to work.

  • Multi-select LOV does not work in forms

    the multi select LOV does not work in the form.
    the LOV works individually but in the form it does not work. it does not allow multiple selection from the list.
    is there a workaround for this or is this a bug ...?
    any ideas ...?
    thanx a lot.
    null

    Right, we cannot store more than one value in a single column in a table :), we were getting a lot of requests to support multiple select LOVs but requirements were contradictory if not mutually exclusive.
    The only sense it makes is when used together with user-defined object types (nested tables for example) but the current [application building]infrastructure we have does not support this. However, we are looking into this and this feature maybe implemented in a future release.

  • Anlysis authorization implemented after Cascading is not working

    Anysis authorization implemented after Cascading is not working.
    Example: i have 3 dropdownboxes in WAD . Frist dropdownbox State, second dropdownbox District, third dropdownbox Town.In the first dropdown box i selected state AP ,it should show only districts in AP in the second dropdownbox.
    But it is not showingin the second dropdownbox.
    Please help me

    Hi Priya,
    The issue may be due to the SQL Reporting Services maximum number of parameter items. We can try to add following code to Web.config file to resolve the issue.
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="30000" />
    <add key="aspnet:MaxJsonDeserializerMembers" value="30000" />
    </appSettings>
    (Note: We can according to our requirement to set these values. After that, restart all SQL Server services. )
    By default, the Web.config file is located in:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer
    More detail information, you can refer to the article about SQL Reporting Services maximum number of parameter items.
    http://sqlsrv4living.blogspot.in/2012/10/sql-reporting-services-maximum-number.html
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Ajax cascading lov not work

    Dear Pakar
    i follow instruction in
    http://apexlib.svn.sourceforge.net/viewvc/*checkout*/apexlib/trunc/Documentation/HowToInstall.html
    i'm using Application Express 3.0 & 10g express edition
    in debug form show
    0.16: Computation point: BEFORE_FOOTER
    0.16: Processing point: BEFORE_FOOTER
    0.16: ...Process "Test": PLSQL (BEFORE_FOOTER) ApexLib_Lov.generateBrowserData;ApexLib_Browser.flushJsBuffer;
    Analysing page(ApexLib_Lov.generateBrowserData)
    ...detected P4_COUNTRY_ID as cascading lov.
    ......references P4_REGION_ID
    ...detected P4_LOCATION_ID as cascading lov.
    ......references P4_COUNTRY_ID
    0.17: Show page tempate footer
    but cascading lov not work, give me the clue
    regards
    thanks

    Dear Pakar
    i follow instruction in
    http://apexlib.svn.sourceforge.net/viewvc/*checkout*/apexlib/trunc/Documentation/HowToInstall.html
    i'm using Application Express 3.0 & 10g express edition
    in debug form show
    0.16: Computation point: BEFORE_FOOTER
    0.16: Processing point: BEFORE_FOOTER
    0.16: ...Process "Test": PLSQL (BEFORE_FOOTER) ApexLib_Lov.generateBrowserData;ApexLib_Browser.flushJsBuffer;
    Analysing page(ApexLib_Lov.generateBrowserData)
    ...detected P4_COUNTRY_ID as cascading lov.
    ......references P4_REGION_ID
    ...detected P4_LOCATION_ID as cascading lov.
    ......references P4_COUNTRY_ID
    0.17: Show page tempate footer
    but cascading lov not work, give me the clue
    regards
    thanks

  • Multi Level BOm is not working in SAP afs

    Hi Experts,
             I am facing issue in MRP.For multi level bom's ,Requirements is not getting generates.Is there any settings is there to active multi level bom for afs materials.
    please suggest solution
    Thanks and Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Multi-touch trackpad is not working correctly anymore

    My multi-touch trackpad is not working - it stops working after the first 10 seconds.
    It is since today.
    After reboot it works for the first 10 seconds - then it is like it needs to have a few seconds for reaction.
    Any idea for the permanent blocking of the cursor?
    TX
    cany_de

    That's really bizarre! I've been experiencing the same problems. Today my three/four finger multitouch gestures stopped working altogether! Nothing seemed to resolve the problem (restart, shut down, etc).I did however follow your advice of creating a new user account and logging in to see if multitouch works...low and behold, it worked! I then logged off and signed back into my primary user account and multitouch continued to work! This must be a software issue (I'm guessing). I just deleted the temporary user account and everything seems to be working fine. I set up a Genius Bar appointment for tomorrow - I'll see if they have any further suggestions.
    Thanks!

  • I  just upgraded my Macbook (late 2007) into X Lion , but the  multi touch gestures is not working. Is this not compatible with my Macbook?

    I just upgraded my Mackbook (late 2007) into X Lion , but the Multi Touch gestures is not working. Is this not compatible with my Macbook?

    jimmyfromdubai wrote:
    ... do I need to buy a new MAC office?
    A better solution is to try a number of better, free alternatives. Consider
    LibreOffice (donation-supported)
    NeoOffice (free)
    OpenOffice (free)
    I use Apple's Pages ($19.99) as well as OpenOffice and have been completely Microsoft - free for over a year now. Life is better without Microsoft.

  • For  MTO scenario,multi level bom is not working sap afs pp

    Hi Experts,
                  We are implementing MTO scenario for our client. I have maintained  strategy group for FERT is 40 and strategy group for HALB and ROH are 20.
                   For single level BOM , requirements is not getting generates properly.
                  I would like to know What are all the settings is required to create AFS BOM.(single and multi level)
                   Please suggest me.
    Thanks & Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Parameter gets reset and Multi-value parameter doesn't work

    Hi
    Two Issues:
    I've set the value of a Date parameter (Start Date) when moving from the home screen (Report 1) to the next screen (Report 2) as the first day of the current year (DateSerial(Year(Today),1,1). In report 2, if I try to change the Start Date to another date,
    it gets reset to the first day of the year. I had the default value set as the first day of the year and even after removing it, the Start Date gets reset.
    I've set a multi-value parameter (Area) in Report 1 that collects four integers. I pass Area to Report 2 (through Join (Parameters!Area.value,",")). I also used SPLIT (Join (Parameters!Area.value,","),",") to get the value.
    Then, in the data set, I call this parameter as "Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW WHERE ID IN (?)". But this query throws an error that the query could not be executed. I ran the same query on the server side and it runs fine.
    Note:
    We cannot reference parameter names as @area for example because the Composite Server doesn't allow that.
    Split and Join operate on strings but my parameters are of integer type. Is this an issue?
    Please help.

    1. Are setting an expression for available values of parameter in report 2? Is the value you pass a valid among the set of values?
    2. IN wont work with comma separated values. You need to parse the individual values out using a string parsing udf as a table and then join to that
    so in your case you would be like
    Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW t
    INNER JOIN dbo.ParseValues (@Area,',')f
    ON t.ID = f.Val
    ParseValues UDF can be found in below link
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Cascading LOV not working when the page is public

    Hi ,
    I have a cascading LOV in a tabular form which I have built using Denes Kubicek example from
    http://apex.oracle.com/pls/otn/f?p=31517:176:2702932664861989:::::
    Thanks to this wonderful examle I was able to make my cascading lov work.
    However when I make the page public , the second lov(which is based on the first one) does not work.
    Inorder to debug i changed get.get('XML') to get.get() and put an alert on it; to check if the select list string is being returned correctly by the application process - it returns null. The same alert returns the select list string when I put the authentication back on the page.
    Also I noticed when the page is public the application item (TAB_CASCADING_ITEM) is not getting populated with the value of the first select list.
    has anybody encountered the same issue ?
    Appreciate any suggestions?
    Thanks,
    Dippy

    One of the parameters in the htmldb_get is the page the process runs on. You should change that to the current page or make page 0 public as well.

  • Value mapping does not work

    Hi All,
    I can not get value mapping in XI 3.0 to work. Has anyone experience with this, the documentation is soo bad. This is what I have done:
    In the Graphical mapper I used the object "Value mapping" and filled in the following parameters:
    Value mapping context: http://sap.com/xi/XI
    Source
    Agency: System1
    Schema: UnitSystem1
    Target
    Agency: System2
    Schema: UnitSystem2
    In the directory I created an Value mapping table with the same paremeters as above and filled in the table.
    When I test the complete flow, the value mapping is not used. The unchanged values are just copied over to the target field.
    Any help is appreciated.
    Cheers,
    Frank

    Hi Colin,
    In test Mode you can't test the value mapping, because the value mapping table is part of the Directory. Instead of the Value Mapping I tried "Fixed Values" and that works, but you can not re-used it.
    If this advanced mapping guide explanes how to use the value mapping better then the standard "how to" mapping guide, please send it to me.
    email: [email protected]
    Cheers,
    Frank

  • Problem with GenericCatalogDAO  JDBC Resultset using parameters not working

    Hello
    I have a problem with Petstore GenericCatalogDAO. java. The problem is the behaviour of the resultset object when retrieving data from the database.Below are two synareos one that
    works (when) hard coded and one that does not work when parameter values passed into the the result set.
    1. The code the WORKS.
    statement = connection.prepareStatement("select a.productid , name, descn from product a, product_details b
    where a.productid = b.productid and locale= 'en_US' and a.catid = 'FISH' order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    The code that gives me a 'exhausted resultset' error which I think means no results
    String[] parameterValues = new String[] { locale.toString(), categoryID };(For example parameters are 'en_US' and 'FISH')
    statement = connection.prepareStatement("select a.productid , name, descn from product a, product_details b
    where a.productid = b.productid and locale=? and a.catid =? order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    for (int i = 0; i < parameterValues.length; i++) {
    statement.setString(i + 1, parameterValues[i]);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    There is obviously a problem using these named parametevalues with these preparedstatement resultset, Does anybody know anything about this and a fix for it????
    Cheers. Roger

    Which version of PetStore are you using?
    -Larry

Maybe you are looking for

  • Insertion of records from view into a table

    hello Friends, I have a view LGR is build on 12 table,this view has over 1 millon records, now when i run reports based on this view are so much slower, for speeding up reports i create a table LGRT and base all the reports on it, but the problem is

  • How do you set up ftp services with outside of network access?

    What are the steps to set up a password protected directory for our clients to ftp files to? I've turned on ftp services and created a testftp directory, with access to everyome, but can't access the files. It never asks me for a password. We have AT

  • EDI Integration w/ B1

    Where you I find a list of solutions/partners that will integrate EDI w/ B1? Jim

  • ORA-1631: max # extents 505 reached in table APPLSYS.WF_NOTIFICATION_IN

    Platform: RHEL 4u5 Application: 11.5.10.2 Database: 10.2.0.4 2-node Installation as follows: 1 Node for DB and Concurrent 1 Node for Apps. We anabled OWF Mailer services on 2nd Sept, and on 5th Sep we started receiving following error messages in our

  • My IPhone 3GS shuts down

    My IPhone 3GS shuts of while making a call & when the wifi is on. I need to connect it to power to put it on. What's to be done? Thanks, E. Frank