SharePoint (lists) - Multiline clamping (display only the first line) - json

I have a column that contains multiline data and I am trying to keep only the first line visible and hide the rest so I can have a nice displayed list with minimum gap between the lines. Ideally a JSON script to customize the column formatting. I tried to keep only a certain number of characters visible, works but then again the problem is that when you open the record, the information in that multiline field is not showing but only the number of characters we limited to be displayed in the first place.
I was thinking about putting the value of the first line in a different column (single line text) and have the rest in a different column, that i can just hide. but when i hide that column, i am not able to use my power automate flow as it detects that it is not available (...) if i can get that to work then my problem is resolved.
Appreciate everyone's inpu

There is no such function to hide a part of the multiline. We can only show or hide the whole item in the column. SharePoint will display top 5 lines and hide the others as default.

Elaborating on the comment: Power Automate does not have to work with the view that the user sees in the SharePoint browser interface. You can create a new view in SharePoint and include only the columns you need for the workflow. Give the view a nice, descriptive name.
Then, in Power Automate you can use the Get Items command and under Advanced options > Limit Columns by View specify which view you want to use to return the list items. In the screenshot, I'm using a view I called wfView. This will return the columns of that view, plus some of the SharePoint default fluff.

Related

SSRS Tablix Group Reset Page Number and Page Name not working when Exported to Word

I have a SSRS (.rdl) report with a tablix whose details group is set to put a page break between group items, reset the page number and set the page name (as per http://blogs.msdn.com/b/robertbruckner/archive/2010/04/25/report-design-reset-page-number-on-group.aspx).
This works correctly when rendered to HTML or as a PDF.
When rendered to Word the page numbers do not reset and the page name never changes (the page name is always the value set on the first page). The page breaks work as expected.
I have read (at https://msdn.microsoft.com/en-us/library/dd283105.aspx#ReportHeadersFooters) that complex expressions must be converted into runs of simple expressions in order to display correctly when exporting to Word. I have done this but the problem persists.
Is there any way to make the tablix group reset page number and page name functionality work when exporting to Word?
If not is there a way of achieving the same effect when exporting a report to Word from SSRS?
This is an older question but recently ran into this issue myself so it might help someone else.
There are a lot of examples out there that use casting in the examples for the page number display (CStr or ToString()). Whenever I invoked those methods, the counts would be off when exporting to Word (either doc or docx).
The only way I could get it to work is with three separate text boxes in the footer with these expressions:
=Globals!PageNumber
"of"
=Globals!TotalPages
Avoid the use of those other approaches. Three separate text boxes was the only way I could get this to work.

ssrs display multiple documents

We have several RDL's that that are designed using textbox's to display data as a document to be converted to PDF or printed directly. There is no table involved in the RDL's. I am trying to get one of the RDL's to display multiple documents by passing a dataset of multiple DocumentId but it only appears to display the first document. I figure there must be a setting to force a page break on the actual dataset or page itself but I have not found one yet. Does anyone know of such a feature of SSRS 2008?
I would recommend putting the textbox in lists and have the list group on Documentid. This should fix your issue. If you want it to be shown on a separate page you should be able to select page break between groups.

Paging a Horizontal Barchart with too many columns

I have a barchart which is oriented horizontally. Usually it is ok but if
there are too many items, then it gets all cramped up. So I need to set a
cut off point of say 10 items, after which the remainder will be put on a
new page. Here is an image of the chart....
What I have done so far is to add a List control and specify the Grouping as
=Floor((RowNumber(Nothing)-1)/10)
but it appears that some data is missing as the Dataset returns many rows for
an item and uses Average and other functions to create the items.
There is also a PageBreak property for the chart element and it has a 'BreakLocation'
one selection of which is 'Between', but it doesn't seem to do anything, as there
is no where to specify 'between what' it would make the pagebreak.
Any ideas. I have searched the web and found only 2 references to this, one which
uses the List Item grouping and another which references some sample code from a book
which uses an old version of Visual studio.
Drag a List control on the page, click on it and go to Tablix properties and set it to the same dataset as the chart. Then go to the grouping section and choose 'Group Properties', I added this under 'Row Groups' Click Add under 'Group expressions' and use an expression to group...like =Ceiling(RowNumber(Nothing)/10)

SSRS 2008 two column report only shows data on the left column

I am creating a new report that needs to show data in two columns. I did the following:
Report Properties: added the second column
Insert a List control from the toolbox
Insert a rectangle inside the List control
Insert a textbox inside the Rectangle
When I click on Preview tab, the report only shows data in the left column and then continues to the 2nd page in the same way instead of using the 2nd column.
List controls are not really needed. If you place the data in two tables or textboxes at the same height, they will display next to each other. If you have to, place both in a rectangle or set the KeepTogether property.
This is because it only works in "Image" and "PDF" export formats. From the relevant documentation on columns (emphasis mine):
Columns are only applied when you render and print reports in PDF or Image formats.
The "Preview" window doesn't use the PDF or Image renderer.
Personally, I'm a little surprised that it hasn't been implemented in the MS Word renderer, but I've tested this and indeed it doesn't work there either.
A little earlier in the same documentation, it hints at the inner workings of the "columns" feature:
...For example, suppose you have two columns on a physical page. The content of your report fills the first column and then the second column. If the report does not fit entirely within the first two columns, the report fills the first column and then the second column on the next page. ...
My guess is that in the Preview window, you'll never get to the end of a physical page, so the content never flows to the second column. If you export to -say- PDF, you'll probably get the behavior you're expecting.
Note that the columns do actually have to fit in the report, make sure your report's and report body's width and margins are set correctly.

Displaying different hidden textboxes from Dataset on Page Header in Reporting Services

In my report I have Matrices that appear according to the parameters on a SP. Each Matrix holds an specific "code"/description which I want to show on the Page Header accordingly.
I tried using an <<Expr>> but that didn't work well as it only shows the first record of the database instead of the code for the specific matrix.
Then I found out that I can show an specific textbox with "=ReportItems!TextBoxXX.Value" and so I added to each Matrix the code value hidden.
Now I thought of adding in the page header inside a TextBox a concatenation of all the values, but that didn't work, and I got a:
"The value expression for the textrun "textboc11.Paragraphs[0].TextRuns[0]" refers to more than one report item. An expression in a page header or footer can refer to only one report item.
Hence, my next attempt consisted of adding separate text boxes each one with the desired TextBox Value and one behind the other (like a Pile of textboxes). Everything working now, except that the "space" that each textbox occupies appears in the report showing the desired value and a white space above each textbox when rendered.
Any ideas of how to prevent this behavior? Maybe creating an array with the textboxes and creating an IIF or I don't know, I've been searching for days and nothing seems like a good approach.
I hope someone can give me some advice and that I explained myself.
Thanks!