Ol start is not workign in birt - birt

ol with start attribute not working
<ol start="5"> <li>test item</li></ol>
Birt omitting start attribute in Ol tag if specified. And the list item always starts with 1

This is not a question actually.
BIRT does not support the whole HTML specification and there are no plans to change this.

Related

How to Vary the width of Interactive Report Column in Oracle Apex 5

I have one simple Interactive report build in Apex 5.0. Its just simple plain statement pulling the data from table.
I need to adjust the size of each column in the so that data properly appears in the report.
Right now what is happening is that i have column called customer which contains customer name. Now name is 30 to 40 characters long and in the report it is getting broken down in two lines.
I tried using the following but there is no effect of this. Could you please help me to fix this. I have 30 columns in the report.
#apexir_NAME{width: 200px;}
You should try this using Column Formatting and set HTML Expression value like this
<div style="display:block; width:200px">#COLUMN_NAME_OF_REPORT#</div>
for example:
<div style="display:block; width:200px">#DEPT_ID#</div>
To change interactive column width:
Add static id to interactive report eg. myReport
Add static id for column in report eg. myColumn1
Add to inline css of page below code:
myReport td[headers=myColumn1]{ width:100px; }
Note: before myReport td put #
Use min-width instead. You could use either of the following:
#apexir_NAME {min-width:200px;}
or
th#NAME {min-width:200px;}
To set all of them at once, you could try something like this:
table.apexir_WORKSHEET_DATA th {min-width:200px;}

BIRT - expression builder: HTML Table + Dataset field does not evaluate

I am new to BIRT and its awesome but I am unable to make a bullet point list where each bullet point is a field from my dataset. Without using any html the datasetfield evaluates but as soon as I add an html tag it will simply show the name of the field.
This
<ul>
<li><value-of> row["SRRI"] </value-of></li>
</ul>
Shows:
row["SRRI"]
But I want it to show the value of row["SRRI"] instead. (Omitting "" does not change the output for me)
I was searching for a solution for a few hours now and I guess its fairly simple but I cannot find a solution on how to tell BIRT that this is not a string.
It sounds like you have a list, and you want to lead each entry with a bullet point. In your report design, you can put a cell in front of your row["SRRI"] value and put what ever bullet image you want there.

CKEditor format tags and a custom <small> tag

Is there a way to add a tag to the format dropdown that would wrap the text in <small></small> tags?
Editing config.js as follows causes a runtime error:
config.format_tags = 'small;p;h1;h2;h3;pre';
probably because <small> is not block level?
The reason of the runtime error is, that js can not find CKEDITOR.config.format_small.
You have to do two things:
Search for CKEDITOR.config.format_h6 in ckeditor.js and add CKEDITOR.config.format_small={element:"small"};. Then the error is gone, but you can not see the entry yet.
open the languagefile you want (e.g. en.js) and add "tag_small":"small text".
now CKEditor supports the small tag.
This works for me, I hope it works for you too.
If I want to add a custom section tag to format tags, this work for me:
1. Go to config.js, add
config.format_tags = 'h1;h2;h3;h4;h5;h6;section';
config.format_section = { element : 'section' };
2. Then open the languagefile you want (e.g. en.js) -> lang/en.js
search for "tag_pre":"Formatted", and add "tag_section":"Section".
If you're looking to wrap text in a certain tag, you can also achieve this with the Style dropdown as well.
First, configure your editor to allow styles at /admin/config/content/formats/manage/full_html. Replace full_html with whatever editor version you want to modify
Drag the Styles button to the active toolbar if it isn't already there
Add items to "Styles Dropdown" tab under CKEditor plugin settings
Each option takes the form css_selector | Human Visible Name so in your case, you'd add small.my_element_class | Super Special Small or something similar.
Instructions abbreviated from this post: https://www.axelerant.com/resources/team-blog/drupal-8-custom-styles-in-ckeditor

Reporting Services: freezing rows in tables

I'm a bit new to Reporting Services 2005. I have a report that gets emailed out and some users want to freeze the top two rows while scrolling. Is this possible?
set your fixheader property true
for this Select Table > property > fixheader = true
Second way open your rdlc file in xml edition
put the fix header as show below in your header tags
<header>
<FixedHeader>true</FixedHeader>
</Header>

CKEditor : How to prevent bookmarks to be wrapped in paragraphs?

I'm trying to use CKEditor for a project and I found the need for bookmarks. The documentation says that the intrusive way to create bookmarks add span elements in the source. This is just fine with me and that is exactly what I would want it to do.
However, I can see in the source that the span elements are wrapped in p elements.
<p><span id="cke_bm_147S" style="display: none;"> </span> </p>
This creates problems for me with the way the text is displayed and mainly when trying to navigate the document.
I didn't find anything that even mentions the creation of these p elements. Could I have set something wrong? Is there a way to prevent these to be created?
Thank you
The span bookmark is an inline element so it cannot be the root element of the content. It is wrapped in a block element (which is by default a paragraph).
This behaviour depends on editor enterMode. If it is a default one - ENTER_P - you will have a p element as a wrapper. For ENTER_DIV you will have a div element. And for ENTER_BR there will be no wrapper which means it is the effect you would like to achieve.
Check this codepen for demo.
Please keep in mind that enterMode other that ENTER_P is not recommended due to some caveats. So maybe in your case it will be better to reconsider some different solutions instead of changing enterMode.

Resources