Display of the values of query horizontally

I have a subreport with a query that returns a single field. I want to do is view as a list on a single line, as opposed to the display of each item on its own line. I couldn't find a simple way to do this, so I tried to come up with a hack, but it does not work too well. I did just out a field with ValueList (query. FieldName, ",") and then set the print when the band to the query. CurrentRow EQ 1. Unfortunately the ValueList() function doesn't seem to work properly for this. I tried to resolve the application to advanced by specifying a name query, and then using this query in the function name and that does not work either. Someone has any idea how to run ValueList() or how to solve my particular problem?

I came up with a solution for this, it is here for the benefit of third parties. Basically, I created a report function that was to build the list for me. The function is as follows:







/>


Then I put print when broadband subreport to the query. CurrentRow EQ 1 so that the list would only get out once. Then in the area, I put the following expression: report.outputAsList (query, "MyColName")

Works very well. Yet another hack, of course, but it's as well as I managed to get what I needed, since ValueList just won't play nice.

Tags: ColdFusion

Similar Questions

  • display the values of query horizontal Panel

    Hi how to display value in the application of the horizontal panel have only one line

    my panel query
    <af:panelHeader text="Users" id="ph2"
                                    inlineStyle="width:946px;">
                      <af:query id="qryId1" headerText="Search" disclosed="true"
                                value="#{bindings.IntlUsrUpdCriteriaQuery.queryDescriptor}"
                                model="#{bindings.IntlUsrUpdCriteriaQuery.queryModel}"
                                queryListener="#{bindings.IntlUsrUpdCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.IntlUsrUpdCriteriaQuery.processQueryOperation}"
                                resultComponentId="::resId1"/>
                    </af:panelHeader>
    
    
    and this is the view criteria of my panel query
    <ViewCriteria
        Name="IntlUsrUpdCriteria"
        ViewObjectName="model.updateusr.IntlUsrUpd"
        Conjunction="AND">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="vcrow41"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="Firstname"
            ViewAttribute="Firstname"
            Operator="STARTSWITH"
            Conjunction="AND"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Surname"
            ViewAttribute="Surname"
            Operator="STARTSWITH"
            Conjunction="OR"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Officecode"
            ViewAttribute="Officecode"
            Operator="="
            Conjunction="OR"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="IntlUsrUpdCriteria_vcrow41_Branchcode"
            ViewAttribute="Branchcode"
            Operator="="
            Conjunction="OR"
            Required="Optional"/>
          <ViewCriteriaItem
            Name="Usertype"
            ViewAttribute="Usertype"
            Operator="="
            Conjunction="OR"
            Required="Optional"/>
        </ViewCriteriaRow>
      </ViewCriteria>
    
    am in jdeveloper 11.1.1.6.0
    Published by: adf009 on 05/17/2013 11:16

    To do this, you set the maxcolmns and the rows of the af property: query as

    ... rows="1" maxColumns="10"...
    

    MaxColumns argument must equal the number of fields you want to see in a single line.

    Timo

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

  • display of the values of selected option buttons

    Hello

    It is an application that would allow users to go through a step-by-step process to build their product, in this case, it's ice cream.


    Description:

    There are six option buttons, four belonging to a radiobuttongroup and two others belonging to an another radiobuttongroup. In addition, there is a mx:TextArea (including the editable value false).

    This Panel will most likely go into a mx:ViewStack as a "first step" in the process of personalization of the ice cream. The selection of a radiobutton to every radiobuttongroup must be required to move forward (go to the next "step", as in the Panel following in the ViewStack).

    Problem:

    Allowing the user to select an item in each of the two radiobuttongroups and write values of these two selected radiobutton [such as specified by the value of the radiobutton = property 'radioButtonValue'] to the mx:TextArea, on different lines.

    I have been moderately successful in trying to do it, but I didn't know how to write two values in the same text box
    without crushing them each other.

    Misc.

    At first, I tried something to the effect of: ( changed from the 2 flex components Explorer)

    < mx:Script >
    <! [CDATA]

    Import mx.events.ItemClickEvent;

    Event handler function to display the selected button
    in a text box.
    private void handleConeType(event:ItemClickEvent):void
    {
    If (event.currentTarget.selectedValue is "sugarCone")
    {
    iceConeTextBox.text = "Sugar cône";
    }
    on the other
    {
    If (event.currentTarget.selectedValue is "waferCone")
    {
    iceConeTextbox.text = 'Wafer cone. "
    }
    }
    }
    }
    []] >
    < / mx:Script >
    Quite exaggerated to get something to work, I know. It was not very effective, and I sincerely hope that there are better ways to do this.

    I would like if possible avoid using two mx:textareas.

    Example of

    Here is a link to better describe what I'm talking about (Note: View Source is enabled).

    ConeChooser Application


    Thank you!

    You can access the selected radio button value the id of Group of radio button groups, you don't need to check each radio button individually. Then coneType.selectedValue will give you the value of a button radio is selected in the group, and the coneType.selection.label will give you the label of the currently selected option button or null if none is selected.

    Try this code:


    http://www.Adobe.com/2006/mxml '.
    Width = "100%" height = "100%" layout = "absolute" >

    private function updateText (): void {}
    var totalSelected:uint = 0;
    var cone: String = "";
    var size: String = "";
    If (coneType.selectedValue! = null) {}
    Cone = coneType.selection.label;
    totalSelected ++;
    }
    If (coneSize.selectedValue! = null) {}
    size = coneSize.selection.label;
    totalSelected ++;
    }
    iceConeTextBox.text = '\r', cone + size;
    If (totalSelected == 2) {}
    next_btn.enabled = true; to go to the next view in the viewstack
    }
    }
    ]]>

    horizontalCenter = red "0.5" = "0.5" layout = "absolute" >

    text = "Select your cone." y = "10" height = "44" fontSize = "25" horizontalCenter = "0" / >



    label = "Sugar Cone" width = "150" x = "2" y = "62" / >

    label = "Waffle Cone' width = '150' x '2' = y ="88"/ >

    label = 'Wafer cône' width = '150' x '2' = y = "114" / >

    label = "Chocolate dipped Wafer cone" width = "201" x = "2" y = "140" / >






    Vygo

  • How to pass the value to query LOV of rows in the table.

    simple table on the page of the ofa:

    col1 col2
    ABC lov-activated
    PQR lov-people with disabilities
    MNO lov-activated

    Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
    How to pass values in col1 to the co of lov lov query?

    Help, please
    Thank you

    Hello

    You can pass the value to LOV in this way in a region of the table.

    col1 col2

    DEPTNO empname (Lov field)
    1 lov1
    2 lov2

    requirement: lov1, you will need to pass the value of deptno 1.

    If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.

    danslechamp empname lov

    fields of lov region:

    EmpName,
    DEPTNO,
    and deptnoFormValueinLov

    lov mappings: a first return to the basic page.

    a second part of the criteria

    Point lov region: deptnoFormValueinLov
    Return article: -.
    Point of criteria: deptnoFormValue
    Required: true
    Query programmatically: true

    Now create a controller for the region of Lov

    the code example is:

    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAViewObject;
    java.util.Dictionary import;

    in the process request:

    OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
    Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
    String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");

    System.out.println ("org code in controller of lov is" + orgcode);

    OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
    vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");

    System.out.println ("request after adding where clause." + vo.getQuery ());

    hope this is useful

    Kind regards
    Barros.
    [email protected]

  • How to set the value of QUERY using PL/SQL process?

    Hello

    I use APEX 4.2...
    How to set the value of the REQUEST using process of PL/SQL which lies before the header - where the value of the REQUEST should appear on the URL?

    Kind regards
    Fateh

    You cannot set a value of demand in a PL/SQL block. You can run a PL/SQL block on a request which is the id of a button for example.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Better display of the values of shuttle LOV in a report

    Hello
    I created a LOV shuttle service in a form, then a report indicating (among others) the values chosen this LOV shuttle.
    If the user choose multiple values I don't like how they appear in the report (they must go in a single cell) because
    the user sees a list of items separated by ': '.
    Is there a simple way to show them for example as a list of points of ball or another form readable nicer human?

    Thank you
    Antonella

    Hello Antonella,.

    use

    select case when your_column_name is not null then '
    • '||replace(your_column_name,':','
    • ')|| '
    ' end as shuttle_column from your_table

    to avoid the ball when you have a NULL value.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • display of the values of ssize_t on a whole control

    Hello

    in a related issue to my previous post (http://forums.ni.com/ni/board/message?board.id=180&thread.id=46242) it is not obvious to me how to display values of ssize_t on a CNC.

    For a digital control, I have to decide using int or int64, while the idea of ssize_t was that this change will take place according to a macro (compilation of 32-bit or 64-bit)...

    Thank you!

    Hi Wolfgang,.

    The only restriction is that, if you are currently using the editor user interface to set the data type of the control, you will need to override it programmatically:

    SetCtrlAttribute (Panel, control, ATTR_DATA_TYPE, VAL_SSIZE_T);

    Luis

  • custom display of the values in a column

    Hello

    I display "Qty" with ease. Currently, I see the installation my results next order.

    F1 f2 f3 f4 f5
    10 10 10 10 10

    I customize the installation command. It should look like this:

    F2 f4 f1 f3 f5
    10 10 10 10 10

    I try to drag and drop and it does not work.

    Is this possible?

    any response would be greatly appreciated.

    Thank you!!
    Ann

    Hello Ann,.

    To get a custom sort on column with values f1, f2, etc., you can create another column in the report, change the fx to a case statement, which would be used for sorting, sort on this column and hide it in the report.

    to see the case can be stated as below and sorting can be applied on this column.

    "case when TableName.ColumnName = 'f2' then 1 when TableName.ColumnName ="f4"then when 2 TableName.ColumnName = 'f1' then 3 when TableName.ColumnName ="f5"then when 4 TableName.ColumnName =" f3 "and then 5 end

    Thank you

  • Attempts to display all the values in a list

    I built a lookup table for the sale of 10 products by each of the 50 States.

    Not every State will record a sale for each product, so some States have 5 products and other 10 and the other 4, etc. in the results.

    I want the output to display each of the 50 States and also view all 10 products in the second column, so I can export the results to excel and compare them to other data that I have. When a product is missing, it makes me extra work later down the line.

    I can't seem to find a way to force all 10 products appear in every State, even if there is no sale.

    Advice would be appreciated.

    Patrick

    The problem is that you need a LEFT JOIN products to States since as Derrick said, from the FACT table, you will normally only get the lines where there was a product sold. If you have two options.

    (1) you can create a "left join" in the answers using "Combine with a similar request" as I have said in this thread:

    Re: Section values list NULL in Pivot

    (2) the second, also in the responses, is to create the join in the Advanced tab of the application.

    Check this lnk:

    http://gerardnico.com/wiki/dat/OBIEE/multiple_subject_area

    The only difference is that instead of using FULL OUTER JOIN, you use LEFT JOIN

  • The display of the values of Expression Language

    Hello:

    Sorry, but it's a matter of rookie...

    I'm trying to understand a problem unrelated to this issue. I need determine the language of the right expression for the source of an af:image value. When I go to the expression builder
    There are so many entries, I'm unable to find the right value to select. How can I learn what values are in there?

    So the question is, how do I watch these many values in Builder Express when running? Almost as if I want to watch the links through the debugger... How can I do this?

    Thank you

    Exactly as you say, you use the debugger. Set a breakpoint somewhere in a bean method, to display the debug window and select the data tab EL. There, you see an entry in the field, where you can enter any expression EL you like and you press on assess. You must enter the expression full like #{bindings.name.inputValue}.

    Timo

  • Dependent on the value of query column names

    Hi guys, I don't think this is possible, but I thought I'd give it a go.

    I am wanting to values that are returned by my query as column headings. For example:

    SELECT 1,2,3,4,5
    OF trade_table
    WHERE < 6

    The table contains 10 records, "A1", "B1", "C1", "D1", "E1", "F1" etc... and my query returns 5 records of each with a rating of 1 to 5. The first record in the standings, lets say "D1" must be the column heading.

    I'm extremely sorry for being vague, but my request first contains a lot of analytical functions and I try to simplify it.

    Thanks in advance.

    To do this with the reporting you tool use and not with SQL and PL/SQL.

  • Display of the results of query in Excel on the Web

    Hello

    I try to display data from a query in excel on the web without creating an existing file. I know I can create a CSV using UTL_FILE and post it but I was hoping there was a way to do it without actually creating the file. I have a procedure that resembles

    PROCEDURE displayAsCSV is
    cursor STUD_CURS is
    Select * from students;

    BEGIN
    for STUD_REC loop STUD_CURS
    HTP. Print (' "' |") STUD_REC. FIRST_NAME. » " , " '|| STUD_REC. LAST_NAME. » " ');
    end loop;
    END;

    Anyone know if it is possible to display these results in excel in the browser by altering the MIME types or something similar?

    Thank you

    Check Tom owa_sylk utility with the appropriate mime type.

  • Problem in the display of the values in the table

    Hi all

    I have data stored in the database in the form of comma and I want tot display these data in the table to the OFA.

    Help, please. There is little urgency.

    Best regards and thank you

    Hello

    To display values, you need create a transitional point of view and then create attributes according to your need,

    In one of my projects, I did the same thing when I was storage sort order in a line while the OPS, I need to display it in the rows in the canton:

    Pseudo code should look like this:

    Public Sub getSortOrder()
    {
    OAViewObject VO = getSortOrdrerVO1();
    Line line;
    String s1 = "";
    String s2 = "";
    String s3 = "";
    String s4 = "";
    If (VO! = null)
    {
    line = VO.first ();
    If (Row.GetAttribute ("SortOrder")! = null)
    S1 = row.getAttribute("SortOrder").toString ();
    If (Row.GetAttribute ("ColumnName")! = null)
    S2 = row.getAttribute("ColumnName").toString ();
    line = VO.next ();
    If (Row.GetAttribute ("SortOrder")! = null)
    S3 = row.getAttribute("SortOrder").toString ();
    If (Row.GetAttribute ("ColumnName")! = null)
    S4 = row.getAttribute("ColumnName").toString ();
    System.out.println ("sort order:" + s);
    }
    OAViewObject VO1 = getAdvResultVO1();
    Row1 row;
    If (VO1! = null)
    {
    Row1 = VO1.first ();
    Row1.SetAttribute ("SortColumn1", S2);
    Row1.SetAttribute ("Order1", S1);
    Row1.SetAttribute ("SortColumn2", S4);
    Row1.SetAttribute ("Order2", S3);
    Row1.SetAttribute ("SearchId", new Number (111));
    Row1.SetAttribute ("UserId", new Number(-1));
    Row1.SetAttribute ("SearchName", "Out Nouvelle1");
    }

    }

    Public Sub setSortOrder()
    {
    OAViewObject VO = getAdvResultVO1();
    Line line;
    String s1 = "";
    String s2 = "";
    String s3 = "";
    String s4 = "";
    If (VO! = null)
    {
    line = VO.first ();
    If (line! = null)
    {
    If (Row.GetAttribute ("SortColumn1")! = null)
    S1 = row.getAttribute("SortColumn1").toString ();
    If (Row.GetAttribute ("SortColumn2")! = null)
    S2 = row.getAttribute("SortColumn2").toString ();
    If (Row.GetAttribute ("Order1")! = null)
    S3 = row.getAttribute("Order1").toString ();
    If (Row.GetAttribute ("Order2")! = null)
    S4 = row.getAttribute("Order2").toString ();
    }
    System.out.println ("sort order:" + s);
    }
    OAViewObject VO1 = getSortOrdrerVO1();
    Row1 row;
    If (VO1! = null)
    {
    Row1 = VO1.first ();
    If (row1! = null)
    {
    If (s3! = null)
    Row1.SetAttribute ("SortOrder", S3);
    If (s1! = null)
    Row1.SetAttribute ("ColumnName", S1);
    Row1 = VO1.next ();
    If (s4! = null)
    Row1.SetAttribute ("SortOrder", S4);
    If (s2! = null)
    Row1.SetAttribute ("ColumnName", S2);
    }
    Row1.SetAttribute ("SearchId", new Number (111));
    Row1.SetAttribute ("UserId", new Number(-1));
    Row1.SetAttribute ("SearchName", "Out Nouvelle1");
    }

    }

    Hope this will help, for any clarification on the code, you can call me.

    Kind regards
    Out Sharma

  • Display of the values null when there is no data

    There are two columns 'A' and 'B' in the report which has values. IF there is no data in the report, it displays the following system message


    + 'No results '.
    + The specified criteria result no data. This is often caused by the application of filters that are too restrictive or contain incorrect values. Please check your filters to ask and try again. The currently applied filters are given below. » +

    My requirement is, indicates a value of zero instead of this message in the table format and should show the table axis 0.

    Please give me your entries and help me find the solution

    Thanks in advance.

    Published by: user10414249 on December 1st, 2009 14:22

    Yes, it is a different problem. Mark this "answered" and open a new thread.

Maybe you are looking for