Aravinth Thangavel (AravinthT)
Tata Consultancy Services

Tata Consultancy Services
AravinthT Member since 2016 16 posts
Tata Consultancy Services
Posted: September 19, 2017
Last activity: September 20, 2017
Posted: 19 Sep 2017 9:12 EDT
Last activity: 20 Sep 2017 3:06 EDT

Upgrading Java 02 API to 03-02. SendData() and isBound() functions

Hi I am trying to upgrade Java API from 02 to 03-02 for a Java code that we have written to download a PageList as an excel file. We are using this activity to convert a page list into excel file and download it. We have some customizations needed while exporting to excel hence we are using our own activity. I am trying to upgrade this activity to use 03-02 Java API version instead of deprecated 02 version. I am not able to convert the below code into 03-02 version. What is the 03-02 version code for the below Java code:

Page objHeadersPage = getProperty("pxRequestor.pyHTTPResponseHeaders").getAsPage();
String fname="attachment;filename="+getParameterValue("ExcelFileName")+".xls";
if (objHeadersPage.isBound())
objHeadersPage.setValue("contentType" ,"application/");
objHeadersPage.setValue("ContentDisposition" , fname);
sendData("", strData.toString());
sendData("","Error. Can't get \"pxRequestor.pyHTTPResponseHeaders\" page");

***Edited by Moderator Marissa to update categories***

Data Integration System Administration Upgrades
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.