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

help

Started by en1, 10 Nov 2014 06:23:43 AM

Previous topic - Next topic

en1

Hi!
Problem: two date prompt  with names date_from and date_to.
When user change value in  date_from value in date_to set automaticaly and equal date_from - 1year

first i try filters and find that function filter() not work with _add_years. because of this now i try JavaScript.
Its Ok. i write function that set value to date_from prompt.  But where i can place call of this function? 
in official doc: if i want to place call of this function on Finish button i must delete Finish button? peplace it by html button with onclick = my function.
in this case Finish lose its functionality (validation) an it is bad way.


Lynn

Is your package dimensional or relational?

en1


Lynn

The _add_years function is something that makes sense in a relational situation. Your dates in a dimensional source are really members rather than actual dates. I don't think date range prompts are the right concept in a dimensional model. Wouldn't the user instead choose from a values in a level or perhaps in a tree prompt?

In a dimensional scenario I think you'd be using parallel periods function or something along those lines to use one date member to find a different one elsewhere in the hierarchy. What is the structure of your time dimension?


en1

Ok.  :) in short i need call JavaScript function when user click Finish button. How can i do this on Finish button without replace it?

Lynn

Quote from: en1 on 10 Nov 2014 10:11:51 AM
Ok.  :) in short i need call JavaScript function when user click Finish button. How can i do this on Finish button without replace it?

I don't use JavaScript and I'm not really sure how that helps you anyway.