Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] -PROMPT variable in launch page
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] -PROMPT variable in launch page
 Login/Join
 
Platinum Member
posted
Is there a way to get a control for a -PROMPT variable in a launch page?

For example, -PROMPT &START_DATE is not recognized by the HTML Layout Painter, but WHERE HIREDATE GE &START_DATE is, and you can select which type of control you want for it.

Thank you,

John

This message has been edited. Last edited by: Kerry,


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
I beleive this is all done in the HTML Layout painter.

It generates WHERE HIREDATE GE &START_DATE.txt etc.

That sort of prompt are you after ?


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: 6353 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I have some Dialog Manager code that creates variables that will be used in the table request.

I need to have some -PROMPT &variable.(a,b,c,d) commands appear in the launch page as list boxes.


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
John,

Do you use or know any JavaScript at all? If you do then one method would be to use a JS created dialog which is easier than it sounds.
The syntax is - variable = prompt('[prompted text]','[default value]');, such as in -

  v_year = prompt('Please enter the Year','2008');
This will give you a prompt in a dialog box -



You can then assign that variable to a hidden input so that it will be passed onwards into the URL at form submission.

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, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
-PROMPT is very old syntax used way back in the day before we had PCs and before it was easy to generate user-facing request pages.

I would go with Waz's suggestion and take the -PROMPT out of your program. The HTML Layout Painter will take care of presenting a control which you can set to be whatever type you like including a calendar control.

You can use a -DEFAULT as well to force the control of the amper variable.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Ginny,

The reason for using the -PROMPT's was to reduce processing and programming complexity that would be required with a lot of defined fields and extra table requests and joins. Dialog Manager with variables gives you the flexibility you don't have with table requests and fields.

John


WF 7.7.03, Windows 7, HTML, Excel, PDF
 
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
John, if you create the fex with & variables and you don't use -DEFAULT to set the initial value of that variable, then when you run it, Webfocus should automagically splash a prompt page for you asking for the values to be provided. So, yeah, unless you want it nice and pretty and personalized, just follow what Waz says and take out or comment out all the -prompts and see what happens.


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
John,

I understand the value of Dialogue Manager as I have been doing FOCUS for 24 years. The fact that your procedure makes liberal use of DM to construct code (which was not apparent from your posts) doesn't preclude the fact that the HTML Layout Painter can generate the controls for you. Since I haven't seen your code, I can't begin to guess what your problem is.

If your program is very dynamic, you might want to create a version that is less so and do the page with the painter from that one, then make the appropriate changes to have it run the fex you actually want it to run.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
quote:
-PROMPT is very old syntax used way back in the day before we had PCs and before it was easy to generate user-facing request pages.

Tried and true. I used it today. I hope it never goes away...

BTW: Hi Ginny... Cool
 
Posts: 3135 | Location: Tennessee, Nashville area | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Bonjour,
This is an exchange for me.
I do not appreciate at all so many DS tools that know so little about DM that they move the lines at the very top ...
-PROMPT and Implicit Prompt for undefined DM variables are prehistorical ( PC/Focus too had it).
And I don't like that so many people ignore the power you can get when coupling both levels of interpretation : Focus and DM.
Just try to understand the dot Eval option of DM that makes a string be interpreted as code and you'll get an idea of how to reach the usually unreachable.
The MiddleWare aspect, which too, was a very big point in Focus, from what I know of the start, has turned into a front head role. It should stick to what it never should have ceased to be : a very powerful and silent, tool.
MeMyself, by the way, should also turn back to a mute Focus Lover (and more and more out of the game) ...
Focusely, UnObjectively, and, Nonetheless Cordially


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
 
Posts: 134 | Registered: November 06, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
I've worked with WebFOCUS for about 12 years and have never used -PROMPT. Perhaps I used it when I worked on PC-FOCUS, but I can't remember that far back.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
"-PROMPT" is just another tool in my toolbox. And, the specs in the Task-at-hand explicitly stated No Launch Page to be created. But, wanted a dropdown list of available values. So, I reached really deep-down into the toolbox and puled out the "-PROMPT" and don't see any issues with using it...

And, BTW: I remember those days of coding in PC FOCUS. I just can't find the floopy that it's on, so, I can't reload it on my 286 machine...
 
Posts: 3135 | Location: Tennessee, Nashville area | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
I was far away from -PROMPT, which is a detail.
I was just talking about the way that DS Tools do not respect the DM code.


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
 
Posts: 134 | Registered: November 06, 2007Reply With QuoteReport This Post
Platinum Member
posted Hide Post
-PROMPT &VARIABLE.(OR(VAL1,VAL2,VAL3)).Variable;

The above line of code produces a list box option either in the HTML layout painter or even in the default prompt page in MRE.


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

 
Posts: 104 | Location: Indianapolis | Registered: November 08, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] -PROMPT variable in launch page

Copyright © 1996-2020 Information Builders