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] HTML Page - Blank Vaue in Listbox

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HTML Page - Blank Vaue in Listbox
 Login/Join
 
Silver Member
posted
This has to be a highly simple thing and I must just be doing something wrong but I have a very simple fex which in it's Where statement has a dynamic prompt (from a simple focus file with a single column of data) and blank is a valid value.
When I run it using the standard prompt page, it runs fine and I can select blank with no problem.
We built a simple html page and just imported this report to it and allowed it to put the prompts on it but it won't allow me to select blank in the list box. It's like html can't interpret the blank option in the list box.

I can duplicate the issue on 8008 and 8105.

I have a case open with IBI and they are looking at it but thought I'd give the forum a shot as well.

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


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Report This Post
Virtuoso
posted Hide Post
In many languages "blank" is often considered as an empty or Null value.

Maybe you should build your own list box values such as this way:
SET ASNAMES = ON
 
DEFINE FILE CAR
TRI     /A4   = '1';
TRIA    /A4   = '0';
CODE    /A10V = COUNTRY;
CODEA   /A10V = ' ';
LST     /A10V = LCWORD(10, COUNTRY, 'A10');
LSTA    /A10V = 'blank';
END
 
TABLE FILE CAR
SUM  LSTA    AS 'LST'
BY TRIA      AS 'TRI'
BY CODEA     AS 'CODE'
BY COUNTRY NOPRINT
WHERE READLIMIT   EQ 1;
WHERE RECORDLIMIT EQ 1;
ON TABLE HOLD
END
-RUN
 
TABLE FILE CAR
SUM LST    AS 'LST'
BY TRI     NOPRINT
BY CODE    AS 'CODE'
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
MORE
FILE HOLD
END
-RUN


You extract the whole list of values except the "blank" one and add it yourself to the list.


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
Silver Member
posted Hide Post
The fex itself works as the standard prompt page works fine when I select blank so it seems like webfocus itself is translating it OK.
Also on the html page, if I make the listbox not required and select the blank value it then brings the standard prompt page up and I can select blank from there.
It's the html which can't translate/pass the blank value.


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Report This Post
Silver Member
posted Hide Post
Just wanted to ensure I put the final solution to this out there for anyone else.
We got this working by a default of '' for the prompt into the fex (- DEFAULT &G_L_CLASS = ' ') and then ensuring that the Selection Required option of the list box was set to No. In our case as it was a multi select we also set the list box to multiple and add quotes = Yes.


WF 81.5, Windows7
AS/400 Database.
All Outputs

 
Posts: 46 | Registered: November 26, 2008Report 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] HTML Page - Blank Vaue in Listbox

Copyright © 1996-2020 Information Builders