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     [SOLVED]passing a parameter to a HTML form

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]passing a parameter to a HTML form
 Login/Join
 
Guru
posted
Before AppStudio I was able to pass a parameter by using something like !IBI.AMP.PARAMETER and put it in the selected value area. But it seems i can't do it that way anymore. What is the proper way sing version 8.0.9 to pass a parameter to an HTML form.

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Virtuoso
posted Hide Post
Hi Jay,

1- You need to create a fex that will HOLD in XML the value of your parameter.
2- Your HTML will then need an hidden (or not hidden, depend on your need) field that will read the previous HOLD file having the parameter value. Such as the same as if you are creating a list box or drop down list where you read a XML file.

Such a pain, isn't it ?


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
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
Thanks! I did think of that , but I couldn't believe that is what would have to be done.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Silver Member
posted Hide Post
Hi Jay

You should still be able to use a !IBI.AMP but its not the preferred way. You can have a hidden input control and bind it to an external procedure. The external proc can get the data and pass as an XML formatted report. Hope this makes sense to you.


WebFOCUS 8
Windows, All Outputs
 
Posts: 34 | Registered: September 08, 2015Report This Post
Master
posted Hide Post
OR, you could just turn all your HTML's into FEX's with -HTMLFORM BEGIN/END wrapped in it, then you can pass all params like any FEX. Easier for me to say that, because I don't use AS to write my HTML, but I know some of you do.. Sorry about that.. :P



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Virtuoso
posted Hide Post
It may still work as Barry said, but I suggest to not use it anymore. At least not directly in HTML.

Let say that you have a .fex which is defining !IBI.AMP variables then calling an HTML page who is using those !IBI.AMP var.

Then say that you are using the "Save Parameters" option button provided by IBI. That save button was previously (WF7 and prior) saving the main called file which is, in this case, the .fex who defined !IBI.AMP var.

Now in WF8, the save button is saving the HTML file and not anymore the .fex.

So your !IBI.AMP var are not defined when the user will execute its save parameters.

Example of inserted row in the save parameter file in WF7 and prior :
<INPUT type="hidden" name="IBIMR_fex"  value="app/a_report.fex"/>


Now with WF8
<INPUT type="hidden" name="IBIMR_fex"  value="app/a_report.hml"/>


I'm in the situation now where I have to change all my HTML pages to not use !IBI.AMP because of the save button option that is now saving the .htm instead of the .fex


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
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
I still use !IBI.AMP. syntax, but do so within a .fex coupled with the -HTMLFORM tag combo. Works just fine. I've never tried to use those in conjunction with the GUI tool generated code. Sounds like that was a good choice.

Good luck!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Guru
posted Hide Post
I ended up building a fex that stores the value in a hold file. Which is a pain.

Thanks


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]passing a parameter to a HTML form

Copyright © 1996-2020 Information Builders