Move a column in Report Builder 2.0 - reporting-services

How can I simply move a table column left or right in Report Builder using the UI (or text editor if necessary)?
I've tried to drag and drop, looked at menus, etc, and I can't find that option. Is it in there? So far I've had to delete and recreate a column every time I wanted to change its position.

In Report Builder 3.0 you can move columns like this:
Insert a new empty column
Copy (or cut) the text of the header and the text of the value in the new empty cells
Delete the old column
Or the easiest way is just to not move the columns but change their content by hovering over the column you want to change and select a new data type. After this you still need to update the column name and you're done.
I tried this too, but it only moves the values in the DataSet, not in the report:
Right click DataSet1 in the left menu and select Dataset Properties
Select Fields on the left and click on any field to move it with the blue arrows on top

You can cut and paste - click the column you want to move and cut with Control-X. Then select a different column and paste with Control-V. That will place the old column to the left of the selected column.

Related

ssrs report - textbox create gap space

I have a report with parameter to select the name and a textbox with expression field name. Below text box the a dataset table.
When I run the report, by default it will return all name on the table and HIDE text box.
When I select name in parameter, it will return for that name and SHOW text box.
I don't have any issue at this point.
BUT I do have problem that the textbox create a gap between header and the table WHEN I run the report by default (not select name in parameter).
My goal is to some how REMOVE THE GAP so the table can move up right below header. ONLY show when name is select on parameter.
You can do this as long as your table is not a matrix (as the column groups prevent you from merging cells).
Add a new row to the top of your table, then select all the cells in that row and merge them.
Now resize the single cell you just created so that it's roughly big enough to hold all the content.
Right-Click the cell and do Insert->Rectangle
Now either add new controls or copy and paste your existing ones into the rectangle.
Right-Click the row header and select "Row visibility", set it to the expression you are currently using to show/hide your text boxes.
That should be it. I did a quick test to try it out and it works perfectly (in this simple scenario). I've put some background colours in just to make it clearer but this is what the design looked like...
The row visibility was simply set to my parameter value =Parameters!HideTopRow.Value=1 . The textboxes in the yellow section are just some arbitrary values from the dataset.
When I run with the option set to 0 I get this..
When I run with the parameter set to 1 I get this.

I want to expand the length of title textbox in report builder 3.0

I want to horizontally expand the length of the title textbox in Report Builder 3.0 with the expansion of the column.
I think it requires an expression on the textbox but I am not able to enter a proper expression.
"The title textbox must be expand with the expansion of the column 'NAME'."
In order for the textbox to expand with the column group, it has to be within an object that is forced to expand with it. There's no property to simply link their right border.
One option is to add another row outside and above the column group like this:
Unfortunately, you cannot merge these two cells in the top row, but the second cell will grow to cover all the columns in the group.
The other option is to wrap the title and table in another table. To do this you would start by creating a table with 1 column and 2 rows.
Then you drag the title textbox into the top row and the table into the second row.
The only downside with this method is that it can be tricky to resize columns, but you can always edit your main table first and then drag it into the other table at the end.

How can I add TextBoxes to an existing Matrix in an SSRS project?

Why is it that a control that appears in the property list in a BIDS project is not represented in the corresponding .rdl file?
Let me step back a bit; I'm having a heck of a time trying to figure out how to add items to an existing report, either via the XML (.rdl viewed as code) or on the design surface. I can click on a rectangle on the design surface and see a column row above it:
And if I click on the "pipe"-separated segements on that column heading row, I see "MatrixColumn4", "MatrixColumn3", "MatrixColumn2", and "MatrixColumn1" in the designer; for example, here's MatrixColumn3:
However, only one of these columns appears at a time in the Property list - if I select MatrixColumn3 on the design surface, MatrixColumn1, MatrixColumn2, and MatrixColumn4 are not there. The same holds true for selecting any of the others - it turns up temporarily in the Properties list but "hides" all the others:
Stranger yet, when I search the .rdl file (viewed as XML) for "MatrixColumn1" (or "2" or "3" or "4") they do not exist there. In fact, the only reference to "MatrixColumn" in the entire file is this:
<Matrix Name="matrix1">
<MatrixColumns>
<MatrixColumn>
<Width>1.67609in</Width>
</MatrixColumn>
</MatrixColumns>
. . .
This seems exceedingly bizarre - shouldn't there be four sets of <MatrixColumn></MatrixColumn> there?
I want to add another column heading, with a Textbox-as-label and a Textbox below that to display dynamic content, but how can I do it without adding another column heading?, or at least making room for this new column?
I can increase the width of the matrix ("matrix1") by dragging it or by increasing its Size.Width value, but its existing contents expand with it, giving me no room to add TextBoxes inside of it.
Maybe I'm approaching SSRS from a completely wrong mental angle, as I don't see much of a connection between what the report generates and what I see on the design surface and in the XML.
To add another column to a matrix right click the column header and Select Insert column. Then choose either inside group (left or right), or outside group (left or right).
A column created inside the group will repeat for every item in the column group
A column created outside the group will only appear the once to the left or right of the grouped columns.
Are you sure you are referring to a matrix (dynamic columns and rows) and not a tablix (dynamic number of rows only)?
The process for tablixes is the same as for matrixes as described above, just without the inside/outside group option.
Either method described above will include a new column with a single text box to label the column with, and another text box underneath to put the detail in.
You can also do this process by dragging a field from your dataset in the Report Data panel to the appropriate location in your existing table.
Please let me know if this helps, or if I've misunderstood your question and you require a different solution.

SSRS tablix Merging cells vertically problem

I found the colspan and rowspan property defined in TablixCell,but in report Designer still can't vertical merge cells,if i modify the RDL xml file manually set Rowspan,the reportViewer show me error info:RowSpan must be 1 for CellContents inside a TablixCell.
is there any other way to implement vertical merge cells of tablix ?
You have to use Matrix instead of Table. I resolved my this problem by creating a matrix same to tablix, below:
Insert a Matrix. Right Click->Insert->Matrix
Change groupable row to detail row. Right click row->Row Group->Group Properties... Then, in tab "General" Choose "group on" belows "add" and "delete" buttons and click delete to remove group ->OK.
Right Click at the first column of Matrix and choose "Delete Column" option. Choose radio button (Delete columns only)->OK
Right click on the first row of Matrix and choose "Insert row" option -> outside group - above and then another row will be added to matrix. After that, delete row that you right click previous.
Now, you can add row above the detail row and can merge any more
If this is only for display purposes, you could try putting a table inside a table. SSRS will let you do this if you delete the grouping columns on the outside table.
Otherwise you are limited to the vertical grouping with Matrices, which still has restrictions on where the vertical merging takes place.
As far as I know, the only way to merge vertically, is to use a Matrix instead of a Table.
http://gotreportviewer.com/matrices/index.html
So my trick is I highlighted the top row of the column I wanted to merge the cells, and changed the border properties to remove the bottom line. When you preview the report, the cells look merged.

Can you edit all columns in a table using phpMyAdmin?

Using phpMyAdmin: can one alter a table's schema by inserting new columns, as one would using spreadsheet software? Like when one creates a new table.
If you click the Structure tab you'll be able to affect the columns or add in new ones.
To edit existing columns
Check the box on the left of the columns
Click the pencil icon below the structure display.
The next screen will allow you to adjust the column properties of those selected.
To add in new columns
Look below the table structure display
Enter however many new columns, and where in the table they'll go
Click Go.
The next screen will allow you to enter the properties for each of the new columns for the table.
If you select all at the bottom of the screen below the table,then click change, you can change them all like you did when first creating the table.