Skip to Content

Personas - Template scripting questions

Hi,

We are running Personas 3.0 SP7. I'm working in Slipstream; I'm not sure if that matters for this post.

I was working on a template that has a Script Button, and saw in the template editor that I could add an onClick event to the button, which I did. I added a script called btn_Click and let it default the script as I do in the flavor editor.

Now if I click the button, I get an alert saying 'btn_Click' like it would with any newly created event script. But now I don't know how to actually use this functionality, and I have a couple questions.

  1. I don't see any way to edit the script that I created for the onClick event. Did I need to add the actual script when I created the event? If so, does that mean this is a one-time event - meaning I can never update the script?
  2. Is there any way to delete this event now that I've created it? I now see the btn_Click script for any object that has a script event, but again, I don't see any way to modify or delete it.

Thanks for your help!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Sep 06, 2018 at 05:42 PM

    Hi Jeff,

    1. You can edit the script in the script editor. Save and exit the flavor and open the flavor editor. You will see the script you created and can edit or delete it there.

    2. If you click on the "X" in the script events box, you can break the connection between the script button and onClick event.

    This applies whether your script is in a template or in a standard flavor.

    This applies for both SAP Screen Personas in Web GUI and Slipstream Engine.

    Regards,

    Peter


    unbindevent.jpg (28.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Sep 07, 2018 at 11:19 AM

    Hi Peter,

    In the flavor editor, I see the onClick event I created in the template (btn_Logoff) and the one I created in the flavor (btn_LogOff).

    In the script editor, I only see the script I created in the flavor (btn_LogOff).

    So I don't see a way to edit or delete the template script (btn_Logoff).

    The template was created in Slipstream; I don't know if that makes a difference. The template was also created and is being used on ViewPort screens; again, I don't know if that makes a difference.

    Thanks,

    Jeff


    onclick.jpg (261.8 kB)
    scripts.jpg (32.2 kB)
    Add comment
    10|10000 characters needed characters exceeded