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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Smartdates in dm
 Login/Join
 
Master
posted
I have just been delivering training on dates to our coders and advanced users and have had the revelation that date processing could be considerably simplified if it was consistent in dialog manager and webfocus code.

With webfocus code you have smart dates, whereas with DM you have alpha dates and a whole series of legacy functions different to the smart functions.

A simple solution would be to introduce date typing for dm.

eg

&START_DATE/DMYY = '12/03/2006' ;
&END_DATE/DMYY = &START_DATE + 30 ;

Stored internally as a base date integer it is converted to date display format when the line of webfocus code is constructed.

In short legacy processing will always have to be retained where you have DM dates untyped resulting in extra complexity.

Interestingly the other pre-processor based language I worked with Pl/1 had the same pre-processor (DM) language as the main language which made for simplicity.

If no one has done this I will raise as NFR.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
It would indeed be nice to have the same formats available in DM as we have in table (why limit ourselves to just integer and alpha and, in your suggestion, dates).
Wouldn't it be nice to be able to do decimal calculations in DM?
Would we also like to have edit options added to the DM-formats?
And do we all think that just DMYY format is enough? Or should it also be possible to have the YY and YYMD and MDYY and ... available?

This is just to indicate, that if you ask for one thing, there will always be somebody who is asking for more and is not really being happy with the (in his or her view) limited NFR.

But, by all means, please go ahead and submit the NFR, I'm with you.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
GamP,

Try this code on your 7.6.n set-up -

SET DMPRECISION = 7
-RUN
-SET &Pi = 3.1415927;
-SET &Radius = 4;
-SET &Circum = 2 * &Pi * &Radius;
-TYPE &Circum

You should get an answer of 25.1327416

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
Expert
posted Hide Post
John,

I expect you are aware that you can temporarily convert a Dialogue Manager alpha variable into a date variable, execute a function and then turn it back to an alpha variable.

-SET &REQUEST_TIME1 =
- DATECVT( DATEADD(DATECVT(&REQUEST_TIME,'I8YYMD','YYMD'),'D', 7),'YYMD','I8YYMD');

https://forums.informationbuilders.com/eve/forums/a/tpc/...931014162#9931014162


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders