How to display multiple values read from database in a textfield

Hi all

I'm working on a feature where say if there are 3 employees in a Department and then I want to show all names (separated by commas) employees of the Department in a textfield.

do any body have any suggestions?

Thank you
Tauceef.

See also:

{: identifier of the thread = 1033907}

Tags: Database

Similar Questions

  • How to display multiple values in the Email notification?

    Hi all

    I have a table in my page column, when I click on apply button changes, Notification email will be sent to the user with updated information.
    In the notification email, I've included the text field, date field value, everything works fine and I can get by email with the details.
    under select query that returns several value.i need to include these values in the notification e-mail.
    select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID
    Please suggest a solution.
    I tried the code below, but did not get any email!
    declare
    l_body_html varchar2(4000);
    env_list apex_application_global.vc_arr2;
    i number:= 1;
    
    begin
    For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID)
    LOOP
    env_list(i):=enrow.AA ;
    i := i+1;
    end loop;
    return Apex_UTIL.TABLE_TO_STRING(env_list,':');
    l_body_html :=  '<p><font size ="3" color = BLUE> <u> New Reservation Form</u></font> <br><br>
    <table>
    <tr><td> Selected Reservation : </td><td>'||env_list(i)||'</td></tr>
    </table><br><br>
    </p>';
    apex_mail.send(
    p_to => '[email protected]',
    p_from =>'[email protected]',
    P_CC =>'[email protected]',
    
    
    
    P_BODY      => l_body_html,
    P_BODY_HTML => l_body_html,
    
    p_subj => 'Notification Mail!');
    
    wwv_flow_mail.push_queue();
    
    EXCEPTION
    WHEN OTHERS
    THEN
    l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM;
    
    apex_mail.send(
    p_to                     => '[email protected]',
    p_from                => '[email protected]',
    P_CC                     => '[email protected]',
    P_BODY               => l_body_html,
    P_BODY_HTML => l_body_html,
    p_subj                   => 'Notification Mail!');
    
    wwv_flow_mail.push_queue();
    
    
    
    end;
    Thank you
    with respect,
    Robette.

    Your process will end with the return on line 11 statement.

    I think that instead of return you want to load a local variable you put int the body of the email. That is to say. See *.

    declare
    l_body_html varchar2(4000);
    env_list apex_application_global.vc_arr2;
    i number:= 1;
    
    ******l_asset_name_list VARCHAR2(32767);*
    
    begin
    For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID)
    LOOP
    env_list(i):=enrow.AA ;
    i := i+1;
    end loop;
    *******l_asset_name_list :=* Apex_UTIL.TABLE_TO_STRING(env_list,':');
    l_body_html :=  '

    New Reservation Form

    Selected Reservation : '||*******l_asset_name_list*||'


    '; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;

    There may be other things to settle, these seem to be the main problem.

  • How to display a value of transitional attribute to column db entity column?

    Mr President

    Help me at the time 12.2.1 jdev.

    How to display a value of transitional attribute to column db entity column?

    I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.

    Any body can help as my show in the picture below

    The StAmt is a transitional column and a column db of the entity.

    tworows.png

    Any body can help please. !

    Concerning

    This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?

    Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:

      public Number getAmount()
      {
        return getTransientAttribute();
        //return (Number) getAttributeInternal(AMOUNT);
      }
    

    in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.

  • How to display Quick values in the story

    With the help of 11.1.1.6.2

    In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.

    Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.

    The analysis of the target has two filters: Division is invited and the market is invited.

    So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.

    Sorry for the long explanation, but I hope it makes sense.

    Thanks for any help or suggestion.

    Brad

    Try something using the Div tag
    for ex:
    < div id = filterValues > @{WeekBetween} {Default Value} < / div >
    < script >
    var i = document.getElementById('filterValues').innerHTML;
    document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
    < /script >

    If brand pls help

  • How to display multiple images at the same time in CS6?

    How to display multiple images at the same time in CS6?

    Hello

    If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.

  • How to display the values of this query? The type is XDB. XDB$ STRING_LIST_T

    Hi all

    If I run this query using a tool like developer PL/SQL (SQL window), the values are displayed as a Collection. Just click and see the results of the al.

    Select
    dbms_resconfig.getRepositoryResConfigPaths)
    Of
    Double;


    I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).

    How can I do? With the help of the table? Create a type?

    TKS

    user12083350 wrote:

    I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).

    SQL> select * from table(dbms_resconfig.getRepositoryResConfigPaths())
      2  /
    
    COLUMN_VALUE
    --------------------------------------------------------------------------------
    /sys/xs/userrc.xml
    /sys/xs/rolesetrc.xml
    /sys/xs/drolerc.xml
    /sys/xs/rolerc.xml
    /sys/xs/frolerc.xml
    /sys/xs/xdserc.xml
    /sys/xs/scrc.xml
    
    7 rows selected.
    
    SQL> 
    

    And in PL/SQL:

    SQL> declare
      2      v_list xdb$string_list_t := dbms_resconfig.getRepositoryResConfigPaths();
      3  begin
      4      for i in 1..v_list.count loop
      5        dbms_output.put_line(v_list(i));
      6      end loop;
      7  end;
      8  /
    /sys/xs/userrc.xml
    /sys/xs/rolesetrc.xml
    /sys/xs/drolerc.xml
    /sys/xs/rolerc.xml
    /sys/xs/frolerc.xml
    /sys/xs/xdserc.xml
    /sys/xs/scrc.xml
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

    Published by: Solomon Yakobson, April 24, 2010 15:04

  • How to display the value of the variable for bottom of pl/sql

    How to display the value of the variable for bottom of pl/sql

    declare

    V_1 number: = 10;

    V_2 number: = 20;

    V_3 number: = 30;

    v_4 number: = 40;

    v_5 number: = 50;

    test varchar2 (100);

    Start

    I'm in 1.5

    loop

    test: = "v_" | I have;

    dbms_output.put_line(i||) e > ' | test);

    end loop;

    end;

    /

    How to get below output:

    1 > v_1

    2 > v_2

    3 > v_3

    4 > v_4

    5 > v_5

    But I want to output of

    1 > 10

    2 > 20

    3 > 30

    4 > 40

    5 > 50

    Hello

    You cannot reference variables as you did and get the value of the variable. Use pretty collection.

    set serveroutput on size 2000
    declare
      type      number_table is table of number;
      numbers   number_table := number_table(10, 20, 30, 40, 50);
    begin
      for i in numbers.first .. numbers.last
      loop
        dbms_output.put_line(i || '->' || numbers(i));
      end loop;
    end;
    /
    
    anonymous block completed
    1->10
    2->20
    3->30
    4->40
    5->50
    

    See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005

  • How to display multiple pages in Folio Builder LCA preview?

    I created a folio with an article that has two directions, but what displayed preview image shows only the first page. How to display multiple pages in Folio Builder LCA preview?

    You've probably noticed only the layout, not the article or folio.

    When you preview in InDesign using the file > preview Folio or when you click the button Preview in the Panel inlays Folio, you preview a version of raster of the provision itself. This preview contains no article property. If you use the Folio Builder Panel to get a preview of the article or the folio, you will have an overview of the double orientation.

    Moreover, most publishers prefer creating single-direction folios to reduce the dimensions of design efforts and folio.

  • How to display multiple images in a single window?

    How to display multiple images in a single window?  I want to compare images side by side, not in tabs.

    The editor preferences > General > turn on enable floating documents, then window > images > float all in windows.

  • How to make the image Inline source to read from database BLOB column?

    Dear all

    I have a database table that contains the BLOB column. And tif files in the BLOB column.

    Now, I want to display the value of the BLOB file in af:inlineFrame.

    I want to do this because I installed "AlternateTiff" on my browser to view tif files in the browser.

    You can download it from http://www.alternatiff.com/

    The inLine frame component has a property called 'Source '. The value of the "Source" property must be the location of the URI of the content you want to display in the example of frame.for online:

                          <f:facet name="second">
                                <af:inlineFrame id="if2" styleClass="AFStretchWidth"
                                                shortDesc="To browse the selected document" source="/temp/myFile.tif"/>
    

    now, I want to change this example to read the content of the BLOB column.

    IS this possible?

    Thanks in advance

    You must install a servlet which reads the data from the BLOB and represents the data structure.  My blog http://wp.me/pcBZk-bU shoes how to proceed.

    Timo

  • Another REGEXP question: how to extract multiple values from a string

    Hi, how can I retrieve multiple values to a string with RegExp with Oracle SQL constructs?

    Have looked at the various examples, I cannot understand this.
    the following Sql code
    select
       regexp_substr(sessie."rollen", 'CN=A_role') "A_role"
       from ( 
    select '
    CN=A_role,OU=a_org_unit,OU=another_org_unit,DC=bz,DC=ad,DC=min,DC=local
    CN=Another_role,OU=some_org_unit,DC=bz,DC=ad,DC=min,DC=local
    CN=Users,OU=Dep,DC=bz,DC=ad,DC=min,DC=local
    '   "rollen" from dual
    ) sessie;
    Returns CN = A_role.
    I want him back all of the CN = concatenated values with a semicolon and stripped of the CN = bit.
    So: A_role; Another_role; Users .

    Any help would be much appreciated. Here I use database 11g 11.2.0.2.0.

    Does anyone have an idea how to do this in SQL?

    best regards Mike

    Hello
    If using Oracle 11 g

    with tst
      as (select   'CN=A_role,OU=a_org_unit,OU=another_org_unit,DC=bz,DC=ad,DC=min,DC=local,'
                 ||'CN=Another_role,OU=some_org_unit,DC=bz,DC=ad,DC=min,DC=local,'
                 ||'CN=Users,OU=Dep,DC=bz,DC=ad,DC=min,DC=local' as rollen
            from dual
          )
    select listagg(sub, ',') within group (order by rn) as res
      from (select regexp_substr(rollen, '(CN=)([[:alnum:]_]+)',1,rownum,'i',2) sub, rownum rn
              from tst
           connect by level <=length(rollen)
           )
     where sub is not null       
    
  • How to pass multiple values to a data model parameter

    I have a data model, where I put a setting like this.

    Select col1, col2, col3 from table1 where col1 =: param1

    This works very well for a single value that I pass the param1 parameter.

    How can I get this to work when I want to send multiple values for param1. I already checked the box "Multiple values" and tried to change the sql for this code.

    Select col1, col2, col3 from table1 where col1 in: param1

    Looks like I'm missing something here.



    Thanks in advance!
    Kris

    you need to write it as:

    Select col1, col2, col3 from table1 where col1 in (: param1)

    It works for me.

    Klaus

  • How to pass multiple values of payload through the contextual event - jdev 11.1.2.3

    Hello:

    How to configure contextual events publish several values of payload?

    On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.

    My event handler method has the signature of:
    eventHandler (String)

    But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
    eventHandler (Number, String)

    How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?

    All article or code would be greatly appreciated.

    Thanks for the help.

    You define a bean holding your values and pass an instance of the bean as a payload...

    Timo

  • How to display the value of the column

    Oracle 10g on Linux

    I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
    SELECT count(distinct id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1                                                

    I think you can use MAX in this case

    SELECT max(id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1
    
  • How to display multiple records in a loop

    Hello

    This procedure returns some data.

    so please tell me how I can write a loop to display all the records from a Table.

    This is my procedure:

    create or replace procedure getEmpName
    *(*
    Employee in V_EMPID. EMPID % TYPE,
    V_EMPNAME employees. EMPNAME % TYPE
    *)*
    is
    Start
    Select empname into V_EMPNAME from employees where empid = '2';
    end;


    It's my block: how to write a loop here to display all of the records in my Table

    declare
    v_EMPNAME EMPLOYEE. EMPNAME % TYPE;
    Start
    getEmpName (2, v_EMPNAME);
    dbms_output.put_line (v_EMPNAME);
    end

    user10503747 wrote:
    so please tell me how I can write a loop to display all the records from a Table.

    Hello
    given the procedure displays all records in the table emp...

    CREATE OR REPLACE PROCEDURE Testloop
    AS
    CURSOR test1
    IS
    SELECT EMPNO, ENAME FROM EMP;
    BEGIN
    I'm IN test1
    LOOP
    DBMS_OUTPUT. Put_line (' Emp - ' | i.empno |) » -'|| i.ename);
    END LOOP;
    END;
    /

    Thnx
    MB

Maybe you are looking for