Multiple groupings without SPD - grouping-sets

our client wants multiple groupings in a Sharepoint 2010 list. Aprox 6 grouping headers. Unfortunatelly we are not allowed to use SPD. is there any way that i can create multiple groupings without SPD?

You can use metadata navigation. It's not exactly grouping, it's filtering. But you can use a combination of the default group by and metadata navigation to achieve the purpose.
Metadata navigation is available for choice columns and taxonomy columns.

Related

React-Admin filters that relate to the current results

We're really enjoying using the capabilities offered by React-Admin.
We're using <ReferenceArrayInput> to allow filtering of a <List> by Country. The drop-down contains all countries in the database.
But, we'd like it to just contain the countries that relate to the current set of filtered records.
So, in the context of the React-Admin demo, if we've filtered for Returned, then the Customer drop-down would only contain customers who have returned items (see below). This would make a real-difference in finding the records of interest.
Our current plan is to (somehow) handle this in our <DataProvider>. But, is there are more ReactAdmin friendly way of doing this?
So you want to build dependent filters, which is not a native feature of react-admin - and a complex beast to tame.
First, doing so in the dataProvider will not work, because you'll only have the data of the first page of results. A record in a following page may have another value for your array input.
You could implement that logic in a custom Input component instead. This component can wrap the original <ReferenceArrayInput> and read the current ListContext to get the current data and filter value (https://marmelab.com/react-admin/useListContext.html), then alter the array of possible values using the filter prop (https://marmelab.com/react-admin/ReferenceArrayInput.html#filter).

How to get distinct xp values?

Each product has two xp parameters - productLine, productType.
Under productLine, there are multiple product types.
I need to fetch list of distinct productType under each productLine.
There is limit on listing all products due to pagination.
Is it possible with ordercloud?
The short answer is there's no shortcut way to do this. Typically in these scenarios it works the other way - you have a pre-defined list of possible values and restrict what goes in via a dropdown list in the UI, or an enum in the integration layer, or something along those lines. For your scenario, you would need to resort to fetching all products (page by page) and keeping track of those unique values. Ideally that one be a one-time thing and going forward I'd suggest validating/restricting the input, although I don't know your exact requirements.

When relating 3 entities in CRM 2011 using Advanced Find only 2 entities show up in edit columns

I'm trying to create a view in CRM 2011 that will show a few columns from Customers (Account), Orders (SalesOrder), and Order Products (SalesOrderDetail). I already know I need to start at the child-most entity so under Advanced Find I select "Order Products" under Look for. When I do this I'm able to select columns from Orders but unable to select columns from Customers.
Is this even possible to accomplish in CRM?
I'm trying to create the following result set:
Account.Name,
Account.Email,
SalesOrder.OrderNumber,
SalesOrderDetail.NetAmount,
SalesOrderDetail.ShipDate
I verified that you cannot manually add a second link within a view query. To my knowledge it is also not possible to add these columns though javascript. You can get the account name in your view simply by using the account lookup on the Order. If you need for the account email to also be in the view, then I suggest you add this field to the order entity and populate it with post callout logic on the account.
I Second Zach’s idea, but suggest adding a direct relationship between customer and orderdetail . This way you can use fetchxml to show account.email or any other account.* for that matter.
The downside is you’ll need to sync order.customer changes to orderdetail.customer.
The better option is to simply create a report and show that in an iframe or a webresource.
This is not possible even if we edit the fetch xml it wont work

How do i display data from multiple lists and sources in Sharepoint 2010?

I want to have a web part which displays a list of items. This would not be a sharepoint list but a list from multiple datasources e.g. output has a total of 8 columns
2 columns are from a sharepoint list (Users) ,
2 columns are from a custom sharepoint list ,
3 columns are accessed from a web service to a external system (e.g. share price from yahoo) ,1 columns is calculated (complex calculation) using the other 5 columns
How would i do this? What controls/objects would i need?
I am most interested in what control/object would best output the data. Assume i have a custom object with the 8 properties in visual studio code. I don't think i can do this with an SPView.
I would use the plain ASP.NET table control. It is simple to use and powerful enough if all you need is to show the data as a table. Logically, it corresponds to the table element of HTML. See http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.table(v=vs.90).aspx
SPView class represents a list view in the SharePoint object model. As far as I know, it does not perform any content rendering.

Can you project multiple aggregates from a single QueryOver

I can create a single aggregate projection on a collection of entities
example
Return the number of shops that are active
But is there a way to project the number of a bunch of different summations in the same query over?
example
number of shops that are active?
Number of shops with active products?
Number of inactive shops?
Then ultimately project these into new properties using the select method.
If you can't do it all within one queryover is there a way to create individual sub queries and join them together to project them (as new properties) into one object?
I don't think you can do it with a single QueryOver, because QueryOver is just a wrapper for Criteria.
You can use multi criteria for this. Create several QueryOvers and use the property UnderlyingCriteria to add it to the MultiCriteria.