SSRS One Page Per Row - layout

I created a new report with a datasource that is returning 100 rows.
In the layout I just drag over a few columns in, no toolbox control. But in preview and deploy I only get one page output with the first row.
What exactly do I need to do so that it renders One Page Per Row?
Not sure if it matters, but my data source is a SharePoint list Web service and I'm using a CAML Query to select data. I do see the records in the Data section in design mode.
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/"
Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>{xxxxxxxxxxxxxxxxxxxx}</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="True">*</ElementPath>
</Query>

When you drag a field onto a blank area of the report, BIDS creates a textbox and then inserts an aggregate function (SUM or FIRST depending on field type, I think.)
It sounds like the best way to get what you want will be to first drag a List from the toolbox, then layout your textfields inside the rectangle.
Now insert page breaks by right clicking on the (Details) row group (lower pane of BIDS window.) Select Group Properties.
In the resulting dialog, go to Page Breaks and select the check box for Between each instance of a group.

Related

How to add a default filter to the Custom Table Datagrid web part

Using Kentico 10 - I have a custom table datagrid component that displays data. I have created an alternative form for this custom table with a code name of "filter". How do I get this alternative form filter to display above my datagrid? I am not using the default admin tools for editing my custom table data - the filter works there - but I want to embed it in a templated page and can't figure out how to do that.
Custom table datagrid has Filter Name property, which means this web part could be used with filter, so you need to add filter to your page template.
Filter transformation you've created does not change the appearance of the custom table datagrid web part on the live page, it just allows you to create custom filter for that particular custom table in Kentico admin.
By default, if you are using the OOTB listing viewers, the filter will only show if there are more than 25 records. If you want you can change this by adding a web.config key. But keep in mind this will change the default number of records displayed before paging for all Kentico listing pages not just the custom table grid. I should mention this is ONLY for listing viewers int he Kentico UI, not on your public pages.
<add key="CMSDefaultListingFilterLimit" value="10" />

How to get editing text box to expand to fit size of string field

I've noticed that in the Employee Time Cards screen (EP305000) in the details tab, there is a field called 'Summary' (In the DAC it's 'Subject') - and when you double click to edit the field, the edit area expands to show the entire text to be edited.
I have a custom screen with a grid, and this grid has text fields which I would like to have the same property as the Employee Time Card 'Subject' field (as described above), namely that when you enter the field to edit, it expands to show the entire text.
I've looked at the source DAC for the grid in EP305000, and I don't see anything that jumps out at me as an attribute on the 'Subject' field for that sort of thing.
Any help would be appreciated.
Added a RowTemplate to the Grid area for the two fields I wanted to make expanded, as follows:
<RowTemplate>
<px:PXTextEdit ID="PXTextEdit1" runat="server" DataField="TodoDescription"/>
<px:PXTextEdit ID="PXTextEdit2" runat="server" DataField="Comments"/>
</RowTemplate>
This did the trick. Thanks to HB_ACUMATICA for the answer.

Is there a 'translation' for the URL query option of "SearchOrder="?

In our XPages view controls, we compute a search string (xp:dominoView - xp:this.search) based on dropdown fields on the page, which works great.
But we found that this search returns the results sorted by relevance, and we'd prefer them to be kept in the view's sort order (usually, the first column is sorted ascending).
So, in the Notes client's FT search bar, you can specify this by changing the "Sort results by" flag to "Keep current order (sortable)", and this is also available as URL parameter by adding "SearchOrder=4" - but what would be the correct addition/wording to apply this to a "SELECT" statement resp. the XPages search we use?
The view control has a couple of additional properties that you will need to set; sortOrder and sortColumn.
Also, I believe you need to make the sortColumn sortable on the actual view itself which is on the second tab of the Column properties, "Click on column header to sort".
<xp:dominoView
var="view1"
viewName="your view"
sortOrder="ascending"
sortColumn="your column name">
<xp:this.search><![CDATA[#{javascript:compositeData.searchFilter;}]]>/xp:this.search>
</xp:dominoView>

Expand only some of the categorized columns in a viewPanel upon opening

I am using a ViewPanel to show a categorized view. This view has 4 columns of categories. There are 3 additional columns that are totaled.
I want to open this view so that the first 3 categorized columns are expended and the 4th one is collapsed.
Is there some type of SSJS / CSJS that I can add to the view that can do this?
I didn't see an option to expand/collapse a column upon opening the view in the Properties of the viewPanel.
I tried using the collapse option on the back-end view but that has no effect on the Xpage side. I tried hide detail rows, but they show up anyway.
To do this, just change the expand level of your datasource:
<xp:this.data>
<xp:dominoView var="view1" viewName="NameOfYourView" expandLevel="4" />
</xp:this.data>
EDIT:
You can even control this by adding a simple URL parameter: nameOfXPage.xsp?expandLevel=3
Have a nice day
Sven

Add a checkbox to each row of a ListViewWebpart

I'm working on a WSS 3 site that has a ListViewWebpart displaying various columns.
I need to add a checkbox to each row and a button to the header that will perform a server side action for the selected rows.
Do I need to make my own custom webpart or can the ListViewWebpart support checkboxes?
Adding checkboxes to each row
I've found a post Checkbox in ListViewWebpart which suggests
...to add a checkbox, to select multiple
listitem, in the custom list, declare
a xml string as follows.
<Field Type="Computed" ReadOnly="TRUE" Name="ListItemSelection" DisplayName="Select" Sortable="FALSE" Filterable="FALSE" EnableLookup="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="ListItemSelection">
<FieldRefs>
<FieldRef Name="ID" />
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<input type="checkbox" ]]></HTML>
<HTML><![CDATA[LItemId="]]></HTML>
<Column Name="ID" HTMLEncode="TRUE" />
<HTML><![CDATA["/> ]]></HTML>
</DisplayPattern>
</Field>
and call the
list.Fields.AddFieldAsXml(“xml
string”);. Include this as a first
column in your custom list’s view.
I'm assuming the latter part requires a SPList. E.g.
SPList list = SPContext.Current.Web.Lists["MyList"];
list.Fields.AddFieldAsXml(stringWithXmlFieldDefinition);
Adding a button to the header row
One option for the header button is a CustomAction. This should create a button in the toolbar.
Here is a post to create a custom web part, then you can add a check box to your custom web part using the post you have found (Checkbox in ListViewWebpart).
Be aware that,list.Fields.AddFieldAsXml(stringWithXmlFieldDefinition); can end up adding many duplicated check boxes to you sharepoint. The duplicated can be deleted from database and are located at AllLists table, tp_Fields column.
To find the right fields, you can search by the list guid.
declare #xmlString as xml
Select #xmlString = tp_Fields
From [WSS_Content].[dbo].[AllLists]
Where tp_id ='xxxx'
Select #xmlString
then, update the fields
declare #string as varchar(max)
set #string ='new value without duplicated checkbox'
UPDATE [WSS Content] . [dbo] . [AlILists)
SET [tp_Fields] = #string
WHERE tp_ID = 'xxx'
You can simply add a button by
ToolBarButton newbtn = (ToolBarButton)Page.LoadControl("~/_CONTROLTEMPLATES/ToolBarButton.ascx");
but possibly you need create another toolbar to hold the button, you can even create your own toolbar. You just need to put it in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\YourCutomToolBar.ascx

Resources