Setting focus after PPR in Adv. Table

Hi all,
     I've seen some topics related with this question but in none of them I could find the answer. I have an Adv. Table which has PPR per line, in other words, Row1 has a MessageChoice with firePartialAction to enable or disable fields in the same Row. The PPR works fine, the problem is that after PPR the focus is tabbed out to somewhere else in the page. Is there a way to keep the focus on the same row and in the same field or move it to a specific field after PPR.
Thanks in advance,
Eduardo

Eduardo ,
What u said makes sense, but since previously to CU3 this profile option is not there, so, the thinking might be to show the consistent thing in new patch also, with a profile option to users, if they want tab out feature.
Anyways, thats' immaterial as ur problem is solved. :)
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Input Text in a row of a table is not getting focused after PPR

    Hi All,
    I have a use case where the form will have a table and one of the columns will have inputtext and the other column will have outputtext. Once the user enters some data in inputtext and presses the down arrow, i am using autosubmit and valuechangelistener to call some method in bb which will show popup in the page. And after selecting some value from popup, i close the popup by setting the first row's outputtext with some data and wants to make the cursor focus to the next row's inputtext.
    Its working without PPR, but when we use PPR to set the outputtext component, its failing the focus is getting lost. Any ideas would be helpful.
    Regards,
    N

    Hi,
    Check following will helpul
    http://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus

  • Set focus on cell in ATS Table

    Hi Friends,
    I try to set the focus on a field in a if_fpm_guibb_list.
    I use Methode request_focus_on_cell in if_fpm_list_ats_ext_ctrl.
    And I set lead Index to new line and set selected_line _changes to 'X'.
    When I look in the table what contain the new position, it contains the Data for the new position.
    But the cursor is not jumping to the Cell.
    Is there something in addition what I have to do?
    Thanks in advance
    Joerg.

    Hi Joerg,
    I'm facing exactly the same problem. I want to set the focus to a cell in an FPM_LIST_UIBB and REQUEST_FOCUS_ON_CELL in method GET_DATA looked promising, but the cursor is not set to the field.
    Only the lead index of the table is changed to the correct line if I set parameter CV_LEAD_INDEX in method GET_DATA.
    Did you find a solution?
    Thanks,
    Karsten

  • Please::Getting Data Through Setting Focus On Row in ADFReadOnly Table ? ??

    Hi All ;
    By clicking on tableSelectOne on Row in ADFReadOnly I can Get All of the rest of the Row Data in inputtexts ;
    I want To Do The Same Action not By clicking on tableSelectOne but by clicking on any Cell On This Row , Can any body help by example ??
    Regards;

    Abu,
    here's a website full of such hints
    http://www.oracle.com/technology/jsf/index.html
    your usecase is
    http://vgoldin.blogspot.com/2007/01/Weing-aftableselectone-by-clicking.html
    Frank

  • Setting Focus Problems

    When using focusManager.setFocus(txtfield) in a module, it appears to loose its focus.
    I'm not sure why this is happening, since I am setting focus after the module has been created. The following is the code for my module:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         creationComplete="mdl_init()"
    >
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              showBusyCursor="true"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        //Alert.show(txt_name.text + "|" + txt_password.text);
                        LoginRemote.sign_in(txt_username.text, txt_password.text);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
         <mx:Panel
              id="pnl_signin"
              title="Sign In"
              horizontalAlign="center"
              verticalAlign="middle"
         >
              <mx:Form
                   id="frm_signin"
                   cornerRadius="5"
                   defaultButton="{btn_signin}"
              >
                   <mx:FormItem
                        id="fi_username"
                        label="Username:"
                   >
                        <mx:TextInput
                             id="txt_username"
                        />
                   </mx:FormItem>
                   <mx:FormItem
                        id="fi_password"
                        label="Password:"
                   >
                        <mx:TextInput
                             id="txt_password"
                             displayAsPassword="true"
                        />
                   </mx:FormItem>
              </mx:Form>
              <mx:ControlBar>
                   <mx:LinkButton
                        id="lnk_request_password"
                        label="Forgot your password?"
                        click="currentState='RequestPassword'"
                   />
                   <mx:Spacer
                        id="spc_spacer"
                        width="100%"
                   />
                   <mx:Button
                        id="btn_signin"
                        label="Sign In"
                        click="sign_in(event)"
                   />
              </mx:ControlBar>
         </mx:Panel>
         <mx:states>
              <mx:State
                   name="RequestPassword"
              >
                   <mx:SetProperty
                        target="{pnl_signin}"
                        name="title"
                        value="Request New Password"
                   />
                   <mx:SetProperty
                        target="{btn_signin}"
                        name="label"
                        value="Submit Request"
                   />
                   <mx:RemoveChild
                        target="{lnk_request_password}"
                   />
                   <mx:RemoveChild
                        target="{fi_password}"
                   />
                   <mx:AddChild
                        relativeTo="{spc_spacer}"
                        position="before"
                   >
                        <mx:target>
                             <mx:LinkButton
                                  id="lnk_sign_in"
                                  label="Return to Sign In form."
                                  click="currentState=''"
                             />
                        </mx:target>
                   </mx:AddChild>
              </mx:State>
         </mx:states>
         <mx:transitions>
              <mx:Transition
                   fromState="*"
                   toState="*"
              >
                   <mx:Parallel
                        id="trn_default"
                        targets="{['RequestPassword']}"
                   >
                        <mx:Fade
                             alphaFrom="0.0"
                             alphaTo="1.0"
                        />
                   </mx:Parallel>
              </mx:Transition>
         </mx:transitions>
    </mx:Module>
    Ideas?
    Thanks!
    Mike

    Hi there, there's a constraint between flash player and web browsers so in order to gain focus in any object inside the flash player you must manually click inside the flash player instance.

  • ADF Question: Set focus in table after ppr

    Hi all,
    I am using JDeveloper 10.1.3.3 with ADF and BC.
    In my table I have two editable fields, itemCode and quantity.
    When I hit enter in the itemCode, I execute a method in the backing bean, and the table is ppr refreshed.
    After that, I want the focus to go to the next field, quantity.
    I have tried following this example: http://www.bloggingaboutoracle.org/archives/focussing-conditionally-in-a-table-after-a-partial-page-refresh
    However, the focusItem string never has the row index included. So the focus never gets set correctly.
    Next I tried doing it via javascript, changing the focus after the event by adding a partial target to a script tag that sets the focus. However, the row index at this time is not what it was at the time of entering the itemCode.
    It looks like the rowIndex (ie: form1:table1:rowIndex:quantity) is changing after the ppr event. At the beginning (when entering the item) it is 0, but after the ppr, it is 1 or 3 or something else...
    How can I get this row id? OR how can I go about setting the focus to that next field (quantity) after the ppr?
    Thanks,
    Heather

    Hi,
    the row index should always be in synch with the underlying binding. So if you get the current rows position in the iterator then you know its index in the table
    Frank

  • How to set focus on a textinput/poplist using PPR

    HI,
    Is it possible to use PPR to set focus on a Text input or Poplist.
    if Yes, which attribute in the UI Item we need to use?
    will the attribute 'Access Key' work for the same?
    If PPR is not an option then getting a java bean for the UI Item is the only option?
    Thanks,
    Gowtam.

    Gowtam,
    No, the two basic differences between PPR and fire action!
    1)Fire action submit the entire OA Page Form elements, while PPR only refreshes the form components of that particular region.
    2)When PPR event is done, framework neglects any other action done on the page.
    Now, like your basic question, why should u use PPR event ?Instead y not firaction always?
    The reason is the very first defination of PPR.If i have n number of items on my page, if I define every action as fire action after each event page will refresh, so even for a small update like vanishing a field, i have to refresh the entire page which will be unusual for the user because it will take some time to load if page has some heavy components like hgrids , tables etc. Thats y we prefer PPR event over fire action in case of individual events, which is much fast, refreshing only particular form items.
    In standard j2ee web applications, the same is done using DHTML and javascript.
    I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to set focus on a input field in a selected row of a table?

    In a previous discussion (http://scn.sap.com/thread/3564789) I asked how to access an input (sap.m.Input) field of a selected row in a table. In the answer that was supplied I was shown how to get the items of the table. Then using the selected index to get the selected item get the cells. Then I could set editable on the proper cell(s). This worked fine.
    Now I need to set the focus on one of the fields. I tried something like this:
                var oNewLink = table.getSelectedItem();
                var oNewLinkName = oNewLink.getCells()[1];
                oNewLinkName.focus();
    But this doesn't seem to work.
    I have searched through other discussions and have seen this technique for putting focus on a field if you have its ID:
    sap.ui.getCore().byId(id_of_the_input_field).$().focus();
    In my case though I do not have an ID since the row and its cells are generated. How can I set focus on the cell of a certain row in a table?

    Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
    Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text?

  • Focus after Setting a Form Value within the Validate Event ( =8.8)

    Hi
    Setting Values within Validate Event sets Focus incorrectly on SAP >= 8.8
    The following  example works fine  on SAP 2007.
    Why i don't like this behaviour
      -I didn't found an easy workaround to fix it
      -SetMatrixCellWithoutValidation has the right behaviour but only works with Userdefined - Columns
      -It's a quite common usecase to validate something and in the same step set some values after successful validating (or cancel the input by using BubbleEvent = False)
      -It just worked for 6 years now
      -I have developed around 20+ AddOns and i'm running into this Regression Issue more and more.
    But maybe i'm just missing something.
    So how would you solve the following code now with Versions >= 8.8 ?
    Thanks for any enlightment!
    private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                // 11.08.2011 knp
                // use case is for example setting the price according a custom price table
                // it's triggered by the item column in the sales order matrix and sets the unit price
                // Expected: Focus is on the column after "Item" column
                // Result:   Focus is on column after the "Unit Price" column
    validation
                if (pVal.InnerEvent == false)
                    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE)
                        if ((pVal.FormTypeEx == "139"))
                            if (pVal.BeforeAction == true)
                                if (pVal.ItemUID == "38")
                                    if (pVal.ColUID == "1") // item code
                                        SAPbouiCOM.Matrix oMtx = (SAPbouiCOM.Matrix)SBO_Application.Forms.Item(pVal.FormUID).Items.Item("38").Specific;
                                        SAPbouiCOM.EditText oEd = (SAPbouiCOM.EditText)oMtx.Columns.Item("14").Cells.Item(pVal.Row).Specific;
                                        oEd.Value = "2";

    Hi
    Try this
    private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                // 11.08.2011 knp
                // use case is for example setting the price according a custom price table
                // it's triggered by the item column in the sales order matrix and sets the unit price
                // Expected: Focus is on the column after "Item" column
                // Result:   Focus is on column after the "Unit Price" column
    validation
                if (pVal.InnerEvent == false)
                    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE)
                        if ((pVal.FormTypeEx == "139"))
                            if (pVal.BeforeAction == true)
                                if (pVal.ItemUID == "38")
                                    if (pVal.ColUID == "1") // item code
                                        SAPbouiCOM.Matrix oMtx = (SAPbouiCOM.Matrix)SBO_Application.Forms.Item(pVal.FormUID).Items.Item("38").Specific;
                                        SAPbouiCOM.EditText oEd = (SAPbouiCOM.EditText)oMtx.Columns.Item("14").Cells.Item(pVal.Row).Specific;
                                        oEd.Value = "2";
                                        oMtx.Columns.Item("1").Cells.Item(pVal.Row).Click(SAPbouiCOM.BoCellClickType.ct_Regular, 0);
    Regards
    Arun

  • How do I set focus to a text field after I click a button that calls a webservice?

    I have a web service that returns back a table. In order to show the values in the table I had to check the re-merge Form Data on the Webservice Button.  My question is , How do I set focus to a field on the screen after re-merge happens.

    I was reading SetFocus documentation and it says
    You cannot use  setFocus with the form:ready, layout:ready, or initialize events.
    What I need is an event like doc:ready or someother event where I can put the set focus code in. doc:ready was triggered when the form first loads which is great and I was able to put my Initial setfocus. When I pressed the button that calls the webservice and thr re-merge happened doc:ready event was not triggered so now I am not sure where to put the set focus.

  • Setting focus to inputText of newly created row in af:table

    Using Jdev Ps4
    Simple use case:
    I have an af:table with a few columns and a createInsert button.
    When I press the createInsert button, a new record is added to the table.
    How can I set focus to the first inputText of that newly created row?
    I have been looking for a solution online but all the examples online tell us how to set focus to components that already exist and you know the ID of. With the newly created row, you don't have the ID so you cannot set the focus.
    In this topic (which is quite old...) https://kr.forums.oracle.com/forums/thread.jspa?threadID=643924 Frank Nimphius explained that it would be difficult and he would pass it on to the developers.
    I haven't found any information if there are some enhancements in this area to make this work...
    I tried with using plain old javascript by looping through the dom structure but had no success in doing so...
    Thanks
    Yannick
    Edited by: Yannick Ongena on Apr 2, 2012 8:38 AM

    Yannick,
    can you check this?
    how to get focus on newly created row in table?
    ~Abhijit

  • How  to set focus on next row inputfield in table

    Hello all,
    How  to set focus on next row input field in table
    Please help.
    Thanks in advance.
    CSP

    Hi,
    use the following code
    wdThis.wdGetAPI().requestFocus(nodeElement, attribute)
    Ex:
    Provide the attribute and replace the nodeElement with that of yours
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your attribute");
           wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attributeInfo);
    Regards
    Ayyapparaj

  • How to set focus programmatically in a table ?

    Sir,
    How to set focus programmatically in a table using javascript?
    Is it document.getElementById('form1:table1:i:column1').focus(); ?
    Thanks
    Stephen

    Repost

  • ADF AutoSubmit True column Loosing Focus after hitting Tab

    Hi,
    I am on 11.1.2.2.0. I have implemented af:table component and inside table on few columns I have autoSubmit="true" immediate="true" . After entering values into those columns when I hit Tab (To go to next field in table) , it goes to next field and looses focus. Is there any work around or fix to overcome this issue ?
    Thanks and Regards,
    Jit

    Hi,
    Thanks for the links. My requirement is to set focus inside af:table. Inside table I have say 5 fields.
    3rd Field is LOV and 4th fields is Text. After entering LOV info in Field3 focus should go to field4(which is inputText).
    I tried
    Frank's Blog
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    AMIS Blog
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    This works for ADF Form entry. When I tried implement this in table the field id(eg it4) is not picked.
    I found other blog for where it is mentioned field id dwill be different in case of Table.
    http://www.bartkummel.net/2009/11/oracle-adf-set-focus-to-input-field-in-data-table/#respond
    Do you have any idea how to get Table id or help in building this field id in Table ?
    Thanks and Regards,
    Jit

  • How to use PPR in Adv Tbl specific row specific UI element/attr/field

    I have an editable advanced table, it has a controlling column that depending on the value you select will require or not require specific fields
    how do I use ppr to enable this feature without risking affecting the other rows within the advanced table?
    Example
    Sample Table
    Row 1, Value is "A" = Field 2 and Field3 is required
    Row 2, Value is "B" = Filed 2 is required Field 3 is not

    Found a solution.
    Create a transient attribute in the Adv Table target VO that will store "require" flags, e.g. RequireField1
    Modify target field Required Attribute in the Advanced table UI, spel must point to this value.
    catch and pass EVENT_SOURCE_ROW_ID_PARAM in the PPR event to the AM method.
    set the RequiredField transient attr,

Maybe you are looking for

  • MSI USA Casemod contest!

    http://www.msicomputer.com/msiforms/casemod.asp border=0>       HEIGHT="1">       src="http://www.msicomputer.com/msiforms/image_CaseMod/title.gif"       width=740>                   src="http://www.msicomputer.com/msiforms/image_CaseMod/image1.gif"

  • Charaction Relationship User Exit

    Hi, all. In our project we encountered with one problem with BI IP. We have characteristic relationship based on attribute without derivation, but the problem in that control date don't work correct. We tried solve this problem, but we didn't its. An

  • When I try to enter my Apple TV through iTunes, it closes iTunes

    If I have iTunes open and try to select AppleTV to view it's contents, as soon as I select AppleTV, it kicks me out of iTunes

  • N70 MMS image distortion after firmware upgrade.

    Does anyone know why my phone now distorts all images I put into an mms if they are in a portrait format? It seems to stretch them all to landscape format. I sent one to a friend and asked if it looked distorted at their end and they said it did. It

  • Joining data files(tables) in Integrator

    Hello, I am building a graph in Integrator where I am reading data from multiple csv files. I could join them in two ways. Please explain which of following way is better from performance point of view. 1. Use one ExtHashJoin component and provide in