Focal Point
[CLOSED] Compute Field Syntax documentation?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9187044766

February 21, 2014, 08:12 PM
Gregorio
[CLOSED] Compute Field Syntax documentation?
Hello:

I'm looking for basic information on Compute Field syntax. Things like how to add comments and how to group expressions.

I'm not finding much in the way of documentation, so I'm picking my way through forums.

I would appreciate it if anybody could point me to a resource if one exists.

Thanks,
Greg

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.x, Service Pack 2
Windows, All Outputs (mainly Active Reports)
February 24, 2014, 11:17 AM
Ram Prasad E
This should help.

http://documentation.informati...g/source/topic55.htm

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
February 24, 2014, 12:32 PM
Gregorio
Hi, Ram:

Thanks for the reply!

Is there a way to add comments to Calculated Value code? I've got some fairly complex stuff going on and comments would come in handy when I take a look at it again in the future.

Thanks!
Greg


WebFOCUS 8.x, Service Pack 2
Windows, All Outputs (mainly Active Reports)
February 25, 2014, 03:37 AM
Ram Prasad E
You can add comments before the COMPUTE statement. Comments begin with -*
Note: Comments should always start in a new line, you can not add comments in the same line as COMPUTE statement.

You can also create COMPUTEs in Master Files and there you can specify description for COMPUTEs.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
February 25, 2014, 04:34 PM
Gregorio
Hi Ram:

So just to be clear, the only place I can add comments to a COMPUTE field is at the top? No embedded comments?

I don't have the ability to edit Master Files.

Thanks,
Greg


WebFOCUS 8.x, Service Pack 2
Windows, All Outputs (mainly Active Reports)
February 26, 2014, 04:35 AM
George Patton
You can sprinkle comments throughout your code - as long as you don't plan to ever open it again with the report painter. If you do, it will move all the comments to the top.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
February 28, 2014, 12:44 PM
Gregorio
Howdy:

I don't think I can put comments just anywhere in my Compute field code. When I put them anywhere but the top I get an error.

Thanks,
Greg


WebFOCUS 8.x, Service Pack 2
Windows, All Outputs (mainly Active Reports)