How to trigger a button without having to click it

In the view i have defined a button, and if a condition is met, i want that button to be triggered/clicked automatically so the processing continues as if someone had clicked the button.
  <phtmlb:matrixCell row = "2"
                     col = "1" />
  <htmlb:button id      = "newEntry"
                text    = "<%= otr(paoc_rcf_ui/new_entry) %>"
                width   = "10%"
                onClick = "onNewEntry" />
<b>  <%
  if not controller->pt_work_experience is initial.
  %>
  Trigger the above described button automatically
  <%
  endif.
  %></b>
Any simple code examples for this ?
Thanks in advance

is that case the js is right
<script>
document.getElementById('newEntry').click();
</script>
should work.
we need to resolve the js issue, if its resolved, this solution will work.
the following is a small sample page which i created. test it in your browser and let me know.
page attribute:
test type string.
test1 type string .
layout.
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form >
      <htmlb:button id = "MYB"
                          text    = "Press Me"
                    onClick = "myClickHandler" />
<% if test = 'Y' . %>
<script>
document.getElementById('MYB').click();
</script>
<% endif .
%>
   <%= test1 %>
      <% clear:test, test1 . %>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
oninputprocessing
test1 = 'Button Clicked' .
clear test .
save activate the page. run the page by passing ?test=Y at the end of the url, you will see the button automatically getting clicked pass test=N and notice its not getting clicked.
to identify the js error , i have to see the whole layout code of your page.
Regards
Raja

