How to use different default parameter value for different report subscriptions
In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
Report name – Testsubscription.rdl
Subscription-1
Input parameter (default values):
start_date = first day of current Month
end_date = till date
Subscription-2
Input parameter (default values):
start_date = first day of current Quarter
end_date = till date
I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
Thanks!
spp
Hi sppdba,
As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
goal by using a single report definition file.
Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
1. In design surface, right click start_date and open Parameter Properties dialog box.
2. In General pane, type Name and Prompt, set Data Type to Date/Time.
3. Click Available Values in left pane, select Specify Values.
4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
=DateSerial(Year(Now()), Month(Now()), 1)
5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
=DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
6. Right click end_date and open Parameter Properties dialog box.
7. In Available Values pane, select Specify Values.
8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
1. Open Report Manager, and locate the report for which you want to create a new subscription.
2. Hover over the report, and click the drop-down arrow.
3. In the drop-down menu, click Manage. This opens the General properties page for the report.
4. Select the Subscriptions tab, and then click New Subscription.
5. Select the delivery extension and data source for the subscription.
6. Select a method of delivery, then choose report delivery options.
7. Specify conditions that cause the subscription to process and delivery to occur.
8. Set start_date to First day of Current Month, end_date to Today, then click OK.
9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
The following screenshots are for your reference:
For detail information about Creating Standard Subscriptions, please refer to the following document:
http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
If you have any feedback on our support, please click
here.
Similar Messages
-
How do i create 2 parameter pages for 1 report?
Hi,
I want to make a purchase order report. first: i need a parameter page to ask how many items that you want to order. second, once user enters a number(let's say 5), i want to have anoter parameter page show 5 empty fields that user can enter 5 items' barcode#, once they entered barcodes, the report will show these 5 items info.
my difficulty is how do i create 2 parameter page for 1 report?
thank youmy question
1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
2- how can create manual process to fetch row into specific items in page ( i tray these code
SELECT col1, col2, col3 ....
INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
FROM table
WHERE id = :P_id ) but no data retrieve .
I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
ORA-01403: no data found : Unable to fetch row multiple automated row fetch
On your second question, the manual process should work provided:
P_ID has a value when the process executes. You can do it this way:
i. Make this process as a on-load After/Before header process
ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes) -
How to use the same variable value for data entry and the planning sequence
Hi,
the scenario is the following:
Using the WAD template a user enters cost center plan data. The cost center is selected by the chosen value for the variable "V1".
Afterwards he shall push a button which starts a planning sequence (including saving the data and further functions). This planning sequence uses a filter that also contains the variable "V1".
What or where has it to be defined that the planning sequence uses automatically the same value for the variable "V1" as selected for the data entry?You have to define in the planning function. The planning sequence is only a sequence and it read the planning functions underneath it.
Ravi Thothadri -
How to include input user parameter values in XML report output?
How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
Rgds,
manishI think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter. -
Any way to find parameter value for a report?
CS2008 SP3 - version 12.3.0.601
Is there any way parameter value of a report can be found? The following code doesn't return parameter value but returns name.
Fields existingReportParameters = null;
IDataDefinition dataDefinition = reportDocument.getDataDefinition();
existingReportParameters = dataDefinition.getParameterFields();
if (existingReportParameters != null) {
for (int i = 0; i < existingReportParameters.size(); i++) {
IField field = existingReportParameters.getField(i);
if (field instanceof ParameterField) {
ParameterField pa = (ParameterField)field;
String paramName = pa.getName();
//Values values = pa.getValues();
//Object value = values.get(0);
//System.out.println("*** repName Parameter - " + paramName + ":" + values);
System.out.println("*** repName Parameter - " + paramName);
Need to find a solution soon. Thanks in advance.Hello,
Try searching, I have post code snippets on how to get values. I don't know for sure though if that code will work in CR 2008.
Don -
How to Change the default Search value for Field Role?
HI,
I went through numerous threads on how to default the search value , but does not help for my issue. Hence im posting this new thread. Please provide your suggestions on how to achieve this.
For the Ship-to party field (in item detail ) on webui when i do a F4 help i get the pop up with various search criteria and for the field Role the default value is "Ship-to party". which is visible. we need to change this default value to Prospect which is available in drop down.
The attribute is STRUCT.ROLE and view BP_HEAD_SEARCH/SearchHelp . The method GET_DQUERY_VALUEHELPS from the context node class is called to fill the value help for this attribute, but i dont understand how the ship-to party is filled as default. There is no code in this method to default the value.
The generic GET_V_S_STRUCT method also does not default the Ship-to party on this field.
I want to understand how this Ship-to party is filled by default and how can i change this to prospect..
Many Thanks,
ShaikWe had a same requirement of defaulting Sales org and division in search criteria for a specific value.
this can be doen by redefining "DO_PREPARE_OUTPUT" method in IMPL class for the respective view.
See the code:
METHOD do_prepare_output.
*CALL METHOD SUPER->DO_PREPARE_OUTPUT
** EXPORTING
** iv_first_time = ABAP_FALSE
DATA:
lr_qs TYPE REF TO cl_crm_bol_dquery_service.
* Get current query object
lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
IF iv_first_time = abap_true.
lr_qs->clear_selection_param_values( ).
lr_qs->delete_empty_selection_params( ).
* if l_sales_orgs is initial.
CALL METHOD lr_qs->insert_selection_param
EXPORTING
iv_index = '1'
iv_attr_name = 'SALES_ORG'
iv_sign = ' '
iv_option = 'EQ'
iv_low = 'O 50000514'.
* endif.
* if l_dist_chan is initial.
CALL METHOD lr_qs->insert_selection_param
EXPORTING
iv_index = '2'
iv_attr_name = 'DISTR_CHAN'
iv_sign = ' '
iv_option = 'EQ'
iv_low = '01'.
* endif.
Hope this will help..
THanks & Regards,
Amit -
How to set the default context value for flexfield in OAFramework pages
Hi,
I have a page which contains a contexxt value field i.e Flexfields
To select the context value we have to select the value from drop down
So Here we want to display the context value immediately when the page is called
How to set the default valu in this case
Regards,
KrishnaYou can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
Regards
Sumit -
How to check the default checked value for radio button on jsp for struts
Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
<html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
<html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
<html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
<html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
In the above case you can write the code as follows in the perticular form of this jsp.
public void reset(ActionMapping mapping, HttpServletRequest request) {
super.reset(mapping, request);
sale = "permanent";
This will show the first check box default selected when the first time the page is loaded. -
How to use non-default Alias Table in Analyzer report
Hi,I defined many alias tables in Essbase. I would like to use a different alias table other than the "default" in Analyzer 6.5 report. In the on-line help, it said I can modify in "database connection properties" when first defining a new report to use a specific alias table. It tells me to do the following: Click the "New" toolbar button. Select a Display Type or Layout, and click OK. Right-click a database connection name in the "Select Database Connections" dialog box, and select Modify from the right-click menu.So I did this, but as I did the last-right click, there is no "Modify" option available. Only has "Add New..", "Database Connection Properties.." However, if I defined a new personal database connection using the login user, I can select to use other alias table. But this will go to personal database connection properties.Is it possible to specifically tell Analyzer to use other alias the global level in database connection? What I use to do is to have certain reports to use the default alias, and another to use another alias table. These reports should be able to share across all users.Sam
In deed it is fix in the GA.Another way to set the alias table is to do it in the Admin client. If you add a connexion to a user there is a new 6.5 button "set alias" that allow you to set the default alias table for this specific user. But, it does not exit on a user group level.
-
How to use the caseccading parameter in my ssrs report? with some scenioro?
Hi i have a complex report for that i am using the 3/4 parameters name list.
parm1:ProductId
parme2:manafacturer
pram3:productname
so here i will use these 3 paramters in my ssrs report .
so here i will create a casecading parameters using the above 3 parameters.
But here my requirement is..
1)for my user selcction select the paramater1 as ProductId based on the productID parameter the 2 nd 3 paramters
i want to display automatically without user selection
2),Here every productid have a single productName and single manfacturer
and here i dnt need the drop down list of 2 nd 3rd parameter for user selection. i need only the text boxes
4)am alredy tried for this but i will able to see only one value in the user selection of param1.but it would not change for the second selection
5)can you give me some idea hw would i show u 2nd and 3rd parameteer based on 1st paramter value without drop down list for my user seletion of my first parametr1
I guess u understand my requirement.
can you suggest me any help .....for the above requirement.
ThanX!In your case you need to setup parameters like this
1. ProductId
Have a dataset which gives you list of productids. It should return atleast one field which would be the distinct productids from your table.
ie like
SELECT ProductID
FROM ProductTable
assuming ProductID is it Primary key
In report go to parameter properties for ProductId parameter
In Available Values tab choose the option Get values from query
Map the above dataset and choose value field name as ProductId and label also as the same
This will populate param 1 with values
2. Manufacturer
Have a dataset which gives you list of manufacturers. It should return atleast one field which would be the distinct manufacturer from your table.
ie like
SELECT Manufacturer
FROM ManufacturerTable m
WHERE EXISTS (SELECT 1
FROM ProductTable
WHERE ProductId = @ProductId
AND Manufacturer = m.Manufacturer
assuming Manufacturer field has unique values. map @ProductId query parameter to SSRS parameter ProductId you created above
In report go to parameter properties for Manufacturer parameter and map the parameter to dataset as per same sequence of steps before
3. Product
Have a dataset which gives you list of manufacturers. It should return atleast one field which would be the distinct manufacturer from your table.
ie like
SELECT ProductName
FROM ProductTable m
WHERE ProductId = @ProductId
assuming Manufacturer field has unique values. map @ProductId query parameter to SSRS parameter ProductId you created above
In report go to parameter properties for ProductName parameter and map the parameter to dataset as per same sequence of steps before
Now if you run the report the values for Manufacturer and ProductName keeps on changing based on value you chose for productid parameter
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to get Oracle Form Parameter Value into Oracle Report
Hi,
Please guide for the following:
On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
I want to get From_Date & To_Date in the report, as per below mentioned heading:
SALES REPORT
From: 01-JAN-2009 To: 31-DEC-2009
Regards,You can use ADD_PARAMETER builtin,
The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
<pre>
/** Declare a variable of type ParamList to store ** the parameter List ID */
DECLARE
PARAM_ID ParamList;
BEGIN
/* ** Create a parameter List named "input_params" */
PARAM_ID := Create_Parameter_List('input_params');
/* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
/* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
END;
</pre>
Edited by: Charan on Jul 13, 2011 9:08 AM -
How To use the page total value for conditional formatting
Hi
I am very new to xml publisher report.. I have calculated the report total like this--
<?add-page-total:pt;'ENT_AMT'?> now i display it in a table colomn by using the syntax
<?show-page-total:pt;'#,##0.00'?>
Now what i want to do is if the value of the page total is greater than 1000 the color of that coloumn in the table will change. But by any means i cannot access the value and do the condition checking..
Plz help..
Thanks and Regards
Joydeep MitraHi Mitra,
You can use this if you want to change the color of a cell:
<?if:total>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red
</xsl:attribute><?end if?>
Regards,
Marius -
How to use different report viewers (in code)
When I login to CMC, I can change my default view format to
1. Web
2. Web ActiveX
3. Web Java
Could I do the same in VS2005 code? If so I would like to see some sample codes.
Any help is greatly appreciated.In code all you have is the equivalent of the Web viewer (DHTML). To use any other viewer you would need to use Infoview, CMC, or URL reporting (opendocument.aspx).
-
How to set the default print format for the report
Hi,
In ALV report , i want to defalut specific print format and printer for background processing .
Any clues!!!!!!!!!
Regards
SwatantraHi
Please check below code:
DATA: PRIPAR TYPE PRI_PARAMS,
ARCPAR TYPE ARC_PARAMS,
LAY TYPE PRI_PARAMS-PAART,
LINES TYPE PRI_PARAMS-LINCT,
ROWS TYPE PRI_PARAMS-LINSZ.
DATA: val(1).
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL' " <--- Printer Name
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*** Specifying the page formats
pripar-linct = 65.
pripar-linsz = 190.
pripar-paart = 'X_65_132'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
* list_name = 'Testing Purpose Only' "l_list
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
write:/ 'Unable to create spool'.
ENDIF.
So now a spool is created with the required print parameters...
The list that is created from here will be in the spool.
Once the list is completed, close it with NEW-PAGE PRINT OFF.
Hope this helps.
Regards
Eswar -
How to do Default context value For DFF in OAF
Dear all,
I want to do Default context value For DFF in OAF for seeded page, pls let me know how to do.
Regards,
HanimiHi Hanimi,
In controller use code
*dffBean.setFlexContext(pageContext,"+YOUR-LIST-VALUE+");*
*dffBean.setAttributeValue(OAWebBeanConstants.READ_ONLY_ATTR, new Boolean(false));*
Thanks
Jegan
Maybe you are looking for
-
Safari browser is not loading images in web pages..
It happens so often nowadays.. When I login to my Facebook, it wouldn't load any images, where it will all be blank..Also, few web pages are not loading in Safari, whereas it loads well in other browsers.. I am using Macbook Pro.. Mac OS X Lion 10.7.
-
Hi there, i apologize in advance for maybe reopening an issue maybe - hopefully - already solved, but once being in this forum, it's not possible to search _inside_ a specific (in this case: Adobe Reader) forum but only in the complete Adobe forums..
-
Hi, I face a mapping problem in the BpmPatternCollectPayload. I edited above IP and applied to my scenario.My scenario is: 1.Recieve 2 files of same structure. 2.When counter = 2 , loop stops and combines 2 files and outputs a single file with 2 reco
-
How to secure the webservice on apache tomcat
We are having a wsdl url (http://123.111.22.11:8080/axis/generateevent.jws?wsdl i want to make this secure by having https:......... Any inputs to my problem are welcome
-
Hello, I just want to report a Bug that can result in the lose of your clips After having acquire a Clip with format enlarged-DV (16/9), if I try to reject some part and then transfer the reject part to the trash, I optain 2 clips (that is normal) bu