×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Thank you Mark Murphy! The key was using the valueOf method to simulate
java shorthand apparently. There were a couple typos in your code, so I'm
posting what I used for future reference:



dcl-c DataConsolidateFunction_class
'org.apache.poi.ss.usermodel.DataConsolidateFunction';

dcl-s DataConsolidateFunction
object(*java:DataConsolidateFunction_CLASS) template;

dcl-pr dataConsolidateFunction_valueOf
like(DataConsolidateFunction) static
extproc(*java:DataConsolidateFunction_Class:'valueOf');
arg0 like(jString) const;
end-pr;

DCL-PR addColumnLabel EXTPROC(*JAVA :
'org.apache.poi.xssf.usermodel+
.XSSFPivotTable' : 'addColumnLabel' );
arg0 OBJECT(*JAVA
: 'org.apache.poi.ss.usermodel.DataConsolidateFunction' );
arg1 INT(10) VALUE;
END-PR ;


dcf=dataConsolidateFunction_valueOf(
new_string('SUM'));
callp addColumnLabel(PivotTable
:dcf
:1);


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-2026 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.