birt detail row divide into two columns - multiple-columns

Hi i have a report that has many details, I need to divide it into 2 columns. The usual detail row gets enumerated going down like this:
List item
List item
List item
List item
but i want it to look like this
List item 3. List item
List item 4. List item
How do I do that? Is there a sample / link where I can refer to? I was thinking maybe thre is an easier way like a control to add than programming it to divide itself. I cant just divide it by fixed no. coz detail for each category has different counts.
thanks

the "List" element from the BIRT palette should act exactly as you need:
Drag a list from the palette onto the body of the report
Bind the list to the data set in "bindings" tab
Drag & drop a field from the dataset within the list details
Set the width of this field as you like, for example something like half-width of a page
In general properties of the datafield, set property "display" to "inline". Run the report, your items will be split in 2 columns
If you want to combine several datafields in each column:
insert a grid element in list details, and set its width as required
In general properties of the grid, set property "display" to "inline"
Arrange datafields as you like in the grid

Related

Dynamically changing the bound entity of a list box on a canvas

I'm wondering if anyone has come across this issue.
I have two radio buttons on a canvas app that I am attempting to control the values displayed within a list box.
RadioButtons.Items: ["SomeValueA","SomeValueB"]
The list box control should be getting reset whenever the value of the radio button changes.
UpdateContext({resetList: !resetList});
UpdateContext({resetList: !resetList});
Reset(lbListbox);
lbListbox.Reset: resetList
For the list box itself I have the following for Items:
Switch(
RadioButtons.Selected.Value,
"SomeValueA",
Sort(
EntityA.FieldName,
Descending
),
"SomeValueB",
Sort(
EntityB.'Some other field name',
Descending
)
)
The problem is when I select 'SomeValueA' the list box properly populates with the values from EntityA.FieldName but when I then select 'SomeValueB' from the radio buttons the list box blanks out with empty records. There appears to be items in the list box that I can scroll through and select but not see.
If I put two list boxes on the screen and set their Items event to the specific entity the values show up properly in both list boxes so I know the entity naming/field is correct.
I've tried it without the reset of the list box, I've tried it using collections made out of the entity records.
Has anyone come across this who maybe has a solution. I was going to try to put two list boxes on top of one another and either hide/show or bring to front the active list but that also doesn't want to work.
thanks!
(Received this post from another source, figured I might as well post back here as well)
Got this to work, but it was a bit finicky. The catch seemed to be giving the List a value-pairing table, instead of just a list of values.
First I collected the Option Sets from CDS, and added a column to indicate the source name, for reference. This could easily be combined into a single collection, and then filtered later but I was thinking simple.
ClearCollect(colOptionSet1,AddColumns(Choices('Ownership (Accounts)'),"appSource","Ownership"));
ClearCollect(colOptionSet2,AddColumns(Choices('Preferred Method of Contact (Accounts)'),"appSource","Preferred Method"));
Next added a Radio button identical to yours.
Then added a List control with Items equal to
If( Radio1.Selected.Value = "SomeValueA", colOptionSet1, Radio1.Selected.Value = "SomeValueB", colOptionSet2 )
You may need to use the right-side property pane to toggle between Value and "appSource" (from collections above), but this did allow me to toggle between two separate Option Set fields in a single list.
Patching/writing this back is gonna be another hurdle. 😝

Display nested headers dynamically in SSRS?

Is it possible to create a nested set of headers in a Tablix in SSRS.
Such that in the first level grouping (Source), it shows a header of Count and a value for the total count of that group (source).
If you expand out the Source group, it would display the values inside the group, with a header that only displays when you expand the group?
I cant seem to nest the groups correctly. Do i need to use additional Total rows within the group?
If I've understood correctly, the easiest way is to build the report fully expanded with all the detail (and the totals you want to see when expanded).
Right-Click the row header, choose properties and set the row visibility for the rows you want to hide to hidden
Finally, in the same dialog, set the 'Display can be toggled by this report item' to the textbox you want to click when expanding the group.

oracle forms 10g multiple records data block showing records on demand

I want to create a sale order form. For which the form should allow insertion of line items. I dont want to restrict the number of line items. I decided to display 4 empty records in which user is allowed to type line items. If he wants to type the 5th line item then i have to make the 5th empty row visible to the user. using a scroll bar he should be able to see the first record also.
How to do this in oracle forms 10g.
Any help will be appreciated.
Set the Number of Records Displayed property of the line item block to 4 and the Show Scrollbar property to Yes.
add text item based on your table (in the proprety
database-yes ,and write ehich table the item base)
on the property of the block do the scrollbar property to yes.
add simple button to the forms and wrie commit_form.
try it

Labels in fields within an SSRS report

I am attempting to reproduce a form within SSRS and fill it with data. The original form has blocks with small labels inside of each box that identifies the entry requested.
I "thought" I could simply use two different tablixes: one for the blocks with borders and labels, and the other one with the actual datafields or expressions, and align the 2nd tablix directly over the first one so that it appears as though the fields are presenting data inside of the labeled boxes.
It looked as I wanted it in design view, but when I went to preview the report, it pushed the 2nd tablix below the first tablix, in effect creating two tablixes, one stacked on top of the other one (not displaying as how I intended).
So, how do I accomplish the form design in the manner that I am seeking?
You should be using a type other than tablix for your report. Use a 'List' instead and you can free float objects as you need them and also nest a tablix as well. A little explanation on list:
You can float images with text boxes and then even change syntax or draw boxes around them and decorate those.
The call out for a field in SSRS is [(value)] with the [] meaning: "Data Column in recognized Dataset"
You can call out Variables with an '#' in front of them [#Test] would be a variable a user would put in called 'Test'.
Whatever size 'List' element is will determine how large it is when it repeats. If you want a strict form ensure the length and width are set correctly on the properties of that element.
If you want it to break every page you can click on the 'List' > Right Click the top left corner > Properties > 'Add a page break before' checkbox.
My example shows a super simple textbox with a dataset that only has three ideas repeat as many times as there are id's, three times. You can apply this to your form as needed.
It looks like you could reproduce that form header quite easily with a single tablix. If you envisage the form as a set of tablix cells like so:
then all you need to do is set the Border properties for each cell to hide the borders as needed (or you could merge the cells e.g those for Applicant and Location).
You can use a tablix with only Header rows, deleting the detail row. If you need multiple forms per report, then put the tablix inside a List region.

Text Item data copy from other

I have two text items. Both of them do not have any value. When I added some text in first text item same data should be reflected to other one. So how to do this.
Thnx in advance
If you really need always the same value in both items then you should use mirror items also known as synchronize with item property.
This will display the same value in both items.
If you need some kind of logic for the synchronizing of the two items then you can use the When-Validate-Item trigger of the master item to populate the child item. But if the need a simple synchronizing without any logic then the item property 'Synchronize With Item' (as already stated by nigthfox79) is the right way to go.