Use of dsp:select with some map or list???
Dear Friends,
I want to use dsp:select by using map or list as the option of the given combobox using repository. Can anybody help me out to resolve my problem. Thanks to in advance.
Regards,
Girish Mishra
Hi,
You can use the below snippet.
<dsp:select bean="YourBean.value">
<dsp:droplet name="ForEach">
<dsp:param name="array" param="YourList"/>
<dsp:oparam name="output">
<dsp:option><dsp:valueof param="element"/></dsp:option>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
You have to set the list from the repository before you render this page.
Hope this helps.
Keep posting the updates / questions.
Thanks,
Gopinath Ramasamy
Similar Messages
-
Delete statement that uses a sub-select with the statement in the cursor
Hi all,
How to write write a delete statement that uses a sub-select with the statement in the cursor?
CURSOR excluded_dates IS
SELECT TO_TIMESTAMP(report_parameter_value, in_date_format_mask)
INTO my_current_date_time
FROM report_parameters
WHERE report_parameters.report_parameter_id = in_report_parameter_id
AND report_parameters.report_parameter_group = 'DATE_TIME'
AND report_parameters.report_parameter_name = 'EXCLUDED_DATE';
OPEN excluded_dates;
LOOP
FETCH excluded_dates INTO my_excluded_date;
EXIT WHEN excluded_dates%NOTFOUND;
DELETE FROM edr_rpt_tmp_inclusion_table
WHERE TO_CHAR(date_time, 'mm/dd/yyyy') = TO_CHAR(my_excluded_date, 'mm/dd/yyyy');
END LOOP;
CLOSE excluded_dates;ThanksHi,
In such case I think is better to create a view an perform the delete using it. Example (using HR schema):
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL> create or replace view v_employees as select * from employees where first_name like 'J%';
View created
SQL> select * from v_employees;
EMPLOYEE_ID FIRST_NAME LAST_NAME EMAIL PHONE_NUMBER HIRE_DATE JOB_ID SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
110 John Chen JCHEN 515.124.4269 28/09/1997 FI_ACCOUNT 8200,00 108 100
112 Jose Manuel Urman JMURMAN 515.124.4469 07/03/1998 FI_ACCOUNT 7800,00 108 100
125 Julia Nayer JNAYER 650.124.1214 16/07/1997 ST_CLERK 3200,00 120 50
127 James Landry JLANDRY 650.124.1334 14/01/1999 ST_CLERK 2400,00 120 50
131 James Marlow JAMRLOW 650.124.7234 16/02/1997 ST_CLERK 2500,00 121 50
133 Jason Mallin JMALLIN 650.127.1934 14/06/1996 ST_CLERK 3300,00 122 50
139 John Seo JSEO 650.121.2019 12/02/1998 ST_CLERK 2700,00 123 50
140 Joshua Patel JPATEL 650.121.1834 06/04/1998 ST_CLERK 2500,00 123 50
145 John Russell JRUSSEL 011.44.1344.429268 01/10/1996 SA_MAN 14000,00 0,40 100 80
156 Janette King JKING 011.44.1345.429268 30/01/1996 SA_REP 10000,00 0,35 146 80
176 Jonathon Taylor JTAYLOR 011.44.1644.429265 24/03/1998 SA_REP 8600,00 0,20 149 80
177 Jack Livingston JLIVINGS 011.44.1644.429264 23/04/1998 SA_REP 8400,00 0,20 149 80
181 Jean Fleaur JFLEAUR 650.507.9877 23/02/1998 SH_CLERK 3100,00 120 50
186 Julia Dellinger JDELLING 650.509.3876 24/06/1998 SH_CLERK 3400,00 121 50
189 Jennifer Dilly JDILLY 650.505.2876 13/08/1997 SH_CLERK 3600,00 122 50
200 Jennifer Whalen JWHALEN 515.123.4444 17/09/1987 AD_ASST 4400,00 101 10
16 rows selected
SQL> delete from v_employees where hire_date >= to_date('01/06/1998', 'dd/mm/yyyy');
2 rows deleted
SQL> regards, -
In interactive how to use AT LINE-SELECTION WITH SET PF-STATUS
Hi all,
I am developing an interactive report in which i am using gui status (pf-status ) for AT USER-COMMAND and AT LINE-SELECTION event .But when i used at line-selection event is not working with pf-status even though i use PICK function code .
plz help me to work with both the event i.e.
AT USER-COMMAND.
AT LINE-SELECTION.
Thanks a lot in Advance .
Regards,
Tarakhi,
In PBO of Module Pool, Please Write in this way
MODULE status_9001 OUTPUT.
Set the PF-STATUS
SET PF-STATUS '9001'.
To Set the Title of Screen
SET TITLEBAR 'TITLE'.
ENDMODULE
Setting PF status to the (SAP) system default
set pf-status 'BASIC'.
How to check for pf-status
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'ART'.
PERFORM STYR_ARTSKONTI.
WHEN 'PST'.
PERFORM STYR_POSTER.
WHEN 'BIL'.
PERFORM VIS_BILAG.
ENDCASE.. -
Can not use 'AT LINE-SELECTION' with SET PF-STATUS
Hi experts,
my code is like below:
PARAMATERS: .....
SET PF-STATUS 'st_nam'.
Perform Load_data . ' For list display
START-OF-SELECTION.
AT LINE-SELECTION.
Perform list_detail.
AT USER-COMMAND.
CALL SCREEN '1001'.
END-OF-SELECTION.
When I execute the report , the basic was displayed , but when then i double click on the list to call the next screen '1001'. It did not work , but if i omit the SET PF-STATUS m AT LINE-SELECTION worked week , so in this case what has happened i how can i solve this problem,
Thaks,
PS: Reward immediatelyHi,
Thank you very much for your helpful answers, I have copied the report downto my system and test it , When i used SET PF-STATUS , i can not use AT LINE-SELECTION to capture events ...May be we can not use these 2 statements in parallel,...:D
Thanks, -
Using Subquery in Select with Rollup (or some way to get grand total)
I am trying to do the following (simplified the query):
SELECT s.SYSTEM,
(SELECT COUNT(cp1.cid) FROM cfrs cp1, systems sp1, subsystems ssp1 where cp1.priority = 'P1' AND cp1.subsystem = ssp1.subsystem AND sp1.system = ssp1.system AND sp1.system = s.system) AS P1
FROM cfrs c, systems s, subsystems ss
WHERE c.subsystem = ss.subsystem
AND s.system = ss.system
GROUP BY ROLLUP(s.SYSTEM)
But the result of the Rollup on the P1 column is always 0 (it is not summing it up)
How can I accomplish a Rollup (or get a grand total) of the subquery result?
Thanks,How about this then:
SQL > WITH SYSTEMS AS
2 (
3 SELECT 'A' AS SYSTEM FROM DUAL UNION ALL
4 SELECT 'B' AS SYSTEM FROM DUAL UNION ALL
5 SELECT 'C' AS SYSTEM FROM DUAL
6 ),
7 SUBSYSTEMS AS
8 (
9 SELECT 'A' AS SYSTEM, '1' AS SUBSYSTEM FROM DUAL UNION ALL
10 SELECT 'A' AS SYSTEM, '2' AS SUBSYSTEM FROM DUAL UNION ALL
11 SELECT 'A' AS SYSTEM, '3' AS SUBSYSTEM FROM DUAL UNION ALL
12 SELECT 'B' AS SYSTEM, '4' AS SUBSYSTEM FROM DUAL UNION ALL
13 SELECT 'B' AS SYSTEM, '5' AS SUBSYSTEM FROM DUAL UNION ALL
14 SELECT 'B' AS SYSTEM, '6' AS SUBSYSTEM FROM DUAL UNION ALL
15 SELECT 'C' AS SYSTEM, '7' AS SUBSYSTEM FROM DUAL UNION ALL
16 SELECT 'C' AS SYSTEM, '8' AS SUBSYSTEM FROM DUAL UNION ALL
17 SELECT 'C' AS SYSTEM, '9' AS SUBSYSTEM FROM DUAL
18 ),
19 CFRS AS
20 (
21 SELECT 10 AS CID, '1' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
22 SELECT 11 AS CID, '1' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
23 SELECT 12 AS CID, '1' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
24 SELECT 13 AS CID, '2' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
25 SELECT 14 AS CID, '2' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
26 SELECT 15 AS CID, '2' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
27 SELECT 16 AS CID, '3' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
28 SELECT 17 AS CID, '3' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
29 SELECT 18 AS CID, '4' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
30 SELECT 19 AS CID, '5' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
31 SELECT 20 AS CID, '5' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
32 SELECT 21 AS CID, '6' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
33 SELECT 31 AS CID, '7' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
34 SELECT 41 AS CID, '8' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
35 SELECT 51 AS CID, '9' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
36 SELECT 61 AS CID, '9' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL
37 )
38 SELECT DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM) AS SYSTEM
39 , MAX(DECODE(PRIORITY,'LOW',CNT,0)) AS LOW
40 , MAX(DECODE(PRIORITY,'MED',CNT,0)) AS MED
41 , MAX(DECODE(PRIORITY,'HIGH',CNT,0)) AS HIGH
42 , MAX(DECODE(PRIORITY,'ALL_PRIOR',CNT,0)) AS SYSTEM_TOTAL
43 FROM
44 (
45 SELECT DECODE(GROUPING(SYSTEMS.SYSTEM),1,'ALL_SYSTEMS',SYSTEMS.SYSTEM) AS SYSTEM
46 , DECODE(GROUPING(CFRS.PRIORITY),1,'ALL_PRIOR',CFRS.PRIORITY) AS PRIORITY
47 , COUNT(*) AS CNT
48 FROM SYSTEMS
49 JOIN SUBSYSTEMS ON SYSTEMS.SYSTEM = SUBSYSTEMS.SYSTEM
50 JOIN CFRS ON SUBSYSTEMS.SUBSYSTEM = CFRS.SUBSYSTEM
51 GROUP BY CUBE(SYSTEMS.SYSTEM,CFRS.PRIORITY)
52 ORDER BY SYSTEMS.SYSTEM, CFRS.PRIORITY
53 )
54 GROUP BY DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM)
55 ORDER BY DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM)
56 /
SYSTEM LOW MED HIGH SYSTEM_TOTAL
A 2 2 4 8
B 1 1 2 4
C 1 2 1 4
Grand Total 4 5 7 16Oh, BTW, use "code" wrapped in "{}" on either side to post nicely formatted code. -
Alv grid selectable with some files not selectable
Hi Experts,
I am working with a REUSE_ALV_GRID_DISPLAY.
I have a s_layout-box_fieldname to allow users select some lines.
But there are some lines that for some reason i do not want to allow them to select. Does anybody know how can I allow the users selectin some lines and some other lines not?
Thank you!Hi Artur,
This is a known issue, but unfortunately there is no solution (other than issuing a message if a line has been selected which you didn't want the use to select).
Regards,
John. -
How do I use my bluetooth headset with apple maps?
I can't seem to get apple's maps to talk to my headset -- it's only using it's own speaker (I don't have a bluetooth-enabled car). Any ideas?
I can pair the headphones with the computer but the sound from GB is distorted and muffled. I can barely hear it. The set works with iTunes, but not with GarageBand.
-
Using 2 different machines with Some same files?
I recently bought a new MacBookPro because I needed a more powerful machine to handle my audio mixes in Logic 9.
My previous MacBookPro (from 2006) is still a good machine...I'd like to keep using it for Photos, I-tunes, etc., but there are some functions that I'd like to share between machines.
Is there a way to synch the 2 machines? I'm using external hard drives for my i-Tunes files & I want to do the same with i-photo & i-movie files, can these by synched between both machines?
What is the best way to work with both machines, doing some applications on one and others on the other machine, but sharing the i-Tunes library?
If there are any links on the Apple website that address these issues, I'd appreciate anyone sharing them with me.
Thanks, BrianThis is a bit out of my area, but I think you want to share the data, not sync it.
Here's an Apple article about sharing an iPhoto library: http://support.apple.com/kb/HT1198
I'm not sure just how to go about it for other purposes, but once you have sharing set up, it may be fairly straightforward. -
The event driven menu example works fine and I've integrated it into my application. I have built in simple local vars to link menu selections to existing GUI buttons. The problem is that I cannot get the File-Exit menu option to switch off/terminate the application. The [1] "Stop": Value Change panel of the event structure simply switches off the other while loops but leaves the event while loop running. Add a while loop to the axample using a local var from the event while loop to terminate 2nd while loop to get the effect.
Help appreciated, ChrisAttached you will find a modified version of your VI.
I documented what I did on the block diagram.You were right on you just needed to add a variable with a true wired to it.
Have fun with it.
Joe
Joe.
"NOTHING IS EVER EASY"
Attachments:
Menu_Selection_with_Events_%26_while_loop[1].vi 76 KB -
We're getting a ExternalClassNotFoundException when refreshing classes in 10g(9.0.4.9) workbench. The classes were recently compiled in JAVA 1.5. We have just migrated from RAD6 using Java 1.4 to RAD8 using Java 1.5. Is there a way to use this verion of the workbench with JAVA 1.5? Or is our only alternative to upgrade to a later version on the workbench.
I strongly suggest to upgrade to AS 10.1.3 to get this.
Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
--olaf -
Using an inner select with an Update
I am using Oracle 10g and I'm trying to do the following which I got from a post.
UPDATE Items
SET
Items.itemNumber,
Items.revision
) = (SELECT
XmlItems.itemNumber,
XmlItems.revision,
FROM XmlItems
WHERE XmlItems.id = Items.id);
Basically, XmlItems is a global temporary table that contains the data from an XML CLOB that was passed in. I have verified the data does exist in that temporary table before this update is called and that the item does exist in Items.
However, I get the following error when this executes:
cannot update ("WP_A"."ITEMS"."ITEMNUMBER") to NULL
This happens because the there is a NOT NULL constraint on that column. The question is why is it trying to set null? Is the syntax above not correct?Hi,
user8692759 wrote:
Basically, XmlItems is a global temporary table that contains the data from an XML CLOB that was passed in. I have verified the data does exist in that temporary table before this update is called and that the item does exist in Items.Have you verified this for every row in items? Since the main UPDATE statement does not have a WHERE clause, you're trying to update every row in items.
However, I get the following error when this executes:
cannot update ("WP_A"."ITEMS"."ITEMNUMBER") to NULL
This happens because the there is a NOT NULL constraint on that column. The question is why is it trying to set null? Is the syntax above not correct?You may need to add a WHERE clause to the UPDATE statement:
UPDATE Items
SET (Items.itemNumber, Items.revision) =
( SELECT XmlItems.itemNumber, XmlItems.revision -- No , after revision
FROM XmlItems
WHERE XmlItems.id = Items.id
WHERE id IN ( SELECT id
FROM XmlItems
);or use MERGE instead of UPDATE. -
I am creating a drop down list using a combo box in the Developer tab. Once I protect my document I want the field to remain empty and not show any of the items on my drop down list. Is there a way to do this? Currently it shows one of the items on my list.
ThanksPaul's answer is correct.
Since this is a Word IT forum for Windows, in the future you should use the
answers.microsoft.com forum. It specializes in Word for the Mac. BTW - Paul stops by there also, so you'll still get his advice from there. :-)
Kind Regards, Rich ... http://greatcirclelearning.com -
Question about Logon ticket with user mapping at BI-JAVA environment
We're implementing BI 7.0 including BI Java and SAP EP for end user
access.
I have two question about SSO method when we're using BI Java.
I know we can simply configure SSO logon ticket with BI-Java(EP
included) and BI-ABAP through BI template installer and we already
succeeded in that case.
But the problem is we want to change it to user mapping SSO method for
some our internal reason.
After we configure user mapping SSO, we've got SSO failed error when we
call BI-Java stuff like BEx Web Application iView.
After many testing implemented, we found SSO Logon ticket with user
mapping (using SAP reference system). It seems working now.
But our question is "Is it no problem when we use SSO logon ticket with
user mapping?" Is there any restriction or issue?
One more question is we can ONLY use user base mapping when reference
system used. How can we assign BI-ABAP users to EP Group?Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
Hope this helps!! -
Special characters issue with Nokia Maps on N95
Hi there,
when using Navigation in conjunction with Nokia Maps on my N95, all streets and towns which contain any special character in their name (for example: é, è, ü, ä, ö, etc…) do appear as unreadable garbage on the screen of the N95.
I only noticed the problem after having purchased the 3 years license Navigation upgrade (EUR 99.99) and immediately notified Nokia. That was back in October. Since then I have called them at least 10 times and ultimately I have asked for a refund as no solution is still available.
In all these calls with Nokia, the only reasonable argument I heard was that maybe (!!!) the new software update version 20.0.015 released back at the end of November could solve the issue. Unfortunately, for my phone (which is a branded one) the update is not yet available.
Today, after calling them again, I was told that Nokia’s policies do not foresee refunds and therefore my request has been rejected. I was told to bring my phone to a Nokia Store and see if they can help me (I don’t see how). I was also told that maybe I would have to send-in the phone for repair.
This is soooo frustrating that despite the 3 months of patience and all the money spent for the N95 (not quite cheap), the navigation upgrade and the phone calls to Nokia, I still have the same issue. I will probably end up filing a complaint with a monthly consumer’s magazine in the hope they will publish my story.
After all, it may not even be Nokia’s fault but rather the guys who are responsible for the maps, but if Nokia accepts to have a commercial venture with a vendor, than they also accept liability for the joint product. And by turning down my legitimate request for refund, they have proven not to give a **bleep** about people like you and me.
Forgive me for the long post - needed to release some of the frustration...I have been using an N95-8GB since Nov.'07. From my experience with this phone that has a built-in mass memory besides the phone memory. I had trouble retrieving some of the softwares I have installed. For eg. I have saved some themes in the mass memory & I could not find it when I want to delete it. There are some 3rd parties games software inside where I cannot even delete
This is what I don't like about the phone. I have bought an N82/Black recently as it uses an external memory card.
Coming back to Nokia maps. Personnaly, I don't think they are that good & I have problem downloading it into my phone from my PC after having downloaded it from Nokia.
By the way the Nokia map is not even the latest map 2.0. Is still a 1.0
I used Navfone map software & it works OK in the 8GB. You have to purchase it.
I have used a couple of N-series phones in the past ie. N-90, N-70, N-71, N-73, N-80/Black, N95, N-95/8GB & now N-82.
Common with all N-series phones. After you have disconnected when you are done with your call you have to wait for a while before the word "disconnected" disappears.
The more features it has, the more problem you are gonna to encounter.
Unless you want to download softwares into your phone & have a good camera thats where the N series phones come in.
For normal usage, a 40 series phone will suffice. -
Af:table range navigation and select with rownum
I'm trying to use af:table to display some data (long list), but the value attribute always returns the entire list. (Basic example)
I'd like to use the range navigation so the application only select a sublist from the database (using rownum between x and y) and also display the navigation pane with all the pages, but I was only able to get the specific page with no navigation pane.
Does anyone have a good example on how to use the range navigation with selects/rownum?Assuming I have an untitled1.jspx page with an Untitled1.java backing bean and an <af:table> on my page whose whose binding attribute is set to the EL expression #{Untitled1.table} to expose the table UI component in the backing bean, and a rangeChangeListener set to the EL expression #{Untitled1.onRangeChanged}, then with the following backing bean class, I seem to have been able to disable the user's picking the "Show all" option. It still appears in the list, but visually picking it stays on the current range of rows.
package test.backing;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.event.RangeChangeEvent;
public class Untitled1 {
private CoreTable table;
public Untitled1() {
public void onRangeChanged(RangeChangeEvent rangeChangeEvent) {
int newStart = rangeChangeEvent.getNewStart();
int newEnd = rangeChangeEvent.getNewEnd();
if (newEnd - newStart > getTable().getRows()) {
int oldEnd = rangeChangeEvent.getOldEnd();
int oldStart = rangeChangeEvent.getOldStart();
queueRangeChangeEventForTable(newStart, newEnd, oldStart, oldEnd);
private void queueRangeChangeEventForTable(int oldStart, int oldEnd,
int newStart, int newEnd) {
RangeChangeEvent rce =
new RangeChangeEvent(getTable(), oldStart, oldEnd, newStart, newEnd);
getTable().queueEvent(rce);
public void setTable(CoreTable table) {
this.table = table;
public CoreTable getTable() {
return table;
}
Maybe you are looking for
-
BUG in OCR in Acrobat 9.3 on MRC (Mixed Raster Content) PDFs
I have lots of (non-searchable) PDFs, that were generated from scanned images (1 image per page @ 400 dpi) using LuraDocument from www.luratech.de. The images are stored internally in the PDFs as MRC (Mixed Raster Content), that means, the PDF contai
-
Problem with search screen with iphone 4s, iOS5.1
sorry for my bad english grammer or writing:D my problem is, when i go to search screen and turn back to home screen, the keyboard is steel there... i am running iOS 5.1 on iphone 4s
-
Variable Engine crashes when querying a tag that doen't exist with OPC client
Hi! I'm working on a system based on LV 2011 DSC. The system is multi-node and uses Sahred Variables. We have a node that has everything available in the system and we would like to use the embedded OPC server in the Variable Engine to grab everythi
-
Fixed Assets - retirement issues
Oracle Assets : Retirement and reinstatement of an asset Version -10.7 Units : 12 Nos. Dt Placed in service : 03-05-2001 Units retired : 3 Dt of retirement : 16-05-2001. In process of retirement, entered wrong date(i.e default date of the current ope
-
Lost Photoshop CS6 after crash
The other day I had a computer crash now I can't see Photoshop CS6 application icon or upgrade it on my Creative Cloude. It looks like it does uphrade only to at the end come up with an error U44M2P7.