Preformatted RTF string in XML data for BI Publisher merge
Hi
I have been presented to the question: Can we send a preformatted RTF text as one of the input fields in XML stream to BI Publisher (mail)merge?
We're using the MS Word plugin to create a RTF template. Effectively we want to merge RTF text using RTF template.
I cannot find any documentation stating that it is supported. My tests locally in the MS Word plugin are'nt exactly sucessfull, but there is a number of possible reasons for that.. :-)
Does anybody know explicitly if it is supported (or not)?
Regards
/John
Hi..
Obviously the buffer size need to be extend...also its look like you are customizing the report ..so it would be better if you check for data redundancy once.
you have to increase the size of buffer ....and then let it completly open the xml output file...till its done and then save it and use for preview.
You have to ask your dba to increase the buffer ...or from sysadmin --->conc manager--->output post processing ...check for the manager and increase the buffer size as well.
Thanks
Ratnesh
Similar Messages
-
How to parse a string containing xml data
Hi,
Is it possible to parse a string containing xml data into a array list?
my string contains xml data as <blood_group>
<choice id ='1' value='A +ve'/>
<choice id ='2' value='B +ve'/>
<choice id ='3' value='O +ve'/>
</blood_group>how can i get "value" into array list?There are lot of Java XML parsing API's available, e.g. JAXP, DOM4J, JXPath, etc.
Of course you can also write it yourself. Look which methods the String API offers you, e.g. substring and *indexOf. -
Edit/add XML data in BI Publisher
Hi
I have a java program that is generating an XML file that I am using as input for my BI publisher for PO report. However, I want to add some extra information(location addresses corresponding to location id) that is not there in the XML and I cannot edit the java program generating it. Is there any way I can do this in BI publisher? Can I edit/add XML data in BI publisher? This is really urgent and I appreciate any help.
Thanks,
SharmilaYou have to edit the package which has the sql query,
without fetching them in xml , you cannot display that.
BIP will not help you to get that into report.
The code which generates the XML data has to edited for sure..
I guess, i helped one guy for similar requirement,
i guess you are asking in the same report..
the java program in turn calls the Pl/Sql package which generates the XML data and pass it to the Java Concurrent Program.
The Pl/Sql package picks data from these views po_headers_xml, po_lines_xml, po_distribution_xml.
you can also add the columns you want to be displayed in these views, and then change the template accordingly. -
How to check particluar string in xml data
Dear oracle Experts.
Im using the following oracle database.
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
I have a following xml data..
p_msg_in CLOB :=
<DATA>
<FLD FNR="ZZ0584" DTE="26SEP12" SRC="DXB" DES="DAC" />
<AAA LBP="22334455" ETK="1234567/4" ACT="123" />
<AAA LBP="223344" ETK="2345678/1" />
<AAA LBP="223344" ETK="123456/1" ACT="345" />
</DATA>
then, im fetching header details like this..
v_msg_xml := xmltype(p_msg_in);
FOR i IN multicur(v_msg_xml, '/DATA/FLD') LOOP
v_1:= i.xml.extract('//@FNR').getstringval();
v_4:= to_date(i.xml.extract('//@DTE').getstringval(),'DDMONYY');
v_5:= i.xml.extract('//@SRC').getstringval();
v_6:= i.xml.extract('//@DES').getstringval();
END LOOP;
after this, I need to loop all the actual records one by one using this for loop. Here for each iteration , i need to check some string ( example ACT) is there or not. in the above example, records 1,3 have ACT value in it. So here i need to check some thing like this. if instr('<AAA LBP="223344" ETK="123456/1" ACT="345" />','ACT)>0 before I perform the below step.
How to achieve this.
I appreciate your help.
thank you.
FOR c IN multicur(v_msg_xml, '/DATA/AAA') LOOP
v_7 := c.xml.extract('//@LBP').getstringval();
v_8 := c.xml.extract('//@ETK').getstringval();SQL> DECLARE
2
3 p_msg_in clob := '<DATA>
4 <FLD FNR="ZZ0584" DTE="26SEP12" SRC="DXB" DES="DAC" />
5 <AAA LBP="22334455" ETK="1234567/4" ACT="123" />
6 <AAA LBP="223344" ETK="2345678/1" />
7 <AAA LBP="223344" ETK="123456/1" ACT="345" />
8 </DATA>';
9
10 v_msg_xml xmltype;
11
12 v_1 varchar2(30);
13 v_4 date;
14 v_5 varchar2(30);
15 v_6 varchar2(30);
16 v_7 varchar2(30);
17 v_8 varchar2(30);
18
19 BEGIN
20
21 v_msg_xml := xmltype(p_msg_in);
22
23 select fnr, to_date(dte, 'DDMONRR'), src, des
24 into v_1, v_4, v_5, v_6
25 from xmltable('/DATA/FLD'
26 passing v_msg_xml
27 columns fnr varchar2(30) path '@FNR'
28 , dte varchar2(30) path '@DTE'
29 , src varchar2(30) path '@SRC'
30 , des varchar2(30) path '@DES'
31 ) ;
32
33 dbms_output.put_line('V1 = '||v_1);
34 dbms_output.put_line('V4 = '||v_4);
35 dbms_output.put_line('V5 = '||v_5);
36 dbms_output.put_line('V6 = '||v_6);
37
38 for r in (
39 select lbp, etk
40 from xmltable('/DATA/AAA[@ACT]'
41 passing v_msg_xml
42 columns lbp varchar2(30) path '@LBP'
43 , etk varchar2(30) path '@ETK'
44 )
45 )
46 loop
47 dbms_output.put_line('LBP = '||r.lbp||' ETK = '||r.etk);
48 end loop;
49
50 END;
51 /
V1 = ZZ0584
V4 = 26/09/12
V5 = DXB
V6 = DAC
LBP = 22334455 ETK = 1234567/4
LBP = 223344 ETK = 123456/1
PL/SQL procedure successfully completed -
Section Break conflicts with Dynamic Header in RTF which loads XML data
Hi,
I have dynamic header in my rtf file which loads data from XML generated by rdf file.
I have section break on start group of body. but it does not display dynamic header value. If i remove section break then it display dynamic header.
I have to display dynamic header and section break is also required there.
Please give me solution of this issue.
Regards
Farooq
Edited by: user8849418 on Jun 27, 2012 12:05 AMflyeminent wrote:
However in my particular case, the dynamic list is not known until the user choose to view a table. Then move the call from the getter to the bean's action method. -
This is the continuation of "Filter ListBox w/ XML Data using a TextBox"
Andy, I read your paper last night. You are so high that I can only understand some of it right now, but you do bring up a performance issue, which needs to be considered for this thread.
Is myListBox.Items a view or the items that have already loaded into the myListBox? I am confused. If myListBox.Items are the items that are currently in the myListBox, then there will be an performance issue if there are a huge amount of items in the myListBox.
Am I right?
Then, the process supposed to be:
1, add XML source to Blend
2, filter the source
3, put in the listbox
Then the code will be much complicated than the 1st one. right?
private void filterBtn_Click(object sender, RoutedEventArgs e)
myListBox.Items.Filter = target => ((XmlElement)target)["ID"].InnerText.Contains(myTextBox.Text);There's a pattern that almost every wpf dveloper uses and it's called mvvm.
Google it, there'll be a shed load of articles.
It's a passive view pattern in that the view has minimal logic in it.
The view is your window ( or usercontrol).
You can add a listboxitem to the listbox.items collection but i would only do that if it's a very simple static collection.
You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
It creates them using a datatemplate.
When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
That can be synced in the view so you select an item from the viewmodel.
I think I probably drifted off topic there somewhat.
Mvvm is probably different from stuff you've done before.
It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
Along with tdd/bdd it's industry standard.
Big tip: learn it.
You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Problems handling xml data for tree control.
Hi,
I have tried using tree control for displaying my xml data
but I had a problem that i did not have labels in my xml data. A
sample xml data is attached. So it displays the whole data at each
level in the tree. The root label will be the entire the xml data
and then one level down the remaining xml data and so on...
How do i solve this issue i,e get the tags names itself as
labels..
Thanks in advance....An update after some efforts..
Could get the folders perfectly i.e until the level of
CPUTime perfectly but could not get the leaf: 32 since i used the
following to set the label.
I would like to know if there is a way to find out if a node
is a leaf or folder and according set the label -
Filter XML Data for Text Fields.
Hi,
I'm trying to display a single record out of an XML database
into dynamic fields in my MovieClip. I need to be able return a
single record based on the current time. Attached is a sample of my
XML data.
I was wondering if this could be acheived with a DataSet
filterFunction? If it is possible, what code would I need to
include?
Finally, do I need to pass my full DataSet to an array or do
I need to filter first & then pass to an array?
Thankyou.
Elton Bernardson.There's a pattern that almost every wpf dveloper uses and it's called mvvm.
Google it, there'll be a shed load of articles.
It's a passive view pattern in that the view has minimal logic in it.
The view is your window ( or usercontrol).
You can add a listboxitem to the listbox.items collection but i would only do that if it's a very simple static collection.
You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
It creates them using a datatemplate.
When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
That can be synced in the view so you select an item from the viewmodel.
I think I probably drifted off topic there somewhat.
Mvvm is probably different from stuff you've done before.
It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
Along with tdd/bdd it's industry standard.
Big tip: learn it.
You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Hi
I am try to see if there are any blanks in a node of a table that has xml data in one of the columns. The query I use is returning zero results. Any suggestions?
Select COUNT(*)from ENTITY
Where CONVERT(XML, Ent_root_xml, 0 ).value('(//UD_PQ_FLAG/node())[1]', 'VARCHAR(50)')= ' 'This is a little tricky. When you don't use /text(), looking for space is the right thing. But when you use /text() you should look for NULL:
DECLARE @x TABLE (id int NOT NULL, x xml NOT NULL)
INSERT @x (id, x)
VALUES (1, '<ROOT><Node>This node is intentionally not left blank.</Node></ROOT>'),
(2, '<ROOT><Node></Node></ROOT>')
SELECT id
FROM @x
CROSS APPLY x.nodes('/ROOT') AS T(x)
WHERE T.x.value('(Node/text())[1]', 'varchar(23)') IS NULL
SELECT id
FROM @x
CROSS APPLY x.nodes('/ROOT') AS T(x)
WHERE T.x.value('Node[1]', 'varchar(23)') = ' '
Erland Sommarskog, SQL Server MVP, [email protected] -
External XML data for plot chart
Hi,
Can you provide the XML equivalent & the corresponding changes to be done in the below plot chart code :
<?xml version="1.0"?>
<!-- charts/BasicPlot.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Month:"January", Profit:2000, Expenses:1500, Amount:450},
{Month:"February", Profit:1000, Expenses:200, Amount:600},
{Month:"March", Profit:1500, Expenses:500, Amount:300},
{Month:"April", Profit:500, Expenses:300, Amount:500},
{Month:"May", Profit:1000, Expenses:450, Amount:250},
{Month:"June", Profit:2000, Expenses:500, Amount:700}
]]></mx:Script>
<mx:Panel title="Plot Chart">
<mx:PlotChart id="myChart" dataProvider="{expenses}"
showDataTips="true">
<mx:series>
<mx:PlotSeries
xField="Expenses"
yField="Profit"
displayName="Plot 1"
/>
<mx:PlotSeries
xField="Amount"
yField="Expenses"
displayName="Plot 2"
/>
<mx:PlotSeries
xField="Profit"
yField="Amount"
displayName="Plot 3"
/>
</mx:series>
</mx:PlotChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application>This does what you want.
If this post answers your question or helps, please mark it as such.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init();">
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
[Bindable] public var expenses:XMLListCollection;
private function init():void{
expenses = new XMLListCollection(XMLList(xml..dataItem));
private var xml:XML =
<data>
<dataItem>
<Month>January</Month>
<Profit>2000</Profit>
<Expenses>1500</Expenses>
<Amount>450</Amount>
</dataItem>
<dataItem>
<Month>February</Month>
<Profit>1000</Profit>
<Expenses>200</Expenses>
<Amount>600</Amount>
</dataItem>
<dataItem>
<Month>March</Month>
<Profit>1500</Profit>
<Expenses>500</Expenses>
<Amount>300</Amount>
</dataItem>
<dataItem>
<Month>April</Month>
<Profit>500</Profit>
<Expenses>300</Expenses>
<Amount>500</Amount>
</dataItem>
<dataItem>
<Month>May</Month>
<Profit>1000</Profit>
<Expenses>450</Expenses>
<Amount>250</Amount>
</dataItem>
<dataItem>
<Month>June</Month>
<Profit>2000</Profit>
<Expenses>500</Expenses>
<Amount>700</Amount>
</dataItem>
</data>;
]]></mx:Script>
<mx:Panel title="Plot Chart">
<mx:PlotChart id="myChart" dataProvider="{expenses}"
showDataTips="true">
<mx:series>
<mx:PlotSeries
xField="Expenses"
yField="Profit"
displayName="Plot 1"
/>
<mx:PlotSeries
xField="Amount"
yField="Expenses"
displayName="Plot 2"
/>
<mx:PlotSeries
xField="Profit"
yField="Amount"
displayName="Plot 3"
/>
</mx:series>
</mx:PlotChart>
<mx:Legend dataProvider="{myChart}"/>
</mx:Panel>
</mx:Application> -
XML data for Spry Menu ?
I maintain several web sites with static pages that all carry
a common Spry menu bar hard coded into each page via a template.
How can I use an XML file to feed a Spry menu widget to save
uploading all the pages every time there is a change on the site
that requires the menu to be updated?
I've searched the web and help files for an answer to this
without success, so any help or pointers would be most appreciated.I made this example that uses a xml file to build the spry
menu, the page is html, you need to make a seperate dataset for
each <ul> tag, or item group in the menu, notice the two
datasets in my sample, you could expand and make as many as you
want, all drawn from xml files. check out the page here:
http://gohbcc.com/examples/menutest.html
html page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryMenuBar.js"
type="text/javascript"></script>
<script src="SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="SpryAssets/SpryData.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.XMLDataSet("s.xml", "links/link");
var ds2 = new Spry.Data.XMLDataSet("t.xml", "links/link");
//-->
</script>
</head>
<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">Item
1</a>
<ul>
<div spry:region="ds1">
<li spry:repeat="ds1">
<a href="{a/@href}">{a}</a>
</li>
</div>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
</ul>
</li>
<li><a href="#">Item 2</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Item
3</a>
<ul>
<div spry:region="ds2">
<li spry:repeat="ds2">
<a href="{a/@href}">{a}</a>
</li>
</div>
<li><a href="#">Item 3.2</a></li>
<li><a href="#">Item 3.3</a></li>
</ul>
</li>
<li><a href="#">Item 4</a></li>
</ul>
<p> </p>
<div spry:region="ds1" style="float:right;">
<table>
<tr>
<th>A</th>
<th>A/@href</th>
</tr>
<tr spry:repeat="ds1">
<td>{a}</td>
<td>{a/@href}</td>
</tr>
</table>
</div>
<p> </p>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
XML Files
t.xml;
<?xml version="1.0" encoding="utf-8"?>
<links>
<link><a
href='customer_enter.php?method=Fname'>First
Name</a></link>
<link><a
href='customer_enter.php?method=caseNum'>Case
Number</a></link>
<link><a
href='customer_enter.php?method=Lname'>Last
Name</a></link>
<link><a
href='customer_enter.php?method=caseWorker'>Case
Worker</a></link>
</links>
s.xml:
<?xml version="1.0" encoding="utf-8"?>
<links>
<link><a href='customer_find.php?method=name'>By
Name</a></link>
<link><a
href='customer_find.php?method=caseNum'>By Case
Number</a></link>
<link><a href='customer_find.php?method=date'>By
Date</a></link>
<link><a
href='customer_find.php?method=itemNum'>By Item
Number</a></link>
</links> -
Been some time since I have used Flash for anything...
I'm working on a little project to dynamically build a map
and set points of interest on the map. At this time I have the
(mySQL) data being queried and formatted with PHP and pushing the
data to Flash as XML.
In starting the project I'm a bit lost... I mean I have my
data and a good XML format but as it is I'm lost on parsing the
data in Flash and assigning its values to movie clips or other...
I've looked at the Loader Component and the XML Connector
Component and find I can get that to work at all...
My second though was to create a single movie clip on stage
and give it an instance name of "Background" and have it load the
URL of an image given in the attached XML doc... Node "a_zone" and
the value given to attribute "image"... But this brings me back to
square one of not quite understanding Flash and parsing XML... With
this second idea I would use AS to create a movie clip, set it's X
& Y cords and load an image to it based on the XML attributes
listed in the "Gatherable" node (one for each node).
Any suggestions, examples or related info is welcome...
Thanks in advance!Okay, that really wasn't what I was looking for... But I did
go back and RTM :-)
Here's what I have... 1st frame:
2nd Layer: movieclip with the instance name "currentPicture"
The image loads into "currentPicture" from the URL given in
the XML "a_zone" node attribute "image" just fine....
But I'm not able to grab the attributes of each "Gatherable"
node it seems... am I missing something or just not pointing to the
right node?
I keep getting:
undefined
undefined
undefined
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
Error opening URL
"file:///C|/apache2triad/htdocs/gatherer/flash/undefined" -
External XML data for more charts in a single page
I am using a plot chart which gets data from an external XML file through <mx:HTTPService>
I create another chart in the same page which also gets data from another XML file.
How can i provide data to this chart through the HTTP Service ?
- SenI hope i've understood well what you want to do.
Easily you could define 2 different httpservice with different url and bind them to chart.
hope this help!
bye! -
How to automatically update xml data for xml connector
I suspect the answer to this is simple because I am a real novice when it comes to ActionScript.
I have a project with an XML Connector that goes out and gets data from an xml file and displays it in a label in my flash.
It does this when the swf file loads using ActionScript in frame 1.
The ActionScript is simply:
this.labels_xc.trigger();
This is great. It loads the data from the XML file no problem. But the data in the XML file changes every so often. How do I get the swf file to go out and get the new data on a regular interval (say every 2 minutes or so)? I've looked at scripts with timers and I can't figure it out.
Here is the url to the page I'm testing it on:
http://www.timescapemedia.com/uptake/text.htmlMy lack of experience here is showing.
I tried putting the following, but neither work.
this.labels_xc.trigger();
setInterval(f, 30000);
function f() {
this.labels_xc.trigger();
and
this.labels_xc.trigger();
setInterval(f, 30000);
function f( ) {
this.labels_xc.trigger();
Obviously I'm not putting this together correctly.
I appreciate your patience and help. -
Evaluating XML data for comparison
Does anyone know if it is possible to evaluate an xml node to see if it holds a specific value, and if so how?
I am trying to do something like this...
Set myChild = myRoot.evaluateXPathExpression("//collections/page/pnum")
if myChild(1) = 1 THEN
[do something]
Else
[do something else]
End if
I keep getting a "Object does not support this property or method" error on the first line of the if statement.
If I placeXML into a text frame I can get the value of myChild(1), so I know the XPath is correct and there is something there, I just can't figure out how to use it.
That particular node should hold the value of 1.
I am using VB and CS5.5, but javascript answers/ examples are fine.
thanksI got it figured out. If anyone else cares to know, it goes like this...
if myChild(1).contents = 1 THEN
Maybe you are looking for
-
Creative Cloud application will not start
Hi, I am using an Adobe Typekit font and cannot enable it because my CC app doesn't respond. It is just completely blank. Does anyone no the reason for this?
-
ALV Standard Layout with problem for excel download
Hi, i have a alv grid report with this problem: I execute the report and see all data ok. chose the download option to spreadsheet. *When open the spreadshet only see headers and no data. The report have a standard Layout with 4 of 12 column selected
-
Azure + Sync Framework + Error: Value was either too large or too small for a UInt64
Hi, We have an in-house developed syncronisation service built on the Sync Framework v2.1 which has been running well for over 2 years. It pushes data from a local SQLServer 2005 database to one hosted on Azure with some added encryption. The service
-
I have a folder with thousands of pics in it. I need a way to randomly pic just 1000 and store in another folder..Anyone seen anything like this?
-
Video card driver issue with K8T FSR
I put a new system togather yesterday. Here are the spcs. AMD64 2800+ MSI K8T FSR (VIA chipset) Geil Value Series 184 Pin 512MB DDR PC-3200 WD 120 mb drive Gainward fx5600xt 128MB I installed Windows XP 32bit, VIA 4in1 drivers and directX 9. Most of