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]: CALENDAR- DATE RANGE - APP STUDIO - HTML/DOCUMENT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved]: CALENDAR- DATE RANGE - APP STUDIO - HTML/DOCUMENT
 Login/Join
 
Platinum Member
posted
Hi,
Does calendar range - dynamic works well in App Studio. For some reason I am having difficulty populating the range.

Here is my prodecure: "calp2.fex"
-*********************************
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY

-*Since CAL_DATE is in "HYYMDs" format, I am converting it into "YYMD".

DEFINE FILE DIM_DATE
C_DATE/YYMD = HDATE(CAL_DATE,'YYMD') ;
END


TABLE FILE DIM_DATE
SUM
MIN.C_DATE AS DATE1
ON TABLE HOLD AS HDATEMIN
END
-RUN

TABLE FILE DIM_DATE
SUM
MAX.C_DATE AS DATE1
ON TABLE HOLD AS HDATEMAX
END
-RUN

TABLE FILE HDATEMIN
PRINT
DATE1
ON TABLE PCHOLD FORMAT XML
MORE
FILE HDATEMAX
END
-RUN

-***********************************
Here is the screenshot from the App Studio.
Not sure what I am doing wrong.




Thanks

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


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Virtuoso
posted Hide Post
Your data type must be Dynamic not Static since you define the values based on TABLE FILE.
Doing that you'll have to assign the fex that creates the XML file (the code that you've included above)


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thanks MartiNY..Clearly, I am doing somethinG wrong and not uNderstanding.
I created a new procedure CALP1.FEX and referenced it for Dynamic data type.
The Date Range is still not working.

Thanks

---CALP1.FEX
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY

DEFINE FILE EDW_PROD/DEV/DIM_DATE
C_DATE/YYMD = HDATE(CAL_DATE,'YYMD') ;
END

TABLE FILE DIM_DATE
BY
C_DATE AS DATE1
ON TABLE PCHOLD FORMAT XML
END
-RUN





WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Platinum Member
posted Hide Post
also made some changes to calp2.
Technically, it should the dates from 2013 - 2017 but its not.

Thanks

-********Calp2.fec

SET ASNAMES=ON
SET HOLDLIST=PRINTONLY

DEFINE FILE DIM_DATE
C_DATE/YYMD = HDATE(CAL_DATE,'YYMD') ;
END


TABLE FILE DIM_DATE
SUM
MIN.C_DATE AS DATE1
WHERE FISCAL_YEAR_KEY GE 2013
ON TABLE HOLD AS HDATEMIN
END
-RUN

TABLE FILE DIM_DATE
SUM
MAX.C_DATE AS DATE1
WHERE FISCAL_YEAR_KEY LE 2017

ON TABLE HOLD AS HDATEMAX
END
-RUN

TABLE FILE HDATEMIN
PRINT
DATE1
ON TABLE PCHOLD FORMAT XML
MORE
FILE HDATEMAX
END
-RUN


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Silver Member
posted Hide Post
It depends on what you are trying to do.
If you are setting a range where you want the users to only be able to pick dates from something like 01/01/2016 to 06/30/2016. What you're doing is basically correct. However, you want your procedure that gives you the dates to have 2 dates on one line. The first date is the begin date and the second date the end date.



I believe the dates need to be in MDYY format.

I've done this before in 7.7.03. However, I've always found the calendar controls finicky and sometimes they work differently between versions.

If you want to put in a list of dates that are valid you will change the Data type to Dynamic and choose Explicit and pick your procedures.

If you follow the instructions in the documentation and it still doesn't work. I would open a ticket.


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 35 | Location: Minnesota | Registered: May 17, 2013Report This Post
Platinum Member
posted Hide Post
I think I figured out what the issue was.

I editied the HTML document and added the full path of the procedure and it seems to be working fine now.
Strange why it wouldn't automatically when I reference it.

before edit:
data_info datatype="0" ibiformat="YYMD" calendardatatype="2" calendardata="calp2.fex"

after edit:
data_info datatype="0" ibiformat="YYMD" calendardatatype="2" calendardata="/WFC/Repository/../calp2.fex"


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report 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]: CALENDAR- DATE RANGE - APP STUDIO - HTML/DOCUMENT

Copyright © 1996-2020 Information Builders