How to create dropdown using VO

Hello Everyone,
I am using Jdeveloper 11.1.1.4 . I am new to VO and have going to create simple dropdown using VO.
We have table called "MyTable" in the database which inclues the columns "First_name","Last_Name","Emp_id"(primary_key) .
In my .jspx page I have to create a simple dropdown list which includes First_Name only dynamically.
Please can anyone tell me the detailed procedure do i need to follow to create this, it will be helpful to start learning the business component.
Thanks in advance.
Shrikant

Hi KShrikant,
Is the LOV going to be part of any other fields inside a form? For example, departmentsVO that has an EMP_ID (manager of department) and that you would like to create an LOV instead assigning the EMP_ID directly?
However, if what you really want is to display the LOV, then you need to create a Transient VO, for example, new ViewObject, give a name and select it to be based programatically (not in a query or EO). Then, you need to create a new Attribute (Emp_ID for example). And you finish the creation. Now, in your new transient VO attributes, select the emp_id and in the options you go to the tab List Of Values. Create a new one. It will ask you fthe object tou want the list to be based. Then you select MyTable and now you map emp_id with emp_id of myTable. Now you switch to the hints tab and select FirstName to be displayed on the list.
Last step is make sure your application module has the instance of your new Transient Atrribute so you can use it from the Data Control.
Go to your page, select emp id from your transient VO and drop it in the page as a SelectOneChoice.
Run your page.
Regards

