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     [CLOSED]Chain parameters to a calendar control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Chain parameters to a calendar control
 Login/Join
 
Member
posted
I have multiple parameters on an html report, and the list of items (per generated parameter from the fex) in their associated dropdown is getting long (and difficult to scroll) as time goes on and more items are added. I've tried chaining the controls to my calendar control, but then the items in the dropdowns are only the ones corresponding to current day in the calendar control and that day only.

I am using a javascript function to update the dates in the calendar controls to a rolling 30 days. Is there a way to reference these variables? Otherwise, how can I reference the current value in the calendar (if even possible)?

Note: I would like to fill the dropdowns where the date is GE calendar1 and LE calendar2.

Thanks, Joe

This message has been edited. Last edited by: jjeanjaquet,


WebFOCUS 7.7.2: Windows 7: all output (Excel, HTML, PDF)
 
Posts: 18 | Registered: June 22, 2010Report This Post
Virtuoso
posted Hide Post
You may be able to put the result of your javascript function(?) in a hidden field and chain the combination of those two fields to your dropdown. I'm not at all sure that's going to work (timing between IBI functions and form calculations may be wrong, for example), but it's worth a try.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Member
posted Hide Post
After designing the form in the HTML layout painter, copy the source into a new .fex procedure within the HTML FORM BEGIN and END.

Then assign the variable in the "calendardata" as shown below.
 
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">

<data_info calendardata="&CAL_DT" calendardatatype="0" ibiformat="tDMYY" accept="0" calendar_ibiapp_app="" calendar_ibimr_domain="sim859ut/sim859ut.htm" calendar_ibimr_folder="#ppmpocfn4q38" sourcetype="typeMaster">


TO CALCULATE &CAL_DT
--------------------

DEFINE FILE CAR
<CALCULATE ST_DT(Begin Date) AND ED_DT(End Date)> after apply the below define calculation
CAL_DT/A21 = DATETRAN(ST_DT,'(MDYY)','(/m)','EN',10,'A10') || ';' || DATETRAN(ED_DT,'(MDYY)','(/m)','EN',10,'A10');
END

TABLE FILE CAR
PRINT
CAL_DT

--- HOLD AS HOLD1

Then.... assign the value to the variable.

-READ CAL_DT2 &CAL_DT.A21. 

_---------------------

this is one of the way to achieve rolling 30 days.


WebFOCUS 7 6 9
Windows XP
HTML, AHTML, PDF, EXCEL
 
Posts: 24 | Registered: April 24, 2009Report This Post
Member
posted Hide Post
Thanks for the replies. I might come back to this later but spending time making this work is actually pretty low on my priorities list right now. For now I'm just hard coding a date value into the parameter:
"WHERE DATE GE '1/1/2011';"
That will do for a while.

If I end up implementing something, I'll update the thread.

Thanks.


WebFOCUS 7.7.2: Windows 7: all output (Excel, HTML, PDF)
 
Posts: 18 | Registered: June 22, 2010Report 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     [CLOSED]Chain parameters to a calendar control

Copyright © 1996-2020 Information Builders