Unable to set the Cursor focus on a particular field in OA Page

Hi,
I have a custom page with 3 controllers . Now when i delete a row from the Advance table, the focus of the cursor goes to the top of the page. My requirement is that, the focus should remain in the Advance table region itself.
I tried to set the focus using the below code. It dosent work. Could there be an issue since iam using more than one controller for the page?
OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
bodyBean.setInitialFocusId("item164"); // item164 is the messageTextInput field in the Advance table region.
I tried to get the Initialfocus value after its set. The value shows as 'item164'. However , it doesnt focus on that item.
Please help me out in fixing this issue.
Thanks
AG

Hi,
Thanks for the Info. Can you help me with this java script or if you can provide me any reference it would be hepful.
Basically the focus has to stay in that particular AdvanceTable region where the row is deleted. Not required that the focus has to point to the next row after the delete.
Thanks
AG
Edited by: 928445 on Apr 26, 2012 12:06 AM

Similar Messages

  • How to set the default focus to  a particular jtextfield

    hi,
    i'm trying to set the focus to the specified Jtextfield by default.
    i tried with reqestFocus() method,grabFocus() method,getCursor() method
    but all in vain.
    can anyone suggest me a solution please.
    very urgent request please
    thanks in advance
    regards
    Ravi teja

    If I understand the question correctly then this thread will help:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=290339

  • BC4J UIX How To set the cursor in a field

    Hi,
    when i display an bc4j uix edit form, i would like to set the cursor in a field and highlight the entry.
    how con i do that
    Thanks
    Achim

    Hi Adam,
    sorry but ist is not working. i get an errormessage "Object doesn't support this property or method".
    What is wrong?
    here my sourcecode
    <HTML>
    <HEAD>
    <TITLE>MBO Signon Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY onload="form1.username.focus(); form1.username.select()">
    <uix:pageLayout>
    <%-- some code here --%>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Login to Mentoring Back Office" >
    <uix:styledText text="Enter your user name and your password to login." />
    </uix:header>
    <uix:spacer width="20" height="10" ></uix:spacer>
    <uix:form name="form1" method="POST" destination="login.jsp">
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
         <uix:styledText text="Indicates Required Field" />
         <uix:spacer width="1" height="20" ></uix:spacer>
         <uix:tableLayout cellSpacing="5" cellPadding="5" >
         <uix:rowLayout hAlign="left" >
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="User Name:" />
              <uix:textInput
    id="username"
    name="username"
    text="jonte"
    required="yes" >
    </uix:textInput>
         <uix:formValue name="username" valueBinding="username" />
    <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="left" width="25">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="Password:" />
              <uix:textInput
    name="password"
    text="jonte"
    required="yes"
    columns="20"
    secret="true" >
    </uix:textInput>
         <uix:formValue name="password" valueBinding="password" />
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="center">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:submitButton name="Login" text="Login" formName="form1" />
         <uix:resetButton text="Cancel" formName="from1" />
         </uix:rowLayout>
         </uix:tableLayout>
    </uix:form>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateful" />
    Thanks
    Achim

  • SetCaretPosition doesnt set the cursor back to the jTextPane

    I have dynamic textpanes getting generated. I validate the textpane when moving to the other textpane during focus lost event. If there is an error, i need to set the cursor position back to the starting of the textpane. I am using setCaretPosition(0), but doesnt set the cursor back to the textpane. is there anything i am missing?
    focusLostTextPane.setCaretPosition(0);
    Thanks

    thank you so much.
    The requestFocusInWindow() does work but i observed one more thing. when i tab over the jtextpanes for the first time, it works fine. but when i move the tab once again from jtextpane1 to the next jtextpane, caretposition is set fine to the next textpane, but the focus is not set. i noted that this might be happening because the jscrollpane is not moving. do i have to change anything in jscrollpane?

  • Set the cursor busy steered by supanel vi

    I let run a vi and there is a subpanel. Is there a way that I can set the cursor busy steered by the subpanel vi. I pass the reference of the mainvi over a global variable into subvi. Without success there is no error message but the busy cursor does not appear. Just setting the cursor in subvi creates a null window error. Is there a easy way to implement it. Or do I have to use user events in main vi called by suvi an then se it busy. Would be not so nice to understand it later.
    kind regards reto

    I attach my test VI (LV 8.0). You can try it.
    Attachments:
    test sub.vi ‏17 KB
    test.vi ‏22 KB
    test global.vi ‏4 KB

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • Microsoft Intune was unable to set the desired mobile device policy for one or more users due to the following error: A2CE0100

    Hi!
    We have fatal or critical error message on Microsoft Intune Portal but all agents are working just fine. Before opening support ticket we would like to hear comments from the experts on this forum. We would also like to fix this error before starting to
    manage mobile devices with Intune.
    Error message on Intune Portal:
    "Microsoft Intune was unable to set the desired mobile device policy for one or more users due to the following error: A2CE0100"
    Repeated: 19 times.
    Class: (System) Policy
    Random Fatal error message on C:\Program Files\Microsoft\OnlineManagement\Logs\PolicyAgent.log found from one Windows 8.1 client:
    2015-02-21 08:49:20:704 2852 1ab0 FATAL: DocumentProvider::IndicateToConsumer/pp->ProcessPolicies(NULL, NULL, NULL, NULL) failed with error 0x800704d5.
    That said, we are not facing any specific problem but we would like to find symptom of this repeating error message on Intune Portal . We would appreciate to get any thoughts about this case.
    Br.
    Jukka

    Hi Jukka,
    Mobile policy doesn't apply to clients using the Full Client download.  Please open a support case so the team can assist in further troubleshooting.
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • Unable to open windows using boot camp.  Get message "The bless tool was unable to set the current boot disk."  Any thoughts, Thank you.

    Unable to open windows using boot camp.  Get message "The bless tool was unable to set the current boot disk."   I am using an Imac , Lion operating system, and Windows 7.  It worked a few days ago.  Any thoughts, Thank you.

    Note that nowhere in the Boot Camp instructions does it tell you to use Disk Utility to format the Windows partition. The Boot Camp Assistant program creates the partition & sets the +partition scheme info+ of the disk as appropriate for the Windows installer but the Windows installer itself is responsible for formatting the new partition with the appropriate +file system scheme+ (NTFS for Windows 7).
    If you follow the instructions in the Boot Camp Installation & Setup Guide to the letter you should have no problems installing Windows.

  • Can set the cursor in next line when user inputted one record?table control

    For Dnypro Table control
    I just know when data check error, we can set the cursor to the error field of current line.
    Now user hope that after they inputted the data of one record, he enter the [ENTER], the cursor can be set to the next new line's first field.
    I tried to use such as
    [SET CURSOR FIELD 'WA_XXXX-XXXXX' LINES 5.].
    But if no any error , the cursor will be automatically setted to the field which setted at Cursor position in Dnypro's attribution
    Can it be realized?
    Thanks.

    try to use same procedure as when you program page down:
      DATA: ITAB_LINES LIKE SY-TABIX,
            FIRST_LINE LIKE SY-TABIX,
            J LIKE SY-TABIX.
      GET CURSOR FIELD CURSOR_FIELD.       "to see what Loop is selected
      DESCRIBE TABLE IRE05 LINES ITAB_LINES.
      RE05-LINES = ITAB_LINES.
        WHEN 'P+'.
    FIRST_LINE = RE05-TOP_LINE + LOOPLINE_IRE05.
    ->      FIRST_LINE = RE05-TOP_LINE + 1.
          J = RE05-LINES - LOOPLINE_IRE05 + 1.
          IF J LE 0.
            J = 1.
          ENDIF.
          IF FIRST_LINE LE J.
            RE05-TOP_LINE = FIRST_LINE.
          ELSE.
            RE05-TOP_LINE = J.
          ENDIF.
    Edited by: Andreas Mann on Feb 28, 2008 11:46 AM

  • How to set the cursor to one point (x0, y0)

    Hello
    I work with swing and I have done a GUI.
    In the GUI, I have some points. When I approach one point (x0, y0), I would like to set the cursor of the mouse to the exact position (x0, y0). But I can't find the class that can set the position of the cursor.
    Could anyone help me, thanks.
    danfei

    Have a look at Robot-class, there's a method mouseMove.
    Hope that helps.

  • How do I set the cursor in the text response of a message box

    I am using TestStand 4.1.1. During testing I need to scan in some data from the operator.
    I am using a message popup with the text response box enabled. My problem is the cursor does not automatically appear in the text box at run time. I don't want to have to place the mouse in the box each time.
    Is there someway to set the cursor to automatically be in the text box.
    Regards,
    Don1.
    Solved!
    Go to Solution.

    Hi,
    You have to make the Response Box the active control. You will find the 'Active Control' control in the main tab of the Message Box setup properties window.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • When typing in a website after opening in a tab, the cursor focuses to the address bar and makes logging to things difficult, how do I change this?

    As stated in the question on any website I open regardless of whether it is a new tab or just a new destination, the cursor focuses on the address bar and makes logging in to sites very infuriating. Any help is much appreciated.

    Thanks for the help, it didn't help with this particular problem. I figured it out though, I had an issue with the AVG safe search. I had to just delete the file in the program files x86.

  • Error deploying EJB on weblogic: Unable to set the transaction attribute

    Hi,
    I'm trying to deploy an application in WL10.3.2 and an error occurred during activation of changes.
    Here is the error message from the log file:
    <Jun 6, 2011 1:28:27 PM MDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'serverEAR-2' due to error weblogic.application.ModuleException: Exception preparing module: EJBModule(serverEJB-2.8.0.jar)
    Unable to deploy EJB: C:\oracle\Middleware\user_projects\domains\base_domain\servers\Server_3\tmp\_WL_user\serverEAR-2\1zw7ao\serverEJB-2.8.0.jar from serverEJB-2.8.0.jar:
    Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
    weblogic.application.ModuleException: Exception preparing module: EJBModule(serverEJB-2.8.0.jar)
    Unable to deploy EJB: C:\oracle\Middleware\user_projects\domains\base_domain\servers\Server_3\tmp\_WL_user\serverEAR-2\1zw7ao\serverEJB-2.8.0.jar from serverEJB-2.8.0.jar:
    Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:454)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.ejb.container.deployer.DeploymentDescriptorException: Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
         at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processCTs(MBeanDeploymentInfoImpl.java:1502)
         at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processSpecificMethodCTs(MBeanDeploymentInfoImpl.java:1472)
         at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeTransactionAttribute(MBeanDeploymentInfoImpl.java:773)
         at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:259)
         at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1190)
         Truncated. see log file for complete stacktrace
    Please help me...Thanks.

    In your ejb-jar.xml you are referring to a method saveActionGroup(EditableActionGroup) which is not defined in your remote interface.
    Maybe you have made some typo in the configuration. Check your transaction section, i.e.,
    <container-transaction>
                <method>
                    <ejb-name>ViewBean</ejb-name>
                    <method-name>saveActionGroup</method-name>
                    <method-params>
                        <method-param>package.EditableActionGroup</method-param>
                    </method-params>
                </method>
                <trans-attribute>Required</trans-attribute>
    </container-transaction>or something similar. See if the defined methods are corresponding to the methods defined in the remote interface.

  • Unable to set the ip address for hosted network client after creating WIFI hotspot

    Original Title: INTERNET CONNECTIVITY PROBLEM WITH MY LAPTOP WIFI HOTSPOT
    HI all
    I am able to use internet connection from my lap hotspot, when the internet source is Public or private wifi.
    so I know the cmd window commands for hotspot and settings of client(sharing to hosted network client, assigning IP address etc.,)
    but the problem I am facing is slight different
    I am using my cdma wireless broadband datacard as my source internet connection(Reliance netconnect +)
    when I try to create hotspot for this, as usual I am able to create the hotspot and able to share the internet to hostednework client.
    but I am unable to set the ip address for hosted network client, if I try to set ip 192.169.137.1 and 255.255.255.0
    as soon as I close the window, the ip address also disappears
    when connect my android phone to that hotspot, it is able to connect but there is no internet connectivity.
    when I check the hostednetwork client for packet transmission, both sent and received packet is happening., I mean transmitting
    so what cause the failure in internet connectivity but success in hotspot connectivity?
    check the screen shots...
    can u help me..
    its little complicated

    Hi,
    Please make sure the Ad hoc connection IP adress is at the same range with your local connection. In addition, how about recreate the ad hoc connection for test, please have a try.
    If problem persists, please use Network troubleshooter in Action Center to fix this problem for test.
    Roger Lu
    TechNet Community Support

  • Unable to set the colorIndex Property of the Interior Class

    HI
    Iam trying to Update the Accound Dim with New Property 'CostAcc" IN SAP BPC.
    i entered the text and lenth of the property then i clicked on Modify The Dim Property. then its giving a warning message"Unable to set the colorIndex Property of the Interior Class"
    BPC Experts pls send me a  sollution
    Thanks in advance
    Regards
    NarsiP
    SAP BPC Consultant
    OutLookSoft SA

    Did you process your account dimension before to add you property?
    Are you sure that your account dimension was working before to apply your modification?
    Did you add just one property ore more properties?
    Did you delete any existing properties?
    Did you try to do modify account dimension without adding any porperties to see if that dimension is fine?
    Regards
    Sorin Radulescu

