|
From: "John Rusling via RPG400-L" <rpg400-l@xxxxxxxxxxxxxxxxxx>Spreadsheet)
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,
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>a
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
few years back) to 'hook-up' a filter to range.this
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
now)E
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,
and (Blanks).privileged.
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
It is intended solely for the addressee. Access to this email bycopying,
anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
distribution or any action taken or omitted to be taken in reliance onit, is
prohibited and may be unlawful.questions.
--
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
link:
Help support midrange.com by shopping at amazon.com with our affiliate
https://amazon.midrange.comservice.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud
______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.
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.