this document will collect scripts that performs actions (click an icon, disable elements and so on) in a WEBI doc, through Javascript.

In order any of the scripts to work, we´ll need to set the Webi preference (under BI Launch Pad view/modify to HTML.

Instructions

1 – Drop a blank cell onto the report,]

2 – Set the cell property Read As to HTML

3 – Copy and paste the text of the script (from <script> to </script>, included ) to the cells formula

The first two will be :

1 – Collapse the Left Panel

     <script>

     self.top.window[2].window[0]._widgets[77].clickCB();

   </script>


2 – Disable the Save button

     <script>

     self.top.window[2].window[0]._widgets[282].setDisabled(true)

   </script>


3 – Reseting ALL Input Controls in a Report

   <script>

     self.top.window[2].window[0].window[5].iFormResetAllCB()

   </script>

   

Comments and suggestions about actions to be performed will be highly appreciated.


Regards,

Rogerio

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. Mahboob Mohammed

    Rogerio,

    This is great, appreciate your effort!!!

    As you know, there are 6 different available options in the left panel:

    1. Document Summary
    2. Report Map
    3. Input Controls
    4. Web Service Publisher
    5. Available Objects
    6. Document Structure and Filters

    How about a script that makes Input Controls (#3) to be selected by default in that left Panel?

    Thanks,

    Mahboob Mohammed

    (0) 
    1. Rogerio Plank Post author

      Hi Mahboob,

      thanks for your interest and your suggestion. In fact, this is the script in which I´m working at the moment. Hope to solve the last issue with that soon.

      At the present moment, I´m abble to , programatically , check an item in a checkbox of a Input Control. The chalenge now is to pass this selection to the server.

      PS : I can send a script to reset the values of an Input Control. It´s on the list at the top.

      Regards,

      Rogerio

      (0) 
  2. Nigel Wade

    Hi Rogerio,

    Did you ever work out how to send the selection of clicked items to the server? I am trying to make three groups of inputs filters (which have some interdependencies) that are all checkboxes become disabled in response to a selection in another filter. I can achieve this but when I attempt to change filters programatically I can only get the first change sent to the server as the main report with the source javascript in it is reloaded and despite the buttons being visually checked the report is only filtered for the first checkbox I activate.

    Nigel

    (0) 
    1. Rogerio Plank Post author

      Hi Nigel,

      I was able to do something similar through Input Controls. Create an Input Control, set the desired values and send it to the server.

      I am out of work now, don´t have access to my documentatios.

      As soon as I came back I´ll send it to you.

      Regards,

      Rogerio

      (0) 

Leave a Reply