Similar Messages

  • How to create and use mutable array of UInt8

    Hello!
    If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
    Then how to create and use mutable array of UInt8 pointers?
    The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.

    I try
    - (void) scheduleRequest:(UInt8 *)request {
    if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
    [scheduledRequests addObject:request];
    But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type"

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • How to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    how to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    See the below discussion
    How to create and use Webservice controls using WSDL in weblogic portal10.3
    Thanks,
    Venkat Sarvabatla

  • How to create and use dynamic queue in JMS

    Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).

    Hi,
    We can use Azure File services to do this, for more information, please have a look at this article:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
    VMs using standard and familiar file system APIs like ReadFile and WriteFile.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • How to create dropdown box, radio button,check box in wad

    Hi,
    How to create dropdown box, radio button,check box in wad.
    Thanks,
    cheta.

    Cheta,
    This are all standard Web Items in the WAD. Drag them onto your template and then make the changes you need to them in their Properties.
    Regards
    Gill

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • How to create indexes using CREATE TABLE statement

    Hi,
    Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
    Thanks in advance.

    Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
    SQL> create table t (a integer primary key, b integer unique)
    Table created.
    SQL> select   index_name, index_type, uniqueness
      from   user_indexes
    where   table_name = 'T'
    INDEX_NAME                     INDEX_TYPE                  UNIQUENES
    SYS_C0016575                   NORMAL                      UNIQUE  
    SYS_C0016574                   NORMAL                      UNIQUE  
    2 rows selected.

  • How to create crossword using Adobe captivate

    how to create crossword using Adobe captivate

    OK.  Again I am not needing clarification here.  Did you INSERT the SWF as an animation into the Captivate project? Or, did you keep the SWF as an external file?  If the SWF is external to the main Cp SWF then perhaps it's not working when you publish because the content cannot find the SWF.  If you have made sure that the SWF is definitely in the publish location, check whether or not you have that location set as a trusted location in your Flash Global Security settings.

  • How to create repository using a view in OBIEE

    Hi,
    Can any one explain the procedure how to create a repository using a view. For example
    test_v
    select a.col1,a.col2,b.col1,b.col4,c.col5,c.col6 from table a,table b, table c where a.col1= b.col1 and b.col1 = c.col1
    1. Assuming that i have imported only one view.
    Thanks and Regards,
    Hanuman.

    Hi,
    You can create the vie in the physical layer of your repository, select "Select" from the dropdwan box when you create a new table. Next add the columns. They must have the same names as in your view.
    If you don't have any other tables in your repository, created an alias of your view and make a "dummy" join with the original view. Next create your BM and PL.
    regards
    John
    http://obiee101.blogspot.com/

  • How to Create and Use MQ Adapter(IBM MQ Series) in BPEL

    Hi,
    I am using Oracle SOA Suite 10.1.3.3.
    I am very new to the Usage of MQ Adapter(IBM MQ Series) in BPEL.
    what is the procedure to create our own Message Queues(i.e., MQ Series)?
    It would be great if anybody share the idea of how to create the MQ and usage of same in BPEL Workflows.
    is it mandatory to install websphere to create the MQ?
    If possible,share the related docs for the same.
    Any suggestions/views will be great.
    Cheers,
    Balaji
    Edited by: user580285 on Nov 4, 2008 5:44 AM

    Hi,
    Kindly refer to the BPEL Dev Guide and in that please refer to the Appendix which contains MQ Series Adapter.
    For this you need to provide the details like: -
    MQ Server Host, port, queue manager name etc. Also you need not to install IBM Websphere MQ, you can work on it remotely as well.

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • How to create dropdown or checkbox in report painter?

    hi experts,
    I would like to ask on how to create a dropdown / checkbox in my report painter's selection
    screen.
    thanks,

    Hi,
    For check box and list box look at the below example,
    TYPE-POOLS: vrm.
    DATA: w_param TYPE vrm_id,
          it_values TYPE vrm_values,
          wa_value LIKE LINE OF it_values.
    PARAMETERS: p_rec_ty AS LISTBOX VISIBLE LENGTH 10,
                p_check AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      w_param = 'P_REC_TY'.
      wa_value-key = '1'.
      wa_value-text = 'AAAAA'.
      APPEND wa_value TO it_values. "Add values like this for the list box
      wa_value-key = '2'.
      wa_value-text = 'BBBBB'.
      APPEND wa_value TO it_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = w_param
          values = it_values.
    START-OF-SELECTION.
      READ TABLE it_values INTO wa_value INDEX p_rec_ty. "Get the value for the particular key
      WRITE: wa_value-text , p_check.
    Regards,
    Maoj Kumar P
    Edited by: Manoj Kumar on Feb 6, 2009 10:54 AM

  • How to create report using Procedure.

    Hi All,
    I want to create report in apex.But i do not have sql code.I have one procedure.Is it possible to create report using this procedure in apex.
    CREATE OR REPLACE PROCEDURE headcsv_prc2
    AS
       CURSOR cr_header
       IS
          SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME",
                   fm.formula_vers AS "FORMULA_VERSION",
                   fm.formula_desc1 AS "FORMULA_DESC",
                   DECODE (fm.formula_status,
                           100, 'New',
                           400, 'Approve for Laboratory Use',
                           700, 'Approve for General',
                           800, 'On Hold',
                           900, 'Frozen',
                           1000, 'Obsolete/Archived'
                          ) AS "FORMULA_STATUS",
                   DECODE (fd.line_type, '1', msib.segment1) product,
                   DECODE (fd.line_type, '-1', msib.segment1) ingrediant,
                   DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT",
                   DECODE (by_product_type,
                           'W', 'Waste',
                           'R', 'Rework',
                           'Y', 'Yield',
                           'S', 'Sample',
                           NULL
                          ) AS "BY_PRODUCT_TYPE"
              FROM org_organization_definitions ood,
                   fm_form_mst fm,
                   fm_matl_dtl fd,
                   mtl_system_items_b msib
             WHERE ood.organization_id = fm.owner_organization_id
               AND fm.owner_organization_id = msib.organization_id
               AND msib.organization_id = fd.organization_id
               AND fd.organization_id = ood.organization_id
               AND fm.formula_id = fd.formula_id
               AND msib.inventory_item_id = fd.inventory_item_id
               -- and fm.FORMULA_NO like'%TEA%'
               AND fd.line_type IN ('1', '2', '-1')
          GROUP BY ood.organization_code,
                   fm.formula_no,
                   fm.formula_vers,
                   fm.formula_desc1,
                   fm.formula_status,
                   fd.line_type,
                   msib.segment1,
                   by_product_type
          ORDER BY fm.formula_no, fm.formula_vers;
    BEGIN
       DBMS_OUTPUT.put_line (   INITCAP ('ORGANIZATION CODE')
                             || ','
                             || INITCAP ('FORMULA NAME')
                             || ','
                             || INITCAP ('FORMULA VERSION')
                             || ','
                             || INITCAP ('FORMULA DESC')
                             || ','
                             || INITCAP ('FORMULA STATUS')
                             || ','
                             || INITCAP ('PRODUCT')
                             || ','
                             || INITCAP ('INGREDIANT')
                             || ','
                             || INITCAP ('BY PRODUCT')
                             || ','
                             || INITCAP ('BY PRODUCT TYPE')
       FOR ch IN cr_header
       LOOP
          DBMS_OUTPUT.put_line (   ch.organization_code
                                || ','
                                || ch.formula_name
                                || ','
                                || ch.formula_version
                                || ','
                                || '"'
                                || ch.formula_desc
                                || '"'
                                || ','
                                || ch.formula_status
                                || ','
                                || ch.product
                                || ','
                                || ch.ingrediant
                                || ','
                                || ch.by_product
                                || ','
                                || ch.by_product_type
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Error No: ' || SQLCODE || 'Error Msg: '
                                || SQLERRM
    END;
    EXEC HeadCSV_Prc2
    Thanks,
    Raghu

    RaghuVarma wrote:
    I created one report using sql code.(Ex: select * from emp).
    But my higher authorities want that for security purpose They will change the code into java.
    What "higher authorities"? What "security purpose"?
    In this process they changed my code as a procedure.Finally they give that java code.they tell to me please fix in apex.
    Do these "higher authorities" know anything about APEX? What does the Java code actually do? Have you asked them how their approach is to be integrated into APEX?
    There is no reason why a properly written Java stored program cannot be used in APEX, provided that whatever it is doing makes sense in an APEX/web context, and isn't some nonsense like using DBMS_OUTPUT to generate a CSV.
    I tried so many ways.But it is not fixed.Different Different errors will occurs.
    Tried what? Demonstrate what you have tried, preferably using examples on apex.oracle.com.
    How to solve this.
    How to solve what? No clearly defined problem or requirement has been identified.
    Describe the the problem/requirement (not your attempted solutions) in detail.
    How to ask questions
    Re: 2. How do I ask a question on the forums?
    Include as much relevant information with your question as possible, starting with:
    APEX version
    DB version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), platform, and host OS
    Browser(s)/version(s) used
    Theme
    Templates
    Region type(s)

Maybe you are looking for

  • Error in Transformation Rules - Runtime Error

    Hi Experts, I am trying to load data from PSA to ODS using DTP. For about 101 records I get the following error: "Runtime error while executing rule -> see long text     RSTRAN     301" On further looking at the long text: Diagnosis     An error occu

  • Spotlight behavior in Leopard

    Can someone explain this to me: If you create a folder in Leopard on the desktop and call it "12345678" and then search for 2345678 in Spotlight, why doesn't the folder appear in the search results? This worked in Tiger. It worked in Win95 for that m

  • Array in Order

    im trying to make a method that takes in an array and makes a new array with the values from 0 to the array.length-1 so that the array it returns will corrispond with the values in the original array (if the number at the original element[ n ] is the

  • USB external HDD

    I moved my library from my laptop to an external USB HDD (R:)and everything seems to have gone OK. all the libray shows in ITunes shared music etc. I have ITunes on my desktop and when using the USB drive there, about 600 songs in the library do not

  • Put PHP Content into Dynamic Text Field

    How do I put the contents of a php document into a dynamic text field in a Flash document? Thanks. G