I'm trying to fill a repeated grid in orbeon with a XML file and http service/action. The xml looks like this:
<result>
<code>Row 1</code>
<code>Row 2</code>
<code>Row 3</code>
</result>
But only the first row is filled and no row is dynamically added to repeated grid. What step is missng?
Thx!
Best regards,
Alex
Related
following problem in JasperReport Studio:
I designed a query, I designed, inserted a table element in the Report but when I preview the data numbers look like this:
3.0083728739827928739279
I would like them to look like this:
3.01
In a element I can just add a pattern. For example:
<textField pattern="#,##0.###">
This (i.e.: jr:table pattern="#,##0.###") does not work with a table element.
So how do I format a table?
Thanks and best regards, Joachim
edit 25/07/2018:
one solution is to add the pattern to each textField -element within the jr:table -element by editing the JRMXL code, still I would like to know how to reach this setting via a GUI (i.e. JasperReport Studio)
Set the Pattern using Java decimal Formate.
Example
<field name="data" class="java.lang.Double"/>
"<textFieldExpression><![CDATA[new DecimalFormat("0.0").format($F{data})]]></textFieldExpression>"
I hope Its properly work for you.
I am new to TYPO3 and tried out a little bit so far. Now I am stucked or lets say unsure if it's the right way how I would do it.
First I created a simple HTML file and put some CSS to it. When this simple site was finished, I tried a transition to TYPO3 and created some templates + typoscript code. Now I want to work on the content, so I can create this with the integrated editor in TYPO3 and remove it from my templates.
My site would look like this:
Header
News Row (4 Columns)
Another Content Row (3 Columns)
Another Content Row (3 Columns)
Footer
Header and Footer are in partials and don't get any content from the editor. For the news section I would use a plugin. The other content rows have to be filled with content from the TYPO3 editor so my first thoughts are that my backend layout must look like this:
News Row (do I need 4 columns here or just one and let the plugin work?)
left1 center1 right1
left2 center2 right2
Would the backend layout look like this? And for the implementation with typoscript do I have to write all columns in variables e.g. center < styles.content.get... and create all elements in the columns there or can I outsource every variable in one file for example?
Hope you guys understand my problem and can give me some good hints!
About the news row, use just one column and then modify the EXT:news templates to arrange the list of news on four columns;
About the other two rows, you have several options, I think
1) each "cell" is defined in your backend layout, and then yes, you would need a separate colPos for each, something like (in TypoScript):
center < styles.content.get
left < styles.content.get
left.select.where = colPos = 1
2) Same as 1) but you can use the interesting approach used by Benjamin Kott on his sitepackagebuilder . To make it short, he defines a "dynamicContent" TypoScript object that can accept as parameters the colPos and even the id of a specific page. You just write in yout Fluid Template:
<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '0'}" />
And so forth for the others. If you want to discover more, visit https://www.sitepackagebuilder.com/ and create a package (that you could use as a base for your development or just "pillage" it ;) ) You will also find several videos on this topic on the Youtube TYPO3 official channel
3) same as 1) but using the EXT:vhs that adds a specific viewhelper to render the content of a colPos:
<v:content.render column="0" />
4) Last but not the least you can use EXT:gridelements to build content element that can have other content elements as children with a "backend_layout" approach. In this approach you just need one "cell" in your backend layout, and in this cell you will put a "gridelement" CE that is sub-divided into three separate columns and in each one you can put one or more content elements (same for the third row). This approach will give you the maximum flexibility
I hope I made myself clear, if I misunderstood your question, don't hesitate to write :)
Here I see how to create a personalized layout by a nested elements.
But if I want to divide each part in an XML view, how can I do it?
I would do something like this:
//file1
<page>
elementA
elementB
<\page>
//fileA
<page>
...
<\page>
//fileB
<page>
...
<\page>
You can add an XML view just like any other control instead of the core:HTML in the example code.
I would like to implement a codependent filteringselect layout in a dojo dgrid.
I tried to follow this tutorial:
http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect#codependent-filteringselect-combobox-widgets
My problem is, that I can not access the value of the first filteringselect to set the second one in the dgrid like in the example, because the selects don't have an id.
How can I cross-reference the values?
Thanks!
Did you try inspecting the element with Firebug (right click->inspect element)? You can see the id that Dojo assigns to elements that way.
I am new to iphone development.I want to ignore CDATA tag while parsing because it consider the HTML tag following it as text.Since i want to display the content alone ,i want my parser to ignore CDATA tag.My source code is
[CDATA[<br /><p class="author"><span class="by">By: </span>By Sydney Ember</p><br><p>In the week since an </p>]].
Is there any way to ignore CDATA tag?
Is there any way to parse my source twice so it displays only the content?
Please give me some sample code.Please help me out.Thanks.
If you treat the CDATA content as XML instead of CDATA then your parser will throw an error (since your HTML is a weird mix of XHTML and HTML and is not well formed).
If you want to get the HTML, then parse the XML, extract the text content of the node, then parse that text as HTML.
There is no way to ignore the CDATA tag - it's part of the xml spec and parsers should honour it.
If you don't like the idea of this answer to your earlier question, you could get the contents of the CDATA section and parse it as XML again. However, this is highly not recommended! You don't know that the contents of the CDATA are going to be valid xml (they're probably not).
If you can 100% guarentee that the CDATA section contains the form you have above, you could probably use some string manipulation to get the data out (i.e. string replace '<span class="by">By: </span>' with '') but again, this will almost certainly break if the CDATA contents change.
Where is the xml coming from? It's a better idea to talk to owner of the service and get them to send you instead of description something like
<description>
<author>By Sydney Ember</autho>
<text>In the week since an </text>
</description>
S