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] hold'ed results are not showing - newbie

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] hold'ed results are not showing - newbie
 Login/Join
 
Member
posted
in order to generate html option elements for a selection element, we have the following working code (in file myholdings.fex):

TABLE FILE TABLE_FILE_FOR_DATA
SUM
COMPUTE txt1/A1000='';
BY LOWEST MY_COLUMN_NAME NOPRINT
WHERE ASIAKAS EQ '&SOMEVAR'
ON TABLE HOLD AS 'hldoptions_xyz' FORMAT ALPHA
END

in order to test that a copy of the above code is working, i copied it and changed the associated part to:
ON TABLE HOLD AS 'hldoptions_abc' FORMAT ALPHA

this should provide the exact same drop down options, except that i should be able to access it with !IBI.FIL.hldoptions_abc ... just to see that its working,

the above file is included into my html and here is the select element:
-INCLUDE myholdings

< !-- the above works perfectly -->

!-- the above doesn't work -->

Also this is the error that i get:
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
0 NUMBER OF RECORDS IN TABLE= 11 LINES= 11
0 NUMBER OF RECORDS IN TABLE= 2 LINES= 2
0 NUMBER OF RECORDS IN TABLE= 8 LINES= 8
0 NUMBER OF RECORDS IN TABLE= 8 LINES= 8
(FOC36225) UNABLE TO OPEN FILE hdloptions_abc SPECIFIED BY WEBFOCUS TABLE


any ideas people.. perhaps something i missed out?

thanks

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


WebFOCUS 8.0
Windows, All Outputs
 
Posts: 6 | Registered: April 27, 2013Report This Post
Expert
posted Hide Post
You say it does not work.

What happens ?

Have you checked to see if the same number of records are produced.

Have you looked at the HTML page ?
Are there some records not all, or no records ?

Is there an error in the code ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
My experience in the past has been that the HOLD file name (or SAVE file name) should be 8 characters or less, and referred to in upper-case.


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Master
posted Hide Post
Shouldn't that be

!IBI.FIL.yourholdname;

( WITH a semicolon ?)


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Member
posted Hide Post
@Waz
i added the error that i am getting. but the problem is that when i change the hold part for the original one from hldoptions_xyz to hldoptions_awe ... it works (the !IBI.FIL.hldoptions_awe), so it's not making sense to me :/
@Twanette
if that was the case than hldoptions_xyz shouldn't work, but it does
@Dave
just forgot to add the semicolon, in the actual code it exists, i just forgot to post it in the forums.


WebFOCUS 8.0
Windows, All Outputs
 
Posts: 6 | Registered: April 27, 2013Report This Post
Silver Member
posted Hide Post
This worked fine for me. Did you have
-HTMLFORM BEGIN
and
-HTMLFORM END
?

DEFINE FILE CAR
COUNTRY_OPTIONS/A500='<OPTION VALUE="'||COUNTRY||'">'||COUNTRY||'</OPTION>';
END
TABLE FILE CAR
PRINT
DST.COUNTRY NOPRINT
BY COUNTRY_OPTIONS
ON TABLE HOLD AS HLDOPTIONS_XYZ FORMAT ALPHA
END

TABLE FILE CAR
PRINT
DST.COUNTRY NOPRINT
BY COUNTRY_OPTIONS
ON TABLE HOLD AS HLDOPTIONS_ABC FORMAT ALPHA
END

-HTMLFORM BEGIN
<SELECT>
!IBI.FIL.HLDOPTIONS_XYZ;
</SELECT>
<SELECT>
!IBI.FIL.HLDOPTIONS_ABC;
</SELECT>
-HTMLFORM END



Year(s) of experience in WebFOCUS: 5+. Using WebFOCUS 7.7.03 on Windows platform with Oracle/SQL Server.
 
Posts: 41 | Registered: September 08, 2008Report This Post
Expert
posted Hide Post
Have you checked to see if the file is created, and where it is ?

TABLE FILE TABLE_FILE_FOR_DATA
SUM
COMPUTE txt1/A1000='<option value="'||MY_COLUMN_NAME||'" '| '' |' />'||MY_COLUMN_NAME||'</option>';
BY LOWEST MY_COLUMN_NAME NOPRINT
WHERE ASIAKAS EQ '&SOMEVAR'
ON TABLE HOLD AS 'hldoptions_xyz' FORMAT ALPHA
END

-RUN
? FILEDEF
! DIR
-EXIT


This should list the locations of the allocated files and the contents of the agents directory.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi @damercytrain,
Well, perhaps it is truncating the filename. Or perhaps you're just luckiy now, but may be less lucky if you upgrade to a version newer than 7.6.
As per the 7.7 manual, there are a number of references to the limit when using "!IBI.FIL.":
quote:

Create a procedure:
a. Include the following command
ON TABLE HOLD FORMAT HTMTABLE AS report
where:
report is the name of a virtual file that contains the report output. The name can
be from 1 to 8 characters. Do not include an extension.

and
quote:

Include the following command to save the values to the allocated file.
ON TABLE HOLD FORMAT ALPHA as textfile
where:
textfile is the name of the file. The name can be from 1 to 8 characters.


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Member
posted Hide Post
thanks for all your help. i fixed it. Turns out it was a typo:
IBI.FIL.hdloptions_xyz rather than IBI.FIL.hldoptions_xyz


WebFOCUS 8.0
Windows, All Outputs
 
Posts: 6 | Registered: April 27, 2013Report This Post
Expert
posted Hide Post
The benefits of Cut and Paste......


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] hold'ed results are not showing - newbie

Copyright © 1996-2020 Information Builders