How to display BI Publisher multi-select parameter items in a bi publisher report - bi-publisher

I have a requirement to display the items chosen in a multi select parameter in a bi publisher report. My Data Model's sample data does include the chosen parameter values but I only see the first item selected after placing the parameter in the bi pub report layout and then viewing the report (this includes when I place the parameter in a list object). How do I display in my report all of the items that were selected in my multi-select parameter?

Related

Create dropdown list from data tab (conditional)

Not sure how to phrase this correctly, but I can't get my head around the next thing;
I have a Google Sheet with two tabs. One tab showing the data based on the selected parameters (ID and Category) and one tab with all of the data.
The data consists out of one ID and up to 4 categories with each category having 3 unique values. When selecting an item ID in the first tab, it should generate a dropdown list with all of the Category names of the item with the same ID from the data tab. It should only pull the categories which are not empty. Once an ID and one of the categories is selected in the first tab, it should pull the 3 unique values of that specific Category and display it in the first tab.
Tab 1
The dropdown list in the first cell is simply the range of all the values in the 'B' column of the data tab. Once an ID has been selected in Tab 1, it should automatically generate a dropdown list including all Category Values (if not empty). In the example below it should create a dropdown list with the values "Example 1 and Example 2". If there would be a value below Category 3 it should create a dropdown list with 3.
Once the ID and the Category has been selected, it should pull the corresponding First, Second and Third value from the selected category.
Data tab
There are several ways to achieve this behavior, but I would suggest using the =FILTER function (you can read more about it here).
I have set up my mock Data tab as follows, but of course this method can be easily adapted:
You can see that I am listing all the ID-Category combinations and their corresponding value (I presume there are several Categories per ID).
Now to the main tab:
For the ID column a simple Data Validation can be done. You can select all the IDs in the Data tab, the duplicates will automatically be thrown out. This can easily be achieved by:
=Sheet2!$A$2:$A$7
For the Category validation in the second column, an extra step is needed because natively populating drop-down lists (to dynamically adapt the Category drop-down to the current selected ID) is not [yet] supported. However, it can still be achieved will the following trick:
Where the formula used in the helper for validation is the following:
=TRANSPOSE(FILTER(Sheet2!B$2:B$7,Sheet2!A$2:A$7=A2))
and in the catergory data validation we have the following range:
=G2:2
For the different values, we can again make use of the FILTER formula. You can paste this into the C2 cell and extend it to as may columns and rows as required:
=FILTER(Sheet2!C$2:C$7,Sheet2!$B$2:$B$7=$B2,Sheet2!$A$2:$A$7=$A2)

BI Publisher report using RTF template

Detail about the scenario is like I am clubbing the 10 tables queries into one data model after that in RTF template I have develop 5 different reports with the sample XML of same data-model but here I need to filter each report with 5 different parameter. which, I don't get exactly how to achieve ....?
For example :- 1st report to be filter with booking-date & 2nd report to be filter with category-id='1001' & 3rd report to be filter with category-id in ('2001','2003','2004'.......)
You can give the filter criteria within square brackets in your foor loops.
eg: <?for-each:root[category-id='1001]?>
Will filter only those nodes which meet that criteria. Of course the actual command will depend on the schema of your data.

Combine multiple columns containing similar values into one column for use in graph inside Crystal Reports

I have 3 fields, Action1, Action2 and Action3 contained in one report. Each Action field is selected from the same list of values. I would like to graph a count of these values by the value of the field and not field itself. I need one graph and not one graph per Action field. I have tried to combine the field values into an array in the details section, but the report shows the concatenated string values "Action1, Action2, Action3', as a single value in the graph. I tried to graph using "on change of", but it will only allow 2 fields and not 3. Is there a way to count these values regardless of the Action field where they are found?
I have been working with Crystal for years, but can't figure this out for whatever reason.
I was never able to find a solution to this issue inside of Crystal Reports itself. What I ended up doing was creating a stored procedure in SQL to use as the data source. In the stored procedure I basically performed a cross join such that there was only 1 Action returned per record. In CR I then was able to summarize the Action field values.

DELPHI: Put calculated value into a master detail where details are in a grid

I have created a master-detail relation using ClientDataSets (Service & Addons). The Services are displayed in a DBLookupComboBox (cboServices) and once a service is selected the Addons are displayed in DBGrid (grdMain).
The Addons has a checkbox to indicate the Addon is selected, a name field, a quantities field that the user can change, a unit price field and a total price field.
I have created a OnQuantityChange method to update the total price using the unit price and quantity but how do I get the actual data from the row to do the updating? How do I reference the various fields in order to do something like the following:
grdMain.GetActiveRow.Column['TotalPrice'] :=
grdMain.GetActiveRow.Column['UnitPrice'] * grdMain.GetActiveRow.Column['Quantity'];
You can do that easily using calculated fields. I suggest you look at the following article for a detailed example with client dataset. Just search the article for calculated fields, you will find what you need.
TClientDataset example

Auto Populate TextBoxes of Entity Form In MS CRM 2011 on basis of lookup field using jscript

I want to auto populate the text boxes on basis of lookup field result in an entity form
There are two entities
Account Holder with fields (Name,Address,account number -primary key, etc etc)
Expense claim with fields (Name,Address,Account number - lookup, expenses etc etc)
Now I want that in selecting account number through a lookup the name, address these fields should get populated themselves.
Please help me by providing the exact jscript code to attain the desired.
In brief:
On Form load event, you can asynchronously retrieve parent's record by using OData endpoint and jQuery then parse the retrieved record and set your desired text fields.
Check this question, it will give you the right path
Dynamics CRM 2011 form jscript to retrieve lookup data

Resources