Using jqGrid - would like to drag from Table A into an arbitrary row in Table B. Would like the rows of Table B to highlight as I hover over them during a drag. Is this possible?
Even better, can I insert into arbitrary fields in the destination row upon drop?
What I am doing is populating a row field-by-field.
Thanks.
Related
I am wondering if you can have other tables show based on the value selected in the main table. I am not opposed to drill-down either.
My main table is the summary and was hoping to show additional data when the user clicks on a Type. When clicked another table would be visible. For example, in the screenshot, the Pool table would be visible when the Pool type is clicked in the main report. As mentioned if this is easier as a drill-down then I will do that, but not sure how. The report currently has a dataset for each table. Do I need to combine the datasets to do a drill-down?
Main and child tables
The best way to accomplish what you described is with a drill down and you would need to combine the datasets into one.
Combine your datasets
Add a table to your report and reference the single dataset
Add your detail row group to the table - from your child table (Area, Average)
Add a parent group to your details row, group your detail row group by Type, it should add a Type column to your table. Delete this column and it will ask you to delete the associated group as well. Select the option to delete only the column.
Recreate your table by adding rows, be sure to match the grouping indicators (brackets) on the left side
Right-Click on the bottom row in the box where the bracket is to highlight the entire row, click Row Visibility. For the option "when the report is initially run:", select Hide. Check "Display can be toggled by this report item" and select the name of the textbox that contains [Type]. If you don't know what this is, exit out of the dialogue box and right-click on the cell [Type] and click Textbox properties, the Name will be in there
Repeat step 6 for the label row for your details row (second row from the bottom)
I need to show/hide some of the slickgrid columns on the click of a button. Is it possible?
For example , I have a slickgrid having 3 columns. On click of a button I want to show three more columns i.e 4,5,6. On clicking the button again these columns should hide and another div should take its place. So basically toggle 3 of the 6 slickgrid columns.
Thanks
SlickGrid doesn't have a concept of showing or hiding columns. It shows whatever columns you specify in the constructor or in a later call to grid.setColumns(). If you want to hide a column, just remove it from the columns array you call grid.setColumns() again.
You can keep the original columns array with all the columns in a separate variable.
I can't seem to find a way to insert another cell in a row of my table in a Birt report in Eclipse, does anybody know how to do that?
Thank you
Not exactly sure which problem you are having but the solution should either be;
1 Insert a column in the table
Select the table
Right mouse click at top of column and insert a column to left or right
2.Insert a grid into an existing cell, without adding a column. (Usually you do this when you want to have a label and an aggregation in the same header or footer cell)
From the Palette, drag and drop a 'Grid" element into the cell,
set 'number of columns' to 2 and 'number of rows' to 1.
put you other elements (i.e. label and aggregation) into the seperate cells of the grid in the single cell of the table.
I have a table with a lot of rows (means that i should scroll to see last rows),i select row from code with below code and i want to write code that table scroll automatically and show selected row to me .
int currentIndex=..;
NSIndexSet *index=[NSIndexSet indexSetWithIndex:currentIndex];
[self.tbl selectRowIndexes:index byExtendingSelection:YES];
i use displayRect like below for table but doesn't work
[self.tbl displayRect:NSMakeRect(0, currentIndex*30, self.tbl.frame.size.width, self.tbl.frame.size.height)];
Try scrollRowToVisible: row
Cheers
You should use the NSTableView method, scrollRowToVisible:
I need to change the orientation of a table in a BIRT report so that the table header is vertical instead of horizontal.
Is this possible? I don't want to use a Crosstab.
It seems this thread is still being pointed at so I posted an example of a horizontal table layout using a crosstab. I know it won't help the original author but others following this thread now may find this helpful.
To create the horizontal grouping, first create your query like normal, then create a Data Cube. In this data cube, drag each field that you want into a group. Then drag a new crosstab on the report and drag each field into the top right column group area. It will create a new header row for each field. Don't put anything in the left side (Rows) and don't put anything in the measure field (bottom-right). This will create labels on the left... and the data will extend out to the right.
The report design example can be downloaded from: http://developer.actuate.com/community/forum/index.php?/files/file/1079-horizontal-table-using-crosstab/
Virgil
If you want dataset records to be reported across the page, this would have to be done via a crosstab.
If you want dataset records to be reported down the page, this can't be done automatically as far as I know. However, it can be done by inserting a new detail line in your report table object for each database field to be reported, then moving column headings from the heading row into the first column's detail rows and moving record values into the second column's detail rows.
So, for example, a report with 6 columns in it would become a two column report with six detail rows.
Not in box (up to 3.7). You have to use 3'd party libs like that one.