cancel
Showing results for 
Search instead for 
Did you mean: 

HTML code not resetting Input Controls

mhmohammed
Active Contributor
0 Kudos
505

Everyone,

I'm trying to create this workaround suggested by Gustavo Stenio Sousa, in the comments section of this Webi idea. I think, the one step missing in the list is how and when to apply Input Control, which I did. The part where I'm stuck is, after clicking on Back to Panel button, the Input Control is not reset.

Would one of you experts in HTML/Java help me?

To make it easy for you, below is Gustavo's comment on that idea.

-------------------------

Dear friends, I found a workaround for the problem. In summary, I have included a table with the filtered data at the end of the document in the same tab as the report, but that table starts the document as hidden. When you click on any of the graphs, the table is displayed and the graphs are hidden.

Below is a short summary of how I did it:
1) Create graphs and configure them to align with relative position with respect to each other. (this step is important for the table to appear at the beginning of the document)
2) Create a detailed table at the end of the graphs and place it in line with the position relative to the last graph. (this step complements the previous one)
3) Use the graphics link only with the table
4) Create a variable to identify when a graph was clicked: Variable Check Filters Pos (ReportFilterSummary ("Report Name"); "Filters on Detailed List:") * Report Name should be replaced with the report name ** Detailed List should be replaced with the table name in the report
5) Configure the graphics to hide when: [Check Filters]> 0
6) Configure table to hide when: [Check Filters] = 0
7) To return to the graphics, just use the reset button on the input controls.
😎 From here it is optional but makes the report more usable, as it will create a button to return to the graphs and hide the table in the report itself.
8.1) Adjust CMC configuration to allow using Java Script codes: Applications> Web Intelligence> JavaScript
8.2) Include a text box in the report and configure it to: Hide when: [Check Filters] = 0 Read content as HTML
8.3) Insert the following text in the text box:
<input type = button value = 'Back to Panel' onclick = cleanFilters>

<script>
function cleanFilters () {
self.top.window [2] .window [0] .window [5] .iFormResetAllCB ()
}
</script>

8.4) End, now the graphs are linked to the detailed table and after creating there is a button to return to the graphs and hide the table. I don't know if this is the right place to post this, but I hope I helped.

--------------------End Gustavo's comment---------------------

Thanks,
Mahboob Mohammed

View Entire Topic
mhmohammed
Active Contributor
0 Kudos

Hi amit.kumar71,

Any thoughts on this?

Thanks,
Mahboob Mohammed