How to default values in LOV

Hi,
I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
Thanks in Advance
Kanika Dhamija

Hi,
Can you please explain a bit more the ' ... is to default some value.. ' part?
When exactly do you want to set a default Value?
Depending on your case, there is always the declarative way to consider through BC
some approaches on different cases:
How to set a default value in an ADF table when adding a new row
http://www.youtube.com/watch?v=9WQ0SDVVWtE
http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
cascading LOVs
http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
hope this helps
Regards,
Dimitrios.

Similar Messages

  • How to set value from LOV only as a default reference not enforce validate check?

    In jdev 11.1.2.3,
    By creating  List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
    If I input a value which is not in the lookup table, then errors will raised.
    Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
    Any one can help?
    Thanks!

    Hi, Arun
    Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
    However, my current issue is a different requirement, let me describe it clearly as:
    I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
    for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
    The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
    List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
    My question is: how to disable this enforced value validation for a LOV-enabled field?
    (There is other means to ensure user will input valid value for this field, for example ask him to double input.)
    Thanks again!
    bao

  • Default value in LOV field in Create and Update page in OAF

    Hi All,
    I am unable to default LOV field in Create and Update page in OAF.
    I tried in below way :
    OAMessageLovInputBean lovBean1 = (OAMessageLovInputBean)webBean.findChildRecursive("AAA");
    But I am getting developer mode exception, so please guide me how i can set the default value for create and update page instead of using code in process request method in controller.
    Thanks

    Hi,
    1) In case of create, you can default the value either in EOImpl or in AM while initializing the row:
    //in EOImpl
    public void create(AttributeList attributeList)
    super.create(attributeList);
    setXXAttribute(<value>);
    //in AM, VO new row initialization :-
    VOImpl VO = getVO1();
    VO.setMaxFetchSize(0);
    VORowImpl row = (VORowImpl)VO.createRow();
    row.setXXAttribute(<value>);
    VO.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    2) In case of update, execute the VO (also set the where clause if required) in PR method of update page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to default value in collection after intial collection field entered

    Hi there,
    Am working on gettting to know collections but not really had much to do with them so far.
    I have a multi row data entry screen that works great using a collection. Now the boss has decided that the new records require a default value that the users can overwrite if required.
    The value i need to default is the second field in the collection but i only want to populate the value after the first field in the collection has been entered.
    Could anyone talk me through how i do this please or point me to any relevant documents.
    Cheers
    Lisa

    Hi Lisa,
    If you want to default value only after user enters data in another row column, you ll have to write a javascript code that executes after the column is entered
    If you have jQuery(already included in apex 4.0) it would make the task of accessing that other column easy.
    Otherwise its much more harder work to get I can think of setting the ID's using the pitem_id_* while rendering the editable fields(set it for both the columns..say as COL1_ROWNUM , COL2_ROWNUM ) using APEX_ITEM. Then add an onblur event(using the html attributes parameter of APEX_ITEM api) call a JS function with the rownumber(to identify the row). You can then write the logic for default value inside the function and set the corresponding column with the value.
    If you can update about your version and/or if you use any JS libraries, it would be easier to help you any further.

  • Can't Set Default Value for LOV Presentation DB Column

    I have a simple form. One of the fields is populated using a named, dynamic LOV with the following source query:
    SELECT USER_NAME DISPLAY_VALUE, USER_ID RETURN_VALUE
    FROM USER_ACCT
    ORDER BY 1
    I want the default user to be public, which is one of the possible values returned by the above query. However, I just can't find a good way to do this.
    If I put the following query in the Default section, nothing happens.
    SELECT USER_ID
    FROM USER_ACCT
    WHERE USER_NAME = 'PUBLIC'
    If I look up the ID and statically put the value in the Default, it works (This isn't acceptable . From environment to environment the value will differ)
    If I put the SQL in an after footer page process, it sets the value correctly in the session but, does not update the display.
    If I try to put it in the Post Calculation Computation section, it merely produces an error.
    I'm sure that I am missing something simple but, I have not spent an hour and half on this.
    Someone please help!
    -Joe

    A function I'd like to see is the ability to not only create a select list dynamically, but also set the default value of that select list's item to the first (or Nth?) value on that list. This could be specified in the builder by an item option.
    E.G., if a select list LOV returns three values: "foo", "bar", "baz", go ahead and set the value of the select list item to "foo".
    As far as I've been able to discover, there's no built-in way to do this in Application Express. I've looked through the app, the docs, and the forum. If such a method does exist, please let me know.
    Otherwise, we end up running additional processes that reissue the query so we can grab the first item as the default value. This seems inefficient to me.
    Keeping the LOV query and the "first item" query consistent can present problems as well. We usually end up pushing the LOV query into a function so it can be maintained in a single location, but this seems more like a workaround than anything else.
    While the query is probably cached, Application Express has that return value already, right? Why calculate/choose it again?

  • How to default value on bet01 based on ansal

    Dear Freinds
                i would like to know how to default the value for bet01 based on the
    calculated on ansal
    i want is
    q0008-bet01 = p0008-ansal /100.
    Can i default the value using the user exit ZXPADU01 or ZXPADU02. . As my ueser exit is not triggering  without me entering to bet01 .
    how can i do defaulting the value on bet01 ,
    regards
    shanti

    Dear  Chritisn
                 in my code i have done same thing what you have said as follows
    i have written the coding in ZXPADU02 as below
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    if l_v_amount ne wa_p0008-bet01.
    move l_v_amount to wa_p0008-bet01.
    MOVE-CORRESPONDING wa_p0008  to innnn.------ at this point
    endif.
    when others.
    endcase.
    I have used move corresponding because i am getting the error as the strucutr eof INNNN to that WA_P0008 is different (unicode compatability error) ...
    now i can see the data in wa_p0008 and when i have move into innnn ..... i can see all the data in debuggin except  the bet01 value as below
    in wa_p0008 the data in debugin is as follows
    PERNR     N     8      00000004
    INFTY     C     4      0008
    SUBTY     C     4      0
    OBJPS     C     2                                                                               
    SPRPS     C     1                                                                               
    ENDDA     D     8      99991231
    BEGDA     D     8      20070716
    SEQNR     N     3      000
    AEDTM     D     8      00000000
    UNAME     C     12                                                                               
    HISTO     C     1                                                                               
    ITXEX     C     1                                                                               
    REFEX     C     1                                                                               
    ORDEX     C     1                                                                               
    ITBLD     C     2
    PREAS     C     2                                                                               
    FLAG1     C     1                                                                               
    FLAG2     C     1                                                                               
    FLAG3     C     1                                                                               
    FLAG4     C     1                                                                               
    RESE1     C     2                                                                               
    RESE2     C     2                                                                               
    GRPVL     C     4                                                                               
    TRFAR     C     2      01
    TRFGB     C     2      01
    TRFGR     C     8      E1
    TRFST     C     2      08
    STVOR     D     8      00000000
    ORZST     C     2                                                                               
    PARTN     C     2                                                                                WAERS     C     5      HKD
    VGLTA     C     2                                                                               
    VGLGB     C     2                                                                               
    VGLGR     C     8                                                                               
    VGLST     C     2                                                                               
    VGLSV     D     8      00000000
    BSGRD     P     3      100.00
    DIVGV     P     3      165.00
    ANSAL     P     8           1000.00  -
    value  entered on the screen
    FALGK     C     10                                                                               
    FALGR     C     6                                                                               
    LGA01     C     4      MFPY
    BET01     P     7              10.00  ---after calculation the value(1000/10)
    ANZ01     P     4          0.00
    EIN01     C     3                                                                               
    innn structure in debuggin  as follows:
    PERNR     N     8      00000004
    INFTY     C     4      0008
    SUBTY     C     4      0
    OBJPS     C     2                                                                               
    SPRPS     C     1                                                                               
    ENDDA     D     8      99991231
    BEGDA     D     8      20070716
    SEQNR     N     3      000
    AEDTM     D     8      00000000
    UNAME     C     12                                                                               
    HISTO     C     1                                                                               
    ITXEX     C     1                                                                               
    REFEX     C     1                                                                               
    ORDEX     C     1
    PREAS     C     2                                                                               
    FLAG1     C     1                                                                               
    FLAG2     C     1                                                                               
    FLAG3     C     1                                                                               
    FLAG4     C     1                                                                               
    RESE1     C     2                                                                               
    RESE2     C     2                                                                               
    GRPVL     C     4                                                                               
    DATA1     C     250     0101E1      0800000000    HKD                00000000#&#5644;&#3152;###&#3072;                MFPY######        ######        ######        ######
    DATA2     C     250
    we can see in the debuggin for the DATA1 it is having the MFPY value  but i dont find the value for bet01 ..........
    and iam not getting the value on the screen in PA30 for the bet01.
    please let me know what i have to do , and let me know where i went  wrong.
    regards
    shanti

  • How set default value in field of new infotype

    Hi experts!!
    We have created a new infotype 9002. This infotype has two mandatories fields, one with the amount and another with the currency.
    The currency always will be 'EUR', for this reason we would like to assign the default value for this field and the user only should fill the amount field.
    How we should assing the default value to the field we have created in a new infotype 9002?
    Kind regards,
    Julian

    Hawk,
    Another option here will be to enhance infotype 9002 screen 2000 PBO logic. Add a PBO module with the following logic:
    Begda hat sich vielleicht geändert.
            PERFORM re500c(sapfp50m) USING psyst-land p9002-begda. "K35729
            IF p9002-waers IS INITIAL.                          "QNUK110803
            IF t500c-waers IS INITIAL.                        "QNOK034099
              MOVE t001-waers TO p0015-waers.                 "QNOK034099
            ELSE.                                             "QNOK034099
              MOVE t500c-waers TO p9002-waers.                  "QNOK129756
            ENDIF.                                            "QNOK034099
            ENDIF.
    This is standard code extracted from infotype 0015 PBO logic. It default currency according to your country.

  • How to default values on screen using FREE_SELECTIONS_INIT

    Hi Experts,
    I have the following requirement :
    We have developed a screen on which there is a button. On click of the button, a dynamic selection screen is generated using the functions FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG.
    I want when the selection screen is generated for the first time, the fields on it contains some default values taken from a table.
    e.g. If Screen has fields MARA-MATNR, MARA-MTART, MARA-MEINS then MARA-MEINS should be defaulted with a value 'EA'.
    I have tried a lot but could not find a solution to it.
    Kindly help me out as this is very urgent.
    Points are guaranteed..
    Thanks in advance.
    Regards,
    Himanshu

    SELCTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_RADLOC RADIOBUTTON GROUP GRP1 USER-COMMAND USER  .
    SELECTION-SCREEN BEGIN OF BLOCK SUB1_BLOCK WITH FRAME TITLE TEXT-002 NO INTERVALS.
    PARAMETERS : P_LOCNO TYPE /SAPAPO/LOCNO MODIF ID ABC default 'Specify the default value here.
    SELECTION-SCREEN END OF BLOCK SUB1_BLOCK.
    SELECTION-SCREEN SKIP .
    PARAMETERS : P_RADRES RADIOBUTTON GROUP GRP1  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK SUB2_BLOCK WITH FRAME TITLE TEXT-003 NO INTERVALS.
    PARAMETERS : P_RESNM TYPE /SAPAPO/RES_HEAD-NAME MODIF ID XYZ.
    PARAMETERS : P_NOB   TYPE /SAPAPO/CRES_NOINDIVRES  MODIF ID XYZ.
    SELECTION-SCREEN END OF BLOCK SUB2_BLOCK.
    SELECTION-SCREEN END OF BLOCK BLOCK_1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_RADLOC = WL_SPACE .
          IF SCREEN-GROUP1 = WL_ABC.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF P_RADRES = WL_SPACE .
          IF SCREEN-GROUP1 = WL_XYZ.
            CLEAR : P_RESNM, P_NOB.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          SCREEN-ACTIVE = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • AP Form Personalization - How to default Values.

    Hi All,
    I am trying to Personalize the *"Payment Batch"* Form in AP Super User.
    (Navigation : Payments > Entry> Payment Batches.)
    My Requirement is:
    *"Once the Bank Account(LOV) is selected, the Pay Group(LOV) should get defaulted."*
    There is a ONE-TO-ONE Relationship with the Bank Account and Pay Group given by the user.
    1. How can I default the Pay Group corresponding to a Bank Account.
    2. Is there any table which links Bank Account and Pay Group to accomplish the same.
    3. Can i do it by creating LOOK-UPS
    Please help me start with this personalization.
    Thanks a TON in Advance.

    Please post your question in the [EBS General Discussion|http://forums.oracle.com/forums/forum.jspa?forumID=475] forum as this forum is dedicated to NON-EBS Forms development.
    Craig...

  • How to default value from popup page to main page.

    Hi,
    Requirement:
    I have a create page with table region of 10 lines.I have an icon for every line and on click of this icon, a popup window will be opened.
    In the popup window i have quantity field with a table region. User is allowed to select the quantity. Also i have a ADD button on the popup page.
    Now On selecting the quantity and click on add button, the quantity should be added and the sum quantity should be defaulted to quantity field in the main page.
    For this requirement what i have done is
    I have added the quantity on click of the Add button.and the total quantity i set to the quantity attribute that has been attached to main page.
    But the quantity didnt get reflect to the main page. i think the focus is not retured o main page.
    Please suggest me how can i do this requirement.
    Thanks in Advance,
    Thanks,
    Mallika
    Edited by: user12216727 on Nov 21, 2009 4:29 AM

    Hi,
    As per my analysis for the issue, the control is returning to processRequest of the controller and when i set the attribute value, the value is being set and I am able to get the value and print it.
    But the value is not displayed on the page.Here I am using Advanced Table Region, and I am not able to shoe the value.
    I also created one view attribute and tried to set the readonly property to TRUE for the same field. I did in the same way, the value is being set and the field is made readonly.
    The problem is I am not able to show value to the user, even the value is present in the view attribute.
    Any pointers to this are really helpful.
    Thanks,
    --Mallika                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to default value in hr report category

    Hi all,
    I have create a hr report category in my abap report.
    However, i need to default the Reporting Period  field to value 'Today'.
    Please find the below screen.
    How can i do that?
    Thanks & Regards,
    Sujatha sahu.

    Hi Sujaha,
    I guess u used logic database PNPCE,
    so use below source code FYA.
    You can add the other values in the list. Now I added two only. (“D” and "Y")
    NODES peras.
    TABLES: pernr. " Standard Selections for HR Master Data Reporting FOR THE DEFAULT SCREEN.
    AT SELECTION-SCREEN OUTPUT.
       PERFORM set_date.
    START-OF-SELECTION.
    GET peras.
    *&      Form  set_date
    *       set_date
    FORM set_date .
       DATA: lv_vrm_id TYPE vrm_id,
             lt_vrm_values TYPE STANDARD TABLE OF vrm_value,
             lwa_vrm_values TYPE vrm_value.
       lwa_vrm_values-key = 'D'.
       lwa_vrm_values-text = 'Today.Good day'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lwa_vrm_values-key = 'Y'.
       lwa_vrm_values-text = 'Current Year. Horse Year'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lv_vrm_id =  'PNPTIMED'.
       CALL FUNCTION 'VRM_SET_VALUES'
         EXPORTING
           id              = lv_vrm_id
           values          = lt_vrm_values
         EXCEPTIONS
           id_illegal_name = 1
           OTHERS          = 2.
    ENDFORM.                    "set_date

  • How make default values in the selection criteria of BEx query????

    Hi all
    I have to create a brand new query, in the selection criteria(Prompts) I have two prompts. one prompt should show current budget year and second prompt should show next budget year, both prompts are mandatory and default.
    Can any one please let me know how to obtain current and next budget year??? do I need to write any customer exit or do i need to create a offset???
    Two prompts are using same infoobject 0fiscper which is mapped to ECC Table MBEW and field is LFGJA.
    Thanks

    HI sathiyaa,
    so you want to show user with two prompts one will show current year and the other next year value by default.
    //tell me that if you user change the current year value for ex: it will show 2011 by default.. and user changed it to 2009.
    you want to show 2009 year results or 2011 even though he changed the prompt.
    Here i'm considering that even though user changed current year to some other year still you want to show the current year results.
    Create a customer exit variable for calyear with ready for input (checked).
    customer exit code in CMOD :
    when ' customer exit var for cal year'
    IF I_step = 1.
    clear l_S_range.
    l_S_range-low = sy-datum+0(4).
    l_s_range-sign = 'I'.
    L_s_RANGE-opt = 'EQ'.
    ENDIF.
    if i_step = 2.
    data: zyear(4) type c.
    zyear = sy-datum+0(4).
    ex: l_s_range-sign = 'I',
    l_s_range-opt = 'EQ'.
    L_s_range-low = zyear.
    appen l_s_range to e_t_range.
    after this create a variable offset
    create a new selection in the structure, drag the KF and calyear restricted by current year variable . Copy the same selection and insert it as a new selection, go back to the calyear restriction, right clik on the variable. specify variable offset and enter + 1.
    or search in sdn how to create variable offset it will help you
    Regards,
    Ranganath.

  • How to bind value to lov based on the output from other lov

    HI all, i have 2 message choice Lov, i am selected a value from the 1st lov based on this value i am a executing a query, i want to display one of the attribute value from the query result in the second LOV. i am getting the attribute value correctly but i dont know how to bind that(display) in the 2nd LOV(at runtime).

    Read the dev guide LOV section, it should give you details about this implementation.

  • How to set the default value of a LOV that is found in a view criteria

    HI,
    I need to set the default value of an LOV that is found in a view criteria. I tried to set a groovy expression but unfortunately it wasn't read. i also tried to bind the LOV to a bind variable and set the value of the bind variable in the constructor of my backing bean but unfortunately the default value appeared the second time i entered the screen and not on page load.
    Can anyone advise where can i set the default value,
    Thanks

    if you want some default value in LOV. you go to edit list of value wizard-> UI hint->include no selection Item checkbox -checked.use labeled item first of list- and beside that put the label. but when you try to get value, it will show null.but you can manipulate in ur java , if it default value

Maybe you are looking for

  • XI config for MM-SUS

    Hi, I am trying to configure XI for the MM-SUS scenario. I know there are predefined business scenarios available. I tried according to the configuration guide, but was not successful. Could anyone send me any document which describes any additional

  • How to diaplay a logo dynamically in smartforms

    hi experts, i have 3 logos which needs to get printed in the smartform based on the business areas as the condition can you please help me in providing a sample code to display the logo dynamically in smartform Edited by: murari sampath kumar on Jan

  • SQL query very slow on Data warehouse

    Guys, Is there any soul who is an expert on SQL ? I do run this query agaist a 2 table and a view which has 30 million rows. Unfortunately the table is partitioned but not the Unique index. This query takes about 3 hours to run. Is there anyway of wr

  • Recruitment Question

    Hi Friends..... In my project, we are going to implement som functionality of recruitment for the client. 1. creating applicant numbers by doing initial data entry action 2. Issuance and printing of appointment letters from SAP 3. Linking the vacancy

  • How to solve the Error code (12/4186)

    224733.pgapp01!BRIDGE.2864.1.0: GP_CAT:1069: WARN: Could not index FML32 buffer in postrecv 224733.pgapp01!BRIDGE.2864.1.0: LIBTUX_CAT:6031: ERROR: Unable to pre-process buffer before tranmission. Error code(12/4186) how to solve it? Thanks. :)