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

 

How to make the Date Prompts blank in Cognos 10.2.2 Workspace

Started by xyz, 25 Nov 2015 02:11:07 AM

Previous topic - Next topic

xyz

Hi All,

I am using Cognos 10.2.2 and data model is relational, I have date prompts with Edit box option. We have a requirement here
to get the blank dates in the date prompts by default instead of default dates. I have used the below java script code
where prompt name I gave as StartDate. It works fine, when I run the report in Cognos viewer, it doesn't work properly, when I pull the same report in Cognos Workpsace global area? Is there any change in the java script required?

I have used the date prompts on the prompt page and used the same report in the global area of Workspace. I am not getting any error, but the dates are displayed with the current default dates.

<script language="javascript">
document.formWarpRequest.elements["txtDateStartDate"].value='';
</script>

Can you guys, please suggest, you help is much appreciated.

Thanks & Regards,
XYZ

Lynn

You've posted the same question in three different places (at least that I've found so far).

Forum etiquette requests that we do not duplicate posts. The reason they ask us not to double post is so that someone won't spend their valuable time answering your question and then realize it was already addressed in another post. It also helps avoid confusion for someone else searching for an answer.

It seems you are trying to get a wider audience across different boards but at the very least I think you should refer to your other posts via links. The etiquette post doesn't indicate that it's ok to do that, but I think if you make it clear that your question is applicable in more than one place and connect the dots for people with links to the other threads it would be ok. Of course I defer to the mods on that point.

bdbits

Lynn is right in that we don't want the same question being addressed in multiple threads. It reduces the synergy of the community to respond as a whole, fragmenting the knowledgebase and making it more frustrating for people searching to find answers.

I guess to me, as a rule it should not be a common thing but for something truly crossing topical areas, it would be OK to have a link, as long as it clearly directs people to one single thread and is clear that answers should be posted there.

xyz

I apologise Lynn and bdbits, I was thinking, if experts visit only the specific studio's and missed out to visit other forums and miss to respond if they already know the answer that is the reason I have posted in the report studio as well as workspace forum. As you guys know, ultimately the report studio report is pulled into workspace.

So finally below code started to work.

<script language="javascript">
document.forms[0].elements["txtDateStartDate"].value='';
</script>

Thanks & Regards,
XYZ