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     [CLOSED] Add blank on a listbox?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Add blank on a listbox?
 Login/Join
 
Gold member
posted
I am currently using a listbox populated from a masterfile. Im wondering if there is anyway to add a blank line in the listbox? To me it just looks like i should be able to add

  <OPTION value=nothing selected displaytext=""></OPTION>


but this gets overwritten by the data within the master file and no blank line is added.



 <SELECT id=PERIOD style="Z-INDEX: 2; LEFT: 10px; WIDTH: 100px; POSITION: absolute; TOP: 30px; HEIGHT: 290px" tabIndex=2 size=3 name=PERIOD dfformat="A7" addalloption="0" ibiformat="A7" ibiapp_app="syn_lit_cigar" ibic_server="EDASERVE" datafield="TAX_PERIOD" displayfield="TAX_PERIOD" datasource="DBO_PERIOD.mas" datatype="1" operation numofrecords="-1">
</SELECT>  

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


WF 7.1.7- Windows XP
 
Posts: 63 | Registered: August 28, 2007Report This Post
Virtuoso
posted Hide Post
Can you use the GUI to develop this report?
If so it gives you the ability to add an "ALL" row




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Virtuoso
posted Hide Post
What is the purpose of the blank line in the list box? Just a place holder? Can it be selected as a value?

As a general rule, if you can't get what you need using the options provided then you need to manually created the contents of the list box using a procedure and instruct WF to use a procedure instead of a field. If it's inside an HTMLform, you can also execute the procedure and hold, and then manually contruct your list box with something like

<select id=PERIOD name=PERIOD size=3 multiple style="FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-FAMILY: Arial; WIDTH:300px;" >
<OPTION value=" "  selected displaytext=""></OPTION>
!IBI.FIL.HOLDLIST;
</SELECT>

where HOLDLIST is the name of the hold file you created. It will contain the HTML code for the ramainder of your list items.

You would want to make sure that you have some Javascript to make sure that the blank line cannot be selected as a value.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Gold member
posted Hide Post
I did use the GUI but the "ALL" is not what im looking for. Basically I wanted to add a blank row so if the row was blank I could pass the blank into the report to do some other tasks.


WF 7.1.7- Windows XP
 
Posts: 63 | Registered: August 28, 2007Report This Post
Virtuoso
posted Hide Post
So is that blank line an acceptable value (comtained in the field values) for that field? Sound like you might just be doing some error checking within your executed fex to see if there is a blank and continue with some other processing. You could do the same with the ALL value. Just add a line like

-SET &NEWVALUE=IF &VALUE EQ 'FOC_NONE' THEN ' ' ELSE &VALUE;

and use &newvalue in your procedure. At least that lets you stay in the GUI for report and launch page development.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
And in stead of using the master file to generate the listbox, you could use a fex to do the same. Difference is that in your fex you can practically do whatever you want/need to do to populate the listbox. It is the way I prefer to do these kind of things.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
Perhaps this might also be a solution (http://www.plus2net.com/javascript_tutorial/list-adding.php). It is a pure javascript method.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report 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     [CLOSED] Add blank on a listbox?

Copyright © 1996-2020 Information Builders