List of records in one field

Hi All,
I have a requirement which I am not sure if can be done. To simply the stuff, assume I have a field which gives me the PO number. I have a VO which has some query in the results table based on that PO. Now I need that PO field to be such that if I give PO number 100,200,300.. the results will consider all of these PO numbers.
Say my VO query should be like: select created_by from po-tbl
where po-num in (100,200,300)
Any help will be highly appreciated.

Hi
You can use a List Box Bean for that purpose means for selecting multiple values for a field.You can use below code to create a list box bean programmatically
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
// Always call first
super.processRequest(pageContext, webBean);
// Create the list bean (be sure to give it a name).
OADefaultListBean list =
(OADefaultListBean)createWebBean(pageContext,
OAWebBeanConstants.DEFAULT_LIST_BEAN,
null, "positionsList");
// Specify the view object that you will use to populate the list bean values.
list.setListViewObjectDefinitionName("xx.oracle.apps.fnd.framework.toolbox.poplist.server.PositionsVO");
// Specify the display and internal value attributes in the associated view object.
list.setListValueAttribute("LookupCode");
list.setListDisplayAttribute("Meaning");
// Configure the list box to allow selection of multiple values.
list.setMultiple(true);
// Even though you created the component with an ID, you must explicitly
// make this call to setName().
list.setName("posList");
// In this example, we're adding the list box to a messageComponentLayout region, so we
// get the declaratively defined messageLayout region that will contain this
// component. Note that we declaratively set a prompt for the list box on the
// messageLayout region.
OAMessageLayoutBean listBoxLayout =
(OAMessageLayoutBean)webBean.findChildRecursive("ListBoxLayout");
listBoxLayout.addIndexedChild(list);You can write below code in pfr to retrieve selected values
processFormRequest() method:
OADefaultListBean list =
(OADefaultListBean)webBean.findChildRecursive("positionsList");
String name = list.getName();
String[] selectedValues = pageContext.getParameterValues(name);Hope it helps!!!
Thanks
AJ

