cancel
Showing results for 
Search instead for 
Did you mean: 

Back to previous view

Former Member
0 Kudos

Hello,

I have a BSP application with MVC where

1) A.DO calls A.htm

2) A.htm calls B.DO

3) B.DO calls B.htm

in B.HTM I display a popup message with Javascript for yes/no. If the answer is NO the flow must go back to A.HTM as it was before. The BACK-button in the browser is inactive, so the user cannot click on it.

Is there an instruction or method for performing this task or must I call the previous steps in 3, 2 & 1 ??

Thanks !!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai Jorge,

A sample program to display Yes/No Dialog and raise

an event from the javascript.

You can tryout the code withflow logic.


<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<htmlb:content design="design2003" >
  <htmlb:page title="yesno " >
    <htmlb:form>
      <bsp:htmlbEvent name = "model_pop_event"
                      p1   = "choice" />
      <script type="text/javascript">
      <!--
      function yesnoconfirm()
      {
      var answer = confirm ("Are you having fun? (OK = Yes   Cancel = No)")
      model_pop_event( answer );
      }
      javascript:yesnoconfirm();
      // -->
      </script>
      <htmlb:textView text   = "Hello World!"
                      design = "EMPHASIZED" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

Hope this code will help u.

Regards,

Venkatesh

Former Member
0 Kudos

Hello,

thanks four your answers. The Problem is now almost solved !!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you want to fire a BSP event by a javascript event. It's not possible to achieve that.

For that you must do thru BSP event only.

regards,

Amit

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>you want to fire a BSP event by a javascript event. It's not possible to achieve that.

For that you must do thru BSP event only.

I assume by BSP event, you mean server event (not sure what else a BSP event would be). If that is the case, you are incorrect. You can generate a JavaScript function that will fire a server side event using the extension element <bsp:htmlbEvent>.

To the original question, perhaps some more details would be in order. Are you just wanting to trigger navigation? Exactly what are you unable to do?