Similar Messages

  • Popups blocked on Yahoo. When I close Firefox there is a background advertisement on screen that has been hiding. How do I eliminate this without having to click again to remove?

    Annoying advertisement/request is hiding behind my Yahoo home page. I have popup block on Firefox options for Yahoo
    Perhaps this is a Yahoo issue? But resides in FF browser.

    File > exit is the right answer, instead of exiting from the top corner X.
    Thank you

  • Hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to

    hey i hav an hp pavilion g series n i would like to kno how use the function keys without having to click on the fn + function key

    Hi,
    You can change this in your system bios as described in the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT4623 I have never had a passcode to lock  my iPad. Now that I have updated it with IOS7 it is asking for one and is locked. How do I unlock this without having to reset the whole thing through iTunes????

    I have never had a passcode to lock  my iPad. Now that I have updated it with IOS7 it is asking for one and is locked. How do I unlock this without having to reset the whole thing through iTunes????

    Unfortunately, if the iPad is insisting that you use a passcode, there is no way around it other than to restore the device using iTunes on a computer, or by erasing it in iCloud.com via Find My iPhone.
    You could try resetting the iPad and cross your fingers and hope this is just a blip on the radar....hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears on the screen.

  • How do I send an email to everyone in my folders without having to click on every email address - thanks

    How can I email everyone in a contact folder without having to click on each email address individually - thanks

    Open a new message, click on the Address Book button (the silhouette of a person), choose All Contacts on the left hand side of the Address Book, select the first name, Hold down cmd and at the same time press a. All persons will be highlighted. Now click on the "To" button and all the persons will appear in the To window of your message. 
    I would reitterate Low Luster's warning about spamming though...

  • TS1424 Only partial songs downloaded when I purchased an album. How do I fix this without having the buy the whole album again?

    Only partial songs downloaded when I purchased an album. How do I fix this without having the buy the whole album again?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • How do I download all my songs from iCloud without having to click on each one?

    I have two computers and I would like to have my iTunes library on both. How do I download all my songs from iCloud without having to click on each one?

    Create a smart playlist with the criteria being location - not on this computer. Then select all, right click and download.

  • I have CS6 on my iMac.  I want to load it onto an external drive to use off my Mac Air.  I have the serial number.  How do I do this without having to subscribe to CC?

    I have CS6 on my iMac.  I want to load it onto an external drive to use off my Mac Air.  I have the serial number.  How do I do this without having to subscribe to CC?

    Note the min-requirements for PS CS6 on a Mac.
    Mac OS
    Multicore Intel® processor with 64-bit support
    Mac OS X v10.6.8 or v10.7
    1GB of RAM
    2GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on removable flash-based storage devices)
    1024×768 (1280×800 recommended) resolution display with 16-bit color and 256MB (512MB for Extended) of VRAM
    OpenGL 2.0-capable system
    DVD-ROM drive
    Nancy O.

  • How do i delete all of the emails in my in box without having to click on each and every one ?

    how do i delete all of the emails from my in box without having to click on each one ?

    Press CTRL+click on any empty checkbox to check them all.
    tt2

  • How to Download a batch of files without having to click on each file

    I installed download helper and when i watch a video there are alot of files playing how do i download all of them without having to click on every file in the helper drop down box

    anthony siciliano had this to say:
    I use Smugmug for my photo website. To upload photos to that site, I must convert my PSD files to JPGs and limit the file size of each photo to 12 MB.
    Almost all photo sites impose a size limit on each photo. Sometimes the
    size amount varies. 12M is a lot ...
    Since I am now shooting with a 21 megapixel camera, most of the photo files are over 12 MB when converted to JPGs (many are in the 20 MB range).
    Usually, the size is dependent on the dimensions you choose, and the
    resolution. If you limit your photos to approx 1024x768 with a
    resolution of 72 dpi (which is pretty standard for screen-only
    resolution), you'll find that your photo file sizes will be much
    reduced. Are you sure you need the resolution or size that you are
    using? If you're not selling prints (perhaps you are), then using a
    smaller, screen resolution only version will help.
    Is there a way to convert a batch of photos from PSD files to JPGs and limit the file size of each photo to 12 MB?  Thanks!!
    >
    The LR2Mogrify plugin can do that, I believe.

  • Unable to update iTunes or iPhone. Bonjour.msi was deleted by accident. How do I fix this without having to reinstall iTunes?, Unable to update iTunes or iPhone. Bonjour.msi was deleted by accident. How do I fix this without having to reinstall iTunes?

    Unable to update iTunes or iPhone. Bonjour.msi was deleted by accident. How do I fix this without having to do a reinstall?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I have a free app on my iphone, i would like to get it to my ipad..how do I get it without having to start over the entire game?

    I have a free app on my iphone, i would like to get it to my ipad..how do I get it without having to start over the entire game?

    If you use the same Apple ID on both devices, you can share apps, but you won't share the progress I'm afraid.

  • Macbook hard drive crashed, i lost windows for mac, bought a disc when i got the mac, no longer have the disc, need my apps, don't wanna pay for it again.  know how to get it quick without having to give my mac to the genius bar at apple store overnight

    macbook hard drive crashed, i lost windows for mac, bought a disc when i got the mac, no longer have the disc, need my apps, don't wanna pay for it again.  know how to get it quick without having to give my mac to the genius bar at apple store overnight?

    What is it you need - Windows installer disc or something else?  Your question is unclear.  Could you be more specific?

  • How do I update JSPs without having to restart WebLogic?

    How do I update JSPs without having to restart WebLogic? I have tried setting pageCheckSeconds to 0 in my weblogic.xml file. I have also tried setting Reload Period to 0 in the console. Please advise.
              

              Just bring up the Weblogic Console. Drill down to your webapp. De-select the Deploy
              option. Click on apply. Select the Deploy option and Click apply. Basically, Un-deploy
              and re-deploy your webapp.
              Later...
              - Wayne
              "cleve" <[email protected]> wrote:
              >which is here:
              >
              >http://e-docs.bea.com/wls/docs61////javadocs/weblogic/management/tools/WebAp
              >pComponentRefreshTool.html
              >
              >"Michael Young" <[email protected]> wrote in message
              >news:[email protected]..
              >> Try using the weblogic.refresh tool.
              >>
              >> regards,
              >> Michael
              >>
              >> Tony Nguyen wrote:
              >>
              >> > How do I update JSPs without having to restart WebLogic? I have tried
              >setting pageCheckSeconds to 0 in my weblogic.xml file. I have also tried
              >setting Reload Period to 0 in the console. Please advise.
              >>
              >> --
              >> Michael Young
              >> Developer Relations Engineer
              >> BEA Support
              >>
              >>
              >
              >
              

  • I had iPhoto on my Macbook when I bought it, but I had to replace my hard drive, reloaded now Leopard and now don't have iPhoto. How can I get it without having to pay for it again?

    I had to replace my hard drive and load Snow Leopard, but iPhoto is not there.  How can I get iPhoto without having to pay for it.

    The iLife that came with your MacBook is on the #2 gray disk that came with the MacBook.
    The App Store version of iLife ‘11 programs will only work with 10.7 or 10.8. You can get the iLife ’11 DVD which will run on 10.6  on eBay or Amazon.com fairly cheap.
    http://www.ebay.com/sch/i.html?_odkw=apple+ilife+11&LH_Auction=1&LH_BIN=1&_sop=1 2&_osacat=0&_from=R40&_trkparms=72%253A1234%257C66%253A2%257C65%253A12%257C39%25 3A1&LH_PrefLoc=1&_sc=1&_trksid=p2045573.m570.l2632.R2&_nkw=apple+ilife+11&_sacat =18793 
      http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?s=so ftware&ie=UTF8&qid=1376932206&sr=1-1&keywords=ilife+%2711

Maybe you are looking for

  • Can I use multiple SSIDs on the same intranet in close proximity?

    Can Multiple APs running the same or different channels be used with different SSIDs to create seperate wireless networks on the same intranet? Example: 4 APs running on the same floor of a small building, 2 APs using SSID named ABC using channels 1

  • LaserJet 5000 will not print more than one copy at a time.

    We have recently moved our office.  A LaserJet 5000 which is used as an office printer is shared through one of the computers on the network in the exact same way it was more we moved.  But since the move it will not print multiple copies of the same

  • Hard drive erasing issue

    Ive been having issues lately with my Intel iMac locking up and freezing on me. Today while logging out the machine locked up, the spinning black circle on the screen stopped so i turned off and back on again. I disconnected all accesories bar the ap

  • Trouble using USB keyboard with GarageBand

    I have a Yamaha DGX-305 keyboard with a USB out. I want to record the real instrument using GarageBand, rather than using MIDI input. Is this possible? GarageBand isn't recognizing the keyboard when I simply plug it in. I've downloaded what looks to

  • Need contract (template) for new web business

    I am just getting started in the web design business and need help getting going with a contract for my customers. Advice? Where do I get started? Thanks!