How can we make lov as default value based on another lov values

Hi Experts,
Example
we r having 2 lovs asume that lov1 and lov2 based on lovv1 i want to make lov2 as a default .
We have done the steps as mentioned in this forum. actually its returning null value.
appreciate your help on this. Pls find the below code.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am= pageContext.getApplicationModule(webBean);
if(pageContext.isLovEvent())
if("lovValidate".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)) && "lovUpdate".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))||"lovPrepare".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String lovInputSourceId = (String)pageContext.getLovInputSourceId();
if("lov1id".equals(lovInputSourceId))
OAMessageLovInputBean lovBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("WorkOrder");
String lovInput = (String) lovBean.getValue(pageContext);
OAViewObject vo = (OAViewObject)am.findViewObject("ChargeTimeWorkOrdersLovVO");
if(vo != null)
OARow row = (OARow)vo.getCurrentRow();
if(row!= null)
OAMessageLovInputBean lovBean1=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("lov21d");
String value=pageContext.getParameter("lov2id");
if(lovBean1!=null)
lovBean.setText("10"); }
Regards,
Srinivas

Hi Gyan,
We are gettign Null Pointer exception.
This is the code after modification for the current row:
OAApplicationModule am= pageContext.getApplicationModule(webBean);
if (pageContext.isLovEvent()) { String lovInputSourceId = pageContext.getLovInputSourceId(); 
if("WorkOrder".equalsIgnoreCase(lovInputSourceId))
OAViewObject vo = (OAViewObject)am.findViewObject("ChargeTimeWorkOrdersLovVO");
vo.getCurrentRow();
{  OAMessageLovInputBean compBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("OpSeqNum");  
if(compBean!=null)
{   compBean.setValue(pageContext,"10");          } } }
This is the error stack:
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2867)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
     at OA.jspService(_OA.java:204)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:889)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
## Detail 0 ##
java.lang.NullPointerException
     at xbol.oracle.apps.eam.workplan.webui.XXChargeTimeCO.processFormRequest(XXChargeTimeCO.java:97)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1189)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
     at OA.jspService(_OA.java:204)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:889)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
     at xbol.oracle.apps.eam.workplan.webui.XXChargeTimeCO.processFormRequest(XXChargeTimeCO.java:97)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1189)
     at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2863)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
     at OA.jspService(_OA.java:204)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:889)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
Regards,
Srinivas
Edited by: 878523 on Aug 11, 2011 4:03 AM

