Display results seperated by comma's

Hi
Just wondering if there was a way to display results from seperate rows in one text box where the results are seperated by comma's?
=First(Fields!ClientId.Value, "DataSet1")
The example above will just show one ClientId however I would like to list all of them all like below
C001,C002,C546,F546,H232
Am I after Lookup/LookupSet?
Any help appreciated.
Cheers
Cheers Chris

One method is to create a hidden parameter ,make it allow Multiple values and set its default value to be same as dataset field value. Then you can simply use
=Join(Parameters!ParameterName.value,",")
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Displaying results with comma

    Hi i have two tables that have a one-to-many relationship and i want to display the output as comma delimitters. The two tables are
    TABLE TABLE1
    OVERSION_ID NUMBER NOT NULL,
    PREVIOUS_V_ID NUMBER NOT NULL
    TABLE TABLE2
    OVERSION_ID NUMBER NOT NULL,
    so for example if i run the query
    select * from table1
    the result is
    OVERSION_ID PREVIOUS_V_ID
    12456 25677
    12456 25702
    12456 27897
    how can i write an sql query that will display all previous_v_id seperated by a comma like below
    25677, 25702, 27897
    Thank you very much.

    i have used the wm_concat function and it worked
    select oversion_id, wm_concat(previous_v_id) from table1 group by oaversion_id;
    however i have 2 other tables
    TABLE TABLE3
    OVERSION_ID NUMBER NOT NULL,
    OID NUMBER NOT NULL
    TABLE TABLE4
    OID NUMBER NOT NULL
    ONUMBER VARCHAR2 NOT NULL,
    You can see the relation between table 3 and table 4
    how can I change the query
    "select oversion_id, wm_concat(previous_v_id) from table1 group by oaversion_id;"
    so that i get the output as onumber and not the previous_v_id
    in other words how can I join these tables so the output is not the numbers (previous_v-id) , but the varchar2 (onumber) from table4

  • Passing Parameters to SQL Query and Displaying Result

    The user enters a serial number in a text box and then pushes a button to get info about the serial number. I do this with two regions. The first region has the text box and the button. The second region is a Report type region and contains the following SQL:
    select case
    when "WARRANTYSTATUS"."OUTOFWARRANTYDATE" >= sysdate then
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is in warranty.'
    else
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is out of warranty.'
    end as "The result is:"
    from "WARRANTYSTATUS"
    where "WARRANTYSTATUS"."SERIALNUMBER" in (:P1_SERIALNUMBER)
    For a single serial number of the form CU5-0799 every thing works. I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties. Not sure where the single quoties are being added.
    However, what I like to do is to enter more that one serial number, seperated by commas, in the same text box, and then the query return a result for each serial number. What I would like to enter is:
    CU5-0799, CU5-07132, CU5-89345
    The problem is this string of three serial numbers will needs to be have single quotes around each serial number at the level of the sql statement. So the question is how do I make this work?? Thanks for the help in advance.

    Bob,
    If you would change your OTN handle to something more mnemonically friendly, that would help us. Thanks.
    This topic is addressed fully, with various techniques described, here: Re: Search on a typed in list of values .
    I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties.
    Not true. Quotes are used for literals, not bind variables.
    Scott

  • Display results as String: dosen't work based on the example

    Hello,
    To understand how to display results as string, I tried to reproduce this:
    [http://apex.oracle.com/pls/otn/f?p=31517:84|http://apex.oracle.com/pls/otn/f?p=31517:84]
    I have my table emp
    EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
    7839  KING PRESIDENT -  81-11-17 5000 -  10
    7698 BLAKE MANAGER 7839 81-05-01 2850 -  30
    7782 CLARK MANAGER 7839 81-06-09 2450 -  10
    7566 JONES MANAGER 7839 81-04-02 2975 -  20
    7788 SCOTT ANALYST 7566 82-12-09 3000 -  20
    7902 FORD ANALYST 7566 81-12-03 3000 -  20
    7369 SMITH CLERK 7902 80-12-17 800 -  20
    7499 ALLEN SALESMAN 7698 81-02-20 1600 300 30
    7521 WARD SALESMAN 7698 81-02-22 1250 500 30
    7654 MARTIN SALESMAN 7698 81-09-28 1250 1400 30
    7844 TURNER SALESMAN 7698 81-09-08 1500 0 30
    7876 ADAMS CLERK 7788 83-01-12 1100 -  20
    7900 JAMES CLERK 7698 81-12-03 950 -  30
    7934 MILLER CLERK 7782 82-01-23 1300 -  10 I created with the wizard, on my page, a new REPORT REGION
    - selected SQL RESULT -
    - Name: Test
    - Region Source Type: SQL Query
    - Region Template: Report Region
    IN Enter SQL Query or PL/SQL function returning a SQL Query, I COPY-PASTE the following code from [http://apex.oracle.com/pls/otn/f?p=31517:84|http://apex.oracle.com/pls/otn/f?p=31517:84]
    DECLARE
       p_vc_arr2   htmldb_application_global.vc_arr2;
       p_string    VARCHAR2 (2000);
    BEGIN
       SELECT ename
       BULK COLLECT INTO p_vc_arr2
         FROM emp
        WHERE deptno = :p84_select_deptno;
       p_string :=
         HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');
       HTP.p (p_string);
    END;AND I have this error:
    +1 error has occurred+
    Invalid query, no select statement found
    Is not a PL/SQP functiion??
    What do I do wrong?
    thanks,
    Roseline Paquin
    Montreal, Canada

    1 error has occurred
    Invalid query, no select statement foundWhat if you try
    DECLARE
       p_vc_arr2   htmldb_application_global.vc_arr2;
       p_string    VARCHAR2 (2000);
    BEGIN
       SELECT ename
       BULK COLLECT INTO p_vc_arr2
         FROM emp
        WHERE deptno = :p84_select_deptno;
        return 'select ''' ||  HTMLDB_UTIL.table_to_string (p_vc_arr2, ':') || ''' str from dual';
    END;??

  • Substring of string seperated by commas

    Hi All,
    I am trying for a logic that i have some emp ids as a string seperated by commas and i need the substring of emp ids as below.
    Can any one help in splitting the string as below.
    public static void main(String args[]) {
             String empId = "1,2,3,4,5,6,7,8,9,10";
            int i;
               int count = 9;
               for (i = 0; i <= count; i = i + 3)
                 System.out.println("Emp IDs are : " +empId);
                  Result is:
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    Emp IDs are : 1,2,3,4,5,6,7,8,9,10
    But i want the result like:
    Emp IDs are : 1,2,3
    Emp IDs are : 4,5,6
    Emp IDs are : 7,8,9
    Emp IDs are : 10
    thanks for your help.

    It can be helpfull to split the question into smaller pieces.
    How many id's do you have. When you have the complete String use
    //put the string in an array
    String[] stringToArray = longIdString.split(",");
    //How any id's
    int numberOfIdInArray = stringToArray.length;'
    Now you know the number of id's.
    Divide the number by 5 and you know the number of id's in one new line
    Then make 2 loops. For 5 times add the original string with a begin and endpoint in a new string.
    package test;
    public class SplitString {
      public static void main(String[] args) {
      //the initial id's
      int numberOfIds = 5000;
      final int NUMBEROFLINES = 5;
      //Make a long string
      String longIdString = "";
      StringBuilder builder = new StringBuilder();
      for(int i = 1; i <= numberOfIds; i++){
      builder.append(i + ",");
      longIdString = builder.toString();
      System.out.println("Original Array: " + longIdString);
      //put the string in an array
      String[] OriginalArray = longIdString.split(",");
      //How any id's
      int numberOfIdInOriginalArray = OriginalArray.length;
      System.out.println("Number of Id's: " +numberOfIdInOriginalArray);
      //Number of id's in one row
      int numberOfIdInOneRow = numberOfIdInOriginalArray / NUMBEROFLINES;
      System.out.println("Id's in one row: " + numberOfIdInOneRow);
      //Make 5 strings and put them in a new array
      String[] theNewStrings = new String[NUMBEROFLINES]; //Aray where you can store the new Strings
      int startpoint = 0;
      int endpoint = startpoint + (numberOfIdInOneRow);
      for(int i = 0; i < NUMBEROFLINES; i++){
      StringBuilder buildNewString = new StringBuilder();
      for (int j = startpoint; j < endpoint; j++){
      //Remember that the first value in an array is at index 0
      buildNewString.append(OriginalArray[j] + ",");
      theNewStrings[i] = buildNewString.toString();
      //Create a new start and endpoint for the next String
      startpoint = startpoint + numberOfIdInOneRow;
      endpoint = startpoint + (numberOfIdInOneRow);
      //Print the new 5 strings
      for(int i = 0; i < theNewStrings.length; i++){
      System.out.println(theNewStrings[i].toString());
    In the "real world" you have to program the rounding of the division.

  • Get the column values in a single row seperated by commas

    Hi
    i have two tables project_baseline and project_resource which have the foreign key project_id from the base table project_details. Now iam trying to retrieve data from these tables using the below query :
    select distinct b.TASK_NAME,r.RESOURCE_NAME,() from project_baseline b inner join project_resource r on R.PROJECT_ID=B.PROJECT_ID group by b.TASK_NAME,r.RESOURCE_NAME
    Below is the output snippet :
    TASK_NAME RESOURCE_NAME
    TEST DESIGN PARAGI M
    TEST DESIGN RAJAN M S
    TEST EXECUTION VIBHU ARMA
    TEST EXECUTION PRATHAB GARG
    TEST EXECUTION NAGABHUSHAN G K
    TEST DATA PREPARATION RAJAN M S
    TEST DATA PREPARATION SHIVA MARAN
    TEST CASE REWORK VISWAN RAM
    TEST CASE REVIEW NAGABHUSHAN G K
    REGRESSION SANGEET
    PROJECT SUPPORT VIBHU ARMA
    PROJECT SUPPORT PRATHAB GARG
    PROJECT SUPPORT PARAGI M
    PROJECT SUPPORT NAGABHUSHAN G K
    PROJECT SUPPORT SANGEET
    PROJECT CLOSURE PRATHAB GARG
    i need to get the resource_names in a single row seperated by comma for a single task like following:
    TASK_NAME RESOURCE_NAME
    PROJECT SUPPORT VIBHU ARMA,PRATHAB GARG,PARAGI M,NAGABHUSHAN G K,SANGEET
    Could anyone please help me to get the query for the above formated output?
    Thanks in advance
    Meera
    Edited by: 928378 on May 22, 2012 5:20 AM

    Hi,
    It can be done using xmlagg function.
    For Example :
    Table Data..
    DEPTNO     ENAME
    20     WARD Tree
    23     Shank
    30     BLAKE
    10     MILLER
    30     MARTIN
    10     CLARK
    20     SCOTT
    30     TURNER
    20     ADAMS
    30     JAMES
    20     FORD
    30     BLAKE
    Query:
    SELECT deptno,
    RTRIM (XMLAGG (XMLELEMENT (e, ename || ',')).EXTRACT ('//text()'),
    ) NAME
    FROM emp
    GROUP BY deptno;
    Output :
    DEPTNO     NAME
    10     MILLER,CLARK
    20     WARD Tree,FORD,ADAMS,SCOTT
    23     Shank
    30     BLAKE,TURNER,BLAKE,JAMES,MARTIN
    Thanks,
    Shankar
    Thanks,
    Shankar.

  • How to configure search results web part to display results only after a query is generated from user?

    Hi All,
    I am crawling documents from a file server. I created a new content source and crawled the documents. All documents are crawled successfully.
    Then I went to my enterprise search center site collection and created a new result source. I have added the query to use above content source.
    After that, on a page I am trying to configure the search results web part to display documents using this result source. Now the problem is:
    It displays all the documents that are crawled without searching for anything. I mean first it should not display any results. If a user searches for something , then according to that search it should display results.
    Any idea how to do this in the web part? I am using SharePoint 2013 on premise enterprise edition. No code. Totally OOTB.

    Hi Mohan,
    What did you use for the Query text in the result source?
    I could reproduce this issue when I used Query text like: {searchTerms} Path:”http://sps2k13sp/sites/First/Shared%20Documents”
    Then I changed the Query to
    {?{searchTerms}
    Path:"http://sps2k13sp/sites/First/Shared%20Documents"}
    , then Search result web part didn’t return results without searching.
    So , check your result source, and use the Query like the above(adding "{?...}").
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Unable to display results of multiple query in grid in Oracle SQL Developer

    Hi, I am a newbie to this forum and couldn't find the Oracle SQL Developer forum so posting it here.
    My question: How to display multiple query results in grid in Oracle SQL Developer.
    Example:
    select * from Employee;
    select * from Department;
    - when I select both the queries and hit F5 in Oracle sql developer. By default it displays in output window.
    - How to display result of both the queries in Grid.
    Any thoughts on this would be really helpful.
    Thanks in advance.
    Harsh

    Hi Harsh,
    I'd say that the Results grid is designed to only show the results of 1 query at a time. I don't know/can't see how it would display multiple queries at a time.
    I would suggest either joining your tables to create a single query or opening another SQL Worksheet for one of the queries so that you can display the results side-by-side.
    Maybe you could explain what you're trying to do. Why are you trying to display multiple results in the same query grid?

  • Display results of MySQL query from AMFPHP by ArrayCollection in AS3 (Flash CS4)

    Hi, i am using Flash CS4 (AS3) + AMFPHP + MySQL to do own flash frontend for Wordpress CMS.  Everything is going fine but i`ve got one problem. Problem with properly display of result of query in AS3 by using ArrayCollection.
    When i check my service in "amfphp/browser/" in web browser i`ve got this (with all needed data):
    (mx.collections::ArrayCollection)#0
    filterFunction = (null)
    length = 2
    list = (mx.collections::ArrayList)#1  
    length = 2     source = (Array)#2
    That is the reason that i suppose that service work fine.  Problem is when i try to display result in AS3. In actionscript i have got this:
    function getNewsListHandler(result:Object):void{
    trace(result);
    This function displays: [object Object].
    I know that "result" is an ArrayCollection type but i don`t know how to get rows and columns from this. I know that my data is there but i have no idea how to get it.
    Clarify: I don`t know how to get to Arrays and simple data variables which are in ArrayCollection.
    Could anyone help me with that problem. I would be gratefull
    P.S. I tried also change query type in service.PHP for mysql_fetch_query but in that case i`ve got only one row (not all data).

    Thanks for fast reply,
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"});
    you would get the data like
    var resultstr:String = arr_coll[1][1].col2;
    trace(resultstr);
    //results in data4
    could you explain me how it was happen (arr_coll[1][1].col2)? It`s not clear to me. I thought in this case rather something like this :
    var resultstr:String = arr_coll[1]['col2'];
    It should give me "data4". I know it wasn`t but i don`t understand ArrayCollection in level which is needed to use your advice in my case. Could you clarify "arr_coll[1][1].col2" a bit?
    What would it look like when you would have something like this:
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"},{col1:"data5",col2:"data6"},{col1:"data7",col2:"data8"});
    and you would want know f.e. position in ArrayCollection of  "data6". How would you code this? arr_coll[1][2].col2?

  • How to simply display resulting text in a dialog Box

    Is there a way to simply display resulting text in a dialog Box - not a text edit document?
    Doug_

    Thanks that's very helpful
    What I am trying to to is to create a workflow that opens mail and displays iCal TO DO's that I have created throughout the day tagged with the word MAIL so they can be filtered.
    At the moment the ACTIONS are:
    Launch Mail
    Get New Mail
    Find TO DOs in iCal (Who's SUMMERY includes MAIL)
    I get iCal To Do's as a result
    But then...I can find no options to display the iCal Events that result.
    Putting in the Applescript you posted displays a blank dialog box. This tells me that there is no text in the result.
    Yet if I put a SPEAK TEXT in after find TO DOs it dutifully speaks my filtered TO DO's
    I thought I might just try a NEW MAIL MESSAGE action.
    This works great in the workflow. The content of the new mail is the filtered TO DOs.
    But if I save it as an application (the form I need it in), mail simply opens blank when it reached that part of the work flow.
    What would you recommend?
    Thank again for your help,
    Doug_
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter

  • Display result in browser

    I need to write a java client that sends a query to server and display result in browser. I intend to call from the client the command 'cmd.exe /c start url' which will send a http request and bring up a browser for the result. But somehow if the url has more than one query argument, for example -- "http://hostname/test?node1=abc&node2=123", only everything before the "&" is taken, i.e. "http://hostname/test?node1=abc".
    Another approach would be to do it step by step, send a regular http request, either the server or the client save the result to a file, then call 'cmd.exe /c start file_location'.
    Does anyone have any better idea to work this out or why 'start url' wouldn't work? thanks.

    The command interpreter (cmd.exe) is interpreting the "&" and thus, is dropping everything after it.
    e.g. Try this from a DOS prompt:
    cls&echo hey
    You get a clear screen, with "hey" at the top, and then the prompt.
    Similarly, try this:
    cmd.exe rem hello&echo goodbye
    You get a new command prompt. Fine. Now exit that, and you get "goodbye" on the screen because that command was still queued up.
    Maybe try using the hex equivalent for the "&" character?
    Hope that sheds a little light - good luck!
    Regards,
    Nate

  • Crystal Report Takes very long time to display results

    Dear All,
    I am new to Crystal reports. We have installed Crystal report developer 2008 SP3 on Windows7 Service pack 1. We are creating reports from SAP ECC 6 EHP 4 Ready in Crystal Reports. The problem we are facing is that every report which we have developed in Crtystal reports is taking around 1 to 2 hours to display results. the reports are pertaining to only one day or one month data. we have also switch off "Verify On First Refresh", "Verify Stored Procedures On First Refresh", "Verify Database" and  we are also not saving data on report level as per the threads which are already posted in the forum pertaining to our problem.
    You are requested to kindly guide me how I can improve the performance of our crystal reports.
    Regards,
    Danish.

    You select expert formula says enough. It would appear that little or no data filtering is being carried out on the database server. Thus all records will be returned to Crystal and then filtered locally.
    You need to try and incorporate the logic of formula  {@Form_PeriodCvn} into the select expert. Or build a view/stored procedure which returns a value compatible with your filtering requirements.
    What is contents of formula  {@Form_PeriodCvn}
    Ian

  • Displaying a number with commas in gid

    Hi EveryOne,
                       This is Ram Prasad.I want to display a number with commas in the grid (eg:1,000).In the grid it is shown as 1000.I wan to add commas for this number to be shown in the grid display template.Can any one help on this.

    That's an odd format, so I assume you mean 1 million to be displayed as:  1,000,000 ?
    http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/ParameterReference.htm#Number Formatting
    #,##0 should provide you with a comma as the thousands separator for all numbers in this column of your iGrid.

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • FM K_LINE_ITEM_ACT_DATA_GET doesn not display result

    HI Guys,
    FM K_LINE_ITEM_ACT_DATA_GET doesn't display result for one of my user. Instead of having to debug standard function , have anybody experienced this before and can tell if user might miss authorization ?  please advice ...

    ee

Maybe you are looking for

  • When I print, resolution changes, can I reset Acrobat to default settings?

    I can't see any issue with any of my settings though shortly after reinstalling CS a month ago, Acrobat started printing to a much lower resolution than the PSD (or any application) is set to print to, though Photoshop may be the only one where I am

  • I need my receipt to be sent to me again

    hello can I please have my recent perchuse reciept sent to me again? Thanks Nima                   

  • Adobe photo shop cc

    when  i am trying to add text while a black color background covering my whole layer why?

  • New object ?

    Hi, In SAP 8.8, it seems to have new objects. in the table OJDT (journal entries) there is some records with transtype = 10000071 The question is : what is this object and where can I see the related document (if any) in SAP B1 Thank you

  • Best landscape design software

    What is the best software to download for a landscape professional for design