Open a pop-up in the OnInputProcessing part of a web page with flow Logic

Dears all,
System used : SAP WebAs 6.20
I have a html page in my project where every user can choose some options with radio buttons. When the user choose something, he click on a button which send us in the OnInputProcessing part of the page.
In the OnInputProcessing, we will do a CALL FUNCTION. If the result is Ok, we must display a pop-up with only a OK button.
From the layout part of the page, I display a pop-up with success using this code :
SCRIPT language=javascript
   function ConfirmMessage() {
       var bflag = confirm("Are you sure that you want to confirm your offer ?")
       u2026
/SCRIPT
FORM
   <input type = "submit" onClickMethod="ConfirmMessage()" name="onInputProcessing(post)" value="Confirm">
/FORM
But I can't call this code form the OnInputProcessing. I try with the functions of the class : CL_JAVA_SCRIPT too, but nothing is displayed.
Someone can help me ?
Best Regards,
Nelson
To Insert the post I was obligated to remove all the ">" and "<" and rename OnClick in OnClickMethod...
Edited by: Nelson Antunes on Feb 11, 2009 10:02 AM

Hi Nelson ........ i wrote this test BSP page for you:
Page Attribute :
iv_visible type boolean.
OnCreate:
iv_visible = 'X'.
OnInputProcessing:
DATA:  event TYPE REF TO cl_htmlb_event.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
CASE event->name.
   WHEN 'button' .
    CASE event->id.
      WHEN 'BUTTON'.
        if iv_visible = 'X' .
          " data status type bollean.
          " call function 'FUNC'
          " EXOPORTING
          " status = status .
          " if status =  'X'.
             clear iv_visible .
          " else.
          "" do nothing
          "endif.
        endif.
      WHEN 'POPUP_OK'.
        " process action after the user confirm
      WHEN 'POPUP_CANCEL'.
        " process action after user press "cancel"
        " in confirm popup
        iv_visible = 'X'.
    ENDCASE.
ENDCASE.
Layout:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
  <htmlb:page title = " ">
    <htmlb:form>
          <% if iv_visible is not initial. %>
           <% else. %>
           <% endif. %>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>    
<style type="text/css">
    #confirm_popup{
      position: absolute;
      visibility: visible;
      border: 7px solid #001EA1;
      width: 300px;
      height: 50px;
      left: 400px;
      top: 300px;
      background-color: #ECE222;
</style>
Edited by: fabrizio gemma on Feb 13, 2009 5:49 PM
Edited by: fabrizio gemma on Feb 13, 2009 5:51 PM
Edited by: fabrizio gemma on Feb 13, 2009 5:52 PM
Edited by: fabrizio gemma on Feb 13, 2009 5:57 PM

Similar Messages

  • How to call the Page Fragment in Page with Flow logic

    Hi,
        I am new to BSP, My requirement is to created 1 page fragment which contains the Logo.  and to create 2 pages in flow logic
    The  logo has to apper in Pages with flow logic Pages. My question is how to call the PAge fragment in the 1 &2 pagesin page with flow logic
    Thanks,
    suresh

    Suresh,
    There is a very enriching portal help.sap.com  where you can find all basic and good documentation .
    http://help.sap.com/saphelp_nw04/helpdata/en/77/8a54d7434ff34784272a3df98ab645/content.htm
    the above link is from that portal.
    Before asking such basic questions please at least try to find or do some research yourself.
    There are standard applications like HTMLB_SAMPLES and SBSEXT_HTMLB and more for sample applications.
    Regards,
    Anubhav

  • Firefox wont let my mouse click on the top part of a web page it wont let the mouse curso recognize a link and wont let me click on links in about the top 2" of a web page

    if I am looking at a webpage doesnt matter which one and I move the cursor to a link in the top 2" or so of the page it will not recognize that it is a link and let me click on it the cursor stays just as the arrow and doesnt switch to the hand to let me click and open the link

    that was it I somehow figured it out right after I posted the question up here all I did was right click on the gray part of the tool bar and unchecked yahoo so it wouldn't show up thanks for the help.

  • I am seeing chinese text being displayed sometimes on the tab part of a web page display???? What do you think?!

    Chinese text sometimes appear on the tab for a web page

    Hello Mlbernard, the problem is mcafee site advisor extension, please try to disable or remove that extension and you are OK.
    see : [http://service.mcafee.com/faqdocument.aspx?id=TS100162 How to uninstall SiteAdvisor]
    '''check another option''', if works for you, without to uninstall the mcafee site advisor extension :
    disabled the add-on then close firefox and restart Firefox again. Then enable the add-on again, close firefox one more time and restart Firefox again. (works [https://support.mozilla.org/en-US/questions/1039845#answer-673562 here] :-))
    thank you

  • My college wifi opens a pop-up in the login process, which my ipad is not allowing. how can i get to allow pop-ups in login process?

    My college wifi opens a pop-up in the login process, which my ipad is not allowing. how can i get to allow pop-ups in login process?

    You may have pop-ups blocked.
    Go to Settings>Safari and turn "Block pop-ups" off. You may needs to restart the ipad after turning off this settings if it doesnt work immediately

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • Open message to Apple - why the **** do you force us to deal with this Genius Playlist crap if using iTunes Match?? GET AN OFF OPTION INSTALLED.   I AM PAYING FOR MATCH SO QUIT FORCING YOUR INANE ATTEMPTS AT WHAT YOU THINK I LIKE!!!!!!

    Open message to Apple - why the **** do you force us to deal with this Genius Playlist crap if using iTunes Match?? GET AN OFF OPTION INSTALLED.   I AM PAYING FOR MATCH - SO QUIT FORCING YOUR INANE ATTEMPTS AT WHAT YOU THINK I LIKE ON ME !!!!!!  YOU ALREADY HAVE THE OPTION WHEN MATCH IS OFF.  HOW CAN YOU POSSIBLY THINK THERE IS A CONNECTION?????   LET ME ME ME DECIDE!
    IF anyone knows how to turn that Genius crap OFF WHILE MATCH IS 'ON' - Please let me know. Under 10.7
    I HATE THESE PLAYLISTS - NEVER USE THEM- WASTES MY SCREEN REAL ESTATE..

    At the moment it is not possible to disable Genius Playlists on iOS devices. However, these forums are user-to-user forums and no Apple employees participate here. You would be better to submit your polite feedback via the Apple Feedback page: http://www.apple.com/feedback/

  • I am trying to download Elements 12. I've downloaded the two parts on your web site but when I run the second part it comes up with a message saying 'The file archive part of Adobe Photoshp Elements 12 is missing...'. What shoudl I do?

    I am trying to download Elements 12. I've downloaded the two parts on your web site but when I run the second part it comes up with a message saying 'The file archive part of Adobe Photoshp Elements 12 is missing...'. What should I do?

    Hello
    I’ve managed to get it to work now but not as straightforward as I’d have liked and difficult to find out how to get help.
    Rory

  • I cannot click anything on the upper part of any web

    When I want to click on any upper part of any web page, not the icons, but where it says "support" or sign in", the little hand does not show, therefore I cannot click on any of those.

    Both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I open a pdf file on the net, I can only view page 1. How do I get to the other pages?

    When I open a pdf file on the net, I can only view page 1 and cannot move to page 2, 3, etc. How can I change pages?

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

  • Using the Motorola Atrix w/ the laptop dock, when I open a web page with Firefox I have to hit "Ctl +" three times to make the page fill the screen. Is there any way to set up so pages open the right size?

    I'm using the Motorola Atrix smart phone with the Laptop Dock. When I open a web page with Firefox I have to hit "Ctl +" three times to make the page fill the screen. Is there any way to set up the Firefox browser to open the web pages the right size in the first place?

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • How do I remove the certificat error everytime I try to access the Cisco Unified CM Administration web-page?

    Hi,
    Every time I want to have access to the Cisco Unified CM Console (System version: 7.0.1.11000-2), I use the https://10.10.x.x/ccmadmin/showHome.do homepage on my client computer, but when I open the page, I get a SSL certificate error, stating no trust to this webpage security certificate and if I those "continue to this page (not recommended)", I get access to the Cisco Unified CM Console web page.
    I have tried to add the https://IP-adress to secure web pages in Internet Explorer 7, but this to no avail, it does not help.
    How do I add this certificate to a trusted something, so I do not get this warning every time I open the page?
    Kind regards,
    Carl-Marius

    Hi Michael,
    It worked when I change the IP-address to the name that was written in the certificate, and imported the certificate to Internet Explorer.
    Thank you for your fast and very precise help!
    Kind regards,
    Carl-Marius

  • How to take parts of a web page and feed into a PDF template to create a PDF

    Interesting quesiton that I think was what LiveCycle was for: How can someone take parts of a web page or xml document (say by id name or a specialized tag) and feed the chosen items into different regions inside a PDF template?
    Basically, can you identify areas on a page and then tie them to place holders in a pdf template (with high res graphics say) and create a PDF?
    Please note: this is not about converting a whole webpage to a pdf, but select portions of it.
    Anyone have experiences in doing this? So far, it appears to require a toolset like LiveCycle or Adlib to utilize only selected items and not the whole page.

    The lack of answers is likely due to folks having no clue. What you have asked is not really the purpose of either Acrobat or LiveCycle, but that is not to say it can not be done. A starting point is to bring a WEB page into Acrobat as a PDF. This can be done by printing from the browser to the Adobe PDF printer, using PDF Maker with IE or FIrefox, or simply creating directly in Acrobat. Those are the normal ways to get things from a web page to a PDF.
    That said, it is not what you asked. You are asking about being able to parse parts of the web page. That is a lot more work and may not be directly possible, though with JavaScript it might be possible. I suspect that if it is possible you would require a lot of extra programming to allow the material selection. It may be the folks in the SDK sub-forum can help.
    Being I have no clue how to implement what you have asked (and probably no one else either), I can only suggest some things to look at or other places to inquire. If you think the XML of LiveCycle would help, then you might try the LiveCycle forum.
    In terms of your post, I really don't remember seeing the original, but that was right near the end of the semester and I was not checking the forum very much. There are various reasons folks may not reply, typically because they have no clue. Templates are also somewhat specialized and there are not many posts about them. My guess is that the template aspect may have had a lot of folks skip the post. In any case, I have tried to give you some thoughts.

  • HT4356 How can I airprint part of a web page?

    How can I airprint part of a web page using iPad and Safari?

    Copy (or cut) the area you want to print, and paste it in to a new document.
    Or take a screen shot (by simultaneously holding Shift + Command + 4 keys) of the area you want to print, then print the resulting screen shot file (which appears on your desktop).

Maybe you are looking for

  • Problem removing grid lines from prints in PhotoShop Elements 13

    I cannot remove faint grid lines from my prints in Photoshop Elements 13, even after I've turned off the grid overlay. How can I get these lines out? I'm desperate as I am writing a book and am stymied at this point. Help!

  • The difference of HS.trans reference:Rate1 and Rate2

    Hi,    I am  a new for HFM. I want to know what are the difference of hs.trans reference:Rate1 and Rate 2.     Hs.Trans("DestPOV","Source POV","Rate1","Rate2")    Thanks for your reply anvanced.

  • Wireless/Wi-Fi Adapter

    Hello! I have downgraded my HP 2000 Notebook-PC-2C21NR to Win7 Enterprise 64-bit and the wireless was working fine then it just stopped.  I've tried uninstalling and reinstalling several of the drivers that I saw on other post but the light is still

  • Legal to trade?

    Is it legal to trade downloads purchased from Itunes and if so are there any websites promoting that? I have a ton of tv shows that I have purchased and only plan on watching once. I would love to trade them for other shows that I have not yet watche

  • Does Time Machine require a dedicated external drive, or can it include other files?

    After a misplaced library file, I'm having problems restoring some of the content on my MacBook Pro. I have a Time Machine backup on an external drive, but the drive also includes lots of other files that I want to exclude from the restore process. I