Similar Messages

  • How to edit data using a LOV list AND textfield for one Field

    I am trying to edit the templated edit from HTMLDB template when I create a new table. I implemented most of the fields with LOV list like yes/no, joe/bob/john etc. But some fields as many probably have seen have a LOV called "Other" where a person types a different value than the ones available. Can someone tell me how I can accomplish that? Do I need to insert "Other" into LOV and have it be set as the value in the textfield? I am not sure how i can create both LOV list and textfield per category/field i.e. Name.
    Thanks

    Again, I urge you to use HTML DB nomenclature to describe what you've done. For example: "I ran the Form on a Table wizard to create a form" Rather than using the word "template" for everything you describe. "Template" has a specific meaning in HTML DB and it is not what you are referring to.
    You really should invest the time required to accurately phrase your problem. Just like answering questions on this forum requires time, so does formulating your question. It is time well spent and it is effort on your part that the experts on this forum deserve. If you don't put in this effort and instead just post a stream of consciousness, that means the readers of this forum will gloss over your question and ignore it. As a result, you have to ask the question again...and again.
    Having said that, if I understand your question correctly, you should use a popup LOV item. This will allow the user to select from a list but will also allow typing of a non existent option into a text field.
    Sergio

  • Copy value from first detail record to next detail record only one field is

    Hi all
    i have a detail form with this table
    CREATE TABLE customer_detail (
      cust_id NUMBER,
      aDDRESS_type VARCHAR2(20),
      contact_name VARCHAR2(100),
      mobile_no VARCHAR2(20),
      delivery_address VARCHAR2(300),
      off_contact_no VARCHAR2(20),
      email_id VARCHAR2(50),
      city VARCHAR2(50),
      pin_code VARCHAR2(50),
      country VARCHAR2(30),
      contact_name_1 varchar2(100),
      contact_name_2 varchar2(100),
      MOBILE_NO_1 VARCHAR2(20),
      MOBILE_NO_2 VARCHAR2(20),
      OFF_CONTACT_NO_1  VARCHAR2(20),
      OFF_CONTACT_NO_2  VARCHAR2(20),
      EMAIL_ID_1 VARCHAR2(50),
      EMAIL_ID_2 VARCHAR2(50)
       );i enter a record in this table through form and the addess_type = 'INVOIVE ADDRESS'
    i want when i save this one record and i want to save same to same record in this table the addres_type will change
    address_type='DELIVERY_TYPE' as a next record
    PLease Guide
    Thanks And Regards
    Vikas Singhal
    Edited by: vikas singhal on Sep 17, 2009 12:09 PM

    Hi!
    May there is already a delivery address for that customer in the table, so it is a good choice
    to just insert a new record 'DELIVERY ADDRESS' if there is no one.
    May try a pre-insert trigger:
    begin
    if
      :address_type = 'INVOICE ADDRESS'
    then
      insert into customer_detail
      select :cust_id, 'DELIVERY ADDRESS', :contact_name, :mobile_no, :delivery_address,
             :off_contact_no, :email_id, :city, :pin_code, :country, :contact_name_1,
             :contact_name_2, :MOBILE_NO_1, :MOBILE_NO_2, :OFF_CONTACT_NO_1, :OFF_CONTACT_NO_2,
             :EMAIL_ID_1, :EMAIL_ID_2
      from dual
      where not exists ( select 1 from customer_detail
                         where cust_id = :cust_id
                         and   address_type = 'DELIVERY ADDRESS' );
    end if;
    end;You could do the same, if you insert a new 'DELIVERY ADDRESS' and there is no 'INVOICE ADDRESS'.
    Regards

  • Problem with F4 option for one field

    Hi,
    While creating pricing condition records (VK11), one field is not having F4 option. That field is KGKG1 (Condition group1).
    Ihave created one table with s.org, dist.channel and condition group1 (KDKG1).
    While creating onle this problem. While changing and displaying the F4 option (i am able to select the values from list) available.
    What would be the reason. Is it require to change in table like domain, fields.
    Please help me to solveit out.
    Regards
    Lakshmikanth

    Hi,
    you can create new condition groups here.
    IMG>Logistics - General>Business Partner>Customers>Control>Define Condition Groups.
    Goto Customer master maintain condition groups.
    XD01/02. goto general data , In Menu select Extras and choose additional data. maintain condition group for customer.
    Regards,
    Chandra

  • SQL query requested to pull one field out of multiple records

    Post Author: ralph.devlin
    CA Forum: Data Connectivity and SQL
    We use Track IT to manage our ticket base. We have parent work orders and child assignments that I am trying to report on. What I want to do is create a view, or even if this can be done in a formula, is pull data from the main work order, which in our scnerio and accorindg to the database diagrapm is WORKORDERTYPEID = 0, It will pull the TASKS.RESPONS field from that WO. Then it will compare the TASKS.PARETNWOID to WOID and if WORKORDERTYPEID = 1 then it needs to return the TASKS/RESPONS field of that record, and there may be three records or so. Then What I may need it to do is organize it maybe into seperate columns so I can add each one to Crystal keeping in mind that it will need to link those records to main WOID of the parent so it will display on one line. Any ideas
    Ralph

    Post Author: ralph.devlin
    CA Forum: Data Connectivity and SQL
    Ok I tried that and it seemed to work fine, here is an aexample of the data returned
    168458
    Lane, Carrie
    Ralph Devlin
    Ralph Devlin
    168458
    PHX - Training Room
    SM - 8th Fl Conf Room
    NULL
    NULL
    168458
    6/20/2008 3:30:00 PM
    Video Conference
    0
    168458
    Lane, Carrie
    Ralph Devlin
    Luis Estrada
    168458
    PHX - Training Room
    SM - 8th Fl Conf Room
    NULL
    NULL
    168458
    6/20/2008 3:30:00 PM
    Video Conference
    1
    Using the last column which is the workordertypeid, I was able to elimate the first row of data, which is the parent work order, but see how it is returning the technician name twice, where the second row returns me as the primary and then the technician on the assignment WO as well, which I want. In Crystal I have it only selecting the rows with the 1 is the last column, since those rows have the data arranged how I want them to be.
    Once issue that just arose, is what if we only had one work order that we wanted to report on in the subreport. since the WO will get a 0 in the last column, it will never be selected in the report. Is there a way to either us a statement that selects it if it is the only WO listed compared by the WOID field, or if there is a way in SQL, to get what is showing in row 2 to be the only row returned back so I can then show all work orders regardless if they are an assignment
    Here is my current SQL query
    SELECT     T1.WOID, T1.REQUEST, T1.RESPONS, T2.RESPONS AS Addtech, T2.PARENTWOID, T1.LOOKUP2, T1.TaskLookup3, T1.TaskLookup4, T1.TaskLookup5,                       T1.WO_NUM, T1.DUEDATE, T1.WOTYPE3, T2.WorkOrderTypeIdFROM         dbo.TASKS AS T1 LEFT OUTER JOIN                      dbo.TASKS AS T2 ON T2.PARENTWOID = T1.WOID

  • Add List box for one field in ALV GRID

    Hi All,
      I need to add drop down list box for one field in ALV Grid.
      If any body knows, please help.
    Thanks in advance.
    Regards
    Manglesh

    Hi,
    Here is the ex where i have used for date parameter in the sel screen
    type-pools: vrm.
    data: name type vrm_id,
          list type vrm_values,
          value like line of list.
    parameters :    p_date like p_date2
                                  as listbox visible length 15.
    at selection-screen output.
      name = 'P_DATE'.
      value-key = '1'.
      value-text = 'Today'.
      append value to list.
      value-key = '2'.
      value-text = 'Last 7 days'.
      append value to list.
      value-key = '3'.
      value-text = 'Last 30 days'.
      append value to list.
      value-key = '4'.
      value-text = 'Last 90 days'.
      append value to list.
      value-key = '5'.
      value-text = 'Last year'.
      append value to list.
    Call the ''VRM_SET_VALUES' to display the values in Listbox
      call function 'VRM_SET_VALUES'
        exporting
          id     = name
          values = list.
    at selection-screen.
      if sy-ucomm = 'CLI1'.
        sscrfields-ucomm = 'ONLI'(001).
      endif.
      if p_date = '1'.
        p_date11 =  sy-datum .
      elseif p_date = '2'.
        p_date11 = ( sy-datum - 7 ).
      elseif p_date = '3'.
        p_date11 = ( sy-datum - 30 ).
      elseif p_date = '4'.
        p_date11 = ( sy-datum - 90 ).
      elseif p_date = '5'.
        p_date11 = ( sy-datum - 365 ).
      endif.
    Hope this helps u..
    Please reward points if useful.
    Regards,
    Sreenivas

  • Is there a way to Search (List search) for more then one field text from a column for Bulk uploading?

    I've been trying to find more information on this and I apologies if this has already been answered. I just don't know the correct way to ask this. We have a SharePoint List at the company that we have people input information into different columns. The
    problem is most of those information are very repetitive. Is there a way for me to search more then one field text in the column and just input that same information in?
    ex:
    Column 1
    Column 2
    Date:
    883851
    MidWest
    User input 
    8831518
    MidWest
    User input
    On the search field in the SharePoint List, I would need to search for 883851, 8831518 etc,  would view those requested numbers, then I would click edit and change dates to those rows. Does that make sense? I'm sorry I'm fairly new at sharepoint.

    I think what you're asking is about having repetitive options in a list, show up easily for new items being created.
    This can be done by setting the columns that contain repetitive information to Choice fields.  In the configuration of the Choice field, check the box for "Allow custom values".  Now as users are entering data into the list, the dropdown of options
    for a given field grows and users can quickly see and select previously entered and thus repetitive values for the given fields.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • Issue while Creating the records in OAF by disabling one field.

    Hi Experts,
    I am having the scenario like this.
    From the OAF page I want to create the record by omitting one field(it is disable for OAF).
    Consider the folowing scenario..
    I am having the following fields Empno,Empname,Salary,Job in the OAF page where I made the Job field alone as disable and the style i am using for job field is message text input and i have set the initial value as 'Manger'.
    I am facing issue while creating the records in OAF page without the job filed value ie 'Manager' then the records were not inserted into my tables. Whereas if I enable the job field in OAF page(meaning I gave the job as 'Manager' in OAF page) I am able to create the records from OAF page and able get inserted in the database.
    Could Anyone can suggest where I fail as it is my Priority issue.
    Any Suggestion will be a great help for me.
    Thanks,
    Murugesh.

    or you can default it in the controller by handling add row event
    if(vo.hasNext())
    vorow = vo.next();
    vorow.setAttribute("xxxx",3838);
    --Prasanna                                                                                                                                                                                                                                                                                                                                   

  • User must fill at list one field in a selection screen in report

    Hi experts,
    i have a report that the user should choose between 2 fields or he can fill them both. but he must to fill at list one of them- at the selection screen.
    how do i check that the user filled at list one of them.
    any help will be appreciate it.
    dana.

    Hi ,
    You can check that in AT SELECTION-SCREEN event.
    To validate that in the IF condition check whether any one of the parameters
    filled or not.If both the fields are initial then give a error message to proceed further.
    Check the code -
    PARAMETERS : p_name(20) TYPE c,
                 p_id(10) TYPE c.
    AT SELECTION-SCREEN.
      IF p_name IS INITIAL AND p_id IS INITIAL .
        MESSAGE 'Enter at least one field' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE 'Test'.
    Regards
    Pinaki

  • Selecting Records based on multiple values in one field

    Excuse the basic request.
    I want to select all records from one table depending on the value in 2 specific fields. Each of these fields has a single value in it.
    What I have written is as below
    1.select nm_idno "EZAID", nm_fname, nm_lname, nm_et_tt "Position", nm_mt_mt "Status", nm_type, nm_wemal, nm_mailshot from MNME
    2.where nm_type = 'M' and where nm_mailshot = 'Y' and nm_wemal > ' '
    3.and where nm_mt_mt = (1 or 6 or 3 or 10) *** these are the bits that I don't understand why they will not work.
    4. and where nm_et_tt = (408 or 329 or 283)
    Basically every record should have one of the values I have highlighted in it.
    Any help greatly appreciated.

    select nm_idno "EZAID"
          ,nm_fname
          ,nm_lname
          ,nm_et_tt "Position"
          ,nm_mt_mt "Status"
          ,nm_type
          ,nm_wemal
          ,nm_mailshot
    from   MNME
    where  nm_type = 'M'
    and    nm_mailshot = 'Y'
    and    nm_wemal > ' ' --< not sure what you mean here
    and    nm_mt_mt IN (1, 6, 3, 10)
    and    nm_et_tt IN (408, 329, 283)
    ;

  • Multiple select list for one field in form

    Friends,
    I have a form , which is having many fields. One of the field are day/date. In this field i have to take 3 dropdown lists. like one for date, one for day and another for year. I have created three lov's for the day,date and year but for the field day/date i am able to apply only one lov. Any way so that i can display all the three lov for one field
    example
    day/date: day -- (dropdown list)
    date -- (dropdown list)
    year -- (dropdown list)
    thanks in advance
    adi
    Edited by: Adi's on Feb 16, 2010 11:46 PM
    Edited by: Adi's on Feb 16, 2010 11:47 PM
    Edited by: Adi's on Feb 16, 2010 11:52 PM

    nope, I just gave u an example to combime day , date and year fields in one select list, it does not matter whether they are in one table or multiple table and you dont require to create any tables for this, I assumed your lov for day / date / year are dynamic not static.
    Regards,
    Shijesh

  • Add multiple records thorough lov, help of one field?

    Hi All:
    Actually, I have a datablock with two fields, one is id, other one is name. I select no of records in datablock is 3.My requirement is, there is should be one field on the above of this block.on this block should be lov. suppose that field name is "abc_name", lov delivers value in abc_name and there should be button. when button pressed then value transfer from abc_name to datablock field "name".
    when i enter the 2nd value then on pressing button it will transfer on other record of datablock field "name" and so on. Please help me. How it will be done. I am unable to transfer more than one records from "abc_name". to datablock fied "name".Thanks
    Ali

    I'm sorry, it's not clear to me what you want.
    Are you saying that when you select a value from the LOV it should populate ALL the records rather than just the current one?

  • Deleted one field in phone section of contact list can it be restored

    By mistake i deleted one field in the phone section under contact list can it be restored. I do not see add another field for phone number.

    Try reproducing the issue in Windows safe mode with Networking.... I think the guess of a synchronization issue was correct. I just think the blame finger went to the wrong place. Windows safe mode should confirm my guess... Or prove me wrong
    Note that i can move messages in imap to live from junk to inbox and they are not corrupt.

  • PI mapping: concatenating multiple records to just one field

    Hi
    I am trying to concatenate an unknown number of records in the source message to just one field in the target message.
    The structure in the source message is:
    <simple>
       <record>
           <string>first string value</string>
       </record>
       <record>
           <string>second string value</string>
       </record>
       <record>
           <string>third string value</string>
       </record>
    <concatstring></concatstring>
    </simple>
    Where the number of records in the source message is unknown.
    The target message should look like this:
    <simple>
        <concatstring>first string value second string value third string value</concatstring>
    </simple>
    I tried using UDF:
    public String concat(String count,String streng,Container container){
    int counter = Integer.parseInt(count);
    String out = " ";
    for(int i=0;i<(counter);i++){
    out  = out + streng;
    return out;
    But that only picks up the value of the field in the first record and repeats that the number of counts.
    Can I avoid using a UDF? If not, what is the code?
    Looking forward to the answer
    Mikael

    Sarvesh,
    Sorry could not help noticing a copy and paste..atleast clean up and remove the lines highlighted in BOLD.
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <GetCustomerInformationResponse>
    <GetCustomerInformationResult>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATAhttp://<?xml version=\"1.0\" encoding=\"UTF-8\"?>]></xsl:text>
    <xsl:copy-of select="*"/>
    <xsl:text disable-output-escaping="yes"><!CDATA[]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA>]></xsl:text>
    </GetCustomerInformationResult>
    </GetCustomerInformationResponse>
    </xsl:template>
    </xsl:stylesheet> \
    Regards
    Ravi Raman

Maybe you are looking for

  • How can i save my music and pictures on the apple tv?

    i have just got an apple tv and have got my libraries up from my pc but as soon as i close itunes on my pc it stops/disappears from the tv. am i doing something wrong? or have i missed a step? also i have a playlist on my iphone but its not showing i

  • CS4 Error on  Normal Exit

    Whenever I perform a normal Exit of PS CS4, I receive the error message; 'Adobe has detected that the application Adobe Photoshop CS4 has unexpectedly quit.' Is there any known cause / fix for this? (running OSX 10.6). Thanks

  • Is it possible to make Multiple Broadband connecti...

    Hi I have been using BT broadband for some years using a BT Homehub 1.5.   My Freesat box is plugged in to my Homehub, so that I can reliably get BBC iPlayer on the main household TV, so I am unable to move the hub to improve wireless reception elsew

  • Numeric control outside limits

    Hello, I have a numeric control and I have set data entry llimits and selected coerce. It behaves fine using the increment/decrement buttons and when I type data in. I want to be able to load a preset value read from a text file into the control . Th

  • How do you save an iMovie video to DVD

    How do I save a movie in iMovie on my daughter's iPad and then turn it into a DVD or a file she can share at school with her teachers?