Defaulting LOV Values

Please guide me on how to go ahead with the requirement .
In iProcurement there are fields project name , project type , expenditure org ,
task name .my requirement is to now defualt other project fields based on the project name . i have extened the projet name lov to show the the porject type , project type id , expenditure org . now i am not sure which approach to take to default these values into the other 3 lovs .
as always
thanks
cp

Add 3 mappings which will set the other LOV fields based on the project name.
--Shiv                                                                                                                                                                               

Similar Messages

  • How do I default the value in an LOV?

    Dear experts,
    What I am trying to achieve is changing the default value in an LOV, based on the value of another field. I have an LOV that lists employee names. There is another field, an account number, which when selected is used to determine the default employee set against this account. This employee I want to use to add into the LOV as a default the value, before the user selects a value in the LOV. The user can still invoke the LOV and search for a different employee, but the functionality I am concered with is setting this default employee.
    I have modified the ProcessForm in the associated controller class. I have obtained the account number and using an SQL query I have obtained the default employer, but I can not seem to set this value in the LOV as a default. Does any one have any ideas?
    For the LOV there are two criteria values in the LOV mapping, the org id and the code combination id, both used in the query to get the default employee.
    Many thanks for your assistance in advance.
    Mark

    Hi,
    IF want use dependent lov ..then refer below link..
    http://oracleanil.blogspot.com/2010/12/dependent-lov-in-oaf.html
    Or
    IF u want set any default value in lov2 when value selecetd in lov1...
    Get the event of the lov1 on PFR..
    if("LOv1ID").equals(pageContext.getParameter(SOURCE_PARAM))
    && ("lovUpdate".equals(pageConext.getParameter(EVENT_PARAM))
    || "lovValidate".equals(pageConext.getParameter(EVENT_PARAM))))
    Here try set default value as given by Gyan...
    Pls check syntax errors...
    Regards
    Meher Irk

  • Unable to default a value in LOV in Expense Allocations page of iExpenses

    Hi friends,
    I am trying to default a value in a Lov (Which is a one of the segments in KFF).
    This Lov is in a HGrid region of "expense allocations page" of iExpenses.
    But i am unable to default that.
    I am using the below code.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction dbTran = am.getOADBTransaction();
    OAApplicationModule am1 = pageContext.getRootApplicationModule();
    dbTran.writeDiagnostics(this,"tnv AM, AM1 : "+am+", "+am1, 2);
    // AllocationsHeaderVO
    OAViewObject vo = (OAViewObject)am.findViewObject("AllocationsHeaderVO");// AllocationsHeaderVO
    dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO : "+vo,2);
    Row row = vo.getCurrentRow();
    dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO row: "+row,2);
    String arr[]= row.getAttributeNames();
    Object arrVal[] = row.getAttributeValues();
    for (int i = 0; i <arr.length ; i++)
    try
    dbTran.writeDiagnostics(this,"tnv arr[i] : "+arr,2);
    dbTran.writeDiagnostics(this,"tnv arrVal[i] : "+arrVal[i].toString(),2);
    }catch(Exception e)
    dbTran.writeDiagnostics(this,"tnv null Exp arrVal[i] : "+i,2);
    OAMessageLovInputBean busAreaSeg2 = (OAMessageLovInputBean)webBean.findChildRecursive("KffSEGMENT2");
    OAMessageStyledTextBean busAreaSeg2Desc = (OAMessageStyledTextBean)webBean.findChildRecursive("KffSEGMENT2Desc");
    busAreaSeg2.setText("100"); // A -- I am able to default this value, but user is having no option to change the value, if i go with this.
    busAreaSeg2.setText(pageContext, "100"); // B -- Unable to default with this....
    busAreaSeg2.setValue(pageContext, "100"); // C -- Unable to default with this...
    Could somebody please help me out, in defaulting this.
    Thanks in advance,
    Naresh

    Hi Guys,
    I am trying to Default Task LOV field based on the Project selected in Project LOV field, But i am not able to get the handle for Task LOV field in iExpenses of ExpenseAllocationDetailPG.
    Please provide me some hint to achieve the same.
    Thanks in advance.
    Regards,
    Naren.

  • Using a LOV for the Start of a Tree - Pblms using LOV value for Start SQL

    I'm trying out my first APEX Tree using P20 and am having problems with it. The data structure is I have a clients table, an users table, a plans table and a union table (plan_users) that shows which users for a client are working on plans. An user belongs to a client and can be assigned to plans (plan_users).
    client_id (key to clients table and part of the composite key for users, plans and plan_users) is available as an application item which I can reference as :FOCUS_CLIENT_ID.
    I created several LOV's in the Shared Components. The PLANS_LOV returns all plans defined for the :FOCUS_CLIENT_ID. I've referenced this PLANS_LOV in the P20_ROOT_TREE which is setup to display the list of Plans for the Client as a SELECT LIST WITH SUBMIT. That seems to work and I can select the Plan.
    I then modified the SOURCE for the P20_ROOT_TREE to add a select statement to take the PLANS_ID selected in the LOV and use it in a Select to bring up the owner of the plan as the starting user for the tree. This is where I get an error when executing the SOURCE select statement which looks like this:
    select p.user_id id, p.plan_owner_id pid, u.user_lname name, null link
    from plan_users p, users u
    where p.client_id = :FOCUS_PLAN_ID and p.PLAN_ID = :PLANS_LOV
    and p.user_id = p.plan_owner_id
    and u.client_id = :FOCUS_PLAN_ID and u.user_id = p.user_id
    I'm guessing that the problem is what I'm referencing as :PLANS_LOV in the statement below. However I cannot find any information on how to reference the returned value from the PLANS_LOV for Page 20 so I've tried this.
    If this works right, then I want the user to select a PLAN from the LOV box and then see a tree displayed with all USERS hierarchically displayed beneath the Plan Owner. There may be multiple levels of users display under the Plan Owner.
    Here's the DEBUG page error I get. The number 4 is the correct Plan # I want to select Users for. The title on the page is "Available Plans". - Select Plan - is the default Null Value and Test Plan One is the Plan (#4) that I selected.
    Item: P20_TREE_ROOT COMBOBOX_WITH_SUBMIT
    Available Plans
    -Select Plan -Test Plan One
    [javascript:popupURL('f?p=4000:371:1020131294804981::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:1096326828951548,101,20');|Edit]Warning: Tree root ID "4" not found.
    0.05: Computation point: AFTER_BOX_BODY 0.05:
    Processing point: AFTER_BOX_BODY
    The query I'm using for populating the rest of the tree after the START is this statement below, but I don't think I'm getting to this point yet.
    select p.user_id id, p.plan_owner_id pid, u.user_lname name, null link, null a1, null a2
    from plan_users p, users u
    where p.client_id = :FOCUS_CLIENT_ID
    and u.client_id = :focus_client_id
    and u.user_id = p.client_id
    order by name
    I haven't been able to find any examples of someone using a LOV as part of the START definition for a Tree. All of the examples I've seen use a fixed value (i.e. 1).
    Anyone have some ideas?
    Thanks!
    Rob

    Hi,
    Try something like:
    select p.user_id id, p.plan_owner_id pid, u.user_lname name, null link, null a1, null a2
    from plan_users p, users u
    where p.client_id = :FOCUS_CLIENT_ID
    and u.client_id = :focus_client_id
    and u.user_id = p.client_id
    START WITH :FIRST_USER_ID
    CONNECT BY PRIOR p.user_id = p.plan_owner_id
    order by name:FIRST_USER_ID should be computed to be the first p.user_id value that matches the filter. Ideally, the p.plan_owner_id value should be null for this user as this user should identify the top of the tree. As an example, the following, using the EMP table, will allow you to display a tree with any manager as the root:
    SELECT
    EMPNO ID,
    ENAME NAME,
    CASE WHEN EMPNO = :P1_EMPNO THEN NULL ELSE MGR END PID,
    null LINK,
    null a1,
    null a2
    FROM EMP
    START WITH EMPNO = :P1_EMPNO
    CONNECT BY PRIOR EMPNO = MGRAndy

  • Place default checkbox value "in SESSION" on initial page load

    Oracle 11.2
    Apex 4.1
    Desire outcome: Chart renders on inital page load using default value of checkbox in query.
    I have a checkbox with a default (checked) value. It shows checked when the page renders for the first time but the value is not in the SESSION state. I use this value in a query for a chart. I do not want to use a Submit button so I have a dynamic action submitting the value for the checkbox and the chart refreshes as desired when I check and uncheck the box.
    I tried "Fire on Page Load" in the DA Execution Options, as well, but that caused a loop where the page renders and immmediately renders, and immediately renders, etc.
    Is there a declarative solution that submits the current, in this case default, values when the page is loaded? I only need and want the default values used the first time the page is accessed. This is the initial page of the application but I need the same behavior on all pages for the separate checkbox selections found there.
    May God Bless,
    Howard

    Howard (DBA in Training) wrote:
    If I remove the Default Value and add a Before Header page computation for the item with static assignment to
    a:bI get the 2 A/B checkboxes, both checked, and the value is set in session state.If you log in here, you can see it up close and personal!
    http://apex.oracle.com/pls/apex/f?p=21997:3 Login: Dever / Ima9Dever
    The Default Value colon-delimited string must contain the checkbox values, not the labels. In a static LOV the checkbox options are specified as <tt>label;value</tt> pairs. Thus in your checkbox LOV the labels are A/B, whilst the values are a/b. The values are case-sensitive.
    The Default Value should therefore be:
    a:bwhereas you've specified:
    A:BWith the checkbox item LOV Display Extra Values property set to Yes, APEX displays these extra values that are not included in the LOV definition as additional checkboxes. You can see this if you inspect the rendered checkbox elements in the HTML source:
    <input type="checkbox" id="P3_CHECKBOX_0" name="p_v01" value="a">
    <input type="checkbox" id="P3_CHECKBOX_1" name="p_v01" value="b">
    <input type="checkbox" id="P3_CHECKBOX_2" name="p_v01" value="A" checked="checked">
    <input type="checkbox" id="P3_CHECKBOX_3" name="p_v01" value="B" checked="checked">You get the a/b values defined in the LOV, plus the extra A/B values the LOV knows nothing about.
    ==== ) How do you keep it from setting/resetting these values each time the
    page is rendered?  The need is to do it only the very first time?  ( ====Put a Value of Item / Column in Expression 1 Is NULL condition on the Computation. Problem then is that the computation will be run if the user can [legitimately] deselect all of the checkboxes, either leaving you back where you started, or requiring the use of a further item to flag whether it is the really "the very first time" (which I find intellectually deeply unsatisfactory). This may be a sign that the control should really be a radio group that always has one option set, rather than a check box.

  • Default prompt values in webI report???

    I am using BO XI 3.1 on BW universe, I have a prompt A in the prompt window which has many Lov's but user will freequently use only three values out of it.
    So I want to make those three values to be default for that promp A when ever the report gets refreshed, so that it will be easy for user not to search in the big list for those 3 values.
    Any inputs please.
    Thanks,

    Hi,
    You can make some values as default prompt values by webi report.
    1) Open the webi report.
    2) Edit the query then go to the prompt
    3) Go to the prompt properties checked the chekcbox "Set default values" and type the three values and ok.
    So next time user refresh the report all three values come in the filter  default.They can remove or add more values in the list.but every time all values come in the filter.
    Thanks,
    Amit

  • Passing LOV Value on URL

    I've tried searching through the forumn and the documetation for APEX, but I could not find how to pass an LOV value on the URL.
    I.E: Multi-Select list with values 1;3;5 selected.
    You can't put 1;3;5 in the URL's item value spot as the semi-colons will throw off the parsing of the URL.
    Obviously an LOV with only 1 selected value is possible as it does not require any semi-colons.
    Ideas?

    Passing the value on the URL is a must here is why:
    The functionality being provided is a basically a search that appears inside of an iframe that is styled to look just like a standard pop up. The search functionality allows for different criteria to be searched upon based upon a number of given fields at the top. At some points it is nicer to provide default search criteria based upon the context of the parent page's item values in session state (which is usually not editable by the user); one of these being from a value set from a multi-select list.
    The page when opened will open with the default criteria already applied with the list of selectable items being shown. Going through the DOM to obtain the item is not an option because
    1) The page should not visibly refresh after it opens and loads.
    2) Even if visible page refresh were an option: The iframe is calling a page that can be shared between other pages (meaning its searching function is atomic and reusable) and the source value item can and does change. Which in turn means that the element's ID is not referenceble unless it was passed into the page. But then again, refreshing a page and rednering it twice does not look good.
    Passing the value on the URL would be most advantageous as it requires only a single page render inside the iframe.

  • How to default a value on a filed on OAF screen which is a dropdown

    Hi,
    I have a requirement where I have to make a value default on a fiield on OAF screen which is a dropdown. I have done this defaulting on a LOV field but I am not able to do it on a field which has a dropdown. Can someone please help?
    Thanks

    1. If my understanding is correct, you need to default a value in MessageChoice.
    2. Do you want the drop down to have a default value for all news rows that you create?
    3. Why you are not able to do that? Please explain the behavior.
    Default values you can specify in VO Attribute, EO Attribute, VO.createRow(), EO.create(), your AM code where you create a new Row.
    Depending on the scenario you can use any of these. Please ensure that you are not setting it to null or some incorrect value before coming to that page.
    -Prince
    [email protected]

  • Dynamic Default LOV

    Hi,
    I would like to have dynamic default LOV based on user.
    I have a table in Database with username and Region he is working on.
    Based on the user who logged in the system, can I show the default region as region stored in the database table.
    Appreciate your input on this
    Thanks
    Bala

    simplest solution would be just drag your table containing username & region on universe then join it with the actual fact table(or main table containing all the data)
    Now, click on region object and generate custom LOV by writing following sytex
    select distinct region from table1 , main_table
    where table1.region  = main_table.region
    and table1.username = @variable('BOUSER' );
    and create the prompt on this newly created region object.
    refer link for creating custom Lov
    http://www.bidw.org/business-objects/universe-design/list-of-values-lov-in-business-objects-universe/

  • Crystal Reports 9 and SQL Server 2005 default parameter values

    We're using Crystal Reports 9 and upgraded from SQL Server 2000 to SQL Server 2005.
    I'm noticing a very weird problem which I wonder if anyone else has experienced (and hopefully found a resolution for). It appears that in using Crystal with SQL Server 2005 stored procedures, if we have default parameter values in the stored procedures, the default parameter values get completely ignored if you pass in a NULL value from Crystal!
    For example, if you have a stored procedure that begins like this:
    ALTER          Procedure [dbo].[StoredProcedure]
    @Param1 VarChar(200) = '',
    @Param2 VarChar(200) = ''
    AS ...
    both @Param1 and @Param2 have a default value of an empty string, and therefore should become empty strings if nothing (NULL values) gets passed in for them.
    But, like I said, what I'm finding is that with Crystal calling the stored procedure with NULL @Param1 and @Param2 values, they never become empty strings, but rather remain as NULLs.
    This was never a problem with SQL 2000.
    Very perplexing. Anyone else every experience this?
    Thank you.

    Please ignore my earlier post -- answered my own question.
    NULL parameter values do not get replaced by default values in SQL -- that is normal behavior in both SQL 2000 and SQL 2005. Just goes to show, that no many how many years programming experience you have, you can still get tripped up sometimes : (

  • Default search value for Query By Example Report

    Is there any way I can add the wildcard % as a default search value for text fields in the customization screen for a QBE report? The aim is to relieve the user from knowing that you have to input the wildcard % in the search field.
    Also, Is there a way to change the label of the standard 'Close' button, which is a bit misleading as it actually takes you back to the report customisation window?
    Cheers,
    Arnt

    Hi,
    You can give default values for bind variables in sql report and not for QBE reports. Also it is not possible to remove the close button.
    Thanks,
    Sharmila

  • Getting error while selecting LOV value

    Hi all,
    I am getting the below error in R12 apps while selecting the lov value from list (But it is working properly in 11i apps and loacal jdeveloper.)
    Error: Stale Data
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The view object ProjectInformationAM.EmployeeLOVVO1 contained no record. The displayed records may have been deleted, or the current record for the view object may not have been properly initialized.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    The lov query is select employee_number,full_name from per_all_people_f
    I have tried both internal and external lov but both cases it is showing the error in R12
    I have used below code in PR of create page, still no use
    if(!am.getEmployeelovVO1().isPreparedForExecution())
    am.getEmployeelovVO1().executeQuery();
    Row row1 = am.getEmployeelovVO1().createRow();
    am.getEmployeelovVO1().insertRow(row1);
    row1.setNewRowState(Row.STATUS_INITIALIZED);
    Except this lov all lov's working properly,
    Any one help on this it is very very urgent....
    Thanks

    Hi,
    I had a similar issue just now, and we fixed it in this way. But the case is probably different compared to your situation.
    Situation:
    - custom inquiry page
    - case: manual search, so not results based or Auto Customization Criteria
    - multiple search criteria fields
    - separate AM for all the LOV fields
    - each LOV has its own VO
    - Results table on same page, but with its own VO
    - each search criteria field has Lov mapping to the corresponding external Lov region
    Issue: when selecting a value via the Lov and coming back into the search page, I received the stale data error.
    searched lots of places and finally figured out what was wrong in my case.
    Each search field had its BC4J properties set to the VO of the results table. And since we wanted to make a manual search thing, this is not good.
    Removing the View Instance value and the View Attribute value in the properties of the search fields resolved the error.
    Hoperfully this can help other beginners, like me, in finding a solution for the same mistakes... :)
    regards
    Ronny

  • Default cell values for column not properly saved in uir file in labwindows 2009 (9.1.0 427)?

    I've run into a strange problem with the table control.  Basically, even though I set default cell values for a particular column as numeric, when I try to add items to the list it tries to add them as strings, and returns an error message that it is expecting *char instead of int.  Furthermore, when I open the uir file that contains the table in question in 2010, it appears as if the default cell values for that column are still set as strings, even though in 2009 when I open the uir file it shows as numbers.  I tried converting the uir to C code, and sure enough the C code indicated that the column still is a string type.
    I've gone ahead and made a small project to show the issue.  If you open this project in labwindows 2009 and click on the table in the table_bug.uir, and edit default cell values for column 1, you will see that the cell settings have type as numeric and data type as int.  When you run the project, however, it will fail with an error message saying that it is looking for a *char.  When this same project is loaded into labwindows 2010, clicking on the table in table_bug.uir and edit default cell values (column 1) shows the type as string.  When I change this to numeric (and change numeric attribute to int), this runs fine in 2010.  I tried simply changing the uir in 2010, and then using it in 2009, but 2009 complains that the uir is from a newer version (understandable).  If there is any workaround that would let me continue to use 2009 for the time that would be great.
    Any help would be greatly appreciated.
    thanks,
    Alex Corwin
    Solved!
    Go to Solution.
    Attachments:
    table_bug.zip ‏324 KB

    I opened the UIR in 2009 (but I have 2009 SP1) and it still showed that the default value for the first column was a string. I didn't have any problems changing it to a numeric int, and then building and running the project without error.
    Here are a few things you can try:
    1) Change the default value to a string. OK out of the dialog, re-enter the dialog, and change it back to Numeric int. Resave and see if the problem has gone away.
    2) You said you get a ".UIR is from a newer version" error when opening the 2010 UIR in 2009. Does the UIR still open if you click okay? Often times this will work just fine. Assuming you don't have any problems with this, make a minor change to the UIR in 2009, such as moving the table to the left, and then back to the right and then re-save. See if your program works now.
    Kevin B.
    National Instruments

  • Default multiple values in custom search help

    Hi All,
    I created a custom search help for the vendor. The fields in the search help are LIFNR (Vendor) and KTOKK (Account Group).
    I would like to be able to set three default values for the account group. That is, when the user clicks on the dropdown to display the search help, I would like to have three values populated in the KTOKK field. Is this possible?
    Any help would be appreciated.
    Thanks!

    Hi,
    I am not sure abt default values, but if you are using this search help in any report than you can set hot keys in your search help and using hot keys, you can set some default filter values in you report's parameter.
    you can set variant in your report where parameter is having values like :: =,<hotkey>,<sel1>,<sel2>
    here <hotkey> : wht you have assingned in search help.
           <sel1>    : one of those default values you want to display.
           <sel2>    : one of those default values you want to display for the second field.
    hope it helps,
    Regards,
    Sagar

  • How to Change the default Search value for Field Role?

    HI,
    I went through numerous threads on how to default the search value , but does not help for my issue. Hence im posting this new thread. Please provide your suggestions on how to achieve this.
    For the Ship-to party field (in item detail )  on webui when i do a F4 help i get the pop up with various search criteria and  for the field Role the default value is "Ship-to party".  which is visible. we need to change this default value to Prospect which is available in drop down.
    The attribute is STRUCT.ROLE  and view BP_HEAD_SEARCH/SearchHelp . The method GET_DQUERY_VALUEHELPS  from the context node class is called to fill the value help for this attribute, but i dont understand how the ship-to party is filled as default. There is no code in this method to default the value.
    The generic GET_V_S_STRUCT method also does not default the Ship-to party on this field.
    I want to understand how this Ship-to party is filled by default and how can i change this to prospect..
    Many Thanks,
    Shaik

    We had a same requirement of defaulting Sales org and division in search criteria for a specific value.
    this can be doen by redefining "DO_PREPARE_OUTPUT" method in IMPL class for the respective view.
    See the code:
    METHOD do_prepare_output.
    *CALL METHOD SUPER->DO_PREPARE_OUTPUT
    **  EXPORTING
    **    iv_first_time = ABAP_FALSE
      DATA:
        lr_qs TYPE REF TO cl_crm_bol_dquery_service.
    * Get current query object
      lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
      IF iv_first_time = abap_true.
        lr_qs->clear_selection_param_values( ).
        lr_qs->delete_empty_selection_params( ).
    *   if l_sales_orgs is initial.
        CALL METHOD lr_qs->insert_selection_param
          EXPORTING
            iv_index     = '1'
            iv_attr_name = 'SALES_ORG'
            iv_sign      = ' '
            iv_option    = 'EQ'
            iv_low       = 'O 50000514'.
    *   endif.
    *   if l_dist_chan is initial.
        CALL METHOD lr_qs->insert_selection_param
          EXPORTING
            iv_index     = '2'
            iv_attr_name = 'DISTR_CHAN'
            iv_sign      = ' '
            iv_option    = 'EQ'
            iv_low       = '01'.
    * endif.
    Hope this will help..
    THanks & Regards,
    Amit

Maybe you are looking for