Focal Point
[CLOSED] Creating table template

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

October 25, 2017, 10:14 AM
Badr.A
[CLOSED] Creating table template
Hello there,

I'm wondering if it is possible to create a table template with variables that have no values,then replace these variables with real date. the idea here is to create a general table template and change its components whenever needed.!

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus App Studio
V8201
October 25, 2017, 10:19 AM
BabakNYC
You can turn everything in the code into a variable. I suggest you offer users some choices but here's a simple example.
TABLE FILE &FILE_NAME
&VERB.(<PRINT>,<SUM>).Select Verb.
&FIELD_NAME.Select fieldname.
BY &SORT.Select Sort.
END



WebFOCUS 8206, Unix, Windows
October 25, 2017, 10:22 AM
Hank W.
Well... ummm... yeah, in principle, but...

OK, lets start this from the other way around. What kind of scenario would you be using this template for?


Cheers,
H.

WebFOCUS 8.1.05M
Oracle 11g - DB2
RedHat
October 25, 2017, 10:23 AM
MartinY
Hi Badr.A,

Not sure to understand your question. Can you be more specific and at least give a sample of what you want.
What is your goal ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
October 25, 2017, 11:28 AM
Badr.A
it is a table template to display a verity of services in a city in numbers in monthly bases.
EX. JAN number of calls answered is 200 calls
if it is possible can I create a placeholder in any table template and can be replaced later.
As I work in a BI team. my coworker asked me to create such a template and send it to her!

quote:
Originally posted by Hank W.:
Well... ummm... yeah, in principle, but...

OK, lets start this from the other way around. What kind of scenario would you be using this template for?



WebFocus App Studio
V8201
October 25, 2017, 01:22 PM
MartinY
quote:
if it is possible can I create a placeholder in any table template and can be replaced later

I think that we're all confused (me at least Eeker ).

What do you mean by create a template TABLE ? Is the table a SQL table, a WF HOLD file, an Excel Spreadsheet, ...?

What is a place holder that can be replaced later ?

Are you looking to have something where user can enter data ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
October 26, 2017, 09:38 AM
Badr.A
Sorry for confusing, I' think WF HOLD file is what I'm looking for.

Thanks!
quote:
Originally posted by MartinY:
quote:
if it is possible can I create a placeholder in any table template and can be replaced later

I think that we're all confused (me at least Eeker ).

What do you mean by create a template TABLE ? Is the table a SQL table, a WF HOLD file, an Excel Spreadsheet, ...?

What is a place holder that can be replaced later ?

Are you looking to have something where user can enter data ?



WebFocus App Studio
V8201
October 26, 2017, 10:19 AM
MartinY
So still not quite sure of what is your goal and your need, but it looks like you may need something such as Babak's sample

TABLE FILE &FILE_NAME
&VERB.(<PRINT>,<SUM>).Select Verb.
&FIELD_NAME.Select fieldname.
BY &SORT.Select Sort.
ON TABLE HOLD AS MyHoldFile
END


The above will create sort of "dynamic" hold file - meaning that its contains/format will change depending on selection made.

But what would you like to do with that ?

If you can provide a complete and detailed sample/explanation of your need and goal, maybe we'll be able to give you the proper way to accomplish it.
We don't know your spec and request so you need to be more explicit if you need help.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
October 26, 2017, 11:37 AM
FP Mod Chuck
Hi Badr.A

This really sounds like the traditional WF Guided Adhoc or sometimes called guided self-service processing where a bunch of parameters are provided to control the contents of the report and output format.

Have you ever heard of this technique?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
October 26, 2017, 11:50 AM
Mike Williams
TheTexasStingray has a quick intro to creating a guided-adhoc procedure then using that base to make a htmlpage for the report. He is using Developer Studio in the video, but the navigation shouldn't too difficult to figure in App Studio: https://www.youtube.com/watch?v=HknE6oQSWxU


WF Version 8105