Similar Messages

  • I just upgraded from Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    I just upgraded from Logic Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express. I now want projects to open in Pro.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    Well, when I've done things like that it always sems like a good idea to keep an application that you know the file will definitely open in...

  • I'v just installed creative cloud 64 bit windows. How can I make bridge the default program to upload pictures rather than lightroom?

    I've just installed creative cloud 64 bit windows.  How can I make bridge the default program to upload pictures rather than lightroom?

    Usually the default program associated with an image file extension is an image developing Program like Lightroom or an image editing program like Photoshop. If you want to change the default associated program to Adobe Bridge you would use Window's Controls Panel file association applet.

  • How can I make Firefox my default internet brouser?

    how can I make Firefox my default internet brouser?

    See https://support.mozilla.com/kb/How+to+make+Firefox+the+default+browser

  • How can I make mail my default mail programme

    How can I make mail my default mail programme, I used to use entourage and now when I want to share I only have the option of entourage in the share list on safari

    Open Mail. Select Preferences from the Mail menu in the menubar. Click on the General icon in the toolbar. Set the desired default in the dropdown menu labeled "Default email reader."

  • How can I make a check box active ONLY if another check box is activated?

    How can I make a check box active ONLY if another check box is activated?
    I have an editable PDF for a client, which contains text fields and check box fields.
    There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
    However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
    I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
    Regards
    Tony

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • How can I make Pages my default

    How do I make this the default WP with Yosemite 10.10.2?

    As you can see, Microsoft Word is my default.
    Your next step is to click on other...
    Click on Always Open With check box and scroll down until you find pages in the Applications tab
    Click Open and there you have it!
    Hopefully it's an identified source or it will always revert back for some reason...

  • How can I make the sort default "by date" in iPhoto?

    On one of my computers, every time I load an event, it goes to the top of the library and I have to go to "sort/by date" to get it to go to the end or bottom of the library...where I want it.
    On my other computers, the default seems to be "by date" normally....
    How can I make the default sort option "by date?"
    Thanks.

    I am not by that computer now.  But that makes sense.
    I combine events that are imported into that iPhoto.  I suppose that would qualify as manually sorting....right?
    Still, shouldn't there be a way to overide that and make "date" the default.  That is, if your observation is correct.
    (I'll take a look tomorrow....)
    Thanks!!

  • How can I make invoice when down payment is bigger than item value ?

    Dear all,
    please, I need make invoice with bigger down payment than the item value.
    How can I make invoice when down payment clearing value is bigger than the item value ?
    When I do Release To Accounting, I have got a massage:
    "Total of down payment to be billed too high. See billing document item XXXXX"
    Please, how can I solve this problem?
    Thank you
    Peter

    Hello,
      I would like to underline that this is not a problem, but a standard, and in my opinion rightful behaviour of SAP: in a dowpayment process, when you create the invoice document, you should deduct only an amount less or equal to the invoice amount. And in the following invoices you will deduct the remaining downpayment amounts still open.
    Also under al legal and fiscal point of view, I guess how would you print the invoice? With a minus value?
    Best regards,
    Andrea

  • How can I make "mail" my default email app?

    When I click on an email address from Cobook or on a web page viewed in Safari, the chrome app opens to a gmail account that I rarely use. How can I make my regular Mail app the default?
    Thanks.

    Open Mail -> Preferences. Under the General tab there should be an option to select the default Mail app.

  • How can I make the Dependant Dashboard Prompt to auto select first value

    Hi all,
    I have an City prompt and creating a presentation variable with another prompt which is limited with the City prompt. But I want the second prompt to select the very first value whenever the city prompt changes.
    How can I achive this to make a prompt to auto select the first value?
    OR, is there a way to create a presentation variable as a result of an SQL using the value of the prompt?
    Thank you so much.
    Ganim

    You can definitely have a prompt with SQL referring to the presentation variable as @{pv} where pv is the Presentation Variable. Also, you could assign a default value to the prompt in question.
    Please assign points if helpful/correct.

  • HOW can I make a .SWF default load after its first load?

    When you have the SAME parent API on every page of an (X)HTML website, can a .SWF tell itself to load from a default position when a website user navigates to different HTML pages?
    Here's my parent API as it stands:
    http://www.playingthepoet.com/
    HOW can you tell the .SWF to load from a default position once the .SWF has loaded a first time? AND from any page of the website, not just the Home page? This is an advanced .SWF networking issue. And I'm not sure if the best solution is a Javascript of if there's a direct AS3 programming solution.
    The blurs and fade-ins are a bunch of timer variables and timer event methods timer event listeners. I want that intro ONLY ONCE. And NOT every time a user changes HTML pages. Please help, and MANY thanks for your time!!
    NT

    Hi ,
    You can set a variable say "count" on stage composition ready -
    sym.setVariable("count" , 0);
    On stage click , you keep checking the value of this variable -
    if(sym.getVariable("count") == 5)
      sym.$("Symbol_2").show();
    //Here "Symbol_2" is the next button that you want to appear on screen(which is initially invisible) when the symbol_1 is clicked say 5 times.
    Now, on click of a button , you keep updating the variable count -
    var countnew = sym.getVariable("count");
    countnew = countnew+1;
    sym.setVariable("count" , countnew);
    Attaching the sample for reference.
    Thanks and Regards,
    Sudeshna Sarkar

  • How can I make CS4 the default for opening?

    Help! I have most versions of PS but I prefer CS4. I am a photographer. Forever CS4 was the default when opening photos. Something happened yesterday and now when I double click on a photo to open it it opens but not in CS4. Not sure what version it's opening in. But I want it to open in 4. I can right click each and every time to open in 4 but I open tons of photos all day long and that takes too long. How can I again make it so that CS4 is the default?
    Thank you.

    Thanks. I couldn't figure out what you meant.
    What does CMD I stand for?
    If I right click on a file I can open in CS4 but there's no 'change all' there, just option of opening in CS4 or something else.
    I open RAW files. Then later I open jpg files. I think they are opening in CS4 as RAW (not sure) but the jpgs are not. If I right click it says CS6 is the default -- first one listed and has (default) next to it.

  • The new Firefox opens all the old tabs it closed with, when it starts. I'd rather just start a new session. How can I make that the default setting?

    The new Firefox re-opens all the tabs it closed with; and, I'd rather just start a new session, as the default setting. How can I do this? It would make it easier on me, the machine, and the Internet feed, not to reload automatically a bunch of tabs that were just closed. There must be someway to fix this. This happens on my brother's Windows computer, as well; and, it's running Firefox 4. Thanks for your help.

    Make that "Firefox ->Preferences -> General -> When Firefox starts: "Show my windows and tabs from last time" is not selected as this is not the default.
    Basically this setting will make Firefox start with whatever windows and tabs that were last open when a user closes Firefox by way of File ->Quit/Exit as if Firefox was never closed.

  • How can I make Firefox my default browser on my Galaxy Tab?

    I wamt to make Firefox my default browser on my Galaxy Tab (Android). How can I do this?

    When you click the internet (globe) icon you may be able to choose check the 'Use by default for this action' check box then select Firefox.
    If not then you will need to open the Settings > Applications > the click on the default browser and press the clear defaults button. Then follow the above directions.

  • How can I make QT7 the default player?

    I don't want to right click every file and tell it to open with QT7. I only use those files once anyways. Is their a way to make QT7 the default player instead of QT10?
    Thanks.

    No. Not really as the default for the .mov extension will always be QuickTime X.
    You can set the default for an individual file using the "Open Using" (Get Info window) but can't use the "Change All" button for that file extension.

Maybe you are looking for