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.
If i select the date July 28,2013 in the 1st Calendar control and second calendar control should populate with the dates from July 28,2013 to Aug 28,2013.(only 30 Days enabled). Other dates must be disabled in the 2nd Calendar control.
I've tried something like below:
-DEFAULT &CAL = '';-*Parameter name for 1st Calendar control
-IF &CAL EQ 'FOC_NONE' THEN GOTO LB1;
TABLE FILE EMPLOYEE
PRINT FIRST_NAME NOPRINT
COMPUTE DATE_PLUS_THIRTY/YYMD = DATEADD('&CAL','D',30);
END
-LB1
-EXIT
How to pass the resulting variable to 2nd Calendar control and enable only 30 days from the date i've chosen in 1st Calendar Control in HTML Composer?
I don't have idea in JS.
Please help me on this.
Thanks, Rifaz
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
Yea, chaining with the calendar controls kind of sucks. I believe you will need to use a hidden text box as a middle man and then chain that value to the fex populating the second calendar control (unfortunately having a calendar control populated by an external procedure only works in IE as far as I can remember which means users will either have to use IE or IE tab in chrome or firefox for that to work.
If anyone has a workaround for that I'm all ears.
WebFOCUS 7.7.03/8.0.08 Dev Studio 7.7.03/8.0.08 App Studio 8.0.08 Windows 7 ALL Outputs
Posts: 402 | Location: Upland, IN | Registered: June 08, 2012
If i pass a date from hidden text box to 2nd calendar control, is it possible that when i click on 2nd calendar in the output, only desired 30 days are enabled?This message has been edited. Last edited by: Rifaz,
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
First, i tried using TEXT and CALENDAR control as you suggested.
CAL.fex -------
TABLE FILE EMPLOYEE
PRINT FIRST_NAME NOPRINT
COMPUTE DATEHIRED/YYMD = HIRE_DATE;
COMPUTE DATE_PLUS_THIRTY/YYMD = DATEADD(DATEHIRED,'D',30);
ON TABLE PCHOLD FORMAT XML
END
In EDIT, associate CAL.fex and DATEHIRED as your display value.In CALENDAR,associate CAL.fex and DATE_PLUS_THIRTY as your display value.Chain them, resolving parameter is DATEHIRED. As expected, only 30 date values are enabled initially.But, supplying manually other dates in TEXT, results no change in CALENDAR.
Correct me, if i'm wrong?
So, i tried in another method, by declaring PARAMETER(&CAL) in EDIT and in resolves parameter including the same.