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.
I want to print all numbers from 1 till the number I have entered through HTML. I don't want to use SQL at all. No database. It should be pure WebFOCUSThis message has been edited. Last edited by: Kerry,
Well, Brian gave you the answer, but it's just a list on the screen - no records, no tables, etc. His solution gives you EXACTLY what you asked for, but there's not much you can do with it after that.
Thought I might mention that WebFOCUS IS a database reporting tool. If you're not reading any data, WF is an expensive tool to accomplish your task. In fact, you could simply accomplish your task with Javascript and wouldn't even need the additional communication to a WF server. Is there a specific reason you need WF to do this?
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, 2007
Hi Darin, This is question i was about to ask.I want the data in tabular form i.e, it should retrieve the value from a file and print it.The code given above just use TYPE command to display the result. Is there any way to keep the data in some hold file and then display it from there?Similarly,I want to display the series of fibonacci series and prime numbers. Please suggest.
In the DM code above, instead of -TYPEing the number, -WRITE it into a file instead. Then write a master file description to describe it, filedef them together, and then you can use TABLE to do a report.
WF won't produce anything in tabular form unless it is reading it from some sort of database. If you want to "keep the data in some hold file and then display it from there," you're using a database - which you said you did not want. So you'll have to decide whether that is OK. If it is, then you'll get there quicker (and less IO) by reading the first n records of some table and printing out the line number. TABLE FILE CAR LIST MODEL NOPRINT END
This still could be accomplished with Javascript or even Excel for that matter. Is there a reason for WF to be in the mix?
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, 2007
Obviously if you are allowing people to enter larger numbers then you will need to extend the prime test or find an algorithm to calculate them; I’m not going to do that.