OAF/XML Pub Integration Issue
Hi All,
I am using XML publisher through OAF, All is working fine except for data containing Japanese or Chinese characters are not getting displayed on final PDF report.
I tried using concurrent manager approach and it is working perfectly fine for Japanese characters.
I am using below methods: -
Application Module
XMLElement ele = (XMLElement)voProject.writeXML(0,XMLInterface.XML_OPT_ALL_ROWS);
Controller
DocumentHelper.exportDocument(pageContext,"PER","XML_TEST_EMP","ja","JP",l_erXML,"PDF",null);
Thanks,
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Generated by Oracle Reports version 6.0.8.27.0
-->
- <compVO>
- <compVORow>
<EmpName>????? ???? / ?? ??</EmpName>
</compVORow>
</compVO>
Similar Messages
-
OIM - SOA 11g R1 Integration Issue
Hi ,
I am facing an integration issue in my newly set up Dev environment .
We have single node OIM and SOA environment . I was executing the basic connectivity checks to ensure that the environment is good and ready for use .
When I ran the SOA-OIM Configuration test (http://i.tinyuploads.com/M1zyaP.jpg ) in the environment from Diagnostic Dashboard, it failed .
I have verified the URLs from EM and also in MDS (in oim-config.xml) file . All entries seem to be there , not sure why its failing ? Any pointers ??
I have checked the rmi and soap urls here Application Defined MBeans ->oracle.iam->Server (OIM ServerName)->Application:oim->XML Config->Config->XMLConfig.SOAConfig->SOAConfig and they looked perfectly fine .
Any clues ??
Regards
Surendid you tried accessing the oim and soa urls:
1. http://<hostname>:<port>/oim (login with xelsysadm user)
2. http://<hostname>:<port>/soa-infra (login with weblogic user)
Are you able to login to both urls. -
XML Pub: Purchase Order Report (Portrait) running too long
Hi:
"XML Pub: Purchase Order Report (Portrait)" running too long. It should be 1min. but now over 20min. This is 11.5.10.2 on unix.
The log file is like the following. It stops there. I checked another one ran before, there are more data...
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_report_type='R'
P_po_num_from='6640015'
P_po_num_to='6640015'
P_test_flag='N'
P_user_id='14955'
P_QTY_PRECISION='4'
P_fax_ind='N'
P_EMAIL_IND='N'
P_REQUEST_SOURCE='MANUAL'
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
XML_REPORTS_XENVIRONMENT is :
/oracle/product/8.0.6finshdw/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oracle/product/8.0.6finshdw/guicommon6/tk60/admin/Tk2M
otif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
===============================================
From the internal Manager log:
Process monitor session started : 29-APR-2011 12:35:56
Internal Concurrent Manager found node APPSNOTE2 to be down. Adding it to the l
ist of unavailable nodes.
Process monitor session ended : 29-APR-2011 12:36:00
Process monitor session started : 29-APR-2011 12:38:00
Process monitor session ended : 29-APR-2011 12:38:04
Process monitor session started : 29-APR-2011 12:40:04
Process monitor session ended : 29-APR-2011 12:40:09
Process monitor session started : 29-APR-2011 12:42:09
Internal Concurrent Manager found node APPSNOTE1 to be down. Adding it to the l
ist of unavailable nodes.
Process monitor session ended : 29-APR-2011 12:42:15
======================
please advise.last lines of FNDCPGSC29793.tx
)]:BEGIN :[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.sleep()]:Waiting 10 seconds (10000 ms)
[ 1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.run()]:Running loop from the top.
-1:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.processControlEvent(String)]:BEGIN (noEvent)
:-1:-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.processControlEvent(String)]:Did not receive any control events.
-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsm.GSMQueueProcessor.process()]:BEGIN
:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsm.GSMQueueProcessor.read()]:BEGIN
:-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.run()]:Running loop from the top.
-1:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.processControlEvent(String)]:BEGIN (noEvent)
:-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.processControlEvent(String)]:Did not receive any control events.
:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.process()]:BEGIN
-1:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.startAutomaticComponents()]:BEGIN
-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.process()]:On-Demand monitoring will not occur this round; the count is 3 out of 5
[Apr 29, 2011 1:19:5 :-1:-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.run()]:Resetting Error Count
[Apr 29, 2011 1:19:51 1:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.sleep()]:BEGIN :1304097591452:Thread[ComponentMonitor,5,main]:0:-1:
-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.sleep()]:Waiting 60 seconds (60000 ms)
[Apr 29, 2011 1:20:00 PM EDT] 1:-1:PROCEDURE:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.sleep()]:BEGIN
[Apr 29, 2011 1:20:00 PM EDT]: 4:-1:-1:STATEMENT:[SVC-GSM-WFALSNRSVC-262965 : oracle.apps.fnd.cp.gsc.Processor.sleep()]:Waiting 10 seconds (10000 ms)
Edited by: user9231603 on Apr 29, 2011 10:22 AM
Edited by: user9231603 on Apr 29, 2011 10:25 AM -
Reports 6i and WeBDB 2.2 Integration Issues
1. I have installed reports6i andintegrated with WebDB 2.2 by running the fo
llo
wingScripts:
oracle_home\report60\server\security\rwwwvins.sql webdb and
\oracle_home\report60\server\security\rwenable.sql
as described in the webdb& reports6i integration issues document in oracle r
epo
rts6i beta site.
Afterinstalling, when i logged to webdb as webdb user, i was able to see sev
er
access and rdf access options in webdb 2.2
However, when i log as an userwhere i have created forms components i am una
ble
to access the abovecomponents. (there is no documentation on what privileg
es
needs to be providedto the user., however i had given grants to following ro
les
withRW_ADMINISTRATOR, RW_POWER_USER, RW_DEVELOPER AND RW_BASIC_USer
nullHi Matt,
You didn't mention but do you also wish to install the database(8i) on the same machine ?
I am also trying to install all these products(+8i and designer 6i) on the same box but I am concerned more about the min. resources needed before I get started.(I put up a question about it on the 6i Forum, but nobody has answered yet !)
The correct install order should be Forms/Reports 6i then Forms/Reports 6i Server and then WebDb 2.2.
Forms /reports server needs a http listener and installs en configures the WebDb listener for the job.(you are prompted for this during tho have the install process).This is handy if you are intending to use WebDb anyway. When you install Webdb it detects the already installed WebDb listener and does not reinstall.
You do have the SYS password on the database you will use to stored the WDK and WebDb schema.
About installing the demo.....
I dont' think there are any special issues.I have never done it.
If you are intending to install an 8i database on the same box there are some important things to consider with respect to the install order and what products in which Oracle home must be installed.
1.Forms/Reports first in the default_oracle
home.
2.Then Oracle 8i in a 2nd oracle home call
it ora81 for example.
3.Then WebDb in the non oracle 8i home !!
This is just a quick summary.
If you run into any problems let me know
Good Luck.
Dave. -
Hello I am doing some SOAP XML stuff and I am having an issue that hopefully I can get some help with.
Is XML like this valid to do in a SOAP message?
<prompt>1 &_lt_; 0? <prompt>It's suppose to represent "1 < 0?"
* the forum formatter seems to eat up my encoded text and transofrms it into acutal "<" so I am placing underscores "_" everywhere to keep the text. so above is actually without underscores
From what I've read I think it is. I have text like this transported as part of the overall SOAP message to my client from the server.
In my code I do:
// Create an instance of the DocumentBuilderFactory
DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();
// Get the DocumentBuilder from the factory
DocumentBuilder builder = documentFactory.newDocumentBuilder();
Document doc = builder.parse(inputStream);
...inputStream is an InputStream (specifically ByteArrayInputStream) containing the XML.
The issue I am having is that wherever I have an '&' (such as "&_lt_;" or "&_gt_;" or "&" etc...) the parsing seems to get cut off and the rest of the string doesn't seem to get parsed. So the above string "1 &_lt_; 0?" ends up being "1 ".
Also is there an easy way to get back or rebuild the XML into a string from a Document object? I would really like to do that right after I do the parse method and see if the XML data that the Document object has is the same as what's in the inputStream (which is "1 &_lt_; 0?").
Any input you can provide is much appreciated. Thanks,
LatemHello I am doing some SOAP XML stuff and I am having an issue that hopefully I can get some help with.
Is XML like this valid to do in a SOAP message?
<prompt>1 &_lt_; 0? <prompt>It's suppose to represent "1 < 0?"
* the forum formatter seems to eat up my encoded text and transofrms it into acutal "<" so I am placing underscores "_" everywhere to keep the text. so above is actually without underscores
From what I've read I think it is. I have text like this transported as part of the overall SOAP message to my client from the server.
In my code I do:
// Create an instance of the DocumentBuilderFactory
DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();
// Get the DocumentBuilder from the factory
DocumentBuilder builder = documentFactory.newDocumentBuilder();
Document doc = builder.parse(inputStream);
...inputStream is an InputStream (specifically ByteArrayInputStream) containing the XML.
The issue I am having is that wherever I have an '&' (such as "&_lt_;" or "&_gt_;" or "&" etc...) the parsing seems to get cut off and the rest of the string doesn't seem to get parsed. So the above string "1 &_lt_; 0?" ends up being "1 ".
Also is there an easy way to get back or rebuild the XML into a string from a Document object? I would really like to do that right after I do the parse method and see if the XML data that the Document object has is the same as what's in the inputStream (which is "1 &_lt_; 0?").
Any input you can provide is much appreciated. Thanks,
Latem -
XML Pub v. 5.0.0 Micr Font problems
Hello--
I am trying to get MICR font output from XML Pub 5.0.0 for AP checks on Oracle 11.5.10. The MICR is not processing correctly--it is just showing up as a regular font. We have uploaded an xdo.cfg file to the location /test_sysdict/apps/appltest/xdo/11.5.0/resource and the font is located at /test_sysdict/apps/appltest/xdo/11.5.0/resource/fonts/MICR.ttf.
My settings in Word properties are as follows currently:
Name: xdo-font.MICR.normal.normal
Type: Text
Value: /test_sysdict/apps/appltest/xdo/11.5.0/resource/fonts/MICR.ttf
I have also tried the following:
Name: xdo-font family="MICR" style="normal" weight="normal"
Type:Text
Value: truetype path="/test_sysdict/apps/appltest/xdo/11.5.0/resource/fonts/MICR.ttf"
My config file reads as follows:
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="system-temp-dir">/tmp</property>
</properties>
<fonts>
<font family="MICR" style="normal" weight="normal">
<truetype path="fonts/MICR.ttf"/>
</font>
</fonts>
</config>
Can anyone spot something that I am doing wrong that would prevent the font from working? I know that the report recognizes the cfg file because we've applied and then unapplied some security settings successfully using the cfg file. I've been scouring the forum and tried quite a few things but haven't gotten it to work yet.
Any help at all would be appreciated.
thanks!
Katehi....i am struggling with the E-13B MICR fonts..Please advice how you have fixed ur problem..mine is similar to it.
I have installed the MICR (E-13B) font on my client machine.
It exists in ‘C:\Windows\Fonts\E-13B’ , I have also put it in ‘C:\Program Files (x86)\Java\jre6\lib\fonts\E-13B’ &
‘C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts’
In my RTF template I am able to see the font ‘E-13B’, BUT when I do a preview in PDF it is not showing up in MICR font.
The fields supposed to appear in MICR font appear in normal (Arial / Times New Roman) Format.
Whereas if I do an preview in RTF the fields appear as expected in MICR font itself. So I am assuming there must be something that we have to do with the PDF fonts as well.
I have also tried to modify the config file in ‘C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg’.
When I modify this file and added the following lines
<font family="E-13B" style="normal" weight="normal">
<truetype path="C:\Windows\Fonts\E-13B.ttf" />
</font>
My preview from RTF fails with the following error
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at oracle.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:85)
at oracle.xdo.template.FOProcessor.getTmpFOFile(FOProcessor.java:1998)
... 5 more
Please advise on how to proceed further. How did you get it running for yourself. -
Photoshop Fill - A major integration issue?
For the first time in a production environment, I was ready
to use FW CS3 to slice and dice a colleague's PSD. I opened it in
Photoshop and then in Fireworks for comparison - the two looked
nothing alike.
This particular colleague likes to take advantage of PS's
Fill setting (as opposed to opacity and I can understand why in
certain situations) - but Fireworks has no understanding of this
Fill concept so every layer that uses it is darker in FW. So what's
a guy to do?
Is this a known integration issue? Will there be a solution
for CS4? Can I wait that long? Is it ever really worth trying to
open a PSD in Fireworks?
I'm more than a little disappointed...
Matt
FirewoiksI haven't tried this yet, but here's a thought:
PS is layer based, FW is object bases. As a result, in FW you
can
control the opacity of layers AND objects. Is it similar
enough to
Photoshop's Fill and Opacity in a layer? Maybe adjusting the
opacity of
the object will get you what you need? It might impact the
stroke on the
object, but you could possibly duplicate the object and
remove/mask it's
fill, so the solid stroke remains.
It's a workaround, and a bit more work, but it might solve
the problem
for now.
Jim Babbage - .:Community MX:. & .:Adobe Community
Expert:.
Extending Knowledge, Daily
http://www.communityMX.com/
CommunityMX - Free Resources:
http://www.communitymx.com/free.cfm
.:Adobe Community Expert for Fireworks:.
news://forums.macromedia.com/macromedia.fireworks
news://forums.macromedia.com/macromedia.dreamweaver
Stowball wrote:
> Linda
>
> The problem is not caused by any colour mode or embedded
profiles - it's
> caused by Fireworks' lack of support for Photoshop's
Fill feature.
>
> The Fill feature is useful, because you can change the
opacity of the actual
> fill, without changing the opacity of any effects - like
strokes - that are
> applied to the layer.
>
> My colleague uses this method frequently in his his
designs.
>
> This PNG demonstrates it perfectly:
>
http://www.mattstow.com/downloads/fill_test.png
>
> And the original PSD can be found here:
>
http://www.mattstow.com/downloads/fill_test.psd
>
> This is a real issue for PS->FW interoperability - I
basically could not use
> FW for the task of preparing a design for the web.
>
> I'd be interested to hear how this will affect other
users.
>
> Regards
>
> Matt
> -
Help regarding XML-Based Integration with XAware
If any one have some tutorial related with this topic:
XML-Based Integration with XAware Kirstan VandersluisIt's a book. Go and buy it. Why would any part of it be available for free on the web?
-
Lync 2013 Outlook Integration Issues
I have a client that is having Exchange Outlook Integration issues when trying to set up Lync 2013.
The email address is [email protected] The sip address is
[email protected] But the Lync server is lync.domain.local. Client is on Exchange 2010.
The address book is not downloading and the outlook integration issue error icon appears on the bottom right.
If the client is set manually to [email protected] the address book downloads.
But can Lync work in the long run set up like this?Hi,
Did you solve the issue with the help of Andrew provided?
Which sip domain name did you use for default SIP domain ([email protected] or
[email protected])?
Did the issue happen internal or external?
For the issue of cannot download address book, please check the External Base URL on Lync topology with the help of the link below:
http://ucken.blogspot.in/2011/07/configuring-lync-for-external-access.html
For the issue of Lync and Exchange integration you can refer to the link below:
http://blog.schertz.name/2010/11/lync-and-exchange-im-integration/
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
OAF-UCM integration - Issue in deploying RIDC.jar to EBS server
Hi ,
We are doing OAF-UCM integration with followng business scenario and need your help urgently.
Business Scenario :
We have custom OAF pages with OA train and and in one train link we have added 'managed attachment' button to open UCM page to add documents to DM server .
We are successfully able to do integration of OAF to UCM , that is we are able to open UCM page on clicking Managed attachment button.Business agreed that OAF and UCM are two different applications so after transaction is completed in UCM, at OAF we have refresh button which user has to clicked explicitly to pull document metadata ( lilke PDF URL etc) to OAF pages.
This is data needs to stored in EBS tables as well , to achive the same we are using RIDC mechanism to PULL the data stored corresponding on 1 unique metadata.
I m successfully able to integrate the PULL( Sychnonizaton) of data on click on refersh button of OAF page. RIDC ( UCM version 11g) is correctly configured in Jdev10g and working fine on local oc4j server,
Problem :
When this RIDC is jar is deployed in EBS server I m getting following error -
Request URI:/OA_HTML/OA.jsp
Exception:
java.lang.NoClassDefFoundError: oracle/stellent/ridc/IdcClientException
We have added RIDC jar(actual physical path is =/APPS/XXXXXXX/common/java/) file name in jserv.properties and also added in CLASS PATH
# Custom classpath
wrapper.classpath=/APPS/XXXXXXX/common/java/oracle.ucm.ridc-11.1.1.jar
Appreciate if some can provide pointers how to deploy this external jar file (RIDC.jar) and avoid this error.
Many Thanks ,
AshishOk, Figured out the issue,
Values in the OAF_AXF_CMD_PARAMS table was not matching with the actual attributes on the OAF pages. The four values
Entity Name, Primary Key, View Object and Attributes are to be entered for each page where we are intending to have the MA button.
Thanks,
Rajiv. -
How to disable 'Save' button when OAF and XML Publisher integrated...URGENT
Hi,
I am new to the OA Framework and XML publisher. I have been working on a requirement where I am designing a new page in Manager Self Service with few fields and a submit button. Also designed a RTF template in XML publisher to display the output in PDF format.
When the details are entered on the page and click on 'Submit' button, the PDF will Open with the data populated. This is working perfectly... thanks to the forum.
But my issue is: When the submit button is clicked, it displayes a dialog box with Open/Save/Cancel options and if I click the 'Open', the PDF will be opened. But my client is a retail client and they don't want store managers to save this PDF so either I have to skip this dialog box and directly open the PDF or I have to disable the 'Save' on the dialog box.
Gurus -- Please help me how to achieve this. This is very urgent
Below is the piece of code I am using in the controller to generate the PDF.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
APP_NAME,
TEMPLATE_CODE,
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF,
null,
pdfFile);
Thanks in Advance,
NarenFrank, thanks for the update.
But do you want me to try ControllerContext.getInstance().getCurrentViewPort().isDataDirty(); in button disable property?
I have written one method in my am like
public boolean isTransactionDirty(){
return getDBTransaction.isDity();
and exposed that method to client side and i try to use this method in my button disable property as
disable#{bindings.isTransactionDirty.execute} but this is not working.
Thanks -
XML Publisher Integration: OAF Page in invalid after PDF creation
Hello,
after days of googling and trying out various code changes in vain I hope to find help in this forum.
The requirement is to extend the shipment page PosAsnMainPage in iSupplier Portal, adding the creation and download of PDF shipping documents for the orders selected in the table. These documents can be created for multiple shipments at once, always resulting in exactly one PDF file.
To achieve this, I have added a button to the page that triggers the event "XxpoPrintShippingDocuments". In the controller class that extends the standard iSupplier Portal Controller, I have extended processFormRequest as follows:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(strEvent.equals("XxpoPrintShippingDocuments") && ("Y").equals(pageContext.getProfile("XXPO_DROPSHIPDOCUMENTS_SECURITY")))
outputDropshipDocuments();
}//end processFormRequest
private void outputDropshipDocuments()
* on the view object, compose a list of PoHeaderId, PoLineId, LineLocationId from the rows that were selected
OAViewObject vo = (OAViewObject) am.findViewObject("PosShipmentsVO");
* Create PDF and a pop-up window for download
//file info
String fileName = pageContext.getMessage("XXPO", "XXPO_SD_FILENAME", null);
String fileType = "PDF";
boolean appendDate = true;
//template info
String appName = getApplicationName(vendorSiteId);
String templKey = getTemplateKey(vendorSiteId);
//user info
Integer userId = new Integer(pageContext.getUserId());
try
XxpoShippingDocumentsOut out = new XxpoShippingDocumentsOut(pageContext, webBean);
* Save the printed status
* This is supposed to be done here instead of during xml generation.
* If any uncaught exception occurs before, the printed status remains unchanged.
Class printClasses[] = {Map.class, Integer.class};
Serializable printParams[] = {selectedOrders, userId};
am.invokeMethod("savePrintStatus", printParams, printClasses);
out.setFileInfo(fileName, fileType, appendDate);
out.outputFile(xmlDoc, templKey, appName);
} catch (Exception e)
throw new OAException(e.getMessage(), OAException.WARNING);
Finally, in XxpoShippingDocumentsOut.outputFile there is the following code:
public void outputFile(XMLDocument xmlDoc, String templateKey, String appName)
try {
ServletOutputStream os = response.getOutputStream();
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType(contentType);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlDoc.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream File = new ByteArrayOutputStream();
OADBTransactionImpl transaction = (OADBTransactionImpl) am.getOADBTransaction();
TemplateHelper.processTemplate(
transaction.getAppsContext(),
appName,
templateKey,
transaction.getUserLocale().getLanguage(),
transaction.getUserLocale().getCountry(),
inputStream,
outputType.byteValue(),
null,
File);
* write the output to the HttpServletResponse object and flush -
* this creates the pop-up window
byte[] b = File.toByteArray();
response.setStatus(HttpServletResponse.SC_OK);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
} catch (Exception e) {
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
Most of this works just fine - I select some orders on the standard iSP page, press the button and download the PDF file. But after that, the page is not "valid" any longer: the selections made are still visible but when a button is pressed (for instance the Create Shipment Notice or my own button), I get an error stating that items must be selected first.
If I deactivate the lines in outputFile that set the response or flush the output stream, I can further use the previously made selections and everything works fine - except I don't get the PDF I need, obviously.
Does anyone have an idea of what is missing here to reload the page or anything? Is there any workaround (i.e. opening the file downlad in a separate browser tab)?
I'd be grateful for any advice on this. If you wish any further information, please let me know.
Best regards,
Michelle
Edited by: 968905 on 01.11.2012 06:09
Edited by: 968905 on 12.11.2012 03:02Hello,
after days of googling and trying out various code changes in vain I hope to find help in this forum.
The requirement is to extend the shipment page PosAsnMainPage in iSupplier Portal, adding the creation and download of PDF shipping documents for the orders selected in the table. These documents can be created for multiple shipments at once, always resulting in exactly one PDF file.
To achieve this, I have added a button to the page that triggers the event "XxpoPrintShippingDocuments". In the controller class that extends the standard iSupplier Portal Controller, I have extended processFormRequest as follows:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(strEvent.equals("XxpoPrintShippingDocuments") && ("Y").equals(pageContext.getProfile("XXPO_DROPSHIPDOCUMENTS_SECURITY")))
outputDropshipDocuments();
}//end processFormRequest
private void outputDropshipDocuments()
* on the view object, compose a list of PoHeaderId, PoLineId, LineLocationId from the rows that were selected
OAViewObject vo = (OAViewObject) am.findViewObject("PosShipmentsVO");
* Create PDF and a pop-up window for download
//file info
String fileName = pageContext.getMessage("XXPO", "XXPO_SD_FILENAME", null);
String fileType = "PDF";
boolean appendDate = true;
//template info
String appName = getApplicationName(vendorSiteId);
String templKey = getTemplateKey(vendorSiteId);
//user info
Integer userId = new Integer(pageContext.getUserId());
try
XxpoShippingDocumentsOut out = new XxpoShippingDocumentsOut(pageContext, webBean);
* Save the printed status
* This is supposed to be done here instead of during xml generation.
* If any uncaught exception occurs before, the printed status remains unchanged.
Class printClasses[] = {Map.class, Integer.class};
Serializable printParams[] = {selectedOrders, userId};
am.invokeMethod("savePrintStatus", printParams, printClasses);
out.setFileInfo(fileName, fileType, appendDate);
out.outputFile(xmlDoc, templKey, appName);
} catch (Exception e)
throw new OAException(e.getMessage(), OAException.WARNING);
Finally, in XxpoShippingDocumentsOut.outputFile there is the following code:
public void outputFile(XMLDocument xmlDoc, String templateKey, String appName)
try {
ServletOutputStream os = response.getOutputStream();
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType(contentType);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlDoc.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream File = new ByteArrayOutputStream();
OADBTransactionImpl transaction = (OADBTransactionImpl) am.getOADBTransaction();
TemplateHelper.processTemplate(
transaction.getAppsContext(),
appName,
templateKey,
transaction.getUserLocale().getLanguage(),
transaction.getUserLocale().getCountry(),
inputStream,
outputType.byteValue(),
null,
File);
* write the output to the HttpServletResponse object and flush -
* this creates the pop-up window
byte[] b = File.toByteArray();
response.setStatus(HttpServletResponse.SC_OK);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
} catch (Exception e) {
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
Most of this works just fine - I select some orders on the standard iSP page, press the button and download the PDF file. But after that, the page is not "valid" any longer: the selections made are still visible but when a button is pressed (for instance the Create Shipment Notice or my own button), I get an error stating that items must be selected first.
If I deactivate the lines in outputFile that set the response or flush the output stream, I can further use the previously made selections and everything works fine - except I don't get the PDF I need, obviously.
Does anyone have an idea of what is missing here to reload the page or anything? Is there any workaround (i.e. opening the file downlad in a separate browser tab)?
I'd be grateful for any advice on this. If you wish any further information, please let me know.
Best regards,
Michelle
Edited by: 968905 on 01.11.2012 06:09
Edited by: 968905 on 12.11.2012 03:02 -
RFC to XML-RFC Parsing issue in RFC Adapter as Sender
Hi all,
I tried to use RFC adapter as a sender. The scenario I am trying to achieve is R3 -> RFC Adapter Sender --> BPM --> RFC Adapter Receiver --> SAP Auto-ID system.
The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails. Everything works as expected, except the RFC Adapter Sender.
The RFC I am calling has an input table. The input data I use works fine if I call it via SE37 or remotely from another SAP system. However, if I call it via RFC adapter, when XI parses the data into RFC-XML format, the input data is all messed up.
DATA: BEGIN OF ID_STR,
ID_VERSION(8) TYPE C,
ID(96) TYPE C,
ELEMENT_NAME(50) TYPE C,
ELEMENT_VALUE(128) TYPE C,
END OF ID_STR.
DATA: it_id LIKE TABLE OF ID_STR,
ls_id LIKE ID_STR.
ls_id-ID_VERSION = 'EPC_1.30'.
ls_id-ID = '30340242206DC3C00000000A'.
ls_id-element_name = 'BATCH_ID'.
ls_id-element_value = 'BATCH001'.
APPEND ls_id TO it_id.
CALL FUNCTION '/AIN/UI_MOBILE_MSG_SEND'
IN BACKGROUND TASK
DESTINATION 'RFC_UPDATEAII'
EXPORTING
IV_BUSINESS_PROCESS = '09'
IV_COMMAND = 'DO'
IV_ACTION_TYPE = 'APL2'
IV_PRT_ID = '31140242200000000F000000'
IV_DEVGRP_EXTID = 'MOBILE'
TABLES
IT_ID = it_id
commit work.
And the parsed RFC-XML message is:
<?xml version="1.0" encoding="UTF-8" ?>
<rfc:_-AIN_-UI_MOBILE_MSG_SEND
xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<IV_ACTION_TYPE>APL2</IV_ACTION_TYPE>
<IV_BTD_EXTID />
<IV_BTD_TYPE />
<IV_BUSINESS_PROCESS>09</IV_BUSINESS_PROCESS>
<IV_COMMAND>DO</IV_COMMAND>
<IV_DEVGRP_EXTID>MOBILE</IV_DEVGRP_EXTID>
<IV_LOC_EXTID />
<IV_LOC_TYPE />
<IV_PRT_ID>31140242200000000F000000</IV_PRT_ID>
<IV_PRT_ID_VERSION />
<IV_REASON_CODE />
<IV_UNAME/>
<ET_RETURN />
<IT_ID>
<item>
<ID_VERSION>EPC_1.30</ID_VERSION>
<ID>206DC3C00000000A BATCH_ID</ID>
<ELEMENT_NAME />
<ELEMENT_VALUE />
</item>
</IT_ID>
</rfc:_-AIN_-UI_MOBILE_MSG_SEND>
You can see the data in the table is all wrong, it should be:
<IT_ID>
<item>
<ID_VERSION>EPC_1.30</ID_VERSION>
<ID>30340242206DC3C00000000A</ID>
<ELEMENT_NAME>BATCH_ID</ELEMENT_NAME>
<ELEMENT_VALUE>BATCH001</ELEMENT_VALUE>
</item>
</IT_ID>
The calling system is a 4.6C non-unicode system, and the destination system is a unicode system (this does not matter since the first part of the integration is between R3 and XI). There is no config found on R3 side to specify non-unicode because it is a rather old system. In XI RFC Adapter config, I checked non-unicode checkbox (I also tested it with this unchecked, but still the same issue).
Have any of you seen this problem and how you resolve it?
Thanks a lot for your help!
Regards,
HartHi Hart
long time no seen - hope you remember me
>The reason to use two RFC adapter and BPM is to log the request message if the RFC call fails
there is an easy way (guess max 3-4 hours) to solve all of your issues
and get rid of a BPM
use IDOC - XI - ABAP Proxy
then you will have IDOC and ABAP Proxy that always log the message on both ends (and you can restart ABAP proxies easily in AII - and every AII supports ABAP proxies) + you get rid of a BPM as it's not necessary as far as I understand (as it's asyn communication right?)
maybe you can go this way and IDOCs always work...
good luck,
Regards,
Michal Krawczyk
http://mypigenie.com XI/PI FAQ -
Hi Experts,
I am new to ADF Development, and trying to implement LDAP in my application. As per some forums i am using ADF Security. I have modified my WebLogic server, myrealm with LDAP details and added below mentioned codes in JPS-Config.xml file:
<serviceProvider type="IDENTITY_STORE" name="idstore.ldap.provider"" class="oracle.security.jps.internal.idstore.ldap.LdapIdentityStoreProvider">
<description>LDAP-based IdentityStore Provider</description>
</serviceProvider>
<serviceInstance name=idstore.ldap provider=idstore.ldap.provider>
<property name=idstore.config.provider value=oracle.security.jps.wls.internal.idstore.WlsLdapIdStoreConfigProvider/>
<property name=CONNECTION_POOL_CLASS value=oracle.security.idm.providers.stdldap.JNDIPool/>
<property name="username.attr" value="userPrincipalName"/>
<property name="user.login.attr" value="userPrincipalName"/>
<property name="virtualize" value="true" />
<property name="ldap.url" value="directory.corp"/>
<property name="idstore.type" value="ACTIVE_DIRECTORY"/>
</serviceInstance>
<serviceInstanceRef ref="idstore.ldap"/>
But i am not able to see Identity store menu option in the left pane of Configure ADF Security window. Could you please help me to fix this issue. Thanks in advance
I am using jDev 11g
Please find the below link for Configure ADF Security window
http://4.bp.blogspot.com/_earSixbe3dw/SUbg7OWLCQI/AAAAAAAAB-4/Fos2I5eBxWM/s1600-h/adf_sec_6.pnghttp://mahmoudoracle.blogspot.ca/2012/02/adf-integration-with-ldap.html#.UcCxHPm1GSo
http://biemond.blogspot.ca/2008/12/using-weblogic-provider-as.html -
Reg. JSF Spring Integration issue.
Hi All,
I am using JSF for the front end and using the Spring Core, DAO and AOP for the BO and DAO layers. When i try to inject the Objects using the DI to the JSF, i am getting the following error and the objects are not getting set from the Spring.
Error Log:*
javax.servlet.ServletException: Unable to create managed bean dataUploadControllerBean. The following problems were found:
- Bean or property class #{dataUploadVO} for managed bean dataUploadControllerBean cannot be found.
- Bean or property class #{dataUploadVO} for managed bean dataUploadControllerBean cannot be found.
- Bean or property class #{dataUploadVO} for managed bean dataUploadControllerBean cannot be found.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
i have defined the respective entries correctly to integrate the JSF & Spring. But still the JSF&Spreing is not integrated successfully. Please find the configs defined and help to resolve the issue. i am stuck in this for 2 days...
Web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/applicationContext.xml</param-value>
</context-param>
Faces-Config.xml
<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> <!-- have used this ELResolver to injects objects from Spring-->
</application>
<managed-bean>
<managed-bean-name>dataUploadControllerBean</managed-bean-name>
<managed-bean-class>com.sgspace.model.dataupload.DataUploadControllerBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>dataUploadBean</property-name>
<value>#{dataUploadBean}</value> _<!-- Already present in the faces-config.xml-->_ </managed-property>
<managed-property>
<property-name>dataUploadVO</property-name>
<property-class>#{dataUploadVO}</property-class> _<!-- Injected from Spring DI. This is currently not working.-->_
<value></value>
</managed-property>
<managed-property>
<property-name>dataUploadBO</property-name>
<property-class>#{dataUploadBO}</property-class>_<!-- Injected from Spring DI. This is currently not working.-->_ <value></value>
</managed-property>
</managed-bean>
applicationContext.xml:_
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<bean id="dataUploadDAO"
class="com.sgspace.dao.dataupload.DataUploadDAOImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="dataUploadBO"
class="com.sgspace.bo.dataupload.DataUploadBOImpl">
<property name="dataUploadDAO" ref="dataUploadDAO"></property>
</bean>
<bean id="dataUploadVO" class="com.sgspace.vo.dataupload.DataUploadVO"></bean>
</beans>
Warm Regards,
Praveen SThe TestBean have a property for DeviceManager along with setter/getter methods as shown below. Sorry for not including in earlier posting
TestBean.java (Backing Bean)
private DeviceTypeManager deviceManager;
public DeviceTypeManager getDeviceManager() {
return deviceManager;
public void setDeviceManager(DeviceTypeManager deviceManager) {
this.deviceManager = deviceManager;
Here are the two scenarios
Scenario 1 : without <managed-property> the code works fine
Scenario 2 : with <managed-property> the code results in following error
javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
Scenario 1 has only JSF whereas Scenario 2 has JSF-Spring integration
The Scenario 1 works absolutely fine as the expression '#{test.selectedDevice}' gets its value from setter/getter method in the backing bean(TestBean.java) . This is expected behaviour & wondering why it doesn't work similarly in Scenario 2 instead it complains
Cannot get value for expression '#{test.selectedDevice}'
I am willing to upload the war file. Any pointers/suggestions in resolving the error will be highly appreciated
Regards
Bansi
Maybe you are looking for
-
Do you need to use an email as an apple ID? We have a family email which is currently the apple ID so I can keep track of purchases but i have 2 iPhones and 2 itouches. Can all 4 devices have different apple ID under the same email address. Also I
-
Some programs open new window instead of new tab in open window
Firefox 17.0.1. I have the option "Open new windows in a new tab instead" set, I use the Tree Style Tab 0.14.2012111201 addon (and others unrelated to tabs or windows), and I have multiple profiles. It seems that since I started using multiple profil
-
I am a long-time Skype user. Yesterday I started receiving email from what appears to be Skype from its [email protected] address. The email is fishy for several reasons: It is a welcome email addressed to Skype user "abdullah434771" but that is not
-
I know I have asked this questions before, and got some answers. However, the problem remains unsolved from my perspective. I have iPhoto installed on 3 macs -- that I like to try and keep indentical. I manage somewhere around 15,000 photos. The prob
-
Deploying Stop Working Suddenly
hi, i have MDT 2013 with 4 Deployment shares, one of the deployment shares stop working suddenly "windows 7 deployment share" . when i start the network boot i can see a list of boot image but when i choose that image it gives me the windows loading