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 email@example.com for further assistance. Reference the community FAQ to learn more about the community.
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.
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, 2004
-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.
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.
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006
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.
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.
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
"-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: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005