Execute a clientListener of type selection without the selection (HELP)

Hey everyboy, today i brought a difficult and challeging question for you. (I'm using JDeveloper 12.1.2.0.0 and the database given by oracle -> HR)
Imagine the following scenario:
- You have a adf read-only table with the department id and department name
- You have a adf read-only table with the information of 3 tables together (join of department table, employee table and jobs table), i'm going to call it HUB table
- You have a adf read-only table with the employee id and employee name
- You can select one or more departments and the HUB table only shows the rows that are linked to the department that you choosed
- You click on any element of the hub table and it highlights the rows in the employee table that match the rows in the HUB table
My question is: How can i do the last part (the click on the hub table) without clicking it?
I have this on my HUB table:
<af:clientListener method="rowSelected" type="selection"/>
<af:serverListener type="invokeMatcher" method="#{BeanControloTotal.matchEmFACTS}"/>
This is the method rowSelected:
<af:resource type="javascript">
          function rowSelected(evt) {
            var table = evt.getSource();
            AdfCustomEvent.queue(table, "invokeMatcher", {}, true);
            evt.cancel();
</af:resource>
If i try to move my clientListener and ServerListener, it says that i don't have the attributes that i need for the method in my bean (because i don't have the employeeID).
I have the bean with the bindings for everytable (so i can access to them if i need) and my matchEmFACTS code is:
    public void matchEmFACTS(ClientEvent clientEvent) {
        matchEmFromJavaScriptEmployee(clientEvent);
        matchEmFromJavaScriptJobs(clientEvent);
        matchEmFromJavaScriptDepartments(clientEvent);
    public void matchEmFromJavaScriptEmployee(ClientEvent clientEvent) {
        // initialize and store previously selected values
        oldSelCoMap.putAll(selCoMap);   
        selCoMap.clear();
        newSelection.clear();
        String employee = "";
        RichTable factTable = (RichTable)clientEvent.getComponent();   
        // process selected rowkeys   
        RowKeySet rowKeySet = (RowKeySet)factTable.getSelectedRowKeys();   
        CollectionModel cm = (CollectionModel)factTable.getValue();
Maybe there is a way that i can execute this clientListener automatically without the need of select any element of my hub table.
Any ideas?
My best regards,
Frederico.

Hey Jflack, how are you ?
Actually i'm handling it with a managed bean, and i have a selectionListener but the method is called by a clientListener (the SelectionListener is for other purposes) but i can't pass the code to the selectionListener because it comes from a previous function, so he won't find the element i'm looking for).
I'll put some parts of the code so you can understand what i'm saying:
public void onDepartamentosTableSelect(SelectionEvent selectionEvent) {               (The department table selectionListener, where you choose one or more dep.)
        //variable to hold the string containing all selected row's departmentId value
        StringBuffer var_DepartmentID = new StringBuffer();
        //get access to the master table to read selected row keys
        RichTable rt = (RichTable) selectionEvent.getSource();
        RowKeySet rks = rt.getSelectedRowKeys();
        Iterator selectedRowsIterator = rks.iterator();
        onHubTableSelect(selectionEvent);
public void matchEmFACTS(ClientEvent clientEvent) {                         (The function in the serverListener, in the HUB table)
        matchEmFromJavaScriptEmployee(clientEvent);
        matchEmFromJavaScriptJobs(clientEvent);
        matchEmFromJavaScriptDepartments(clientEvent);
public void onHubTableSelect(SelectionEvent selectionEvent) {
        GenericTableSelectionHandler.makeCurrent(selectionEvent);
        DCIteratorBinding conIter = ADFUtils.findIterator("FactSalaryView1Iterator");
As you can see, if i try to organize my code to the HubTableSelect (my selectionListener) i won't be able to get the proper information, since the selectionEvent already comes from another selectionListener, in this case, the department selectionListener.
Your idea is simillar to what i have, am i right?
Regards,
Frederico.

Similar Messages

  • When I use the type tool or the selection tools, my photos blink between the photo and a black screen.  Anyone else have this issue?

    When I use the type tool or the selection tools, my photos blink between the photo and a black screen.  Anyone else have this issue?

    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?

  • Adhoc Query : Error during selection; check the selection conditions

    Hi
    We have a report set-up and which we want to run using our adhoc query report tcode S_PH0_48000513
    The report, has a few different selection criteria in it to look at all action IT screen data in the system for ee's in specific personnel areas. There is also a criteria to allow us to paste in specific employee numbers we are interested in. The issue I am facing is that over about 3000 ids, the system automatically returns me a message when I click on the Output button to run the report which states:
    Error during selection; check the selection conditions
    Message no. PAIS206
    I am not sure why this is happening. The selection criteria are fine and the other day I ran the report and I experienced no issues. The report ran successfully. Now though, if I try and paste in all the ids I am interested in (about 8000) I get this message straightaway.
    Can anything be done to overcome this issue?
    Any advice would be much appreciated.
    Nicola

    Hi
    The message in full is:
    Error during selection; check the selection conditions
    Message no. PAIS206
    Diagnosis
    A runtime error occurred during dynamic selection.
    System response
    The runtime error will be caught; no short dump will be created. This error should not occur as a rule. However, very large select statements may trigger the runtime error SAPSQL_STMNT_TOO_LARGE or DBIF_RSQL_INVALID_RSQL. There is no way to prevent this happening. In this case, the error can only be caught.
    Procedure
    Check the selection conditions to see whether the error was caused because the option "Import from text file" included too many objects in the "Multiple selection" dialog. If this is so, you must limit the number of individual values.

  • Could not make a new layer from the selection because the selected area is empty

    I have Photoshop CS5 and I'm trying to do a selection on a new layer and when I copy it this message appears: "could not make a new layer from the selection because the selected area is empty"..
    The new layer is selected, no other layer is selected. What the hell am I doing wrong???....Yes I'm a beginner.. ....please help?

    Hi There,
    So just to clarify you have made a new blank layer, made a selection on that layer and then done a Layer > New > Layer via Copy (or cmd J).
    The reason that you would get this error message is you have made a selection on a blank layer (effectively selecting nothing) and tried to duplicate it and Photoshop won't let you do that.
    When doing New Layer via Copy or New Layer via cut you selection needs to include some painted (coloured) pixels.
    Regards
    Paul
    PS. Maybe you could explain what you are trying to achieve by copying the layer and I could help a little more.

  • Is there a way to use 'GET PERNR' without the selection screens?

    I would like to use the GET PERNR event in a batch program without using the default selection screens.  I would like to be able to use my own selection screen and parameters, but only get them along with the default selection options for payroll period.  I've tried removing the screen number from the attributes screen, but still get these options.  Is this possible?

    hi Kiran,
    report Category is a Pushbutton on the Attributes popup, it only appears if you use PNP logical DB.
    this is from SAPHelp: "Report Category
    Category used for HR reports that use the PNP logical database. It controls the type and number of fields that appear on the selection screen of an evaluation report."
    hope this helps
    ec

  • Data without the select keyword

    Can we get the table data wihtout using SELECT keyword in query?
    Just a out of the box question, asked in interview.

    Mangal9i wrote:
    Can we get the table data wihtout using SELECT keyword in query?
    Just a out of the box question, asked in interview.With consideration of Michaels nice example the answer would be:
    It depends ...
    on the database version. Also the interviewer should explain what he means with: "Get" table data. Which language should be used?
    Second consideration would be: What is a query? in traditional (Oracle) SQL a query is always connected with a select statement. XQUERYs are different
    Also in some frameworks (i.e.: .net) you can use some objects (ADO/DAO) to instantiate with a database table and then use a completely different syntax to print / show the table on the screen. internally all those frameworks work with some kind of select statement, but that is hidden from the programmer.
    Another simple option would be to use some tool. Like Oracle Developer. Just click on user>tables>tablename and see the data.
    Of cause the tool again does a select in the database. So what level of technical detail is the interviewer interested in?
    Edited by: Sven W. on Sep 23, 2008 4:41 PM
    Edited by: Sven W. on Sep 23, 2008 4:42 PM

  • Report OutPut directly to  the printer by selecting in the selection screen

    Hi Guys,
    Can any one help,
    How to give Report output (ALV report ) directly to the printer by selecting the printer name in the selection screen .
    Sap Version is ECC 6.0.
    Thanks In advance
    praveen k

    hi,
    u can do it using submit statement.
    SUBMIT TO SAP-SPOOL
    Basic form
    SUBMIT rep ... TO SAP-SPOOL.
    Extras:
    1.... DESTINATION dest         ... COPIES cop
            ... LIST NAME name
            ... LIST DATASET dsn
            ... COVER TEXT text
            ... LIST AUTHORITY auth
            ... IMMEDIATELY flag
            ... KEEP IN SPOOL flag
            ... NEW LIST IDENTIFICATION flag
            ... DATASET EXPIRATION days
            ... LINE-COUNT lin
            ... LINE-SIZE  col
            ... LAYOUT layout
            ... SAP COVER PAGE mode
            ... COVER PAGE flag
            ... RECEIVER rec
            ... DEPARTMENT dep
            ... ARCHIVE MODE armode
            ... ARCHIVE PARAMETERS arparams
            ... WITHOUT SPOOL DYNPRO
    2. ... SPOOL PARAMETERS params
             ... ARCHIVE PARAMETERS arparams
             ... WITHOUT SPOOL DYNPRO
    3. ... Further parameters (for passing variants)
            are described in the documentation for SUBMIT
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Missing print parameters with SUBMIT.
    Effect
    Calls the report rep with list output to the SAP spool database.
    Additions
    ... DESTINATION dest(output device)
    ... COPIES cop(number of copies)
    ... LIST NAME name(name of list)
    ... LIST DATASET dsn(name of spool dataset)
    ... COVER TEXT text(title of spool request)
    ... LIST AUTHORITY auth(authorization for display)
    ... IMMEDIATELY flag(print immediately ?)
    ... KEEP IN SPOOL flag(keep list after print ?)
    ... NEW LIST IDENTIFICATION flag(new spool request ?)
    ... DATASET EXPIRATION days(number of days list
    retained)
    ... LINE-COUNT lin ( lin lines per page)
    ... LINE-SIZE  col(col columns per line)
    ... LAYOUT layout(print format)
    ... SAP COVER PAGE mode(SAP cover sheet ?)
    ... COVER PAGE flag(selection cover sheet ?)
    ... RECEIVER rec(SAP user name of
    recipient)
    ... DEPARTMENT dep(name of department)
    ... ARCHIVE MODE armode(archiving mode)
    ... ARCHIVE PARAMETERS arparams(structure with archiving
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print control screen)
    With the parameters IMMEDIATELY, KEEP IN SPOOL, NEW LIST IDENTIFICATION and COVER TEXT, flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON. mode with SAP COVER PAGE can accept the values ' ', 'X' and 'D'. These values have the following meaning:
    ' ' : Do not output cover sheet
    'X' : Output cover sheet
    'D' : Cover sheet output according to printer setting
    armode with ARCHIVE MODE can accept the values '1', '2' and '3'. These values have the following meaning:
    '1' : Print only
    '2' : Archive only
    '3' : Print and archive
    arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS.
    Effect
    Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    You could use this option if all the spool parameters have already been set!
    reward points if hlpful.
    Note
    When specifying the LINE-SIZE, you should not give any value > 132 because most printers cannot print wider lists.
    Addition 2
    ... SPOOL PARAMETERS params(structure with print
    parameters)
    ... ARCHIVE PARAMETERS arparams(Structure with archive
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print parameters
    screen)
    Effect
    Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... WITHOUT SPOOL DYNPRO
    Example
    Without archiving
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Example
    With archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                COVER_PAGE             = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        ARCHIVE PARAMETERS ARPARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.

  • How to restrict the values for selection in the search help..

    hi,
    i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
    i used the standard search help it holds some 15 values for selection...
    when i click on the  search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
    waiting for ur reply...
    Uday.
    Edited by: uday13 on May 31, 2010 9:17 AM

    Hello,
    Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             bukrs TYPE bukrs,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      PERFORM f4_bukrs_help USING p_bukrs.
    *&      Form  f4_bukrs_help
    FORM f4_bukrs_help USING p_bukrs.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             v_belnr TYPE belnr.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'Z_F4' "program name
          dynumb                               = '1000' "screen number
        TABLES
          dynpfields                           = tb_dynpfields
      IF sy-subrc NE 0.
      ENDIF.
    READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        v_belnr = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BURKS' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BUKRS' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " f4_bukrs_help
    Hope this helps you.
    Regards,
    Tarun

  • PLS-00382 Type error in the select statement in the Cursor.

    Hi,
    I am trying to combine several different sql statements to form one large cursor for my java layer. I have attached the PL/SQL procedure that I am using and when I am trying to compile it is giving PLS-00382 error. Please help me.
    PL/SQL Code.
    CREATE OR REPLACE PROCEDURE test IS
    tmpVar NUMBER;
    TYPE checkRecord is RECORD (
    name1 APPS.EMCSV_R25_DIST_PROF_TBL.distmgrfname%TYPE,
         name2 APPS.EMCSV_R25_DIST_PROF_TBL.distmgrfname%TYPE,
         name3 APPS.EMCSV_R25_DIST_PROF_TBL.distmgrfname%TYPE,
         name4 APPS.EMCSV_R25_DIST_PROF_TBL.distmgrfname%TYPE,
         oppstatus1 APPS.EMCSV_R25_DIST_PROF_TBL.oppstatus%TYPE,
         oppcount1 APPS.EMCSV_R25_DIST_PROF_TBL.oppcount%TYPE,
         oppamount1 APPS.EMCSV_R25_DIST_PROF_TBL.oppamount%TYPE,
    oppstatus2 APPS.EMCSV_R25_DIST_PROF_TBL.oppstatus%TYPE,
         oppcount2 APPS.EMCSV_R25_DIST_PROF_TBL.oppcount%TYPE,
         oppamount2 APPS.EMCSV_R25_DIST_PROF_TBL.oppamount%TYPE,
         oppstatus3 APPS.EMCSV_R25_DIST_PROF_TBL.oppstatus%TYPE,
         oppcount3 APPS.EMCSV_R25_DIST_PROF_TBL.oppcount%TYPE,
         oppamount3 APPS.EMCSV_R25_DIST_PROF_TBL.oppamount%TYPE,
         oppstatus4 APPS.EMCSV_R25_DIST_PROF_TBL.oppstatus%TYPE,
         oppcount4 APPS.EMCSV_R25_DIST_PROF_TBL.oppcount%TYPE,
         oppamount4 APPS.EMCSV_R25_DIST_PROF_TBL.oppamount%TYPE);
    TYPE checkCur IS REF CURSOR RETURN checkRecord;
    checkCurVal checkCur;
    checkCurRec checkRecord;
    chechcurVal checkCur;
    NAME: test
    PURPOSE:
    REVISIONS:
    Ver Date Author Description
    1.0 3/8/2006 1. Created this procedure.
    NOTES:
    Automatically available Auto Replace Keywords:
    Object Name: test
    Sysdate: 3/8/2006
    Date and Time: 3/8/2006, 10:01:59 AM, and 3/8/2006 10:01:59 AM
    Username: (set in TOAD Options, Procedure Editor)
    Table Name: (set in the "New PL/SQL Object" dialog)
    BEGIN
    tmpVar := 0;
    OPEN checkCurVal FOR
    SELECT
         a.distmgrfname,
    a.distmgrlname,
         a.salesrepfname,
         a.salesreplname,
         cursor (
         SELECT b.oppstatus,
         b.oppcount,
         b.oppamount
         from APPS.EMCSV_R25_DIST_PROF_TBL b
         where b.userid = '100000001' AND
         b.reportid = 'ISARPTR25' AND
                   b.oppstatus = 'Open' AND
                   b.isoppstatusselected = 'Y'),
         cursor (
         SELECT c.oppstatus,
         c.oppcount,
         c.oppamount
         from APPS.EMCSV_R25_DIST_PROF_TBL c
         where c.userid = '100000001' AND
         c.reportid = 'ISARPTR25' AND
                   c.oppstatus = 'Commit' AND
                   c.isoppstatusselected = 'Y'),
         cursor (
         SELECT
         d.oppstatus,
         d.oppcount,
         d.oppamount
         from APPS.EMCSV_R25_DIST_PROF_TBL d
         where d.userid = '100000001' AND
         d.reportid = 'ISARPTR25' AND
                   d.oppstatus = 'Closed-Won' AND
                   d.isoppstatusselected = 'Y'),
         cursor (
         SELECT
         e.oppstatus,
         e.oppcount,
         e.oppamount
         from APPS.EMCSV_R25_DIST_PROF_TBL e
         where e.userid = '100000001' AND
         e.reportid = 'ISARPTR25' AND
                   e.oppstatus = 'Closed-Lost' AND
                   e.isoppstatusselected = 'Y')               
                   from APPS.EMCSV_R25_DIST_PROF_TBL a
         where a.userid = '100000001' AND
         a.reportid = 'ISARPTR25' AND
                   a.isoppstatusselected = 'Y' ;
         LOOP
         FETCH checkCurVal INTO checkCurRec;
              EXIT WHEN checkCurVal%NOTFOUND;
              DBMS_OUTPUT.PUT_LINE (checkCurRec.name1 ||
              checkCurRec.name2 ||
                                            checkCurRec.name3 ||
                                            checkCurRec.name4 ||
                                            checkCurRec.oppstatus1 ||
                                            checkCurRec.oppcount1 ||
                                            checkCurRec.oppamount1 ||
                                            checkCurRec.oppstatus2 ||
                                            checkCurRec.oppcount2 ||
                                            checkCurRec.oppamount2 ||
                                            checkCurRec.oppstatus3 ||
                                            checkCurRec.oppcount3 ||
                                            checkCurRec.oppamount3 ||
                                            checkCurRec.oppstatus4 ||
                                            checkCurRec.oppcount4 ||
                                            checkCurRec.oppamount4);                                        
         END LOOP;     
    END test;
    /

    Thanks for Replying.
    I am trying to build a cursor to fetch the records from the table. Table structure is something like this.
    reportid VARCHAR2(10) NOT NULL,
    distmgrid NUMBER DEFAULT 0,
    salesrepid NUMBER DEFAULT 0,
    distmgrfname VARCHAR2(40 CHAR) DEFAULT 'rfname',
    distmgrlname VARCHAR2(40 CHAR) DEFAULT 'rlname',
    salesrepfname VARCHAR2(40 CHAR) DEFAULT 'afname',
    salesreplname VARCHAR2(40 CHAR) DEFAULT 'aname',
    issalesrepselected CHAR(1 CHAR) DEFAULT 'Y',
    oppstatus VARCHAR2(40 CHAR) DEFAULT 'oppstatus',
    isoppstatusselected CHAR(1 CHAR) DEFAULT 'Y',
    oppcount NUMBER DEFAULT 0,
    oppamount NUMBER DEFAULT 0,
    oppquote NUMBER DEFAULT 0,
    Attribute1 VARCHAR2(10 CHAR),
    Attribute2 VARCHAR2(15 CHAR),
    Attribute3 NUMBER,
    Attribute4 NUMBER
    But from the above table, I am trying to build a report for which I need a cursor which I listed in the proc. Is it not possible to build a cursor within a cursor?
    Yes each individual cursor return only one row.

  • Maybe this is a crazy question.....  (Or, how to select without the mouse)

    or maybe I have just forgotten how to do it. In Windows, when a message pops up asking me what I want to do (like save or whatever), I can just hit one of the left/right arrow keys to switch between the options in that message window. In OS X, I have tried everything, but the flashing blue choice won't move to a different button. For example, I am re-ripping all my music into iTunes in 320k MP3 format, so I am going through the Music list & deleting each album before I re-import it. The message that pops up gives me the options to Keep Files, Move To Trash, or Cancel. I don't want to have to use the mouse all the time, so I would like to select Move To Trash with the keyboard. How is this done?? Any input will be greatly appreciated. Thanks in advance.

    The message that pops up gives me the options to Keep Files, Move To Trash, or Cancel. I don't want to have to use the mouse all the time, so I would like to select Move To Trash with the keyboard. How is this done??
    Provided you have the "All controls" radio button selected under System Preferences > Keyboard & Mouse > Full Keyboard Access, you can use your Tab key to navigate among the button choices in the iTunes dialog.
    Only the "Keep File" default button should remain solid blue. Look for the appearance of a bluish ring around the other buttons when you tab to them, letting you know they're active. Once you have the desired button highlighted, press the Return key to complete the action.
    Good luck...

  • Time selection in the select statement

    Hi,
    I need to extract data from Oracle DB to a flat file. We just have a runtime license and hence I cannot create any DB views or procedures. So I generate the extract by writing SQL commands in a flat file and then triggering it using a batch file.
    I need a selection on time period in the SQL statement. This selection should as per the logic:
    For each day between May 1st to May 15th Selection should be in the range April 1st to April 15th
    For each day between May 16st to May 31st Selection should be in the range April 16st to April 30th
    For each day between June 1st to June 15th Selection should be in the range May 1st to May 15th and so on..
    How can I achieve this, please provide me some guidance.
    Thank you,
    Raja

    This is an example how to get dates are asking you for :
    SELECT CASE WHEN TO_CHAR(SYSDATE,'DD') <= 15
             THEN TRUNC(ADD_MONTHS(SYSDATE,-1),'MM')
             ELSE TRUNC(ADD_MONTHS(SYSDATE,-1),'MM')+15
           END start_date,
           CASE WHEN TO_CHAR(SYSDATE,'DD') <= 15
             THEN TRUNC(ADD_MONTHS(SYSDATE,-1),'MM')+14
             ELSE TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,-1)))
           END end_date
    FROM DUALSome comments to help understand it
    ADD_MONTHS => With negative numbers you substract then
    LAST_DAY => Get last day month (how function name selfexplains)
    TRUNC( ,'MM') => Get first month day and remove time
    TRUNC() => Without second parameter remove time from day
    Mind to bear with time if your database DATE columns include it.
    Salut,
    Manel
    Edited by: Manel Sànchez i Ruiz on 26/05/2009 08:25

  • Browse the File path selection in the selection screen

    I want to give the user the option to browse his/her desktop and selct a file path and windows name by clicking on a drop down.
    How do I do that?
    Thank you in advance

    hi ,
    there are so many function modules which will provide F4 Help for the path.
    Suppose you have given a parameter name path.
    You have to use these FMs in the event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
    Example :
    data : C_FNH_MASK TYPE DXFIELDS-FILEMASK VALUE '.',
    SEARCH_DIR TYPE DXFIELDS-LONGPATH VALUE '/SAPGLOBAL/USERS',
          FILE_PATH LIKE DXFIELDS-LONGPATH.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          I_LOCATION_FLAG = 'P'
          I_SERVER        = ' '
          I_PATH          = SEARCH_DIR
          FILEMASK        = C_FNH_MASK
          FILEOPERATION   = 'R'
        IMPORTING
          O_PATH          = PATH
        EXCEPTIONS
          RFC_ERROR       = 1
          OTHERS          = 2.
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          I_LOCATION_FLAG = 'A'
          I_SERVER        = ' '
          I_PATH          = SEARCH_DIR
          FILEMASK        = C_FNH_MASK
          FILEOPERATION   = 'R'
        IMPORTING
          O_PATH          = FILE_PATH
        EXCEPTIONS
          RFC_ERROR       = 1
          OTHERS          = 2.
    If you remove 'P' and put 'A', then it is used for application server F4 help.
    you have F4_FILENAMEand F4_FILENAME_SERVER  for presentation and application servers respectively
    Reward points if helpful.
    Thanks and Regards.

  • Save selection inverts the selection

    Hi - I am making myself a litte crazy trying to figure out why when I use select color range, the color is selected as it should be but, when I save that selection it inverts itself in the channels pallet.  Is there some little setting somewhere I don't know about?
    CS4, Mac OSX
    Thanks for your help,
    Kate

    Well that's just backwards.

  • How can I blur a selection on a layer (gaussian blur) without the colors/transparency outside the borders of the selection bleeding through?

    I am a digital artist, and I switch between programs a lot because sometimes photoshop just doesn't do everything, but I would really like to know if photoshop can help me with this. Is there a way for me to blur a selection without the edges becoming transparent (or color from outside the selection bleeding in). This really bothers me, and my other programs don't have this issue.

    Would align to pixel grid help?
    Left is not aligned, Right is aligned to pixel grid

  • 'you don't have permission to play the selected music'

    hi everyone,
    probably, this has been discussed here before..
    i just uograded the software for my zen micro 5 gb, and when i start copying the music from my library, the bloody thing says that i don't have permission to copy the music, although the music on my HD is perfectly legal, as it was copied from a CD i bought...
    anyne has a solution?
    thanks in advance!!

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

Maybe you are looking for

  • How to create multiple output files using TrAX?

    I am new in this field. I'm trying to create multiple xml output files using TrAX. I have to parse a xml source file and output it to multiple xml files. My problem is that it only creates one output file and puts all the parsed data there. When i us

  • How to use WB_IS_DATE

    Hello fellow OWB users, I wanted to ask how to use the predefined functions in OWB, specifically WB_IS_DATE. It is meant to check for a valid date, and return the boolean true, if it finds one. My intended usage was to write the following into an exp

  • JOptionPane.showMessage doesn't display message & icon in Solaris

    Hi huys, JOptionPane.showMessageDialog doesn't display message & icon in Solaris, but display is proper through XWin. Any help is appreciated. Edited by: Quest_4_Java on Oct 29, 2008 12:15 AM

  • What app do I need to burn imovies to dvd

    I have a new imac - no internal superdrive- I bought a stand alone. I need to burn imovies to dvd. Idvd no longer works with new imac, I purchased Toast - that does not work, I downloaded Free DVD creator - that does not work either. I have been foll

  • Why does streaming video not work?

    I have almost always had trouble streaming video....form Youtube and Netflix and other streams...and I don't know why! What needs to work better for streaming? Is a 3G hotspot connection not fast enough?? What do I need to do to make this seemingly s