Default search value for Query By Example Report
Is there any way I can add the wildcard % as a default search value for text fields in the customization screen for a QBE report? The aim is to relieve the user from knowing that you have to input the wildcard % in the search field.
Also, Is there a way to change the label of the standard 'Close' button, which is a bit misleading as it actually takes you back to the report customisation window?
Cheers,
Arnt
Hi,
You can give default values for bind variables in sql report and not for QBE reports. Also it is not possible to remove the close button.
Thanks,
Sharmila
Similar Messages
-
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 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!
sppHi 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. -
Setting up default value for POV in Financial Reporting Studio
hello
We need to Set up default value for POV in Financial Reporting Studio. For example, we need period to pick up Sep as default value when we run the report.
Is there any way we could do this???
Regards
NehaHi Neha,
Yes, there is a way to setup of your grid POV. Take a look at this: http://download.oracle.com/docs/cd/E12825_01/epm.111/fr_user/127.html
Cheers,
Mehmet
p.s. Please mark the answers helpful or correct, if they've helped you or answered your question. Thanks! -
What is the default timeout value for the SPQuery object?
What is the default timeout value for the SharePoint SPQuery object? I've tried searching online but can't find anything with the actual timeout value.
Someone suggested it might use the timeout property in the database? Anyone know if that's how it works?Hi,
Do you want to avoid timeout when you query list items?
If so, we can use the following C# code to set timeout.
HttpContext.Current.Server.ScriptTimeout = 600; // 10 minutes
More information is here:
http://200oksolutions.blogspot.com/2013/03/sharepoint-2010-set-timeout-only-to.html
The SPQuery object doesn’t provide any property to set timeout. We can also set timeout in web.config, or SQL Connections or IIS.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
I've run into a strange problem with the table control. Basically, even though I set default cell values for a particular column as numeric, when I try to add items to the list it tries to add them as strings, and returns an error message that it is expecting *char instead of int. Furthermore, when I open the uir file that contains the table in question in 2010, it appears as if the default cell values for that column are still set as strings, even though in 2009 when I open the uir file it shows as numbers. I tried converting the uir to C code, and sure enough the C code indicated that the column still is a string type.
I've gone ahead and made a small project to show the issue. If you open this project in labwindows 2009 and click on the table in the table_bug.uir, and edit default cell values for column 1, you will see that the cell settings have type as numeric and data type as int. When you run the project, however, it will fail with an error message saying that it is looking for a *char. When this same project is loaded into labwindows 2010, clicking on the table in table_bug.uir and edit default cell values (column 1) shows the type as string. When I change this to numeric (and change numeric attribute to int), this runs fine in 2010. I tried simply changing the uir in 2010, and then using it in 2009, but 2009 complains that the uir is from a newer version (understandable). If there is any workaround that would let me continue to use 2009 for the time that would be great.
Any help would be greatly appreciated.
thanks,
Alex Corwin
Solved!
Go to Solution.
Attachments:
table_bug.zip 324 KBI opened the UIR in 2009 (but I have 2009 SP1) and it still showed that the default value for the first column was a string. I didn't have any problems changing it to a numeric int, and then building and running the project without error.
Here are a few things you can try:
1) Change the default value to a string. OK out of the dialog, re-enter the dialog, and change it back to Numeric int. Resave and see if the problem has gone away.
2) You said you get a ".UIR is from a newer version" error when opening the 2010 UIR in 2009. Does the UIR still open if you click okay? Often times this will work just fine. Assuming you don't have any problems with this, make a minor change to the UIR in 2009, such as moving the table to the left, and then back to the right and then re-save. See if your program works now.
Kevin B.
National Instruments -
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 -
How to set the default value for page item in report
Hi Gurus
I currently i have company name as page item in one of my report screen ,but it is displaying the value for company name in its drop down column ,but i want to make it "*ALL* as default after the query result ",this is user requirement ,please share ,how can i make it ,is it possible ??,thanx in advance
thanx
PratapHi,
I don't think this is possible. You can of course use a parameter to select the page item and default the parameter but then the user will have to rerun the report to see other pages items.
Rod West -
How to show multiple values for Unique records in Report
Here's my question/problem:
I've joined two tables, one table (TBL1) contains an object id (OBJ_ID) that repeats and the other table (TBL2) contains a date (DT), object type id (OBJ_TYP_ID), and object type description (OBJ_TYP_DES). The tables are joined by an inventory id (INV_ID).
The OBJ_ID repeats and has a Date value for each record. I want to report an unique OBJ_ID and show each Date for a particular OBJ_ID in multiple Columns.
An example of the current resultset looks like this:
OBJ_ID OBJ_TYP_ID OBJ_TYP_DES DATE
1 1 TYPE1 4/1/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009
1 2 TYPE2 5/3/2009
3 1 TYPE1 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
1 1 TYPE1 4/3/2007
1 1 TYPE1 3/30/2005
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Hi,
cclemmons wrote:
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Absolutely! You seem to have an instictive feeling that creating a separate table just for a query is inefficient. You instinct is 100% correct. Maybe in Oracle 7 there was a reason to do that, but today you can query results of other queries as if they were tables, so temporary tables like you describe are very rarely necessary, let alone convenient.
What you want to do is pivot the date columns. Here's one way
WITH original_query AS
SELECT obj_id
, obj_typ_id
, obj_typ_des
, dt -- date is not a good column name
FROM ... -- the rest of your original query goes here
, got_rnum AS
SELECT oq.*
, ROW_NUMBER () OVER ( PARTITION BY obj_id
, obj_typ_id
, obj_typ_des
ORDER BY dt DESC
) AS rnum
FROM original_query oq
SELECT obj_id
, obj_typ_id
, obj_typ_des
, MAX (CASE WHEN rnum = 1 THEN dt END) AS dt1
, MAX (CASE WHEN rnum = 2 THEN dt END) AS dt2
, MAX (CASE WHEN rnum = 3 THEN dt END) AS dt3
, MAX (CASE WHEN rnum = 4 THEN dt END) AS dt4
, MAX (CASE WHEN rnum = 5 THEN dt END) AS dt5
FROM got_rnum
GROUP BY obj_id
, obj_typ_id
, obj_typ_des
;As you can see, this adds two layers of queries on top of your original query. One of those layers is probably not needed; depending on what you're doing in your original main query, you can probably compute rnum there, and omit the got_rnum sub-query.
Also, depending on the relationship of obj_id, obj_typ_id and obj_typ_des, some of what I posted above may not be needed but including it won't really hurt.
If you want to know more about this technique, search for "pivot" or "rows to columns". A <tt>SELECT ... PIVOT ...</tt> keyword was introduced in Oracle 11, but most of what you'll find when you search for "pivot" doesn't assume you have Oracle 11 (nor does the query above require Oracle 11).
This assumes you know an upper limit (5 in the example above) of dts that can appear in any line of output.
See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3527823�] for a discussion of some alternatives. -
# values for navigational attributes in report . (Urgent)
Hi Gurus,
I have a navigational attributes for time dependent master data. In the report I am not able to see values for that navigational attribute. I see # values for the navigational attributes. I checked the master data of main info-object. every thing looks fine.
please help me in regarding this.
thanks,
Regards,
AarthiCheck the following two things again just to make sure you are doing everything right. These are already mentioned by Bhanu...
1) Go to the master data table (Q table or the M table) and check to see if there are M version records (OBJVERS = M). If yes, you need to activate the master data using the program RSDDS_AGGREGATES_MAINTAIN (Change Run). If there are no M version records then check the second step
2) If you do not enter any key date in the query, it takes the system date as the default key date. So check and see if any master data exists for today's date ?
Also just curious, which version and support pack level are you on ? -
Default multiple values for formula variable on variable selection screen
Hi All,
Suppose 'A' is formula variable with customer exit as processing type then i want four default values for this variable eg: 3, 6,9, and 12 as selection options, when we will execute query user can able to pick any one of the default value.
is it possible in BEx for formula variables?
I also tried with ABAP code in 'cmod' t-code, but it is not working properly for 4 default values....but for single default value, code is working fine.
I am using following code ::
When 'ZCSIMCTB'. // variable name
IF i_step = '1'.
CLEAR : l_s_range.
l_s_range-low = 3.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 6.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 9.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
CLEAR : l_s_range.
l_s_range-low = 12.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Thanks in advanceHi Sankar,
Thanks for reply...
With single quotes also its not working.......
Also as I am using Formula Variable so by default "Single Value" is coming on Variable Details....
Regards,
NIlesh -
Duck Duck go won't even let me access About:config. It's like I am locked into Duck Duck go. I checked my add on manager and found nothing about Duck Duck Go there. I ran a scan on Malwarebytes Pro for any kind of virus and found nothing. I really want google as my default search engine. So far I managed to get Firefox as my main search engine. Any help would be appreciated.
What do you mean that it won't let you access the <b>about:config</b> page?
Can't you open the about:config page via the location bar or can't you modify prefs?
You can use the SearchReset extension to reset some preferences to the default values.
*https://addons.mozilla.org/firefox/addon/searchreset/
Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
If you do not keep changes after a restart or otherwise have problems with preferences, see:
*http://kb.mozillazine.org/Preferences_not_saved -
Hi,
I'm facing an issue related to the variable search help.
I have a query which has been recently migrated to 7.0. When I open the query on Analyzer and look for values in a variable it is throwing me the relevent values for that particular variable itself, which is perfect.
When I run the same query on portal, and look for variable input values, I'm getting all the master data entries along with the variable value. I do not want all these other master data entries.
Please help.Hi,
There are two possible read modes for the value help of variables:
- Read mode "M" means "Values in master data table".
- Read mode "D" means "Only values in InfoProvider".
Please set related setting in infoobject level it should resolved your issue.
Regards,
Venkat -
SEARCH HELP FOR SELECT PTIONS IN REPORTS
hI,
I HAVE ONE SELECT-OPTION FOR ZTSH-TSMONTH. HOW CAN I SET SEARCH HELP FOR THAT
SHYJAHi Sihya,
You can create search help in 2 ways:::
1) Goto SE11 and create search help with any name ZSRCHELP.
For reference u can see some standard search help like H_T530E for field PREAS in table PA0002.
Now go to SE11 in table ZTSH, u can find the tab for search help, select your field TSMONTH, and click on search help tab and give the name of search help u created.
Now activate it.
Now u goto ur report u will find search help will be shown for that parameter.
2)See the report below
TABLES: mara, makt.
DATA mat LIKE mara-matnr.
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
DATA : BEGIN OF btab OCCURS 0,
maktx LIKE makt-maktx,
END OF btab.
DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
SELECT-OPTIONS: so_matnr FOR mara-matnr,
so_maktx FOR makt-maktx.
INITIALIZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-low.
PERFORM matnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-high.
PERFORM matnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-low.
PERFORM maktx.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-high.
PERFORM maktx.
*& Form matnr
text
FORM matnr.
REFRESH itab.
SELECT matnr FROM mara INTO TABLE itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = itab
return_tab = return.
mat = return-fieldval.
UNPACK mat TO mat.
so_matnr = return-fieldval.
REFRESH return.
CLEAR return.
ENDFORM. "matnr
*& Form maktx
text
FORM maktx.
REFRESH btab.
SELECT maktx FROM makt INTO TABLE btab WHERE matnr = mat AND spras =
sy-langu.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MAKTX'
dynprofield = 'SO_MAKTX '
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = btab
return_tab = return.
so_maktx = return-fieldval.
REFRESH return.
CLEAR return.
ENDFORM. "maktx
<b>KINDLY REWARD IF USEFUL
ROHIT G</b> -
How can I see planned values for services in PS reports?
Hi experts.
We are implementing PS for a mining company; in our process, project designers plan materials and services in networks and then get planned values for budget requests.
The problem I am facing is that I cannot see the planned values from services in the plan values reports. No value is exhibited for version 0 if I plan only services in a network. For materials planning I can visualize planned values normally. The network is not released. On example of planning values report that I am using is s_alr_87013533.
Does anyone know how to correct this problem with PS configuration?
Any help is welcome. Thanks!
Rafaelfor planning services I am assuming that you are using service activity
check if determine plan cost is set up in the network header
secondly make sure that the plan costing variant is set up with the valuation variant to define where to get the plan values from
Maybe you are looking for
-
Master Collection CS6, Acrobat Pro X Ghost Install... (Mac)
So you know when you do a ghost poo, as in you do a poo and when you check the toilet and it's not there, well that's what the CS6 Master Collection Installer is doing with Acrobat Pro on my Mac (OSX Mountain Lion). I run the installer and it says it
-
EXIT_SAPLMR1M_004
Hi Experts, This user exit 'EXIT_SAPLMR1M_004' is available in 4.6c. In ecc6.0 it is replaced by badi. Can i know the exact badi name. Regards, Swetha.
-
Hello. I just received my MacBook 3 days ago. I oredered it with a Protection Plan but i haven't received that yet. I'm concerned about this becuase on the order status it says that the ProtectionPlan shipment was comlete. I was wondering if they act
-
If you have movies in iPhoto, should you move them to iMovie?
I'm new to Mac so still trying to figure out how things work. The movies I had on my PC got imported into iphoto..They also seem to appear in IMovie. Can I delete them from iphoto? or will that affect imovie? I dont really want dupes. Also today I
-
iSync does not list the samsung chat 322 dual sim phone in its list of compatible devices. How can I sync contacts and messages between this phone and my Snow Leopard?