Focus on first item on the page

Allthough I have this setting activated for my login page and my first item is user name, the focus is set to password. Is there anything I forgot? Funny enough, on one of my other applications works right.
Denes Kubicek

     What is the difference between these ways:
onLoad="html_GetElement('P101_USERNAME').focus();"
And
<script type="text/javascript">
first_field('P101_USERNAME');
</script>
     For some reason, I was able to set the focus by using the second method, but never success on first. Could you or someone to help me undsertand what the
possible reason is. What I did is : set Cursor focus to <b>do not focus cursor</b> and put onLoad="html_GetElement('P101_USERNAME').focus();" into Page HTML Body Attribute.
I am also check the #ONLOAD# on my page template .
    Another question is: I have an item on a page which is a text field. It's focused every time page is loaded. but I put a "onChange" event on this item which calls a
confirm message box. If "Yes", then submit the page, If "No", clear the item and set the focus on the item again. I am having trouble to have the cusor re-focus on
the item again. Anyone could help. Thanks in advance for the help. Here is the code I put at page attribute;
<script language="JavaScript1.1" type="text/javascript">
function test(form){
   var conmod = confirm("Are you sure you want to submit");
   if (conmod == true)
      doSubmit();
   else
   form.P2_BE.focus() ;
   form.P2_BE.value='';
</script>
I am using version 1.6
Regards,
Ran

Similar Messages

  • Is it possible to retrieve deleted items from the Pages App please?

    IIs it possible to retrieve deleted items from the Pages App? Thanks

    From within the Pages app, no. If you have an iTunes or iCloud backup that would have contained the file, and you are backing up Pages, it could be received via a restore using that backup (this would wipe out any newer data however).

  • Final total cannot appear when the last line item reached the page end

    Hi All,
    My report included 2 pages. Problem is the final total cannot appear when the last line item reached the page end. (page 2)
    final total will appear on the middle of last page (page 3) when i comment (type    = 'BOTTOM').
    Below is the program.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = 'X'
          form     = 'ZBOTM_VOUCHER'
          language = sy-langu.
      sort itab by vblnr.
      LOOP AT itab INTO wa_itab.
        move wa_itab-vblnr to reguh-vblnr.
        move wa_itab-lifnr to reguh-lifnr.
        move wa_itab-rbetr to reguh-rbetr.
        reguh-rbetr = reguh-rbetr * -1.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window  = 'MAIN'
            element = 'DETAIL'.
        t_rbetr = reguh-rbetr + t_rbetr.
        AT LAST.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window = 'LINE'.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'TOTAL'.
              type    = 'BOTTOM'
              WINDOW  = 'MAIN'.
        ENDAT.
    Thanks.

    Hi,
    Where should I include the code for bottom?
    How to open text editor?
    Thanks.
    Edited by: Alice8 on Feb 7, 2011 9:09 AM

  • How to use application item in the page template

    How to use application item in the page template.
    Thanks,
    rajendra

    Hi,
    You can refer application item value in template like &MY_ITEM. (note period at end)
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_sub.htm
    Regards,
    Jari

  • How can i show the first item in the list as selected item

    Aslam o Alikum (Hi)
    Dear All
    How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
    Take Care
    Allah Hafiz

    Hi!
    You can set list "initial value" using When-Create-Record trigger.
    I.g.
    :<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1);

  • Defaulting a dropdown to the first item in the list

    I have two dropdowns in InfoPath 2010. The second dropdown gets populated depending on what the first dropdown is set to.
    Example: If the first is set to Florida, the second will display all the cities in Florida. If you set the first to Georgia, the second will change to a list of cities in Georgia.
    The problem is that it defaults to a blank line, I need the first item in the second dropdown to populate with the first item in the list.
    I've scoured the web but I can't seem to find a solution.
    Any solutions or workarounds?

    Hi,
    To achieve your requirement,  creating cascading dropdown fields with InfoPath.
    Please refer to the following blogs about creating cascade drop down in InfoPath form step by step:
    http://blogs.msdn.com/b/bharatgupta/archive/2013/03/07/create-cascading-dropdown-in-browser-enabled-infopath-form-using-infopath-2010.aspx
    For the issue that second dropdown defaults to a blank line, add a formatting rule to the first dropdown. Refer to the following articles:
    http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
    http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Please help me add items to the Pages invoice doc keeping the formulas

    Please help me add items to the Pages invoice doc keeping the formulas ie that they will add together and give me a total

    this is the template I am Referring to...

  • Hide "more" button in a list view, only works for first item in the list

    I have the following code in a list view that outputs several dozen items in a web app.  The code only works for the first item, how can I make it loop through and execute the test for each item in the list view?  The {tag_hide more button} is a checkmark field that yields a numeric 1" if checked otherwise yields a numeric "0".
    <div id="more-option">
            <p class="right"><a href="{tag_itemurl_nolink}" class="btn btn-small btn-very-subtle">More &rarr;</a></p>
          </div>
          <div class="more-selection" style="display: none;">{tag_hide more button}</div>
          <script>
    if ($(".more-selection").text() == "1") {
        $("#more-option").hide();
    </script>

    What's the URL for the site where you are using this?  Offhand, it looks like it should work with your first example so you are either placing the script before those elements are loaded or you might try wrapping your current javascript inside the:
    $(document).ready(function() {
    --- your existing javascript here
    This make sure the code runs once all the html is loaded on the page.  Without seeing a URL and debugging with the js console in Chrome I can't give you a solid answer.
    But, I do know that you can probably do this with a lot less markup.  Once we figure out what the actual problem is I have a better solution mocked up for you on jsfiddle.
    When looking at my HTML code on jsfiddle, please realize I setup some dummy HTML and removed your tags and added actual values which would be output by your tags.  The main thing I did was remove the whole div.more-selection and instead, added a "data-is-selected" attribute on your div.more-option element.  Then, in my javascript for each div.my-option element on the page, we loop through them, find the value of that data attribute and hide that div if it's less than 1 (or 0).
    Here's the fiddle for you to look at:  http://jsfiddle.net/thetrickster/Mfmdu/
    You'll see in the end result that only two divs show up, both of those divs have data-is-selected="1".
    You can try pasting the javascript code near the closing </body> tag on your page and make sure to wrap my js inside a <script> tag, obviously.  My way is neater on the markup side.  If you can't get it to work it's likely a jquery conflict issue.  My version is using the $(document).ready() method to make sure all the code is loaded before it runs.
    Best,
    Chris

  • Always first item from the punchout catalog will get missed in SRM cart

    Hi All,
    Recently we have configured the vendor punch-out catalog in our SRM system. We are able to get in to their catalog and able to select the items. However we have observed the following.
    1) When we select 3 items from the list we get only 2 items in to our cart.
    2) When we select 4 items we get only 3 items to our cart
    It is noted that always the first item selected will be missing when comes to SRM shopping cart.
    We have debugged the Badi BBP_CATALOG_TRANSFER and observed in that only 2 items are entering in to SRM server in the first case and 3 items are entering in to SRM server in the second case.
    One more thing observed that when we select only one item in the catalog, that comes to our shopping cart without any issues.
    Can any body help me in this, is this issue with vendor side or can there be an issue at our SRM server.
    Thnaks
    psamp1

    I take it that you checked the CATALLOG_CONTENT table? Does the table CATALOG_CONTENT_ERRORS have any errors posted?
    Checking if the error is at the vendor site:
    Check the source code of the vendor just before the shopping cart is returned to SRM. Sometimes it's easy, just right-click in your browser and click 'show source'. This opens the source html of the page. Search for "NEW_ITEM" and see if all products are there.
    The difficult thing is that sometimes the vendor catalog uses a self-posting form. Timing is important then. Right after you click press the escape key, this stops your browser from continuing. Now do the above again.
    Things you can bump into: you're too quick, there is no form with the NEW_ITEM lines. You're too slow: you're back in SRM already. So if it doesn't work at the first try, try again.
    Check all the NEW_ITEM lines and see if the first item is missing there.

  • Displaying not hidden items in the page

    Hi,
    Could you please let me know how I can identify hidden items programmatically? i.e. We have some items in a page and suppose some of the items are hidden. I need to provide a list of not hidden items. How can I recognize hidden items and not to display them in my list?
    Regards,
    Setareh

    Thanks for your reply. But I need to identify hidden items not inactive or deleted items. So far I know active field in wwsbr_all_items doesn't get value for hidden items just for deleted, inactive, and active items.
    Regards,
    Setareh

  • 11G ADF BC: First time loading the page, how to disable some components?

    Hi,
    I have a fusion web application created using Jdev 11G ADF BC. I am working on a search/results page that has a panel split. In the left panel, there is a list of nevigation links. The data shows in the right panel.
    What I want to achieve here is to enable only one link on the left when the page is first loaded and it is a search/result page. Disable all the rest of it because other links are related to more info about the search results. When the page is first loaded, there is no data on the right, so that there is no more other data to look at. Ideally, all the rest of the links should be disabled and only the "Query" link should be active and selected.
    Is there a way to do this with 11G? Thank you very much for your help.
    Regards,
    Annie

    initially, what ever the components you want to disable set the disabled="true" in the jspx. Once you fetch the query results and in that action enable the componens like commandButton1.setDisabled(Boolean.FALSE);. that's how I am doing. You can dynamically enable/disable by having a boolean variable in the backing bean and set the disable property of component lke disabled="#{backingBeanScope.yourbean.blnAddBtn}".

  • Displaying text item inside the page I would like

    Hi, is it possible to open and display from text item link new window with formatting title, description and own text, but not only on the blank default page, but on the special page which I have created for this (with my layout as a template)?
    Thanks
    Marek

    Hi Marek,
    I believe what you are looking is for the new Portal 10.1.4 feature - itemplaceholder:-
    http://download.oracle.com/docs/cd/B14099_15/portal.1014/b13809/template.htm#CIADAEGG
    "You can use Portal Templates for items to enforce a particular layout, style, and associated content. With Portal Templates for items, a requested item displays within the layout defined by the template rather than in place on the item's container page. For example, when a link to an item displays on the item's container page, users click the link, and the item content displays within the context of its associated Portal Template. The item's content is displayed in place of the item placeholder on the template."
    I hope it helps...
    Cheers,
    Pedro.

  • Firefox will not let me contect to anything in the first inch of the page.

    If I use Firefox, I can not connect to any item in the top inch of the page. But if I just connect to the internet with internet explorer, I have no problem and can connect to anything on the page. Its bad because most of the pages have the main things at the top. It does not matter if the page is full size or smaller.
    I have deleted it and tried to reload it and that has not helped.
    I like using firefox, but I can not with this problem.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Filter on Table works only on the first display of the page

    Hi,
    I have a .jspx page with a databound table (I have just dragged and dropped a view object -> Create -> Tables -> ADF table; checked all checkboxes in the Edit Table Columns dialog). I run the page and use one of the column filters; everything works fine. Then I navigate to another page in the application and when returning to the initial page, the filter doesn't work anymore. I ran into this behavior on both JDev TP3 and TP4.
    Anca

    Hi Anca.
    I have the same problem myself. I believe is a bug in PanelCollection.
    /Florin

  • Parameters should be displayed in the "MessageTextInput" item of the page.

    Hi All,
    I am entering 2 parameters in the page,then passing them through HashMap from page 1 and these parameters has to be displayed in page 2 "MessageTextInput" field.How can I achieve this? I have used OAMessageTextInputBean.the piece of code is as below:
    String empName=(String)pageContext.getParameter("employeeName");
    String empNumber=(String)pageContext.getParameter("employeeNumber");
    OAMessageTextInputBean empNameBean=(OAMessageTextInputBean)webBean.findChildRecursive("employeeName");
    OAMessageTextInputBean empNumberBean=(OAMessageTextInputBean)webBean.findChildRecursive("employeeNumber");
    empNameBean.setValue(pageContext,empName);
    empNumberBean.setValue(pageContext,empNumber);
    Pls Help me to resolve this issue.
    Thanks,
    Akshata

    This code looks fine.
    What is the problem you are facing? Is it not populating or the parameters is having NULL values?
    Niranjana

Maybe you are looking for

  • Xfi decode tab missing - spdif soun

    ok, i've spent about 5 hours going through these forums. I have the retail version of the Xfi Xtremegamer that states I can have dolby/dts sound through powerdvd download. I have this connected to a p7800 inspire 7. speaker set. How do I get dolby /

  • What is JVM INSTR pop?

    Hi, Who give me meaning or utility of this code patches and importance: JVM INSTR pop ; if(true) goto L2; else goto L1 _L1: Example General method of this code: public final synchronized int a(byte abyte0[], int i, int j, int k) throws IOException _L

  • AE CS3 - Lost "CC particle world"

    So, I was working on a project and I went to save it, and it said: After Effects error: missing data in file. (33 :: 4 ) I was confused and upset at first, but then I went to search for particle world in my plugin search feature and noticed it wasn't

  • Thunar/Nautilus needs 30 sec to startup!

    Nautilus didn't work for me for a long time. It needet over 30 sec to startup. Now on the Thunar update(supporting Network searching / More Mount Options) it does take exactly the same long time to startup. Loopback is up and dbus-launch is also runn

  • I need experienced opinions!

    A few months ago my HD failed big time. Now I am again seeing the early warning signs. I have a OS on both drives to prevent a crash from taking me down again. Here is what is happening. First, during boot of OS 1 on WD400JD SATA I get a medium grey