If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Disabled a boutton

Started by tamise, 16 Feb 2014 05:56:29 AM

Previous topic - Next topic

tamise

Hello,

I have create a page with a crosstab and at the end of the page. I have the bouttons (Cancel, Prev, Next, Finish).
I just want that the button Prev.

How can I disable the buttons (Cancel, Next , Finish) ? I do not want to hide but to disable ?
Thanks

gosoccer

If you use drop an html object into your page and use java script to control the buttons, that would be one way you could select
what buttons to show to the user and what actions to take. This site has been very helpful to me so if you would like to take the
HTML/Java Script approach, let me know and I can share some of my code.

The second option is to use the HTML/ Java Script to disable the button.

Finally, There might be a way to use the Class Object within Report Author to change the Class Behavior related to the buttons.
I'm out to airport for couple hours but let me know.

Hope this helps

tamise

Thanks for the reply :)

I think i will use javascript, but i do not know to writhe javascript.
So can you help with this thanks a lot.

gosoccer

Tamise,

I'm not in the office so I can send you my sample code until may be Monday. Please review the below link. It
is very useful if you would like to use java script. You have to use the OnClick inside one HTML object you can
drop into your prompt page. You can call the second HTML Object that has all your java script code.

The following link is just an example of how you can drop HTML object and use java script.

http://www.ironsidegroup.com/2011/09/27/ibm-cognos-and-javascript-%E2%80%93-part-ii/



tamise

thnks.
Is it correct ?

<script language="JavaScript" type="text/javascript">
/<input type="button"  onclick="desactived">
</script>

In my case the button exist already, i just want to desactived

gosoccer

tamise,
Please review the link or any link that can walk you through the HTML objects and how to use them in Report Author.
You can have any button you need. I am not sure if you need the button and you need to deactivate or you don't need it at all.

Drop one html object and once you open it, you can add HTML input objects like below,
<input type="button" value="Cancel" STYLE="font-family: Aerial; font-weight: bold; background-color: #669966" class="clsPromptButton" onclick="promptButtonCancel()"/>

<input type="button" value="Run Report" STYLE="font-family: Aerial; font-weight: bold; background-color: #669966" class="clsPromptButton" onclick="calltodosomething in java script()"/>

The above will create two buttons called Cancel and Run Report. Of course, Run Report runs a java script.