Company logo in PO XSL-FO style sheet
Hi
I am working on inserting company logo on a PDF purchase order. For this I have changed the XSL-FO style sheet as follows
I uncommented the following code in the xsl file and added the company logo as shown below
<fo:inline>
<fo:external-graphic content-width="248pt" content-height="33pt" src="url('{'${OA_MEDIA}/image.gif'}')" />
</fo:inline>
and then I made the following changes in the set up
Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'
setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to new template.
But when I try to view the PO PDF from Purchase Order Summary, I don't see any changes. The company logo is not displayed.
Any idea on where I went wrong. Any help is greatly appreciated.
Thanks,
Sharmila
Thanks for your quick reply Dave, I appreciate your time.
But I couldn't test the new template as I was neither able to create a new PO nor was able to run the PO Output for communication Report. When I tried to create a PO the Purchase Order form did not open saying I am not setup as an employee, even the PO Output for communication did not give any LOV for the PO's.
I tried to define employee name in the employee's login
information (System administrator/Security/User/Define) for my user, but some how my name doesn't appear in LOV. Any help is appreciated.
Thanks,
Sharmila
Similar Messages
-
XSL-FO Style Sheet Questions..
Hi,
I have some questions regarding XSL-FO Style Sheet
1. How can add some more fields to the XSL-FO Style Sheet when they are not included in the original XML source.. ( like we have attribute1 through attribute3)
for storing telephone number, fax number and email of the buyer) as we do not have access to the source code that generates the XML.
2. I need to include the signature image at the bottom of the PO and that depends on the operating unit to which the PO belongs.
I will appreciate if you can show some light on this with some examples..
Thanks for your help..
ShreeHi,
For the question 2, I thinck you can read the XMLP blog entry :
http://blogs.oracle.com/xmlpublisher/2006/04/13
Hope you will help.
Cyryl -
Linking external graphic for company logo to an XSL-FO template
I have been trying to link an image to the Standard Purchase Order Stylesheet XSL-FO template. Using the following line of code
<fo:external-graphic content-width="248pt" content-height="33pt" src="url('${OA_MEDIA}/company_logo.gif')" />
The image file is location on our server in the $OA_MEDIA directory. When the report is run the first page is empty apart from the header and footer information. I would grateful for advise.
ThanksRe: Company Logo for Standard PO
-
Finding and Editing the DynamicHomePage.xsl Style Sheet in MII 12.0
I'd like to edit the DynamicHomePage.xsl style sheet but I'd not sure where to find it in MII 12.0. Is it editable through the workbench?
Thanks!
DavidDavid,
you can modify the Logo in the File DefaultHeader.xml. You can find it under the Web/Themens,
in the Sample Project as Jeremy said.
Please include this in your project as Jeremy described.
Regards
Pedro -
Generate report from database using .xsl style sheet
I am trying to view test result histories for specific uut serial numbers.
We are logging all test data to the default access database template that was provided with Teststand.
Is there a method of generating reports from the database that match the format of those generated at runtime?
I was surprised to find that the default access database did not contain any gui or pre-made reports matching the xsl style sheets chosen in the report options dialog.
My database skills are weak, I am able to browse the raw data and I see the relationships between some of the tables, but the prospect of recreating one of the xml report formats in access seems daunting. Am I missing something? what is the best way to print a uut report from test data stored in access?Hello msears,
Thank you for posting on the NI Discussion Forums. Unfortunately there are no tools available in TestStand for directly converting an Access database to a formatted .xsl report. It is possible to have a step in a sequence that reads the information from the database, and create the .xsl report as if it had been generated at sequence run-time, by writing those values directly to Locals.ResultList. Admittedly, this would require some knowledge of Microsoft Access, and the ability to write a program that will extract information from the database, in order to include it as a step in the sequence.
Is there anything stopping you from creating a formatted .xsl report when the sequence is run (instead of trying to create it from previous data stored in an Access database)?
Chris_G
Sr Test Engineer
Medtronic, Inc. -
XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh
Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
''If it displays in Firefox:''
It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
''If it displays in IE or embedded in another Microsoft application:''
In a web search I found these suggestions:
(1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
(2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
Any luck? -
Cannot view XML input using XSL style sheet. Please correct the error and..
Hi All,
Scenario XML to IDOC.
The interface determination decides whether to create IDOC X or IDOC Y based on a xml segment value.
I have an error in the SXMB_MONI:
<!-- Interface Determination
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
<SAP:P1>Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160).</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when determining the inbound interface: Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: CL_SWF_RLS_COMPARISON=========CP, include: CL_SWF_RLS_COMPARISON=========CM002, line: 63). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: SAPMSSY1, include: , line: 0). Exception CX_SWF_EXP_EVALUATE occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM027, line: 38). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM01Z, line: 520). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00S, line: 42). Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
From the SXMB_MONI, the inbound message payload is truncated with an error:
- <ProductIdentification>
<GlobalProductIdentifier />
- <PartnerProductIdentification>
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
The following tags were not closed: Pip3B12ShippingOrderConfirmation, ShippingOrder, ShipmentLineItem, isContainsHazardousMa...
"> <GlobalPartnerClassificationCode />
<ProprietaryProductIdentifier>000000000000101369</ProprietaryProductIdentifier>
</PartnerProductIdentification>
</ProductIdentification>
- <QuantityInformation>
- <confirmedQuantity>
<ProductQuantity>1.00</ProductQuantity>
</confirmedQuantity>
I've checked that the xml format is OK.
As a matter of fact, if I try to resend the xml file from directory, the message is processed correctly and the payload shows all the xml file.
Thanks.
Daniele
Edited by: Daniele*Verdone on Feb 1, 2010 11:22 AM
Edited by: Daniele*Verdone on Feb 1, 2010 11:23 AMHi Suraj,
That option is not available in FTP mode..
This option is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
Yes, you're right !!
Are you sure that the message is not getting picked in half-way
Now, at this time, I can't see the XML data in the CC monitoring because the tool shows only the recent polling execute in the last 10 minutes. If the error recurs, I will check the payload of CC.
How can I solve the problem with reading incomplete file (FTP mode)?
...Meanwhile I will try with Full cache refresh.
Thanks
Daniele -
Sourcing Style Sheet xsl VO , Print RFQ (Sourcing )
Hello,
In Sourcing, when we click on Any PO. We have option to print RFQ. This internally calls
PON_SOURCING_XSLFO.xsl
Where can i find from which VO data is sent to this.Hi PreethamChandra
As far as I know, the XSL is called from the template . Please check the template definition. You should find here how and which data is exactly passed to the XSL style sheet for formatting. The XSL style sheet accepts the data in the form of xml nodes .
Thanks
Sandeep -
Ship To Contact Phone in XSL style sheet
I am trying to add ship_cont_phone in my PO XSL style sheet report.
However when I run this report I don't see any Phone number added in the PO. I can see that there is a phone number existing for that particular location. But it is not showing up in the report.
Anyone dealt with the same please reply
thanks
prasannaPrasaana
I would suggest logging a service request with the PO support team. They should be able to help you find the data, if its there.
Regards
Tim -
Getting Ship to Contact Phone Number for PO xsl style sheet
Hi anyone,
I have a Qn in xsl style sheet
If you look in the xml given below there is a field called <ADDR_DATA_9>
<ADDRESS_DETAILS>
<ADDRESS_DETAILS_ROW>
<LOCATION_ID>67670</LOCATION_ID>
<ADDRESS_STYLE>US_GLB</ADDRESS_STYLE>
<ADDR_LABEL_1>Cou
ntry</ADDR_LABEL_1>
<ADDR_LABEL_2>Address Line1</ADDR_LABEL_2>
<ADDR_LABEL_3>Address Line2</ADDR_LABEL_3>
<ADDR_LABEL_4>Address Line3</ADDR_LABEL_4>
<ADDR_LABEL_5>Zip Code</ADDR_LABEL_5>
<ADDR_LABEL_6>City</ADDR_LABEL_6>
<ADDR_LABEL_7>State <ADDR_LABEL_8>County</ADDR_LABEL_8>
<ADDR_LABEL_9>Fax</ADDR_LABEL_9>
<ADDR_LABEL_10>Sales Tax Override</ADDR_LABEL_10>
<ADDR_LABEL_11>Inside City Limits</ADDR_LABEL_11>
<ADDR_LABEL_12>Telephone</ADDR_LABEL_12>
<ADDR_DATA_2>BT Amer
icas Inc.|11440 Commerce Park Drive|Reston, VA 20191</ADDR_DATA_2>
</ADDRESS_DETAILS_ROW>
<ADDRESS_DETAILS_ROW>
<LOCATION_ID>67644</LOCATION_ID>
<ADDRESS_STYLE>US_GLB</ADDRESS_STYLE>
<ADDR_LABEL_1>Country</ADDR_LABEL_1>
<ADDR_LABEL_2>Address Lin
e1</ADDR_LABEL_2>
<ADDR_LABEL_3>Address Line2</ADDR_LABEL_3>
<ADDR_LABEL_4>Address Line3</ADDR_LABEL_4>
<ADDR_LABEL_5>Zip Code</ADDR_LABEL_5>
<ADDR_LABEL_6>City</ADDR_LABEL_6>
<ADDR_LABEL_7>State</ADDR_LABEL_7>
<ADDR_LABEL_8>County</ADDR_LABEL
_8>
<ADDR_LABEL_9>Fax</ADDR_LABEL_9>
<ADDR_LABEL_10>Sales Tax Override</ADDR_LABEL_10>
<ADDR_LABEL_11>Inside City Limits</ADDR_LABEL_11>
<ADDR_LABEL_12>Telephone</ADDR_LABEL_12>
<ADDR_DATA_1>US</ADDR_DATA_1>
<ADDR_DATA_2>Invoice To:</ADDR_DATA
_2>
<ADDR_DATA_3>BT AMERICAS ACCOUNTS PAYABLE</ADDR_DATA_3>
<ADDR_DATA_4>PO Box 696025</ADDR_DATA_4>
<ADDR_DATA_5>78269</ADDR_DATA_5>
<ADDR_DATA_6>SAN ANTONIO</ADDR_DATA_6>
<ADDR_DATA_7>TX</ADDR_DATA_7>
<ADDR_DATA_8>USA</ADDR_DATA_8>
</ADDRES
S_DETAILS_ROW>
<ADDRESS_DETAILS_ROW>
<LOCATION_ID>179305</LOCATION_ID>
<ADDRESS_STYLE>US_GLB</ADDRESS_STYLE>
<ADDR_LABEL_1>Country</ADDR_LABEL_1>
<ADDR_LABEL_2>Address Line1</ADDR_LABEL_2>
<ADDR_LABEL_3>Address Line2</ADDR_LABEL_3>
<ADDR_LABE
L_4>Address Line3</ADDR_LABEL_4>
<ADDR_LABEL_5>Zip Code</ADDR_LABEL_5>
<ADDR_LABEL_6>City</ADDR_LABEL_6>
<ADDR_LABEL_7>State</ADDR_LABEL_7>
<ADDR_LABEL_8>County</ADDR_LABEL_8>
<ADDR_LABEL_9>Fax</ADDR_LABEL_9>
<ADDR_LABEL_10>Sales Tax Override<
/ADDR_LABEL_10>
<ADDR_LABEL_11>Inside City Limits</ADDR_LABEL_11>
<ADDR_LABEL_12>Telephone</ADDR_LABEL_12>
<ADDR_DATA_1>US</ADDR_DATA_1>
<ADDR_DATA_2>Lantheus Medical Imaging</ADDR_DATA_2>
<ADDR_DATA_3>Building 250 ground floor</ADDR_DATA_3>
<
ADDR_DATA_4>331 Treble Cove Rd</ADDR_DATA_4>
<ADDR_DATA_5>01862</ADDR_DATA_5>
<ADDR_DATA_6>BILLERICA</ADDR_DATA_6>
<ADDR_DATA_7>MA</ADDR_DATA_7>
<ADDR_DATA_8>Middlesex</ADDR_DATA_8>
</ADDRESS_DETAILS_ROW>
</ADDRESS_DETAILS></PO_DATA>
If we have multiple ship to addresses how can i exacltly get that in xsl style sheet
For eg;
ship to 1:
address line 1
address line 2
<ADDR_DATA_9>423-667-3244</ADDR_DATA_9>
ship to 2:
address line 1
address line 2
<ADDR_DATA_9>123-456-3244</ADDR_DATA_9>
We can loop through location id in xml.
How can I achieve it in XSL?
appreciate your help
thanks
prasannaThere is no field called "ADDR_DATA_9" int he xml.
can you xplain and paste th full xml > if its public, do drop me a mail ;)
dont digest the message by yourself :) -
XSL style sheet not performing
Hi,
I'm playing around w/ the examples that came
with XML SQL utility.
The example works fine but does not apply
the style sheet to the XML data produced from
the SQL query. Is this a bug? Or is that
the way its supposed to be ?
I thought when you use
oracleXmlQuery.setStyleSheet("rowcol.xsl");
that it converts the XML data to the HTML specified by the XSL sheet.
But instead I still get ...
OUTPUT IS:
<?xml version = '1.0'?>
<?xml-stylesheet href="rowcol.xsl" type="text/xsl"?>
<ROWSET>
<ROW num="1">
<USER_NAME>oa2058</USER_NAME>
<FULL_NAME>Masatoh Awaya</FULL_NAME>
<LOCATION>Tokyo</LOCATION>
<EMAIL>[email protected]</EMAIL>
</ROW>
<ROW num="2">
<USER_NAME>cchang</USER_NAME>
<FULL_NAME>Chris Chang</FULL_NAME>
<LOCATION>New York</LOCATION>
<EMAIL>[email protected]</EMAIL>
</ROW>
<ROW num="3">
<USER_NAME>ccummins</USER_NAME>
<FULL_NAME>Chris Cummins</FULL_NAME>
<LOCATION>New York</LOCATION>
<EMAIL>[email protected]</EMAIL>
</ROW>
<ROW num="4">
<USER_NAME>igomendi</USER_NAME>
<FULL_NAME>Ignacio Gomendio</FULL_NAME>
<LOCATION>New York</LOCATION>
<EMAIL>[email protected]</EMAIL>
</ROW>
<ROW num="5">
<USER_NAME>jroblesg</USER_NAME>
<FULL_NAME>Jaime Roblesgil</FULL_NAME>
<LOCATION>New York</LOCATION>
<EMAIL>[email protected]</EMAIL>
</ROW>
</ROWSET>
nullThis is working as designed.
Calling setStylesheet() on XML SQL only adds the xml-stylesheet PI as you are seeing.
If you want to combine XML SQL and XSLT transformations easily, see our XSQL Servlet software that part of the XDK. It does all of this for you automatically. -
Adding report header lines using expand.xsl style sheet
Hello
I would like to add a few header lines (appears only at the first page of the report) into my XML report that is based on expand.xsl style sheet.
Since I am not familiar with XML, is there any example or a modified (ready to run) expand.xsl style sheet that implements it?
Thank you
ZvikaHey Zvika,
Chek out this website: http://zone.ni.com/devzone/cda/epd/p/id/4759
NI doesn't support any changes in the xsl however so if you change it you are on your own. You can look to this website for help with that: http://www.w3.org/XML/
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Calling DB from XSL style sheet is possible?Please let me know gurus
Hi
ANy one has done DB calls from XSL style sheet for oracle POs?
is it possible
kpHi srini
In PO xsl style sheet there is a field caled Manufacturer's Part no and also another filed called Buying Department.
Some said customizing po_headers_xml and other relevant standard views..But client dont want to touch standard views.
So my client asking me if I can use DB calls ...PLease advise me with examples
thanks
prasanna -
Xsl style sheet & DTD for RSS 2.0 feeds
Does anyone have a workable DTD & style sheet for RSS 2.0 feeds? The PS DTD doesn't cut it for what's out in the Net today.
I have no problem setting channels up and getting data... just not a "UI" person...please see bug 5062227. the problem is noted there.
in lieu of that being fixed, there are several RSS stylesheets floating around on the web. for example:
http://today.icantfocus.com/style/xsl/feeds.xsl
for more, just google for "rss xsl stylesheet".
i have tried several of them and they all have had their quirks. you can try dropping any 3rd party stylesheet into the product.. for example, place the new file in /etc/opt/SUNWps/desktop/default/SampleRSS, and modify the channel SampleRSS in the administration console to use the new stylesheet.
Portal Server 6.4 (JES 4) will include a more robust RSS channel that is not based on XSLT. -
Repeat Headers in XSL Style Sheets
Hi
Anyone handled repeating headers in XSL style sheets? I have a scenario where Column title Row needs to be repeated every page.
This is to make sure that column heading is getting repeated every page.So that the table will avoid break across pages.
Any idea
KpHey
Easiest way to find out what code is needed is to re-create it in the Template Builder for Word andf then export it to XSLFO and take a look see. To get the row to repeat on every page you need the following in the table definition
- <fo:table-row keep-together="always" keep-with-next="always">
thats in the first row of the table ie
- <fo:table start-indent="0.0pt" style-id="ts15" style-name="Table Grid" xdofo:table-summary="Template Table 1" xdofo:row-header-count="0">
<xsl:variable name="_XDOFOPOS2" select="number(1)" />
<xsl:variable name="_XDOFOTOTAL" select="number(1)" />
<fo:table-column column-width="147.6pt" />
<fo:table-column column-width="147.6pt" />
<fo:table-column column-width="147.6pt" />
- <fo:table-header>
* <fo:table-row keep-together="always" keep-with-next="always">*
- <fo:table-cell padding-start="5.15pt" vertical-align="top" border-bottom="0.5pt solid #000000" border-end-color="#000000" padding-top="0.0pt" border-end-style="solid" border-start-color="#000000" padding-end="5.15pt" number-columns-spanned="1" border-top="0.5pt solid #000000" border-start-style="solid" height="0.0pt" border-end-width="0.5pt" padding-bottom="0.0pt" border-start-width="0.5pt" background-color="#e7f3fd">
- <fo:block xdofo:tab-stops="left:45.8pt:space left:91.6pt:space left:137.4pt:space left:183.2pt:space left:229.0pt:space left:274.8pt:space left:320.6pt:space left:366.4pt:space left:412.2pt:space left:458.0pt:space left:503.8pt:space left:549.6pt:space left:595.4pt:space left:641.2pt:space left:687.0pt:space left:732.8pt:space" linefeed-treatment="preserve" padding-top="0.0pt" orphans="2" end-indent="0.0pt" start-indent="0.0pt" padding-bottom="0.0pt" text-align="start" widows="2">
<fo:inline font-size="10.0pt" white-space-collapse="false" height="10.0pt" font-family="Courier New" font-weight="bold">Report</fo:inline>
</fo:block>
</fo:table-cell>
Regards
Tim
Maybe you are looking for
-
Operand value exceeds system limits in sdo_aggr_mbr
Hi-- i'm trying to get the MBR of a fairly large geometry (1429 vertices) and run into a strange problem: when i: select sdo_aggr_mbr(shape) from FEEDER_LINES_SDO where subname = 'OCEANO'; i get what i expect: SDO_GEOMETRY(2003, 82212, NULL, SDO_ELEM
-
Class or interface could not be loaded?
I am very new to coding in general, ini fact this is my fisrt crack at it, and right now I'm just going off a tutorial, but for whatever reason i'm having an issue that the class/interface not being loaded. My code right now is: class ship extends Mo
-
Mapping and global container?
I have to map single different field IN_F1 to three output fields.. 1) map the input field value IN_F1 to output field value OUT_F1 2) a) based on the INPUT field value , conditionally map incremental numbers to OUT_F2. For example, if IN_F1 is 'X',
-
Changing expired password with OCIPasswordChange
I know that ODP.NET has a option to open a connection with a new password when the old one has expired. I'm using System.Data.OracleClient from .Net instead of ODP because I'm using the Instant Client, which does not seem to work with ODP. Can somebo
-
Hi, I executed AW01N, there dep amt is displaying , but while running Dep. Posting Run no data is showing on it what may be the reason