cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

WAD command to change captions? custom command/javascript?

Former Member
0 Likes
305

Hi all,

I'd like to have a button where the text changes when the user hits that button. I was wondering if I can do this via a command. How can I create my own command? Or do I just have to use javascripts instead?

The whole thing should look something like this:

button "show graph"

--> user hits button: graph is shown and text changes to close graph

button "close graph"

--> user hits button: graph is set to invisible and text changes to show graph

Thanks in advance,

Tom

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Tom,

I also encountered problem like urs where i need to create one custom command after searhing a lot through SDN Posts and other materials i concluded that there is no way that we can create the custom command, so the only option left is to use javascript.

Former Member
0 Likes

Hi Dipika,

did you than create 2 different buttons of which you changed the visibility or is it possible to change the captions via javascript?

thanks,

Tom

Former Member
0 Likes

Yeah, I think it should be possible to change the label of the button using javascript

Former Member
0 Likes

I think I'm doing something wrong...

I've created a buttongroup with 2 buttons. I've created a script web item where with the "Set Web Item Parameters" I filled out some caption for one of these buttons. As action, I hang the script function (there was only one option available). But when I run it I don't get any changes on the screen. Am I doing something wrong after creation of the script?

Former Member
0 Likes

Is it possible to set breakpoints in these javascripts (by the way, I'm using BI AddOn 7.x, based on 6.40, support package 15 patch 2 revision 387).

Answers (1)

Answers (1)

Former Member
0 Likes

Hi,

Which version are you using. In BI 7.0 you have a sample template in help check it out

http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm

Cheers.

Ranga