× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John I think you are correct.

I had a quick look at all of my POI notes and could not see anything for
setting the filter value.

My suggestion would be to have a look on th ePOI site and see if you can
find the class required to set the filter value and add that class.

If I have some time over the weekend I will try and have a look.

Good luck



Don Brown


"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> wrote on 24/10/2019
11:00:29 PM:

From: "John Rusling via RPG400-L" <rpg400-l@xxxxxxxxxxxxxxxxxx>
To: "RPG programming on IBM i" <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: JRusling@xxxxxxxxxxx
Date: 24/10/2019 11:01 PM
Subject: Re: How to apply filter to a sheet in RPG. (HSSFR4, POI,
Spreadsheet)
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>

Thanks for the reply Don,
My searches aren't turning up that link, if you can, please paste in or
indicate the month in 2016. Thx.

But... This looks like the code i am currently using (found on the list
a
few years back) to 'hook-up' a filter to range.

In RPG, i can put a filter on a column range, but when user opens
spreadsheet, the filter values are all selected... there is no
subsetting.

What i want to do is, after hooking up a filter to a range (i can do
this
now)

Set the filter to certain values so when user opens sheet they only see
filtered values.

ie: -if- the filter values, when pulled down, are A, B, C, D, E and
(Blanks) [all values selected]
I would like to set the values to A, B, and C. . . thus excluding D,
E
and (Blanks).

John


<snip>
I am not sure if this is what you are after but I have this from a
previous thread back in 2016 ...

For anyone who was following this thread, the following will
correctly provide all the required entries in hssf_h:

D AUTOFILTER_CLASS...
D c 'org.apache.poi.ss.usermodel-
D .AutoFilter'
D SSAutoFilter...
D S O CLASS(*JAVA
D : AUTOFILTER_CLASS)


D ssSheet_setAutoFilter...
D PR like(SSAutoFilter)
D EXTPROC(*JAVA: SHEET_CLASS
D :'setAutoFilter')
D ref like(CellRangeAddress) const

In the rpg program references as an example:

range = new_cellRangeAddress(0:10:0:4);
ssSheet_setAutoFilter(sheet:range);

The missing piece was provided by a gentleman in England
who figured out that the ssSheet_setAutoFilter needed a reference back
to SSAutofilter using the "like(SSAutoFilter)" as shown.




Don Brown
<br />
The information in this email is confidential and may be legally
privileged.
It is intended solely for the addressee. Access to this email by
anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying,
distribution or any action taken or omitted to be taken in reliance on
it, is
prohibited and may be unlawful.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud
service.
______________________________________________________________________



______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.