Maybe you are looking for

  • Itunes and apple tv issue

    i recently bought an apple tv device and when i download tintin on my computer and try to view it on my tv using home sharing an error message comes up asking me to authorize the computer. Which i did but it still doesnt work. help me plz

  • Which lenovo models have BIOS option to choose discrete graphics

    I am planning on buying a Lenovo with an Nvidia graphics card. Apparently, only the expensive Lenovos have an option in the BIOS to choose 'discrete graphics' or the dedicated graphics card. The cheaper Lenovos only have a choice between 'Switchable

  • Drill Through in EIS

    I am having an issue with EIS metaoutline. Below is my scenario, We have a metaoutline for drillthrough from ASO cube with multiple hierarchies enabled. So by default the dimension becomes 'Label Only' and the dimension data value is inherited from t

  • My Photoshop CS5 is missing from the App. directory but the folder to reinstall has vanished. How can I reinstall???

    I do not have a disc & believe I got it when I bought this desktop in 2011. All other software in the Creative Suite works fine but Photoshop says: "Some of the application components are missing from the Application directory. Please reinstall the a

  • Tutorial help

    hi everybody i m trying to follow the instructions in the tutorial and trying to run the examples, in the jaxrpc chapter whenever i do a ANT RUN im getting this error - not able to find what package im exactly missing. im loooking for an api - which