How to access SSRS multivalue parameters by their array index value

Hi,
How can I refer to an SSRS multivalue parameter by its index value?  Let's say I have a list
of 10 multivalue parameters that reference database column names.  If the user selects the
2nd and 3rd item from the list,  I would like to build a dynamic SQL query including just
those items.  I'd like to be able to build a string something like this:
"SELECT "+IIF(Paramters!Columlist.value(1) <> null,Paramters!Columlist.value(1),"")
  +IIF(Paramters!Columlist.value(2) <> null,Paramters!Columlist.value(2),"")+ ETC...
I know I can test if a value was selected this way:
 instr(Join(Parameters!ColumnList.Value,","),"aColumnName")=0
But the column names are MDX tuples and can be quite large and I think this will not be efficient.
Is there a way to use the array index, how best to do this?
THanks

Hi billywinter,
According to your description, you want to specify the available values for an multivalued parameter with array index.
In Reporting Services, null values is not allowed in multivalued parameters. So you needn’t to specify the query to decide whether there are null values or not.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • How to access SSRS in cloud remotely over internet

    How to access SSRS in cloud remotely over internet. How authentication and authorization of reports based on user roles can be managed over internet.
    Thanks in advance for your help.
    Bala

    this is resolved

  • How to access Dynamic Region parameters  from a called taskflow?

    HI,
    i have i dynamic region embedded into a page.
    The region points to a bounded task flow. I want to pass parameters to the taskflow and doing that by specifying region params.
    <taskFlow id="dynamicRegion1" taskFlowId="${test.dynamicTaskFlowId}"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="inputParameter0" value="#{backing.comp1.value}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    </parameters>
    </taskFlow>
    But for me is not clear, how can i acces them from a taskflow that i called (to which points region)
    Regards,
    Krasimir

    Hi,
    check out my blog http://biemond.blogspot.com there are some examples even about dymanic region and refreshing region
    Edwin

  • How to get result list parameters to an array variable

    I want to generate a text report that can be imported to excel. I want to show each test step name, status and numeric result. I found out that TS records this data to an array called ResultList in Main Sequence locals. Each step is recoded as an array element but they also collapse into a tree view, i think each array element becomes a container. How can i get a step's status, name and numeric parameters

    CK,
    It seems you are re-inventing the wheel.  XML reports are very usable for result analysis.  In fact I would say more usable than any txt or excel document you could produce.  Not to mention TestStand has the capability to log to databases (which is already built in).  And it seems that databases are the ultimate in mineable data.
    However, that being said..... to answer your question:
    What you are asking is not trivial because there are multiple contributors when creating a report.  If you look through the process model you will see all of the steps that relate to report generation.  Each one does something different based on the report options, execution status (terminated, aborted, etc..) and report type.  If you truly want to do it right then you should follow how the process model does it and add code for your new generation type.
    If you want a quick and dirty solution then you can just put some logic in the cleanup step group to parse through the ResultList and generate the file you want.  In order to do this I would create a while loop (or for loop) or a statement step that loops.  I would have it loop for each item in the array.  A for loop may be better because then you could have a different step for each step type and precondition it.  Then just grab what you want out of that result list and assign it to your array. 
    I created a simple rough example.  It doesn't account for calling subsequences or anything like that.  You would have to build logic for all of that.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    ParseResultList.seq ‏9 KB

  • Multivalue Parameters

    Hello,
    I am working on a report that requires two multivalue parameters. The parameters "Date" and "Number" would be keyed in by the user (1 to 50 values can be entered for each of the parameters) and each pair of Date and Number should retrieve a record from the database. If a record is retrieved for a pair, it should be displayed, if not, only the Date and Number should be displayed for that pair with "No item found". The same goes for all the values entered.
    Accessing two multivalue parameters is getting difficult as each pair of parameters shoule be executed. Any suggestions pls?
    Thanks!
    Joseph

    I'm still not 100% sure how you are driving this report...  But assuming you don't want to have the data drive what is displayed (i.e., one line per record or group of records), then you could do the following:
    Create a formula field, and put it in the detail section (basic syntax):
    global count(50) as number
    for i = 1 to UBound({?Sequence Number})
      if {BUSINESSDATE} = {?Business Date}(i) and {SEQUENCENUMBER} = {?Sequence Number}(i) then
        count(i) = count(i) + 1  ' or sum sales, or whatever you want to show
      endif
    next i
    formula = ""
    Then, in your report footer, place three formula fields similar to:
    @Dates:
    formula = join({?Business Date}, chr(13))
    @Sequences:
    formula = join({?Sequence Number}, chr(13))
    @counts:
    global count(50) as number
    dim rtn as string
    rtn = ""
    for i = 1 to ubound({?Sequence Number})
      if count(i) = 0 then
        rtn = rtn + "Item Not Located" + chr(13)
      else
        rtn = rtn + cstr(count(i)) + chr(13)
      endif
    next i
    formula = rtn
    Mark the fields Can Grow.  This will then display all of your data as desired.
    HTH,
    Carl

  • Accessing Exchange Profile Parameters programatically (using Java/ ABAP)

    Hi All,
    Exchange Profile parameters can be accessed using the URL http://<server>:<port>/exchangeProfile
    Does anyone know how to access 'Exchange Profile parameters' programatically. (from java).
    Code snippet for the same would be of great help.
    Regards,
    Siva Maranani

    Hi,
    Is there any way to access exchange profile parameters using Java?
    I need to access exchange profile from an UDF.
    Thanks in advance.
    Pedro Leal

  • How to access Payload in XI Adapter Module

    Hello,
    I have to enhance a adapter module in xi very urgently. Target is to access a node of the XML payload and retrieve the corresponding value.
    This is how my document looks like:
    <mt_test>
         <element1>
              <…> </…>
         </element1>
         <element2>
              <LOG_NO>4711 </LOG_NO>
         <element2>
    </mt_test>
    I need now access the element <LOG_NO>. This can only appear one time in the whole xml document. My code that I did so far (inside the process method) to retrieve this element is like this:
    XMLPayload xmlpayload = msg.getDocument();
         DocumentBuilderFactory factory = null;     
         factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         Document document = builder.parse ((InputStream)xmlpayload.getInputStream());
         Element rootNode = document.getDocumentElement();
    <…and now I have no clue anymore…:-/…>
    May you give me an example how to access the node <LOG_NO> and save the corresponding value in a String variable?
    I would be really thankful.
    Greetings and thanks in advance,
    Tobias

    Hi,
    >>>found no solution with PI Standard Import to support FTP inside the Adapter Module
    why would you? file adapter supports FTP - so you don't need it
    >>>In order to use FTP library, is there any standard library available or supported by SUN.
    you can use any java ftp client available on google
    Regards,
    Michal Krawczyk

  • How to assigned array index position to database field

    Here is the sample data of my report.
    Run#     Note1     Note2       Note1 ArrayIndex      Note2 ArrayIndex
    101        CR         Work               1                              2
    102        Work      ER                  2                              3
    103        ER         Test                3                               4
    104        ER         CR                  3                              1
    104       Work                             2                           
    Page Footer:    1. CR       2. Work     3.ER       4.Test
    I have to load distinct values of note1 and note2 in to array and assigned the array index of that note1 and note2 values and on the page footer i have to print distinct note1 and note2. would like to see at the page footer like above.  I allready figer out how to load the distinct note1 and note2 values in array but i am not able to print the Not1Arrayindex and Note2Arrayindex value in the report. I am not sure how to print out the arrayindex values based on the array value.
    Thanks for your help.

    Hi Shweta,
    Thanks for your help. I already take a look that thread but still itu2019s not clear.
    I have to assigned the array index value like 1,2,3,4,5 and at the page footer
    I have to load the N1 and N2 database value in to one array and then show then array index value next to it and at the page footer I have to show corresponding array index with index value.
    Run# , N1  ,               N2             ,        Ind          ,          Ind
    101 ,       CR      ,              Wk               ,              1           ,                 2
    102 ,      Wk    ,                ER                ,              2           ,                 3
    103 ,       ER      ,              Tst                 ,            3            ,                4
    104 ,       ER      ,               CR                ,            3            ,                1
    Page Footer: 1. CR       2. Wk   3.ER        4.Tst
    Thanks for help.
    Regards,
    Shirin

  • SSRS reporting with sharepoint list using Distinct and Multivalue parameters

    i want create ssrs report with sharepoint list using ms-vs(2008). i want create Distinct multivalue parameters by using CAML query. There is any way we put CAML query where we use Distinct keyword and IN clause in CAML query... i hope all experts will
    understand my poor English... sorry for poor English.. plz help me

    Hi AsifMehmood,
    Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query,  right?
    For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
    to get all the values from the fields which will  add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
    Step by Steps information in below thread for your reference to create the parameters and the custom code:
    "How to get distinct values of sharepoint column using SSRS"
    Other similar thread for your reference:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    If your problem still exists, please feel free to ask and also try to provide us more details information.
    Regards
    Vicky Liu

  • MultiValue Parameters as Optional in SSRS[Using SharePointList as DataSource]

    I have four parameters in my SSRS report which uses SharePoint List as data Source. And I want to make all the four parameters as optional. i.e if the user provides one parameter value and if he/she doesn't provide any other parameter value then the report
    should still execute with results filtering on the value passed by one parameter only. 
    Please let me know if there is any solution to achieve this in SSRS. I can't use SQL in any Case.
    Thanks in advance.

    Hi SQL_Query,
    Per my understanding that you have four parameters and the filter will only filter based on the parameters which have choosed values and ignore the blank parameters, right?
    If you don't want to use any CAML queries and your parameters are not multiple value parameters, please reference to details information below:(Here I will use two parameters for an example):
    The "Available values" for all the parameters should be "none" and please specify the "Default Values" for all the parameters, select the "Allow Blank Values":
    Modify the filter and use the expression as below to filter the report:
    =Switch(Parameters!ProductID.Value="" or Parameters!ProductName.Value="",Fields!CarMakes.Value=Parameters!ProductID.Value or Fields!CarModel.Value=Parameters!ProductName.Value,Parameters!ProductID.Value<>"" and Parameters!ProductName.Value<>"",
    Fields!CarMakes.Value=Parameters!ProductID.Value and Fields!CarModel.Value=Parameters!ProductName.Value )
    If all the parameters you are using are multiple value parameters, it will hard for us to achieve not using the query.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • PL/SQL Entity Object - How to access OUT parameters in OA Page

    Hi,
    I have the following pl/sql code which takes 4 input parameter and inserts values to database table.
    create or replace procedure xxfwk_emp_create(p_person_id IN NUMBER, p_first_name IN VARCHAR2, p_last_name IN VARCHAR2, p_sal IN NUMBER, p_error_msg OUT VARCHAR2) is
    cursor c1 is select EMPLOYEE_ID from fwk_tbx_employees;
    v_status varchar2(1) := 's';
    BEGIN
    for v_c1 in c1 loop
    if v_c1.employee_id = p_person_id then
    p_error_msg:= 'Person with this id already exist';
    v_status := 'e';
    end if;
    exit when c1%notfound OR v_status='e' ;
    end loop;
    if v_status = 'e' then
    goto error;
    end if;
    INSERT INTO FWK_TBX_EMPLOYEES(EMPLOYEE_ID,
    FIRST_NAME,
    LAST_NAME,
         FULL_NAME,
    SALARY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN)
    VALUES(p_person_id,
    p_first_name,
    p_last_name,
    P_first_name||' '||p_last_name,
    p_sal,
    sysdate,
    fnd_global.user_id,
    sysdate,
    fnd_global.user_id,
    fnd_global.login_id);
    <<error>>
    null;
    END xxfwk_emp_create;
    I have following code in EO Impl class
    public void insertRow()
    try
    OADBTransactionImpl oadbTrans = (OADBTransactionImpl)getDBTransaction();
    String s = "begin xxfwk_emp_create(p_person_id=>:1, p_first_name=>:2, p_last_name=>:3, p_sal=>:4, p_error_msg=>:5);end;";
    OracleCallableStatement oraCall = (OracleCallableStatement)oadbTrans.createCallableStatement(s,-1);
    oraCall.setNUMBER(1,getEmployeeId());
    oraCall.setString(2,getFirstName());
    oraCall.setString(3,getLastName());
    oraCall.setNUMBER(4,getSalary());
    *< How to access Out Parameter from The procedure >*
    oraCall.execute();
    catch(SQLException sqlException)
    throw OAException.wrapperException(sqlException);
    catch(Exception exception)
    throw OAException.wrapperException(exception);
    In this insertRow i want to get the error message (out param) and throw this message as exception in OA page.
    What changes i need to do in my page?
    Regards,
    Ram

    You can use this code...
    String current_value=null;
    OracleCallableStatement st1=null;
    try {
    String stmt = "begin xxfwk_emp_create(:1,:2,:3,:4,:5); end;";
    OADBTransaction oadbTransaction1 = am.getOADBTransaction();
    st1 =(OracleCallableStatement)oadbTransaction1.createCallableStatement(stmt,1);
              st1.setNUMBER(1,getEmployeeId());//or you can use st1.setInt(1,getEmployeeId())
              st1.setString(2,getFirstName());
              st1.setString(3,getLastName());
    st1.setNUMBER(4,getSalary());
              //Define Out parameter...
    st1.registerOutParameter(5,OracleTypes.VARCHAR);
         st1.executeUpdate();
              //Access out parameter value
         current_value=st1.getString(5);
    catch (SQLException s) {
    throw new JboException(s);
    finally {
    try {
    if (st1 != null) st1.close();
    catch (SQLException s) { }
    }

  • How to know the Post parameters of a form?

    Hello
    I am developing an application where, I have to login to web site, etc. I am newbie in this kind of development. I can access the web page, retreive the page. So, GET part is working fine. I have problem with Post. I am using JDK 1.6 with apache's HttpClient 3.1 for communicating through the web site. After setting parameters in NameValuePair[], when i run execuseMethod(postMethod), it throws the following exception :
    i]Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: host parameter is null
    I think, I may be going wrong in providing proper headers, parameters, etc. Can anyone help me know:
    1. How can I know what parameters, I need to pass in the POST method. Along with form attributes, their may be any hidden values to be passed. How can I find out that.
    2. Their is a submit button, how do i deal with that - tell the post method to click it ?
    3. Same with headers. Which attributes needs to be set of headers and what values?
    I saw some files on net, where prg'er are adding few other parameters that are hidden - but not all hidden parameters!
    Any help is appreciative. Please it would be nice if you can help me out. I am new in this type of development. I have spend 2 days looking out for this problem, but couldn't find any help yet. Please any help at the earliest is benificial.
    Thanks
    Terry

    Ok. To check the host before executing the post methd, I gave :
            HttpConnectionManager connectMgr = client.getHttpConnectionManager();  // ************
            HostConfiguration hc = client.getHostConfiguration();                                 // *************
            if (connectMgr.getConnection(hc).isOpen() == true)                                  // EXCEPTION - hc contents r null
                System.out.println("Connection is OPEN");
            else {
                System.out.println("Connection is ******************* NOT OPEN *************** ");
            method.setRequestBody(data);
            int statusCode = 0;
            try {
                statusCode = client.executeMethod(hc, method);
                System.out.println("Register Send: " + method.getStatusLine().toString());
            }catch (HttpException e) {
                method.releaseConnection();
                System.out.println("HTTP EXception : " + e.getMessage());
            }catch (IOException ie) {
                method.releaseConnection();
                System.out.println("Error Exe Method - Post. Status Code = " + statusCode);
                ie.printStackTrace();
            }HttpConnectionManager has hostname, portNo, httpconnectin isopen -> false
    HostConfiguration has host, port, localAddress all null
    Due to the null value the exception is thrown. What do I do now? Infact, in my GEt also, I tried the same thing, their also host is null of HostConfiguration, but it works well, as it doesn't have to send anything.I have no clue to move ahead.Also, what must be the content length?
    Thanks

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • How to access the whole iTunes iCloud Library with an Android phone?

    Hello all,
    I am a newbie here, so please forgive me if I'm not following protocol here.  I searched for the word "Android" in all of the support docs. and got 0 hits!  Is there a corporate policy at work here?
    I know that Google and Apple (and by extension Android and iOS) are competing hard for all of us techie music lovers out there who use both ecosytems.  Well, Google Play wants to have my entire music library, Apple's ever at the ready with iTunes/iCloud/Match, and now I've even gotten solicitations from Amazon which has a "Cloud MP3 Player" with purchases ready to download that I made from Amazon in 2010, before I ever dreamed of getting MP3 files instead of a physical CD.  I mean the liner notes had the lyrics to the songs right?  Well, I enjoy looking at lyrics.  Anyways, . . .
    What are the best recommendations for how to access my iCloud music library with my Android phone? 
    Yes, one solution is to use both Google's and Apple's services and just duplicate everything everywhere.  But, I'd just like to settle on iTunes/iCloud solution, but I have a brand new Android phone that I want to use.  The iPhone 5 screen doesn't come close to my Motorola Droid RAZR Max HD!  :-)  Sorry, all you iPhone folks.  You have all the app's., so I have to latch on to somethine for a reason why I stayed with Android! 
    Thanks,
    Randall.
    San Francisco, CA

    Apple is pretty much the only one who does not support other platforms and it will be their downfall in the future. I have bought a few hundred tracks (and one movie) from iTunes before the competition started to catch up. Their Cloud service just came into Finland but I've already moved on to others. I've also bought music from Spotify, Nokia Music and Xbox Music. I've been a subscriber of Nokia Music, Xbox Music and now Google Music. I'm also a Netflix subscriber and I have a local IPTV service that also provides movie rentals from various providers - and guess what, they also work on all platforms.
    The reality is that today was the first time in a long long time that I've actually even bothered to open iTunes. Lack of platform support will destroy iTunes in the long run. Apple is starting to look like Microsoft once did. Today you can even get Office for almost every platform - even mobile devices.
    Limited access and/or features is also one of the biggest reasons that turn people away from legit services. DRM protected music was the reason I had over 20,000 MP3s before it was removed from iTunes. When that happened I deleted all the old files and became a honest, paying customer.

Maybe you are looking for

  • Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option

    I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.- http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-an

  • Major Problem with audio from Final Cut to DVd Studio Pro

    I am posting this problem again because no further responses have been received regarding my first post. I purchased an MR-HD100 Firestore device from Focus Enhancements. When I use clips from it alone or with other clips created by digitizing from m

  • JAVA Mapping: Handle Special characters like u00E4,u00FC an so on

    Hi everybody, we have a JAVA Mapping that gerenates text nodes with special characters. The generated XML is later used in an graphical message-mapping. During runtime we ge the trace/error: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Err

  • "underlying task reported failure..." & "root device is mounted read-only"

    My ibook is not starting up. It was having problems loading up and getting in interminable spinning ball fits as I tried to use the computer for basic things like surfing internet, word processing, itunes. I ran disk repair several times, and the pro

  • Fade to Slideshow ?

    Wen I use Tiger's built in slideshow feature, I get an odd transition. My desktop fades to black as expected, but then reappears as if interrupted, and then starts the show. Any ideas why? Any insights what I could do to fix this?