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     DM Challenge to IB Developers
Page 1 2 

Read-Only Read-Only Topic
Go
Search
Notify
Tools
DM Challenge to IB Developers
 Login/Join
 
Master
posted Hide Post
quote:

A roundabout way to say, toungue-in-cheek, that in 99% of the procedures, a PERFORM is not really necessary. Wouldn't you agree?


You're right Danny

I'm going to raise a NFR for 'perform' to be removed from MODIFY and MAINTAIN.

I will lobby the ANSI standard committee to remove this universally unnecessary feature from most modern programming languages.

In fact your logic has inspired me to realise that we dont need a car 99% of the time because we can always walk...



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

I agree with the fact that, given what DM already has, you can circumvent using a perform most of the time, but then I would also agree with John for it's development and inclusion into DM. For my own part, I would probably live without it, but if it was available then I would use it - who wouldn't? If the product is not developed then it will grow stagnant and become less used because other tools offer more - but then we know that Wink

As for Summit, yes, I'll be there, but unlike the tourists I won't be wearing lime green stretch pants, weigh 400 lbs and be married to my cousin Wink (private joke!)

John,

?????, keep taking the happy pills Smiler

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
Virtuoso
posted Hide Post
quote:
As for Summit, yes, I'll be there, but unlike the tourists I won't be wearing lime green stretch pants, weigh 400 lbs

Hmm, just wondering, if the guy in green pants with a bit of overweight isn't you, then how will we recognize you? Any obvious marks to recognize you by?


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,

I'll be the one in the "T" shirt. lol

Also, once I have registered, you will be able to tell me apart by looking at my name tag Wink

BTW, last year a few of us wrote our pseudonyms on our name tags so that other "pointers" could tell who we were.

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
Platinum Member
posted Hide Post
quote:
Originally posted by jgelona:
You guys are making this too hard. Want to do a PERFORM? Just do a -INCLUDE.

Take the code you want to PERFORM, put it in its own fex and do a -INCLUDE.

You can even make the command conditional. Here's some pseudo code.
-SET &PERFORM=IF TEST IS TRUE THEN'-INCLUDE FEXNAME' ELSE '-*';
&PERFORM.EVAL


You can even take it one step further and have FEXNAME be conditional.


Only problem with that is that it's not executed in MRE--it looks for fex in app path. Anyone have a suggestion on conditional include that looks in MRE?


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Virtuoso
posted Hide Post
you can include the "path" for MRE as well:

-INCLUDE domainname/app/fexname

domainname must be the actual PHYSICAL name of the domain (rightclick on domain and click properties - it is in the href) not the "nice" name that appears in MRE.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
An INCLUDE in MRE is handled differently to an INCLUDE in the server, I think.

MRE builds the request up adding the includes to the fex and passing the fex to WebFOCUS for execution.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
quote:
Originally posted by Waz:

Just keep in mind that this is FOCUS not "Python, Perl, Ruby, server-side JavaScript, Lua".

If you want to use those, call them from DM. Smiler



could you expand on that or link me to an article?

are you talking about reading external code files like you would read external data flat/TD files?


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Guru
posted Hide Post
DM is fantastic, it elevates the language far above the basic FOCUS code.

in fact only a few weeks ago i was impressing our resident microsoft programmer with a report that called itself and changed as it did so, i think its was the fact you could have it all in one statement that did it...

i am not an old skool coder, have knowledge but no experience with procural languages and have more experience with OOP concepts yet i find the procedural aspect of DM intuitive and a good fit with the 'linear' style of WebFOCUS code

im interested in learning more about DM,

quote:
And a little caveat for Jodye. I know that DM will accept -IF &X=1 THEN GOTO ... but the correct syntax is -IF &X EQ 1 THEN GOTO ...
Also a semi-colon should not appear after a label.


things like this i need to know, i tend to put = at certains stages of DM statements and generally always err on the side of caution by terminating all statements with a ; the other thing i always have to pause on is using functions on DM string values and getting the arguments right

in a nutshell, to me DM means i can agree to pretty much most requests for reports that can be customized by the end user without yet having thought of a solution- its flexibility elevates it far above something like basic SQL which (for me) would require something like Access VB to be able to offer the same output


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Guru
posted Hide Post
quote:
Originally posted by Danny-SRL:
For the PERFORM enthusiasts an idea with a bit of code:
  
-* File perform1.fex
-SET &PERFORM='-GOTO ';
-SET &RETURN='-GOTO ';
-*
-* LOTS OF CODE
-*
-SET &BACK='#NEXT1';
&PERFORM.EVAL #ABC
-#NEXT1
-TYPE RETURNED HERE
-SET &BACK='#NEXT2';
&PERFORM.EVAL #XYZ
-#NEXT2
-TYPE RETURNED ELSEWHERE
-*
-* LOTS OF CODE
-*
-SET &BACK='#NEXT3';
&PERFORM.EVAL #ABC
-#NEXT3
-TYPE RETURNED AGAIN
-*
-EXIT
-*
-#ABC
-TYPE ARRIVED THERE
&RETURN.EVAL &BACK
-*
-#XYZ
-TYPE ARRIVED FURTHER
&RETURN.EVAL &BACK


so here you are using the EVAL method to run the '-GOTO' string value in &PERFORM so it is interpreted as DM?


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Guru
posted Hide Post
damn this thread is old, didn't realise. Big Grin


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
  Powered by Social Strata Page 1 2  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     DM Challenge to IB Developers

Copyright © 1996-2020 Information Builders