Skip to Content
author's profile photo Former Member
Former Member

BPS - Text islands in the Web Interface Builder (SEM)

Hi,

Tricky one for any experts out there:

If I am using "excel in place" in my planning web interface, one cannot use text islands with javascript to call standard buttons (like save, exit, refresh etc)- the system throws up a "runtime error" - because of the clash between javascript and 'forms'(the form is used to render the excel).

This problem does not occur with HTML layouts - i.e you can easily call a normal button using javascript in the text island.

My local BSP guru recommends that I use HTMLB to execute a standard button instead of the javascript.

I tried to insert a HTMLB script into the text island in order to execute a button, but no luck.

Can anyone out there help.....?

Thanks,

Rael

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2005 at 06:33 PM

    if you can share your code in HTMLB...we can have a look..to see the error..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2005 at 06:58 AM

    Hi Manga,

    Thats just the problem....I don't know how to correctly write a script in HTMLB for insertion into the text island within the web planning interface...!

    The javascript to call a standard save button can look anything like as follows:

    <span >

    <input type="button" value = Save class="initial2"

    onClick = "javascript:bspSubmit('SaveButton1');return false;"

    OnMouseOver="javascript:window.status = '<Save>';return true;"

    </span>

    .........but this does not work (I get a run time error) if you are using excel in place as your planning layout type.

    I tracked down a SAP statement that javascript and forms (excel in place) do not work together in the BSP's, and so thats why I am trying to see if I can do the same thing with HTMLB....

    Thanks,

    Rael

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Problem solved....

      For anyone out there who is interested, my problem was solved by note 836016 which took care of an excel-in-place error (data was being lost on refresh/save/etc).

      Once the above was solved, then my problem with javascript code calling standard buttons also was solved (it no longer gave me runtime errors).

      Regards,

      Rael

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2005 at 08:33 AM

    Dear all,

    this is how the htmlb output for the buton looks like:

    <a href="javascript:void(0);" onclick="if(!sapUrMapi_Button_checkClick('SaveButton1',event)){return true;};return htmlbSL(this,2,'SaveButton1:click')" onkeypress="if(!sapUrMapi_Button_checkClick('SaveButton1',event)){return true;};return htmlbSL(this,2,'SaveButton1:click')" class="urBtnStd" id="SaveButton1" ct="Button" style="white-space:nowrap;">Save</a>

    This looks pretty different from your java script.

    Regards, Olaf

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2005 at 08:46 AM

    Thanks Olaf,

    Your HTMLB script also works perfectly. But as stated above, the clash between the javascript and the form was solved by the SAP note unexpectedly. It was actually in the HTMLB guide which led me down the path of thinking that my javascript was clashing with the form (excel in place):

    http://www.sapdesignguild.org/resources/htmlb_guidance/

    Form

    It is basically the wrapping paper of your page and essential for the data transfer from the web client to the web browser and for the event handling. Controls in the form must have unique control names. The control names are generated by the HTML-Business for Java renderer - <b>therefore you cannot use e.g. JavaScript to manipulate the controls.</b>

    Anyway, thanks for the help.

    Rael<b></b>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.