Need to change the LOV field based on checked box selection in OAF page

Dear ALL,
I have a requirement as below:
I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
So based on LOV value selection i am defaulting two text field value automatically.
So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
Please suggest me some pointers to achieve this requirement.
Thanks
Deb

hi,
in PFR use:
if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                 HashMap hashMap = new HashMap();
                 String checkboxval=pageContext.getParameter("item2");
              hashMap.put("checkboxval",checkboxval);
                pageContext.setForwardURLToCurrentPage(hashMap ,
                true, // retain the AM
                OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                OAWebBeanConstants.IGNORE_MESSAGES);
and in PR use:
if((pageContext.getParameter("checkboxval'))!=null)
OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
      lovInputBean.setRequired("false");
try it
Regards
Mahesh

Similar Messages

  • Need to change the Sort field(kna1-sortl) value

    Hi All,
    We have the requirement to fill the Search Term   (kna1-sortl) based the accounting group and 'kunnr' value.
    I.e as per the legacy system number range in brazil we need fill the sortl field based on accoung goup by concating the kunnr value to it.
    for Ex: 2GXXXXX0 this number need to filled in sortl field.
    where 'X' is repplaced by kunnr value.'2' and '0' are the constant values.Based on accounting group after value '2' we need to add either 'g' or  'S'.
    We find one user exit 'EXIT_SAPMF02D_001' but which does not contain the kna1 as the change perameter.
    kindly help me on it .if there is any other badi

    Hi,
    There is no std user-exit for this (at least we haven't found it as well).
    We have created implicit enhancement point implementation athe the end of form AUFRUF_USER_EXIT in include MF02DFEX.
    The code should be similiar to following:
    ENHANCEMENT 1  YEDSD_EO_ADD_DOC_PREFIX.    "active version
        DATA:
          ltp_doc_prefix TYPE y_dt_docpref.
    *--only in creation and change mode
        IF T020-AKTYP = 'H' OR
           T020-AKTYP = 'V'.
          CONCATENATE kna1-ktgrd kna1-kunnr INTO ltp_doc_prefix.
          kna1-yydocpre = ltp_doc_prefix.
        ENDIF.
    ENDENHANCEMENT.
    Regards,
    Marcin

  • Populate drop-down lists based on check box selections

    Hi. I'm creating a Service Work Order form. At the top, there are several check boxes for the various services we provide, under that , more text fields, drop downs and checkboxes to elaborate on those services, and then at the bottom, fields for pricing.
    I'd like the top half of the form to drive the pricing info that is available or that auto-populates at the bottom.
    Ideally, I'd like to make the pricing specific based on 3 things:
    the service checkbox
    the client
    and the details on that service
    For example:
    If Client XYZ wants Service A that includes subservice B
    $123 should show up on the bottom half in the field for that service
    If Client ABC wants Service B that includes subservice C
    $456 should show up on the bottom half in the field for that service
    Does that make sense?
    I've been unable to get code to work in either the calculate and pre-Open options
    I first tried calculate and used this code (which was just a guess on my part)
    if (CheckBox1 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox2 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox5 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox6 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox7 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox8 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    else
    $.rawValue = 0
    endif
    That didn't do anything but give me an error about "and"
    So I tried putting code in pre-Open:
    // clear the dropdown displayed value and items
    this.rawValue = null;
    this.clearItems();
    // repopulate the items based on the checkboxes
    if(offshore.rawValue == 1)
        this.addItem("$40.00", "offshore_001");
        this.addItem("$45.00", "offshore_002");
        this.addItem("$50.00", "offshore_003");
    if(inland.rawValue == 1)
        this.addItem("$40.00", "inland_001");
        this.addItem("$45.00", "inland_002");
        this.addItem("$50.00", "inland_003");
    I got no error but nothing populated and the drop-down was, in effect, disabled.
    Any help would be appreciated.
    Thanks!

    Gavin,
    This sounds like an issue that is not related to JHeadstart. To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there.
    Your suggestion that it is related to the where clause seems likely. Please find out what kind of object USER_ENV is, and how it is initialized. Maybe this initialization is skipped when bouncing the application.
    What happens if you perform the query in SQL*Plus, without doing anything about the USER_ENV?
    Maybe you should ask the Oracle Applications discussion forum...
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Need to change the Idoc Status based on the Text in the Idoc

    Hi All,
    I have developed Idoc--SOAP Sync Process Scenario Using BPM and Works Perfectly.
    I have used STATUS.SYSTAT01 Idoc to capture the Response that is comming from the Webservice.
    I have mapped the response Text( Success or Fail) to one of the field in the Response Idoc, this is perfect.
    Requirement:
    1) If the Response Idoc Field receives Success Text means the Idoc Status shld be in Green Status.
    2) If the Respnse Idoc Field Receives FAIL means the Idoc Status shld be in RED Status.
    How can i Do this. please suggest me......
    Regards

    Hi Santhosh,
    YES, I have to Capture the Response from Webservice in SAP R/3 by using STATUS.SYSTAT01 Idoc.
    I have mapped the response from webservice to the one of the field in the Idoc.
    If this field contains Success as text means the Idoc Status in We05 shld be 53 else it shld be 56
    With out changing the FM code, can we use any other process to achieve this???
    @ Mario
    Can u please Allobarate your views more based on my requirement
    Regards

  • Why is the "From:" field being changed in Mac Mail.  I have multiple gmail accounts setup and it seems to change the "FROM" field even though I've selected which account to use to send the email.

    So
    I've got multiple gmail accounts setup in Mac Mail.
    Somtimes when I send or forward emails, it uses the wrong FROM field even though I'm declaring
    specifically which account to use.
    This becomes apparent when the person replies to my message and it goes to the wrong account

    Check you accounts in Mail and make sure each account has the correct outgoing server address. Check the box to use only that server.
    Second, go to the gmail website and in settings under the account tab, make sure you have the correct settings for replying to messages.

  • Set variable in main mxml based on check box selection in another mxml

    I have a two mxml, In one of my mxml I have a checkbox, on checkbox_click event I want to pass some value to my main.mxml.
    Using this value I want to toggle the visibility of map layer in main.mxml.
    So far I have declared a bindable boolean variable in my main application mxml.
    And written a function to set the value of this boolean variable depending on some other variable in the second mxml. This second boolean variable is set depending on the checkbox selection in second mxml. now I do not understand from where should I call this function so that everytime checkbox is checked or unchecked value of my bindable boolean variable (declared in main app) changes.
    Is there any other way of doing this?
    Thanks in Advance

    This makes it even easier:
    -------------- MyComp.mxml ----------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          import mx.events.ListEvent;
          [Bindable] public var compBool:Boolean = false;
          private function toggleVisibility(evt:ListEvent):void{
            if(cmbx.selectedLabel == "show"){
              compBool = true;
            }else{
              compBool = false;
        ]]>
      </mx:Script>
      <mx:ComboBox id="cmbx" dataProvider="{new ArrayCollection(['hide', 'show'])}"
        change="toggleVisibility(event)"/>
    </mx:VBox>
    -------------- mainapp.mxml -------------
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:comp="*">
      <comp:MyComp id="compObj"/>
      <mx:Label text="Map Component" visible="{compObj.compBool}" includeInLayout="{compObj.compBool}"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Query based on check box selection

    Hi,
    Can anyone tell me how to write query or what is the way for the following problem
    i have 2 regions in my report 1st region is the html one which has multiselect depending upon selection from the multiselect when user clicks submit
    another region that is the interactive report that is displayed.
    can anyone tell me how to query for ir for the same and what other things i need to do?
    Thanks and Regards,

    keny_01 wrote:
    Hi,
    Can anyone tell me how to write query or what is the way for the following problem
    i have 2 regions in my report 1st region is the html one which has multiselect depending upon selection from the multiselect when user clicks submit
    another region that is the interactive report that is displayed.
    can anyone tell me how to query for ir for the same and what other things i need to do?
    Thanks and Regards,Not sure I quite understand... when you say multiselect - is that the checkbox?

  • How to change the grayed field font  in apex

    Hi,
    I need to change the grayed field item font ...
    ie i need to make disabled item value to be bright to achieve this what i have to do ...
    Regards,
    pavan

    ok make it html code in Java scrip as bold  and item level read only option with Read Only Element Table Cell(s) Attributes .
    i did your requirement in same my link.
    how it use? follow this thread.
    https://forums.oracle.com/thread/2555786

  • I've created a fillable PDF document in XI Pro. I need to change the body of the document and create a new fillable PDF document. When I do that it won't let me create a new PDF. It keeps saying "no new  fields recognized. What can I do to redo my documen

    I've created a fillable PDF document in XI Pro. I need to change the body of the document and create a new fillable PDF document. When I do that it won't let me create a new PDF. It keeps saying "no new  fields recognized. What can I do to redo my document with the changes in the text, but no changes in the fillable fields?

    You start with a source / authoring file for the "static" content (e.g., Name, Last:). Say this is an MS Word file.
    You master the "static" content..
    You keep this authoring file and have a backup of this file.
    You output a PDF and use Acrobat to build and fine tune the "form" (form = the form fields, not the "static" content).
    The authoring file  and output PDF (with form fields) gives you "rev 00".
    Now, you must change something in the "static" content.
    Open the authoring file and save as to a new version (e.g., "wordfile_v00"  becomes "wordfile_v01).
    Output this to "pdffile_v01".
    Use Acrobat to open the PDF form file "pdffile_v00". Save As to a new file name ("pdffile_v00update").
    Using Acrobat XI Pro the click-path Tools - Pages - Replace lets you replace a page or pages of "pdffile_v00update" with a page or pages from "pdffile_v01".
    This replaces the "static" PDF page content and does not affect the form fields on the page.
    (you may have to adjust position of form fields)
    Save "pdffile_v00update" to "pdffile_v01" to reflect the revised status of the PDF form file.
    Be well...

  • Unable to change the LOV of To locator in Subinventory transfer form

    I am trying to change the LOV of To Locator field in the Subinventory form.
    I have made the trigger event as "When-new-form-instance"
    In actions tab:
    Built in : Create a record group from query and gave a name to the record group
    Property: LOV - ENABLE_LIST_LAMP - Group_name - <gave the name of the record group>
    But it gives an error : Cannot create the record group.
    The name of the column in the form for To Locator is : TRANSFER_LOCATOR and its defined at the item level.
    Can anyone please help?

    During the implementation of a recent project, we suffered from the same issue. There seems to be no way to recolor that part of a pivot table, but you can remove it by disabling the row header... which, in your case, should also remove the header "Class".
    The way I see it, the users would already know what that Class column is supposed to be about. So you don't actually need to have that header displayed, if you ask me.
    If someone has a proper solution to this question though, I'd be interested :)
    Cihan
    Edit: Spelling
    Edited by: cihanc on 14.Eki.2012 23:21

  • How to Change the Value Field Type of a Value Field

    Hi,
    How can I change the value field type from Currency to Quantity of a value field? I have tried to do it in KEA6. I can change the value field and its description, but not the value field type from currency to qty. If I change this config, is there any other changes that I need to make so there is no side issue of this change?

    Hi Prem,
    Once you created value field as quantity or currency, you can not change this nature of value field. Based on this, system creates lots of data and tables. For this reason system will not allow any changes in quantity or currency.
    Alternative way is to remove the old value field and  create a new value field assign to operating concern and put all your seetings.
    Please let me know if you require any clarifications.
    Thank you,
    Regards,
    Santosh
    Reward points if helpful.

  • Issue with clearing the LOV field

    Hi,
    Could someone please help me with the code to reset/clear the value of an LOV field.
    I have a messageChoice and an LOV on the page. My requirement is that when a value is selected from the messageChoice, the value populated in the LOV field needs to get cleared.
    I have defined a PPR event for the messageChoice bean and I am handling it in the PFR of the CO.
    However, the below code does not clear the LOV field.
    lovBean.setValue(pageContext, null);
    lovBean.setText(pageContext, null);
    If I add the statement lovBean.setText(""), then the value selected from the LOV window does not get populated in the LOV field in the base page.
    The LOV is based on a VO and has just a single result mapping defined.
    Thanks.

    As per OAF standards, you cannot set a bean value in process form request, i.e. methods like
    lovBean.setValue(pageContext, null);
    lovBean.setText(pageContext, null);
    You can clear LOV using either of the ways:
    1)Redirect the flow to process request from process form request,i.e redirect to same page and then set value using
    lovBean.setText(pageContext, null
    2) in process form request , get the VO row attached to the LOV and update the corresponding attribute value as null.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Dynamic changing the LOV

    Hi
    we are facing some problem in Dynamic Changing the LOV.
    Lets assume the below scenario.
    I have tables like location and department table.
    In location table i have values like country name and location. For one country there will be multiple locations.
    First i need to show the unique country names in LOV. based on the country selection i need to show locations.
    all we need to achieve in same page meaning i have two lovs in one page. first one is country and second one is locations.
    pls. help us to resolve this issue.

    Why wouldn't you put two items (visible=no) on page; first of them with "select distinct..." of country on record group for LOV1 and the second with LOV2 with locations, depending of values in item1 where you took value from LOV1?

  • Who has changed the Custom Field value?

    Dears,
    Need to know the information regarding how to fetch that who has changed the Custom field value from PWA/MPP.
    Example:
    There is a PDP (say ProjectInfo):
    There is a Custom Field added to that PDP (say Project Status = In Progress).
    Now for ProjectA, someone has checked out and changed the Custom Field "Project Status" from "In Progress" to "Closed".
    I need to fetch the information regarding who has changed that Custom field.
    In which direction should I move: Event Handlers, PSI???? Any other stuff?
    Thanks & Regards,
    Shravan

    Hi Shravan,
    I'm not a developer but I do know that you can use an event handler pushing the resource name and date in custom fields.
    Another way is to use a 3rd-party tool like
    FluentPro Audit Tool.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • What program do I need to change the resolution of a photo?

    What program do I need to change the resolution of a photo that is currently a low-res .jpg? I previously had photoshop, but it did not transfer to my new Mac Lion - and it is too expensive to repurchase. Curious if there is there an alternative option? I cannot open hi-res files anymore, and would love a solution. Thanks!

    Take a look at Pixlemator in the App Store

Maybe you are looking for

  • Ray Traced 3d and MY video card overheats

    Hello, First off, I am not trying to get support to fix this, although some insight what might be going on would be great if someone has an idea.  I am using a GTX 480 with After Effects.  Yes, I realize this is not a supported GPU but it does work,

  • Sales order document flow error

    we do credit memo for one sales order, in the sales order document flow, the credit memo accounting document's status is not cleared. how can we changed it to be cleared?

  • Spry Photo Gallery "Controls"

    Spry Photo Gallery "Controls" Hi Don Booth, David Powers, Kinblas et al, Thank you all for your commitment, and  I hope Spry isnt dead?!  I am years behind  but I antē d up for the CS4 Master Collection at the beginning of the year and have been plow

  • A font package is requried to correctly display after creating interactive form in livecycle

    SO I created a form in acrobat. When I save it, and open it in reader, it opens it fine. But I need to make the fields expandable, so I go to livecycle, and create an interactive form with flowable layout. Once i save it, and open it in reader, it in

  • Javac exception in thread "main"

    Problem javac exception in thread "main" NoClassDefFoundError: com\sun\tools\javac\ [off screen] etc etc Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.Options etc etc Background 2006 java worked fine (with JEdit) on intro SUN