How do I default a multi-select to have all values selected
Hi all,
I have a report (standard, not interactive - for various reasons) and I have a number of 'search' fields that the use can use to fulter the results shown. One of these fields is a multi-select list which allows the users to select multiple values at the same time. This is working fine.
My problem is in setting the default for the multi-select list to have all values selected (either when the page is first opened or when the user clicks a 'reset' button).
The multi-select query is:
select
lv1.description d, lv1.lookup_code r
from
tpa_adm_lookup_types lt1,
tpa_adm_lookup_values lv1
where
lv1.lookup_type_id = lt1.lookup_type_id
and lt1.lookup_type = 'RELEASE_PHASES'
and lv1.delete_flag = 'N'
order by 1
how do I get it to default to everything selected?
Many thanks,
Martin
Hi Andy,
Yes it is a dynamic list so a fixed default is no good.
I have built the field with a source (when session state is null) of:
with data as (
select lookup_code, row_number() over(order by lv1.description) rn,count(*) over () cnt
from tpa_adm_lookup_values lv1,
tpa_adm_lookup_types lt1
where lv1.lookup_type_id = lt1.lookup_type_id
and lt1.lookup_type = 'RELEASE_PHASES'
and lv1.delete_flag = 'N' )
select ltrim(sys_connect_by_path(lookup_code,':'),':') catvalues
from data
where rn = cnt
start with rn = 1
connect by prior rn = rn-1;which works but I was hoping ApEx had a cleaner solution.
Regards,
Martin
Similar Messages
-
I have 10 aliases on my Mail pulldown menu and only want 1 ready to go by default so I don't have to manually select it everytime I email. How please ?
Mail/Preferences/General - set default e-mail reader.
-
How to set default User preferences in Analyzer for all users
How to set default User preferences in Analyzer for all users<BR><BR>Hi,<BR><BR>I would like to set some settings in Analyzer as default for all users. For example:<BR>1. Display | Char<BR>2. right mouse click on char | Chart Properties<BR>3. Axes tab<BR>4. "Format: Currency" i would like to change to "Format: Number".<BR><BR>How to set default values to all users? Is this possible?<BR><BR>Thanks,<BR>Grofaty
I'm pretty sure higher access superceedes, so you could set up a group with no actual access, just to get the preferences working, then their individual security will dictate what they can do. I haven't tested this fully, but I beleive this is how it will work.<BR>As far as setting the preferences, go into the admin console and right click on the group, then select Preferences. To apply the group preferences to a user, add the user to the group, then right click on the user, select preferences and from the upper left corner, use the drop down to select the active preference, in this case, it will be the group you created and added them to.<BR><BR>HTH
-
I am trying to sync music from my iTunes library on my iMac to my iPhone. I only want selected music but I'm getting unwanted songs. How can I delete those songs on my iPhone or how can I prevent these unwanted songs that have not been selected from appearing on my iPhone? Help!
http://support.apple.com/kb/HT1296
-
How can I repair my IPod n still have all my information in it or can i get a new one but still with all my information for how much
- Apple will exchange your iPod for a refurbished one for this price. They do not fix yours. Apple does not transfer any data.
Apple - iPod Repair price
- To backup all your data to computer follow the instructions here. However, do not restore from backup until you have the replacement/repaired iPod. -
I have 'all events' selected for syncing my iPad Air. I see all events in icloud but they are not syncing to my ipad.
Hello savtaneg
Start with the article below to sync your calendars with your iPhone. Try turning off iCloud calendars and then turning them back on.
iCloud: Troubleshooting iCloud Calendar
http://support.apple.com/kb/ts3999
iCloud: Change iCloud feature settings
http://support.apple.com/kb/PH2613
Regards,
-Norm G. -
How to default a multi-select parameter to ALL values?
I have a parameter that allows the user to select multiple values. I want it to default to use ALL values (meaning basically just ignore this parameter in the SQL generated). However, I cannot create a calculation on this since it accepts multiple values, and the calculation only supports the first value. Is there a way to do what I need, without selecting all the values in the list (the LOV contains hundreds and hundreds of values so this is not a viable option). I am not very experienced with Discoverer and don't know all the tricks/workarounds, so looking for expert advice.
ThanksHello
You would have to code the parameter and condition so that it accepts the word ALL.
For example, let's say you are working with ITEM_NUMBER and you have thousands of items. You want the user to either be able to key one or more items or access ALL items.
You need to create a Boolean condition like this:
ITEM_NUMBER IN :ITEM_PARAMETER
OR
UPPER(:ITEM_PARAMETER) = 'ALL'
So if the user keys the word ALL or all or All or any variant of the word that will be determined as true by the condition and all items will be selected. If the user does not key ALL then the other half of the condition will be applied and the Item must be a valid item as contained in the list of all items. You can even create your parameter with a default of ALL
Best wishes
Michael -
How to disable a field on the basis radio button value selected.
hello to all,
i am facing one problem.I have declared two selection screen blocks.
In one i hvae declared two radio button r1 -Fiscal year and r2--Datewise.
And in another selection screen block all i/p fields. like plant. date.year etc.
Now if user select r1-Fiscal year then i/p field - date of second block should be disable.
And if user select r2-Datewise then i/p field - year of second block should be disable.
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME
TITLE TEXT-002.
PARAMETERS: R1 RADIOBUTTON GROUP RA1 user-command ucomm,
R2 RADIOBUTTON GROUP RA1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK BLK.
selection-screen begin of block b1 with
frame title text-001.
parameters : gjahr like ZSA_DETAIL-gjahr MODIF ID YAR,
aedat like ZSA_DETAIL-aedat MODIF ID DAT,
werks like ZSA_DETAIL-werks .
selection-screen end of block b1.
AT SELECTION-SCREEN on RADIOBUTTON GROUP RA1.
BREAK-POINT.
IF R1 = 'X'. "fiscal
LOOP AT SCREEN.
IF screen-group1 = 'DAT'.
screen-active = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
endloop.
ELSEIF R2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'YAR'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.Hi Shikha,
Regarding your query, when you select a particular radio-button then the fields pertaining to that radio-button should get activated or get displayed, otherwise it should be hidden.
This can be done adding the addition to the Radiobutton 'USER-COMMAND' this will automatically enable-up
the functionality of the fields related to that radiobutton, while disabling the others.
If USER-COMMAND isn't given, then ENTER key serves the purpose.
DATA:
w_carrid LIKE sflight-carrid,
w_connid LIKE sflight-connid.
PARAMETERS:
p_carrid RADIOBUTTON GROUP airl USER-COMMAND airline,
p_connid RADIOBUTTON GROUP airl.
SELECT-OPTIONS:
s_carrid FOR w_carrid,
s_connid FOR w_connid.
INITIALIZATION.
p_carrid = 'X'.
Now enabling desired fields and disabling the others, can be done by the following snippet.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_carrid EQ 'X'.
IF screen-name CS 'S_CONNID'.
screen-active = 0. " Disable the field S_CONNID
MODIFY SCREEN.
ELSEIF screen-name CS 'S_CARRID'.
screen-active = 1. " Enable the field S_CARRID
MODIFY SCREEN.
ENDIF.
ELSEIF p_connid EQ 'X'.
IF screen-name CS 'S_CARRID'.
screen-active = 0.
MODIFY SCREEN.
ELSEIF screen-name CS 'S_CONNID'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Hope, this would help you solve your problem.
Thankyou,
Zahack. -
I have a iphone 5. How do I search for a event from 2013 under search? I do have "all events" selected
I would check, but I believe I have read that the calendar only lets you search back in the current year. You might find additional information about that in the User Guide. http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
What happens if you go back to a month in 2013, do you see a date with any events in it? I'm not saying the calendar is deleting data, just that you cannot search earlier than the current year. -
Report -- filter with selection list -- show all values after select page
Hello!
I have the following problem:
- I have a report
- this report can be filtered with a selection-list
- the selection list is based on dynamic LOV and has a null-value
- I added the code of the report the following, to filter the report after choosing a value of the selection list:
... and (instr(type, decode(:P8_FILTER_type, '%null%',type,:P8_FILTER_type)) > 0)
This works very well.
But my problem is: When the user logs out and the next time, he logs in, the selection list shows " --- show all values --- " (my null-display-value) and the report is empty "no values found".
---> I want to show the first time, the page is selected ALL the values of the report. (this is now only possile if I press the button which belongs to the selection list)
I hope, somebody understands my problem.
Thank you so much,
LISAHello Lisa,
The first time it's probably NULL.
So what you can do in your where: (instr(type, decode(NVL(:P8_FILTER_type,'%null%'), '%null%',type,:P8_FILTER_type)) > 0)
Off topic: I also wonder if that where clause can't be simpler? Do you rely need the instr?
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
Sub Query selection based on parameter value selected
I have a parameter, and based on the value selected, I want to run one of two queries. I thought I could do either an IF THEN ELSE, or a CASE, but neither seem to be working.
What I'm trying to do is this:
IF parameter_value = 338 THEN
(RUN THIS SELECT QUERY)
ELSE
(RUN THIS SELECT QUERY)
END IF
or
SELECT CASE WHEN parameter_value = 338 THEN (RUN THIS SELECT QUERY)
ELSE (RUN THIS SELECT QUERY)
END X
I'm getting errors with both. For the CASE statement, it says "too many values". For the IF statement, it just says "invalid SQL statement".
Any suggestions would be appreciated.
Thanks.Looks like this is what you want
SQL> WITH T
2 AS (SELECT LEVEL col
3 FROM DUAL
4 CONNECT BY LEVEL <= 5)
5 SELECT *
6 FROM T;
COL
1
2
3
4
5
SQL>
SQL> VARIABLE parameter_value NUMBER
SQL> EXEC :parameter_value := 338;
PL/SQL procedure successfully completed.
SQL>
SQL> WITH T
2 AS (SELECT LEVEL col
3 FROM DUAL
4 CONNECT BY LEVEL <= 5)
5 SELECT col
6 FROM T
7 WHERE col = DECODE (:parameter_value, 338, col, :parameter_value); --- If 338 then select all if not 338 select only the one with parameter_value.
COL
1
2
3
4
5
SQL>
SQL> EXEC :parameter_value := 2;
PL/SQL procedure successfully completed.
SQL>
SQL> WITH T
2 AS (SELECT LEVEL col
3 FROM DUAL
4 CONNECT BY LEVEL <= 5)
5 SELECT col
6 FROM T
7 WHERE col = DECODE (:parameter_value, 338, col, :parameter_value);
COL
2
SQL>
SQL> EXEC :parameter_value := 3;
PL/SQL procedure successfully completed.
SQL>
SQL> WITH T
2 AS (SELECT LEVEL col
3 FROM DUAL
4 CONNECT BY LEVEL <= 5)
5 SELECT col
6 FROM T
7 WHERE col = DECODE (:parameter_value, 338, col, :parameter_value);
COL
3
SQL> You need to use following where clause in your query
WHERE column_name = DECODE (parameter_value, 338, col, parameter_value); -- replace the column_name with name of the column you are comparing against.G.
Edited by: G. on Mar 8, 2011 3:36 PM
formatted and added comments -
How to change default thresholds for some metrics of all targets.
Hi!
We have a lot of servers which have to work hard.
So, our OEM very often generates messages like these:
"EM Alert: Critical:dbsora90.tsb.kz - CPU Utilization is 99.95%, crossed warning (80) or critical (95) threshold."
"EM Alert: Critical:dbsora94.tsb.kz - Disk Device c8t60A9800043346C384C344A4A63516D6Ad0(ssd4) is 99.7% busy."
"EM Alert: Critical:dbsora94.tsb.kz - CPU Load (Run Queue Length averaged over 5 minutes) is 20.78, crossed warning (10) or critical (20) threshold."
I need to change default tresholds for mentioned metrics but I can't their defenition in SYSMAN.MGMT_*-tables or suitable settings in OEM GUI.
And I have no time to edit treshholds manually for each target. )Modification of Metric Thresholds (as this is what you are referring to), should be done using the Metrics and Policy Settings link (to be found in the Target Home page).
Don't mess around with the SYSMAN tables!
Best thing to do here is to start using Monitoring Templates for this.
Check:
Oracle® Enterprise Manager Concepts
11g Release 11.1.0.1
http://download.oracle.com/docs/cd/E11857_01/em.111/e11982/toc.htm
Regards
Rob
http://oemgc.wordpress.com -
I have a new desktop HP PC running windows 7. I have downloaded the OpenOffice suite having used it already for several months on my old PC. I didn't have this problem on my old PC (DELL D400 Windows XP) on which I previously used IE8.
Cor-el's suggestion resolved my problem. Apparently the MOZ_NO_REMOTE variable was set to 1 on my system variables. I never made it, and really have no idea how it got there, but deleting this variable and restarting firefox has resolved the issue. Thanks Cor-el!
Marking case: Solved
Solution: Verify the MOZ_NO_REMOTE variable is NOT set to 1. This can be achieved by simply deleting this variable. -
How to use QAAWS with a prompt to show ALL values
I have to build a dashboard which has two prompts in it
One for Customer and the other one is Project
Customer prompt should let user to select a customer from the list to display dashboard with the selected customer.Also it should allow user to select ALL from the prompt values to display all customers
There is a object defined in the universe for 'ALL' to use in Web Intelligence report. But for dashboard I don't want to use LiveOffice as it is having many issues when refreshing
I am thinking to use QAAWS as my dashboard is not that complex. It shows all details in spread sheets
How to work in this situation with QAAWS..does not it need to create new objects in the universe or modify exisiting 'ALL' object lovs
Please let me know the easiest way to achieve thisHi,
I think you can achieve in two ways ...
1. In the QaWS, you've Prompt Parameters next to the prompt, choose "Optional Prompt"; When user runs the report if they kept the selection blank, report runs for ALL
2. In the QaWS, in the Prompt choos "Matches Pattern", and in the Xcelsius dashboard pass "%%" to the selection, and in the selection list for the customer dropdown include one additional cell containing ALL text;
Hope it helps,
Saradhi -
Sap m select not showing all values from gateway
Hello Experts,
This is the code for my select:
var SelectCondType = new sap.m.Select("SelectCondType", {
width : "200px"
var oItemSelectTemplate1 = new sap.ui.core.Item({
key : "{ID}",
text : "{Name}"
var sServiceUrl = "blablabla.com:8000/sap/opu/odata/sap/YXM_GWS_BART_SRV";
var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, false,
"user", "pass");
SelectCondType.setModel(oModel);
SelectCondType.bindAggregation("items","/cond_type",oItemSelectTemplate1);
The select is showing around 50 (didn't really count em) items while there are like 500 in the gateway...
Any Ideas ?
Kind Regards,
BartNevermind,
awiedemann.com &bull; SAPUI5 / oData / JSON model - set size limit
Kind Regards,
Bart
Maybe you are looking for
-
Whenever I try to open an app my ipad restarts itself, how can I fix it?
I turned by ipad off then back on and after that, whenever I would try and open an app, my ipad would just restart itself. I've reset the system but it still won't work, what should I do?
-
After I upgraded to iOS 5 my pc and laptops (including the apple one) do not recognize the laptop when I connect to the USB. The wireless function does not function either. I cannot sync the iPad 2 anymore because of this. Also, the only way it ch
-
Compilation failed due to a Xilinx error
I'm getting a "Compilation failed due to Xilinx error" trying to compile code in LabVIEW 2011. This code runs on a FlexRIO (PXIe-7962R) with an adapter module (NI 5751). The issue comes when using the IDELAY clip node to synchronize the start of co
-
Performance tuning 1Z0-054 Study material
I was trying to find LEGITIMATE study material out there for the perf tuning certification but all I can see is that all too familiar sea of braindump copycat sites. I want a legitimate source like Transcenders but unfortunately they don't have 1Z0-0
-
Authentication Issue with BPM work space
Hi I have created a sample BPM process using JDeveloper and deployed as well but when i tried to login to verify created process in workspace it shows the "Invalid ID or password. Please try again" , i tried using weblogic user id and password