Focal Point
[SOLVED] HTML Page - Blank Vaue in Listbox

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

October 21, 2016, 03:31 PM
rogerwilkouk
[SOLVED] HTML Page - Blank Vaue in Listbox
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

October 21, 2016, 03:55 PM
MartinY
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
October 21, 2016, 05:10 PM
rogerwilkouk
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

November 10, 2016, 10:10 AM
rogerwilkouk
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