October 11, 2007, 01:25 PM
mgrackinDid you know about QUOTEDSTRING?
I was looking through the manual just now (yes, I admit it) and I stumbled across a Dialogue Manager Suffix command called QUOTEDSTRING. I am curious to know if anyone already knows about this suffix command. Basically it will add single quotes to a DM string variable appropriately. See page 5-35 in the Developing Reporting Applications manual v7.1
October 11, 2007, 01:38 PM
PrarieMy co-workers and I discovered that a few months back...I don't think anyone has used it.
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
October 11, 2007, 01:43 PM
Francis MarianiMickey,
N.Selph was the first to mention this on FP in Sept. 2006.
Amazingly, it's been around since 5.3 but I've never used it, though it probably would have saved me some time on more than one occasion.
We're all still learning stuff, aren't we?
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
October 11, 2007, 01:49 PM
mgrackinI guess I should learn to do a search on FOCAL POINT before posting. Sorry.
It looks like a very cool command.
Thanks!
Mickey
| FOCUS/WebFOCUS 1990 - 2011 |
October 12, 2007, 03:53 AM
hammo1jI think the idea was for drilldowns for passing the amper variables
DDFEX.fex( TOD=&TOD.QUOTEDSTRING XYZ=&XYZ.QUOTEDSTRING )
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
October 12, 2007, 04:47 AM
RolandWe are using it on one central place.
As we have all our applications in multiple languages (German and French actually) all our textes are stored in a DB. These textes are used in TABLE output, in HTMLFORMs and in MAINTAIN forms. For TABLE and HTML we get it via Dialog Manager.
As especially in French we have many apostrophes within the texts, we had to code them as two apostrophes. In TABLE and HTML this showed up as one apostrophe. But in Maintain this showed up as two
Coding only one apostrophe in the texts and using .QUOTEDSTRING in the DM code preparing the variables for TABLE and HTMLFORM resolved this. So we have nice text presentation all over our applications
Roland
Prod: WF 7.1.5
Test: WF 7.6.4
Unix Sun Solaris
HTML, PDF, EXL2K
October 12, 2007, 10:29 AM
jamieAnother useful application of the post-fix .QUOTEDSTRING is in drill-downs that may potentially contain the value FOC_NONE. Since FOC_NONE lines of code, on their own are never placed on the stack for execution, the post-fix .QUOTEDSTRING, just like .EVAL lines of code will indeed be placed on the stack, so the line of code containing the value FOC_STACK will not be thrown away.
TYPE=DATA,
COLUMN=N1,
FOCEXEC=app/parent_fex(COUNTRY=N1 YEAR=&YEAR.QUOTEDSTRING),
$
Jamie
October 12, 2007, 02:22 PM
jamiequote:
Originally posted by jamie:
Another useful application of the post-fix .QUOTEDSTRING is in drill-downs that may potentially contain the value FOC_NONE. Since FOC_NONE lines of code, on their own are never placed on the stack for execution, the post-fix .QUOTEDSTRING, just like .EVAL lines of code will indeed be placed on the stack, so the line of code containing the value FOC_NONE will not be thrown away.
TYPE=DATA,
COLUMN=N1,
FOCEXEC=app/parent_fex(COUNTRY=N1 YEAR=&YEAR.QUOTEDSTRING),
$
Jamie