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

 

How to create tab using javascript and pass the parameter values as well

Started by inu, 15 Nov 2016 05:37:27 AM

Previous topic - Next topic

inu

Hi Team,

I want to create 5 tabs such as Region, Branch, AM, DM, PM.
when user selects the any one tab, it will filter the other value prompt.
So, to create tabs, i can use js code for button. but how to pass the parameter value to other prompt.
Please put some light of your ideas on it, i will be thankful to you.


Regards,
inam 

MFGF

Quote from: inu on 15 Nov 2016 05:37:27 AM
Hi Team,

I want to create 5 tabs such as Region, Branch, AM, DM, PM.
when user selects the any one tab, it will filter the other value prompt.
So, to create tabs, i can use js code for button. but how to pass the parameter value to other prompt.
Please put some light of your ideas on it, i will be thankful to you.


Regards,
inam

Why javascript? Whatever is the fixation with this, Inu?

Can you explain your requirement? You refer to "the other value prompt" but what does this mean? What other value prompt? You haven't mentioned a value prompt before, so how can you then refer to the other one? What is it you need to do? Multiple pages on different tabs? Something else?

Please spend some time and effort explaining your requirement rather than just posting questions nobody could begin to understand.

MF.
Meep!

inu

Quote from: MFGF on 15 Nov 2016 05:48:53 AM
Why javascript? Whatever is the fixation with this, Inu?

Can you explain your requirement? You refer to "the other value prompt" but what does this mean? What other value prompt? You haven't mentioned a value prompt before, so how can you then refer to the other one? What is it you need to do? Multiple pages on different tabs? Something else?

Please spend some time and effort explaining your requirement rather than just posting questions nobody could begin to understand.

MF.

You are right..
requirement is..
1.create 5 tabs  Region, Branch, AM, DM, PM.(column names of the table at DB)
2.Based on the selection value prompt will display the data from database.

So what i did , i created tabs using java script, and one value prompt..but issue is , how to cascade between these two controls.
or any other approach should i go.
Please share some idea on it...


Regards,
Inam

Invisi

I agree with MFGF: what is your obsession with Javascript??

Firstly, a tab is basically a piece of HTML, styled with CSS. So what did you do in Javascript beyond creating and styling your tabs?

Also, reading your functionality, why do you want to solve this with tabs? As far as I read it, you just can take some value prompts with the parameters of the other prompts in each other's queries.
Few can be done on Cognos | RTFM for those who ask basic questions...

mayank_sanghvi

Hi,

I am not going to recommend the Java Script method. You can refer below videos for Tabbed report. The Java Script video also help's you to set parameter values which you can use to generate cascading effect. If i well get enough time i will try to simulate your scenario.

Drill through method: https://www.youtube.com/watch?v=K02wXZ547-g

Java Script method: https://www.youtube.com/watch?v=fVso_aA-rIg

Note: If you are using Cognos 10.2.2 then use Cognos in built functionality to create tab report.

Thanks & Regards,
Mayank Sanghvi