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     [SOLVED] Use new 7.7 popup calendar with double click instead of calendar icon

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Use new 7.7 popup calendar with double click instead of calendar icon
 Login/Join
 
Gold member
posted
I'd like to use the new popup calendar in WebFOCUS Maintain 7.7 but I have no room next to my date fields for the small calendar icon. What I'd like to do is have the user double click the edit box for the date and have the calendar popup appear via a double click trigger on the edit box. Is there a way to call a Javascript Calendar function directly in 7.7? I've looked through dynCalendar.js in the maint directory and see the dynCalendar() function but I'm not sure if this is callable, or if there's a different function in there, and what needs to be passed as parameters. Also would the form still need to have the Calendar property set to 1? Would the edit box control itself have the Calendar property set to 0 so that the calendar icon doesn't appear? Finally, in a call to whatever function that would create the popup calendar, if it exists, would there be a way to specify the X offset of the calendar when it pops up? When using the calendar icon, the popup's upper left corner is to the right and below the calendar icon. I'd like it to be more centered on the calendar icon or, in my case, the edit box.

Thanks,
James

This message has been edited. Last edited by: J. Erickson,


FOCUS 7.7.03
WebFOCUS 8.0.x/8.1
z/OS, Windows
 
Posts: 54 | Location: Everett, WA | Registered: September 27, 2005Report This Post
Expert
posted Hide Post
Hi James,

I checked with our technicals and was suggested that, since it will require customizing the calendar js files, this issue should be address by a case with Customer Support Services. Please call 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Expert
posted Hide Post
Or, use some JS, associated with a "show calendar" and the "calendar control", to show/hide the calendar control.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
Ok... Here is our solution.

First of all, turn the calendar on for the form and the fields. Then use this command to hid the icon:


var editboxname = "EditBox1";
// hide calendar icon
document.getElementsByName( editboxname )[1].style.display = "none";

Use the name of your editbox / field. You can put this in the onload.js so the icons do not appear when the form does.

Next, add this as the fields double-click (or click) event:

function OnEditBox1_DoubleClick ( ) {
var calendarcontrol = EditBox1_calendar;
// open calendar window
calendarcontrol.show();
// move calendar window
document.getElementById( calendarcontrol.layerID ).style.top = "10px"
document.getElementById( calendarcontrol.layerID ).style.left = "10px"
}

That performs the code that will display the calendar. Here is also the code to move the calendar by changing the pixel offset.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Gold member
posted Hide Post
Thanks for the responses. That should be all I need. Closing this topic.


FOCUS 7.7.03
WebFOCUS 8.0.x/8.1
z/OS, Windows
 
Posts: 54 | Location: Everett, WA | Registered: September 27, 2005Report 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     [SOLVED] Use new 7.7 popup calendar with double click instead of calendar icon

Copyright © 1996-2020 Information Builders