Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Show/Hide Calendar control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Show/Hide Calendar control
 Login/Join
 
<B_B>
posted
Hi,
I need to show/Hide a calendar control completely. Everytime i trying doing that only the text box show/hides. But, the image does not hide.
Is there any suggestion on how to hide the image as well.
Thanks.
 
Report This Post
Virtuoso
posted Hide Post
Inquiring minds would like to know why? If you don't want the control used, just have the 'date' entered in the format needed in a text box and forget the calendar.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
The calendar control is a separate control from the text input control and if you want both to be hidden then I would suggest something along the lines of enclosing them both within a DIV tag. Then to hide / show them just change the display to block or none accordingly.

Remember that painter (generally, 5.3.x to 7.1.6 at least) places the text for the control within a SPAN tag so you'll need to encompass that as well.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<B_B>
posted
Hi Tony,
Thanks for your reply. I did try using the
tag so that it considers the text box and image as one onject. But, it does not.
Any other alternative.

Thanks.
 
Report This Post
Expert
posted Hide Post
That will teach me to try / test beforehand! Red Face

Thinking a little more about it and the reason that it does not work is that the actual calendar widget is created dynamically and therefore wouldn't be contained within the div that you have. So you would have to identify that control and show/hide that one as well. As a default the calender control is created using the ID of the host control suffixed with _calendar. I've not tried or tested this myself so you would have to experiment.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
hi B
You can use this code to search for all the images and compare whether that image is a calendar image.Then you can use the style option to hide it.


You need to use this code somehwere in the Javascript to hide the calendat image

Thanks ,
Arvind
//get all images on the page into array
var images=document.getElementsByTagName("img");
//get the number of images in array
var numImages = images.length;
//Loop through images and see if it is a dynCalendar
for (i=0;i<numImages;++i) {
if (images[i].src.indexOf("dynCalendar.gif")>0){
//If it is, hide
images[i].style.visibility='hidden';


WebFOCUS 714
Windows XP
Output: HTML,PDF,Excel
 
Posts: 189 | Registered: January 30, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Show/Hide Calendar control

Copyright © 1996-2020 Information Builders