How to make a lov value readonly on click of other lov on seeded OAF page

Hi all,
I have a requirement to make some lov value of "currency" readonly on click of other LOV payment template.
I tried to extend controller of page to check lov event of payment template if it is clicked the other LOV becomes readonly . Here is my code(not working...)
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if (oapagecontext.isLovEvent())
String lovInputSourceId = oapagecontext.getParameter("PaymentTemplate");
Hashtable lovResults =
oapagecontext.getLovResultsFromSession(lovInputSourceId);
if (lovResults!=null)
OAMessageLovInputBean msglovbean= (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("currency");
msglovbean.setReadOnly(true);
Please help....thx

Hey Sunil,
sims wrote:
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if (lovResults!=null)
OAMessageLovInputBean msglovbean= (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("currency");
msglovbean.setReadOnly(true);---We cant change the webBean properties in ProcessFormRequest.
---Use SPEL and PPR
or --Try below
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if("Lov1".equals(pageContext.getParameter(SOURCE_PARAM)) &&
"lovValidate".equals(pageContext.getParameter(EVENT_PARAM))
&& "lovUpdate".equals(pageContext.getParameter(EVENT_PARAM)))
pageContext.putSessionValue("Flag", Flag);
pageContext.forwardImmediatelyToCurrentPage(null,
false,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if(pageContext.getSessionValue("Flag") != null)
OAMessageLovInputBean msglovbean= (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("currency");
msglovbean.setReadOnly(true);}
Regards
Meher Irk
Edited by: Meher Irk on Dec 2, 2010 6:17 PM

Similar Messages

  • How to make the current value default programmatically

    How to make the current value default programmatically

    Open a VI reference to the desired VI and use invoke mode with method: "Make current values default".
    The VI cannot be running, so you need to set it from a different VI. (It also means, it cannot set itself.)
    LabVIEW Champion . Do more with less code and in less time .

  • How to make a category highlighted after it clicked

    Hi there! Just want to know how to make a category highlighted after user click on it, so he will able to track on which category he is currently on?
    I've already created 3 categories (links) through creating library elements, I already have the hover effect  I made through CSS external stylesheet, everything works, but the category is not highlighted when I browse within it.
    Here is my HTML code of these 3 links:
    <td bgcolor="#663300"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a href="index.html">Home</a>     <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
    And here is my CSS code for these links:
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    So how to make the active link highlighted when browsing within it??
    Thank you

    My pages are offline in developing stage, can't give you an URL.
    Here is my HTML code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>untitled</title>
    <link href="css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    </head>
    <body class="home">
    <table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
    <td bgcolor="#663709"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a class="home" href="index.html">Home</a>    <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
      </tr>
    And here is my CSS:
    body {
        background-image: none;
        background-color: #2d2625;
    body,td,th {
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    What should I modify?

  • Creation of a Personalised LOV in a seeded OAF page

    Hi,
    I am trying to create a LOV item (personalised/CO extension) in a seeded OAF page.
    When I am trying to do from Create Item option of personalised page then I cannot find the option for creating the LOV mappings.
    When I am trying to create it by CO extension then there is an error that it cannot fetch the values, though I have created a customised Region with a customised LOV and by programming attaching it in the said region.
    Please suggest.
    Regards,
    Arindam.

    Hi,
    this is an Oracle JDeveloper and ADF forum. OAF has its own forum on OTN.
    Frank

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • How to make crosstab cell value become hot link which can link to other?

    Dear Gurus:
    I am using Bi beans in a project, i create a crosstab in one .jsp file,the crosstable can display data correctly,but i want to make every cell value become hot link which point to a url,this url contains measure info and all dimension info,how can i do? Thanks a lot!

    Hi Tomsong,
    We will post a BI Beans Sample that does that to OTN next week.
    In the mean time, look at the following BI Beans Help topic (under Jdeveloper BI Beans Help)
    Handling Drill-Out Events in HTML-Client Applications
    Hope this helps
    Katia

  • 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 make your iPad and iPhone commicate with each other

    How to make your iPad and iPhone commicate with each other

    this is very easy...
    firstly disconnect the DSL modem for the linksys..
    then connect the computer to the linksys router (port 1/2/3/4)..
    then access the linksys setup UI
    open ur web browser
    site: http://192.198.1.1/
    username: [blank]
    password: admin
    now hook up the westell modem.. and goto the status page ...
    check Internet IP.
    if then Internet IP is 192.168.1.* then,
    disconnect the westell from the router and goto the setup page.
    change the LOCAL IP address to 192.168.2.1 (notice the 2.1 and not 1.1)
    save settings....
    connect the westell and viola ur online...
    if the Internet IP is 0.0.0.0 then
    goto the setup page and change the 'Internet connection Type' to 'PPPoE'
    once done the page changes and give u a place to enter a username and a password.. this username and password is given by verizon..
    sud be something like '[email protected]'
    once done save settings...
    goto the status page and hit connect... give it a few moments... u shud get a Internet ip address... if u get one ur online if not then power cycle the entire network. and try check to see if u get an ip..
    hope this helps...
    cheers..
    Life is short... So get movin !!!
    DopeLorD

  • How to make a program restart at the click of the mouse or a key on....

    How would I make a program restart at the click of the mouse or a key on the keyboard?

    Yes, definitely, thats what I would want to happen but I'm not sure how to go about the coding. Would I have to use a key listener? Or would I have to construct the method from scratch?

  • How to make a tabular form readonly based on an item value

    Hi everyone,
    I am getting there, but I need to make a tabular form read-only based on an item value.
    I've copied this from somewhere (thanks) and changed it for my needs and it works great to set the second column of my form
    to read only.
        var els = jQuery('#Entry_Form input[name="f02"]');
        /*var r = confirm("els is " + els);*/
        els = els.filter(function(index){
          return jQuery(this).val() != "";
        });Just need to set the jQuery selector to jQuery("td[headers='PRODUCT_NAME']"), cos that's my column name.
    also need to give a static id of Entry Form to the form.
    I'll try to understand what this code means exactly one of these days, but now I need to make
    the whole tabular form read only based on a text item, :P5_CONTROL.
    Grateful for any help on this, in the above format if possible. Greek to me but compact and it works.
    Regards.
    Leckraj

    Hi,
    actually, there is no code, just one dynamic action. You may have to change the event which triggers it.
    Event: Change
    Selection Type:     Items(s)
    Item(s): P1_ED     
    Condition: equal to     
    Value: D
    True Action 1
    Action: Disable
    Fire On Page Load: yes
    Selection Type: jQuery Selector
    jQuery Selector: input[id^="f"]
    True Action 2
    Action: Disable
    Fire On Page Load: yes
    Selection Type: jQuery Selector
    jQuery Selector: input[id="check-all-rows"]
    False Action 1
    Action: Enable
    Fire On Page Load: yes
    Selection Type: jQuery Selector
    jQuery Selector: input[id^="f"]
    False Action 2
    Action: Enable
    Fire On Page Load: yes
    Selection Type: jQuery Selector
    jQuery Selector: input[id="check-all-rows"]
    Regards, Garry

  • How to make a component as readonly dynamically....

    Hi,
    I have a requirement and working on it since long time... I want to make a component readonly at runtime...
    I have to take a value(true/false) from message bundle and based on that value, I have to create a component as readonly or not...
    How to do this....
    I tried to do like below...
    <h:inputText style="width:170px;" value="#{bean.firstName}" readonly="#{msg.readOnlyFirstName}"></h:inputText>
    but it is giving exception like this...
    org.apache.jasper.JasperException: Could not get property readonly of component
    Please help me on this...
    thanks in advance..

    Hi,
    I think i should give answer to your question in two folds,
    #1) Dont use the properties files for such opeation(enable and diaplbe of component), and if you wnat to use this then you need to do it via backing bean. What you have to do is, you can declare a property in backing bean of that page whcih will tell rendered about the enabling/disabling the particular component. To set the property delclared in backing bean read the property file and then set it to true or false based on your need.
    #2) Use backing bean directly by omitting the property file from picture.
    By taking a look at your exception it seems that the something is wrong with readonly attribute, can u post complete exception.
    --Surya
    thoughts can change everything
    null

  • How to make a default value by using dynamic actions

    Hi,
           I want to default a field nationality in infotype 0002 as a great britan, using dynamic actions but unable to go ahead. Any help regarding this really appreciate.
    Regards
    Niranjan

    Hi,
    I need some guidance around creating dynamic action with default value, Please guide me through.
    I am aware I can set default values for new infotype, but I need to set default value for same infotype, let me explain the scenario.
    Currently employee is on one pension scheme which is called NE1 and now we are moving this employee to CRESP Pension Scheme.
    When employee is in NE1, his IT0071 has got a opt in field with a flag on, when the same employee is moved from NE1 pension scheme to CRESP Pension scheme, his new IT0071 record should have the same opt in field with a flag on, I want it to set this flag automatically using dynamic action. I dont want to update this field manually, while moving from NE1 to CRESP.
    Currently the below dynamic  action is coded when employees are being moved form NE1 to CRESP, but now they will have a opt in flag which should appear automatically, What needs to be done to make this happen?
    Please let me know if I set default value for the Opt in field for the same infotype.
    . When employees are being moved from NE1 to CRESP pension scheme we currently use a dynamic action as show below:
    0071                      04      10      I        INS,0069
    0071                      04      20      W       P0069-BEGDA=P0071-BEGDA
    0071                      04      30      W       P0069-ENDDA=P0071-ENDDA
    0071                      06      1        F        DYNACT_PAE031(ZHRPROG016)
    Also if it is not possible via dynamic action could you please explain how to create it using user exit, I am not an ABAPer.
    Your help is very much appreciated.
    Kind Regards,
    SK

  • How to make use of values in calling program in a badi

    Hi
         I have a badi implementation. i need to make use of some values in the program in the BADI. how do i access values in the program in the BADI.
    Regards,
    Chaitanya

    You can try this:
    E.g (replace the table and program names with the one you need).:
      CONSTANTS: c_resbd(15) TYPE c VALUE '(SAPLCOIH)resbd'.
      FIELD-SYMBOLS: <fs_resbd> TYPE resbd.
      ASSIGN (c_resbd) TO <fs_resbd>.
    If this doesn't work try exporting the variables you need to memory from a field/user exit.

  • How to make user-define value's query

    Dear All,
    In we have 3 user-defined fields in marketing document. When I type in field 1 and field 2, we need line total = field 1 * field 2.
    Would it be possible for me to config it in SAP? I setup a user-define value and have a query for it. Make it updated when field 2 changed. But when I am not clear on how to write the query. I have a query select $[POR1.U_Field1]*$[POR1.U_Field2]
    But I got an error message. It has to be some syn error in my query.
    It is a service type document so that I cannot have a where POR1.Itemcode = ...
    Can anybody help me out? Thanks in advance.
    Regards,
    Yuka
    Edited by: Jie Jin on Mar 23, 2010 7:28 PM

    I use Select $(Por1.Price.number)*$(Por1.U_Numberofunit.number)   //replace ( to [
    The price was been change to null. Then my query is like select *6. Thanks.
    Edited by: Jie Jin on Mar 23, 2010 7:42 PM
    Edited by: Jie Jin on Mar 23, 2010 7:44 PM

  • How to make the same value be placed in many  variables.

    Hi all!
    I need help to make the values broght from ekpo-peinh: 1 2 3 4 5 etc...  get placed into many fields of internal table, for example:
    data: begin of it_size occurs 0.
            t90 like ekpo-peinh,
            t10 like ekpo-peinh,
            t11 like ekpo-peinh,
            t12.....
          end of it_size.
    And I need to make that all the values from ekpo-peinh be placed in order in it_size-t90 = 1, it_size-t10 = 2, it_size-t11 = 3, it_size-t12 = 4 and so on.
    So please if anyone can help me 'cause I don't know how to do that, I'll really appreciate it.
    Thanks for your time.

    Hi Guillermo.
    I'm not sure i understand completely, but here's part of a solution:
    data: l_comp type i,
          l_type.
    field-symbols: <f> type any.
    describe field it_size type l_type components l_comp.
    do l_comp times.
      assign component l_comp of structure it_size to <f>.
      if sy-subrc ne 0.
        exit.
      endif.
      move (value from EKPO) to <f>.
    enddo.
    This will populate, in order, your IT_SIZE structure with a value (EKPO-PEINH).  I'm not sure how this value is managed, but this should give you an idea.
    Regards,
    Jesse Thibodeau

Maybe you are looking for

  • Problem logging in to admin account on Apex 3.1

    I have just upgraded to Apex 3.1 and I'm getting an error when logging on as admin. After I click log in I get: Line: 35 Char: 1 Error: Object expected Code: 0 Line 35 is : "<td colspan="1" rowspan="1" align="left"><input type="button" value="Login"

  • Connecting ATV2 to MacBook Pro

    I've been pondering getting an ATV, but I've heard that there is latency between the devices and the ATV when using AirPlay. i.e. There is a 3 second delay from when you hit play and when you hear the music. Can anyone confirm this? Is it present on

  • Controlling captivate movie with JavaScript

    Hi, I am trying to use Flash methods to control a captivate movie using procedures documented in the support center article: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html I am using the following code

  • Urgent Please help...  UL LI problem

    please give a way to solve this issue. the following page contains a <ul> <li> list. The list style for UL is set to none, but in li I have put background image. In this list items some have link (<a href="#">test2</a> ) and some items don't. I need

  • Partner Link URL/WSDL or Dynamic Partner link

    We are using a service similar to CreditRatingService in orderBooking Tutorial as a partner link. The partner has different test vs production service. I was wondering during deplyment on production is it possible to specify the URL in config file or