Display list of objects via Function

Hi Gurus,
BANNER
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
I do have an object type as follows
CREATE or replace TYPE T_TABLE IS OBJECT
    Field1 varchar2(100),
    Field2 date
CREATE TYPE T_TABLE_COLL IS TABLE OF T_TABLE;
When I run
SELECT T_TABLE(ename,hiredate) FROM emp where rownum<=5;
I get following result
SQL> SELECT T_TABLE(ename,hiredate) FROM emp where rownum<=5;
T_TABLE(ENAME,HIREDATE)(FIELD1, FIELD2)
T_TABLE('SMITH', '17-DEC-80')
T_TABLE('ALLEN', '20-FEB-81')
T_TABLE('WARD', '22-FEB-81')
T_TABLE('JONES', '02-APR-81')
T_TABLE('MARTIN', '28-SEP-81')
So far so good.
Now I have  a function which is returning above mention table of object
CREATE OR REPLACE FUNCTION FN_MyFunction
RETURN T_TABLE_COLL
IS
  l_res_coll T_TABLE_COLL;
  l_index number;
BEGIN
  l_res_coll := T_TABLE_COLL();
  FOR I IN (SELECT ename col1,hiredate  col2 FROM emp where rownum<5)
  LOOP
      l_res_coll.extend;
      l_index := l_res_coll.count; 
      l_res_coll(l_index):= T_TABLE(i.col1, i.col2);
  END LOOP;
  return l_res_coll;
END;
When I run query using above function, I get following results
SQL> select *
  2    from table(FN_MyFunction());
FIELD1                FIELD2
SMITH                   17-DEC-80
ALLEN                   20-FEB-81
WARD                   22-FEB-81
JONES                  02-APR-81
OR
SQL>   select
  2              FN_MyFunction() from dual;
FN_MYFUNCTION()(FIELD1, FIELD2)
T_TABLE_COLL(T_TABLE('SMITH', '17-DEC-80'), T_TABLE('ALLEN', '20-FEB-81'), T_TABLE('WARD', '22-FEB-81),T_TABLE('JONES', '02-APR-81))
My problem is, I need following result using above function;-
T_TABLE(ENAME,HIREDATE)(FIELD1, FIELD2)
T_TABLE('SMITH', '17-DEC-80')
T_TABLE('ALLEN', '20-FEB-81')
T_TABLE('WARD', '22-FEB-81')
T_TABLE('JONES', '02-APR-81')
T_TABLE('MARTIN', '28-SEP-81')
In short, I need table of individual objects returned by function.
Please note, I know SQL solution is better than PL/SQL solution but I presented this example  for explanation purpose.
I would appreciate any help.
Thanks in advance.

Hi,
Not really clear what your requirement is.
You said...
In short, I need table of individual objects returned by function.
The function is returning a value which is of type: table of objects. Can you not define the function to return an value of type T_TABLE?
CREATE OR REPLACE FUNCTION FN_MyFunction (f1 varchar2, f2 varchar2)
RETURN T_TABLE 
IS
BEGIN
---- Do what ever processing needed
   return (T_TABLE(f1, f2));
END;
> col col1 format A60
> select  FN_MyFunction(last_name,hire_date) col1 from employees where rownum<=5
COL1                                                      
HR.T_TABLE('King','2003-06-17 00:00:00.0')                  
HR.T_TABLE('Kochhar','2005-09-21 00:00:00.0')               
HR.T_TABLE('De Haan','2001-01-13 00:00:00.0')               
HR.T_TABLE('Hunold','2006-01-03 00:00:00.0')                
HR.T_TABLE('Ernst','2007-05-21 00:00:00.0') 
May be I am missing something from your requirement. :-(

Similar Messages

  • How to display List of objects in jsp?

    Hi,
    I have a list containing Collection of bean objects.
    Now I want to display the values in the list of objects in a jsp using JSTL.
    Any body help me how to retrieve the bean objects from the List and how can i display that values in the jsp.
    Advanced Thanks,
    Mahendra

    Have you tried to use <:forEach></c:forEach> tag available in jstl?

  • JSP: How do display list of objects in jsp table?

    sorry that my question my confuse you, let me explain more.
    in my java class, have method : public List retrieveAllVacancies(); and it returns a list of available vacancies.
    on my jsp page, i want to display the vicancies in the table have 3 rows:
    vacancy title  |  location  |  contract type
    should i use some form of for loop or iterator to get the vacancies in the list? how does the jsp page get the list of objects?
    anyone can help me? thanks

    i found out the actual thing i look for is how to pass the vector to the jsp page.
    <table>                                                                                                    
        <%
             Vacancy vacancy= new Vacancy();
            Vector allVacancies = new Vector();
            *//allVacancies = (java.util.Vector)request.getAttribute("allVacancies");*
            if(allVacancies.size() == 0) 
                out.print("<br><br><br>     There are no vacancies available!!");
            else
        %>
        <tr>
            <td>Vacancy Title</td>
            <td>Contract Type</td>
            <td>Location</td>
        </tr>
        <%
            for (int i=0;i<allVacancies.size();i++)
                vacancy = (Vacancy)allVacancies.get(i);
         %>
        <tr>
            <td><% out.print(vacancy.getVacancyTitle());%></td>
            <td><% out.print(vacancy.getContractType());%></td>
            <td><% out.print(vacancy.getVacancyLocation()); %></td>
        </tr>
    <%
    %>
    </table>*//allVacancies = (java.util.Vector)request.getAttribute("allVacancies");*
    if i have this line, when i open the jsp page it will gives NullPoniterException.
    the following was what i found for the similar problem,
    You can add the Vector to the HttpSession with_
    session.setAttribute(String name, Object value)_
    or to the ServletRequest with_
    request.setAttribute(String name, Object value)._
    In the other JSP, retrieve the value with_
    session.getAttribute(String name)_
    or to the ServletRequest with_
    request.getAttribute(String name)._
    but i tried to do in this way it didn't work. for sure i didn't do it correctly. could anybody give bit more explanation about how to pass the Vector to the jsp page?
    any help would be appreciated.

  • How to display 'List' of objects in table format

    I am trying to display bunch of records in the table format.
    I have the List of bean object populated with table datas.
    Currently the code is working fine ,if I tend to display one record.I am wondering how to display all the records.
    I know theres a 'Fieldloop'.If thats the one please explain with example.

    iterate the object list using field loop. eg. is given below
    [      <Field name='MatchTable'>
    <Display class='SimpleTable'>
    <Property name='columns'>
    <List>
    <String>title</String>
    </List>
    </Property>
    </Display>
         <FieldLoop for='name' in='userlist'>
    <Field name='username'>
    <Display class='Label'>
    <Property name='labels'>
    <ref>name</ref>
    </Property>
    </Display>
    </Field>
         <FieldLoop>
         </Field>

  • Display ALV List in Object Oriented Method

    Dear Guru ,
    I have encountered an issue which i am trying to resolve
    I am using following custom code to display lists of the entries of  <F_FS>  in ALV GRID FORMAT
    For display data in ALV GRID FORMAT i am using class cl_gui_alv_grid.
    But the requirment is like this i have to show it in ALV LIST Display Format .
    when i searched for class cl_gui_alv_list i found that Object Type CL_GUI_ALV_LIST does not exist
    Please show me some guide line how to achieve this .....
    DATA : gt_cust TYPE REF TO cl_gui_custom_container. "Custom Container
      DATA : cust TYPE scrfname VALUE 'CC_OUTPUT'. "Custom controller
      DATA : gt_grid TYPE REF TO cl_gui_alv_grid. "ALV List Viewer
      FIELD-SYMBOLS : <f_fs> TYPE table. "FieldSymbol for holding fields
      DATA  : t_cat     TYPE STANDARD TABLE OF lvc_s_fcat INITIAL SIZE 0."To hold Field Catalog
      IF gt_cust IS INITIAL.
        CREATE OBJECT gt_cust
          EXPORTING
            container_name = cust.
        CREATE OBJECT gt_grid
          EXPORTING
            i_parent = gt_cust.
    **--Display the data in the grid control
        CALL METHOD gt_grid->set_table_for_first_display
        EXPORTING
            i_buffer_active       = 'X'
            i_bypassing_buffer    = ' '
        CHANGING
            it_outtab = <f_fs>
            it_fieldcatalog = t_cat
        EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
        OTHERS = 4    .
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.

    RECL_SALV_TABLE,     
    CL_SALV_COLUMNS_TABLE,
    CL_SALV_COLUMN_TABLE,

  • Function Module which gives complete list of objects that another object to

    Hi All,
    Is there any standard FM that can give us complete list of objects that another object(Order/Cost Center) settles to??
    Thanks in advance,
    Prathima

    Hi,
    Question is not clear.
    Revert back,
    Regards,
    Naveen

  • Display list and classes

    I have a class called shapeC that only creates a rectangle and then addChild(rectangle);.  That class is instantiated on the main timeline.  Currently, the only way you can see that rectangle is to add the instantiated class to the stage via addChild(shapeC);.  My question is, is there a way that the shapeC class can add the rectangle to the root stage without requireing the instantiated class to be added to the stage?
    Thanks

    Yes, you can add directly to another stage, but my question would be "why"?  There are times you want to delegate the logic of controlling what's on stage to another class and can be a responsibility of something commonly refered to as a "controller".  There are times when you want a class to simply create something and return it, known as a "factory".  What you're talking about is both of those things lumped into one.  Unless you really have a reason to have a factory during its creation add it to stage, I'd suggest you do it exactly as you're doing now.  Not to mention the only reference stored of your rectangle will be in your ShapeC class and/or on your main display list.  That can be dangerous and cause all kinds of headaches.  But if you really want to do it, you'd have to pass in a DisplayObjectContainer (i.e. Sprite or MovieClip) as an argument to the constructor (or other method depending on the code path of your class) of the shapeC class.  Once it has created the rectangle add it to the passed in object's display list (passedInObject.addChild(rectangle));  So the code would look something like this.
    //From main timeline
    var shape:ShapeC = new ShapeC(this);
    //ShapeC constructor
    public function ShapeC(targetDisplayObject:DisplayObjectContainer)
         var rectangle:Sprite = new Sprite();
         rectangle.graphics.beginFill(0xFF0000);
         rectangle.graphics.drawRect(0, 0, 100, 100);
         targetDisplayObject.addChild(rectangle);
    If I were to do something like this, I'd just make ShapeC a static factory class and do something like this:
    //From main timeline
    ShapeC.createRect(this);
    //in ShapeC class
    public function createRect(targetDisplayObject:DisplayObjectContainer)
         blah blah blah same as above...
    You might also want to pass in screen positions and what not as well.  Hope it helps.

  • Adding a new conditon on head via function modul?

    Hi,
    is there a way to add a condition to an order via function module? I mean in customizing we have maintained the calc scheme (and everything else) and assign it to the order. What we want is to add the new condition type to the head of the order via function module. The scenario is as follows:
    We create an order and have on the header a field for a value. If you type a value in the field and press enter the condition should be created and calculatetd. The result is given in the condition tab of the order on header level.
    We try to not do a modifictaion. therefore i am looking for a function module. Is there someone who could help?
      thanks and regards,
           Ming

    Why can't this be done by the pricing configuration?
    There are also pricing user exits available, which are not modifications and exist for this purpose exactly (i.e. when for some reason configuration alone is not enough). See the list here:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/sdUserexits

  • Simple AS3 to AS2 translation (display list manipulation)

    Can anybody translate this piece of code to AS2? Don't ask why
    Thanks.
    var pictureIndex:int = 0;
    var pictures:Array = [];
    mc_animation.gotoAndStop(1);
    mc_animation.visible = false;
    mc_animation.addEventListener(Event.COMPLETE, animationCompleteHandler);
    loadPictures();
    function loadPictures():void {
         // you should load pictures and store them in the pictures Array
         // when you're done loading pictures, call loadPicturesComplete()
    function loadPicturesComplete():void {
         showNextPicture();
         mc_animation.visible = true;
    function clearAnimationHolder():void {
        while(mc_animation.mc_holder.numChildren > 0) {
            mc_animation.mc_holder.removeChildAt(0);
    function showNextPicture():void {
        if(pictureIndex < pictures.length) {
            clearAnimationHolder();
            mc_animation.mc_holder.addChild(pictures[pictureIndex]);
            mc_animation.gotoAndPlay(1);
        else {
            trace("DONE SHOWING PICTURES");
    function animationCompleteHandler(event:Event):void {
         // if you want co cycle through images in infinite loop, try this instead of the next line: pictureIndex = (pictureIndex + 1) % pictures.length;
        pictureIndex++;
        showNextPicture();

    you can't reparent display objects in as2 and you can't parent display objects whenever you choose.  parenting can only be done with a display object is created (in as2).
    so, you would need to create target movieclips into which you would load your pictures array items and then display them by controlling their _visible property instead of adding them to the display list.

  • Displaying list using pushbutton

    Hi Forum,
    How to display a list using a pushbutton.
    Pls give an example..
    I welcome you to become online friends only to discuss abap.
    my id is [email protected]
    Thanks,
    Shilpa

    Hi this will help u.
    Many a times there is a requirement to display ALV Grid (not ALV List) in the background Job. I have checked the SDN Forum for the same and it has been mentioned that ALV Grid cannot be displayed in Background, but the list output of ALV is possible. So user won’t have the actual Grid interface but the List interface.
    There is a workaround to display ALV Grid in Background Job. The only restriction is you can’t schedule the job through SM36. You need to execute the transaction of the report program, fill in the selection screen data and hit Execute.
    The job would be executed in background. User will be able to see the Job Log and Job Status after executing the program. User doesn’t have to go to SM37 to view the job status/log. Once the Job Status is changed to “COMPLETED”, user can click on “DISPLAY SPOOL” to view the ALV Grid.
    Limitations:
    Can’t schedulea background job
    The session should be active until the background job is completed. If the session is closed, then user won’t be able to check the output in ALV Grid. User would be able to check the output through spool or SM37
    Advantages:
    If the spool width is greater than 255 characters, then the entire width could be seen in the output because the output is directed to an ALV Grid and not to spool
    Interface of ALV Grid is available instead of ALV List even though it’s a background job.
    Program won’t give the TIME OUT error
    Steps Required:
    1. Once you execute the program, the following screen would be displayed
    2. Click “Display Job Status” to check the Status of the Background Job
    3. Click on “Display the Job Log” to check the Log
    4. Click on “Display Job Status” to check the Job Status
    5. Click on “DISPLAY SPOOL” to check the spool content once the Job Status is changed to “COMPLETED”. Output is displayed in ALV Grid
    Programs:
    1.  Two different programs needs to be created
    ZPROGRAM_ONE: This is the 1st program, where the selection screen and all the data validations would be done. Error handling for invalid data should be done in this program.
    Once the data validation is done, this program would call the 2nd program ZPROGEAM_TWO. Build the logic to display ALV Grid in this program. The logic will only display ALV in foreground and it won’t be reflected in the spool.
    ZPROGRAM_TWO: This program would fetch all the data and do all the processing. If you want the spool output along with ALV Grid output, then build the logic in this program to display ALV Grid.
    *& Report  ZPROGRAM_ONE                                                *
    REPORT  zprogram_one                            .
    PRASHANT PATIL
    TABLES : mara,
             tsp01.
    type-pools:slis.
    TYPES : BEGIN OF t_mara,
              matnr   TYPE mara-matnr,
              ersda   TYPE mara-ersda,
              ernam   TYPE mara-ernam,
              laeda   TYPE mara-laeda,
            END OF t_mara.
    DATA : i_mara       TYPE STANDARD TABLE OF t_mara,
           wa_mara      TYPE t_mara,
           wa_index     TYPE indx,        " For Index details
           wa_index_key TYPE indx-srtfd VALUE 'PRG_ONE',
           i_jobsteplist     TYPE STANDARD TABLE OF tbtcstep, " For spool number
           wa_params         TYPE pri_params,  " To Get Print Parameters
           wa_jobhead        TYPE tbtcjob,     " To know the status of job
           wa_jobsteplist    TYPE tbtcstep,    " To know the spool
           w_jobname         TYPE tbtco-jobname,  " Job name for bckgrnd job
           w_jobcount        TYPE tbtco-jobcount, " Unique id for bckgrd job
           w_path            TYPE string,         " Upload path
           w_lsind           TYPE sy-lsind,       " Index
           wa_seltab         TYPE rsparams,
           i_seltab          TYPE STANDARD TABLE OF rsparams,
           wa_index1         TYPE indx,        " For Index details
           wa_index_key1     TYPE indx-srtfd VALUE 'PRG_TWO',
           i_fieldcat        TYPE slis_t_fieldcat_alv,
           wa_fieldcat       LIKE LINE OF i_fieldcat.
            CONSTANTS DECLARATION                                        *
    CONSTANTS :
             c_a(1) TYPE c VALUE 'A',
             c_m(1) TYPE c VALUE 'M',
             c_l(1) TYPE c VALUE 'L',
             c_c(1) TYPE c VALUE 'C',
             c_zfdr(4) TYPE c VALUE 'ZFDR',
             c_x(1)    TYPE c VALUE 'X',
             c_locl(4) TYPE c VALUE 'LOCL', " Destination is LOCAL
             c_f(1)    TYPE c VALUE 'F',   " Job Status - Failed
             c_s(1)    TYPE c VALUE 'S',
             c_p(1)    TYPE c VALUE 'P'.
    SELECTION SCREEN PARAMETERS
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    START-OF-SELECTION.
    Before the export, fill the data fields before CLUSTR
      wa_index-aedat = sy-datum.
      wa_index-usera = sy-uname.
      EXPORT s_matnr
           TO DATABASE indx(st) FROM wa_index ID wa_index_key.
    To Open the Job for background processing
      PERFORM open_job.
    To get the print parameters
      PERFORM get_print_parameters.
    Submit the job in background
      PERFORM job_submit.
    Close the background job
      PERFORM job_close.
    This is the output screen with the buttons ********
    Create 3 buttons DISPLAY SPOOL, STATUS, JOBLOG
      SET PF-STATUS 'ZS001'.
      WRITE: / 'The program is submitted in Background'.
      WRITE: / 'Press DISPLAY SPOOL to see the spool'.
      WRITE: / 'Press STATUS to see the status of the background'.
    AT USER-COMMAND.
    If user presses the 'BACK' button
      IF sy-ucomm = 'BAK'.
        IF  wa_jobhead-status = c_f OR
            wa_jobhead-status = c_a.
          LEAVE TO SCREEN 0.
        ENDIF.
      ENDIF.
    If the user presses the 'DISPLAY SPOOL' Button
      IF sy-ucomm = 'DISPLAY'.
        PERFORM display_spool.
      ENDIF.
    If the user presses the 'JOB STATUS' Button
      IF sy-ucomm = 'STATUS'.
        PERFORM display_status.
      ENDIF.
    If the user presses the 'JOB LOG' Button
      IF sy-ucomm = 'JOBLOG'.
        PERFORM display_job_log.
      ENDIF.
    *&      Form  open_job
          text
    -->  p1        text
    <--  p2        text
    FORM open_job .
    This is to Create a new job which is to be submitted in background to
    process sales order/delivery/invoice
    Here we would get a unique id ( Jobcount ) which identifies our job
    along with the job name which we have assigned to our job
      CONCATENATE sy-uname
                  sy-datum
                  sy-uzeit
                          INTO w_jobname .  " Assign unique jobname
      CALL FUNCTION 'JOB_OPEN'
       EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
        jobname                = w_jobname
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
      IMPORTING
       jobcount                = w_jobcount
    CHANGING
      RET                    =
    EXCEPTIONS
       cant_create_job        = 1
       invalid_job_data       = 2
       jobname_missing        = 3
       OTHERS                 = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " open_job
    *&      Form  get_print_parameters
          text
    -->  p1        text
    <--  p2        text
    FORM get_print_parameters .
      DATA : l_valid TYPE c.
    This is to get the Print Parameters for the job which is to be
    submitted in background to process sales order/delivery/invoice
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
      ARCHIVE_ID                   = C_CHAR_UNKNOWN
      ARCHIVE_INFO                 = C_CHAR_UNKNOWN
      ARCHIVE_MODE                 = C_CHAR_UNKNOWN
      ARCHIVE_TEXT                 = C_CHAR_UNKNOWN
      AR_OBJECT                    = C_CHAR_UNKNOWN
      ARCHIVE_REPORT               = C_CHAR_UNKNOWN
      AUTHORITY                    = C_CHAR_UNKNOWN
      COPIES                       = C_NUM3_UNKNOWN
      COVER_PAGE                   = C_CHAR_UNKNOWN
      DATA_SET                     = C_CHAR_UNKNOWN
      DEPARTMENT                   = C_CHAR_UNKNOWN
          destination                  = c_locl " LOCL
      EXPIRATION                   = C_NUM1_UNKNOWN
          immediately                  = space
      IN_ARCHIVE_PARAMETERS        = ' '
      IN_PARAMETERS                = ' '
      LAYOUT                       = C_CHAR_UNKNOWN
      LINE_COUNT                   = C_INT_UNKNOWN
      LINE_SIZE                    = C_INT_UNKNOWN
      LIST_NAME                    = C_CHAR_UNKNOWN
      LIST_TEXT                    = C_CHAR_UNKNOWN
      MODE                         = ' '
          new_list_id                  = c_x
      PROTECT_LIST                 = C_CHAR_UNKNOWN
          no_dialog                    = c_x
      RECEIVER                     = C_CHAR_UNKNOWN
      RELEASE                      = C_CHAR_UNKNOWN
      REPORT                       = C_CHAR_UNKNOWN
      SAP_COVER_PAGE               = C_CHAR_UNKNOWN
      HOST_COVER_PAGE              = C_CHAR_UNKNOWN
      PRIORITY                     = C_NUM1_UNKNOWN
      SAP_OBJECT                   = C_CHAR_UNKNOWN
      TYPE                         = C_CHAR_UNKNOWN
          user                         = sy-uname
      USE_OLD_LAYOUT               = ' '
      UC_DISPLAY_MODE              = C_CHAR_UNKNOWN
      DRAFT                        = C_CHAR_UNKNOWN
      ABAP_LIST                    = ' '
      USE_ARCHIVENAME_DEF          = ' '
      DEFAULT_SPOOL_SIZE           = C_CHAR_UNKNOWN
      PO_FAX_STORE                 = ' '
      NO_FRAMES                    = C_CHAR_UNKNOWN
       IMPORTING
      OUT_ARCHIVE_PARAMETERS       =
          out_parameters               = wa_params
       valid                        = l_valid
       EXCEPTIONS
         archive_info_not_found       = 1
         invalid_print_params         = 2
         invalid_archive_params       = 3
         OTHERS                       = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " get_print_parameters
    *&      Form  job_submit
          text
    -->  p1        text
    <--  p2        text
    FORM job_submit .
    The job which we have created & the unique id ( jobcount ) which we
    have got identifies our job. Hence those parameters are passed along
    with the name of the background program "ZPROGRAM_TWO"
    The job is submitted in background.
      CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
      ARCPARAMS                         =
        authcknam                         = sy-uname
      COMMANDNAME                       = ' '
      OPERATINGSYSTEM                   = ' '
      EXTPGM_NAME                       = ' '
      EXTPGM_PARAM                      = ' '
      EXTPGM_SET_TRACE_ON               = ' '
      EXTPGM_STDERR_IN_JOBLOG           = 'X'
      EXTPGM_STDOUT_IN_JOBLOG           = 'X'
      EXTPGM_SYSTEM                     = ' '
      EXTPGM_RFCDEST                    = ' '
      EXTPGM_WAIT_FOR_TERMINATION       = 'X'
        jobcount                          = w_jobcount
        jobname                           = w_jobname
      LANGUAGE                          = SY-LANGU
        priparams                         = wa_params
        report                            = 'ZPROGRAM_TWO'
      VARIANT                           = ' '
    IMPORTING
      STEP_NUMBER                       =
       EXCEPTIONS
         bad_priparams                     = 1
         bad_xpgflags                      = 2
         invalid_jobdata                   = 3
         jobname_missing                   = 4
         job_notex                         = 5
         job_submit_failed                 = 6
         lock_failed                       = 7
         program_missing                   = 8
         prog_abap_and_extpg_set           = 9
         OTHERS                            = 10
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " job_submit
    *&      Form  job_close
          text
    -->  p1        text
    <--  p2        text
    FORM job_close .
    Once the job is submitted in background then the job is closed
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
      AT_OPMODE                         = ' '
      AT_OPMODE_PERIODIC                = ' '
      CALENDAR_ID                       = ' '
      EVENT_ID                          = ' '
      EVENT_PARAM                       = ' '
      EVENT_PERIODIC                    = ' '
        jobcount                          = w_jobcount
        jobname                           = w_jobname
      LASTSTRTDT                        = NO_DATE
      LASTSTRTTM                        = NO_TIME
      PRDDAYS                           = 0
      PRDHOURS                          = 0
      PRDMINS                           = 0
      PRDMONTHS                         = 0
      PRDWEEKS                          = 0
      PREDJOB_CHECKSTAT                 = ' '
      PRED_JOBCOUNT                     = ' '
      PRED_JOBNAME                      = ' '
      SDLSTRTDT                         = NO_DATE
      SDLSTRTTM                         = NO_TIME
      STARTDATE_RESTRICTION             = BTC_PROCESS_ALWAYS
        strtimmed                         = c_x
      TARGETSYSTEM                      = ' '
      START_ON_WORKDAY_NOT_BEFORE       = SY-DATUM
      START_ON_WORKDAY_NR               = 0
      WORKDAY_COUNT_DIRECTION           = 0
      RECIPIENT_OBJ                     =
      TARGETSERVER                      = ' '
      DONT_RELEASE                      = ' '
      TARGETGROUP                       = ' '
      DIRECT_START                      =
    IMPORTING
      JOB_WAS_RELEASED                  =
    CHANGING
      RET                               =
       EXCEPTIONS
         cant_start_immediate              = 1
         invalid_startdate                 = 2
         jobname_missing                   = 3
         job_close_failed                  = 4
         job_nosteps                       = 5
         job_notex                         = 6
         lock_failed                       = 7
         invalid_target                    = 8
         OTHERS                            = 9
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " job_close
    *&      Form  display_spool
          text
    -->  p1        text
    <--  p2        text
    FORM display_spool .
    To Read the Job to get the spool details
      DATA : l_rqident TYPE tsp01-rqident, " Spool Number
             l_spoolno TYPE tsp01_sp0r-rqid_char.
      CLEAR : l_rqident,
              w_lsind,
              wa_jobsteplist.
      REFRESH : i_jobsteplist.
      SET PF-STATUS 'ZAR02'.
    Get the Spool Number
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Read the Job Step list to get the spool number
      READ TABLE i_jobsteplist INTO wa_jobsteplist INDEX 1.
      CHECK wa_jobsteplist-listident <> space.
    Spool Number
      l_rqident = wa_jobsteplist-listident.
      MOVE l_rqident TO l_spoolno.
    Check the spool in TSP01
      SELECT SINGLE * FROM tsp01 WHERE rqident = l_rqident.
      IF  sy-subrc = 0.
        LEAVE TO LIST-PROCESSING.
        CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
          EXPORTING
            spoolid       = l_spoolno
        IMPORTING
          RC            =
          STATUS        =
        PERFORM show_alv.
      ENDIF.
      w_lsind = sy-lsind.
      IF sy-lsind GE 19.
        sy-lsind = 1.
      ENDIF.
    ENDFORM.                    " display_spool
    *&      Form  show_alv
          text
    -->  p1        text
    <--  p2        text
    FORM show_alv .
    Before the import, fill the data fields before CLUSTR.
      wa_index1-aedat = sy-datum.
      wa_index1-usera = sy-uname.
    To Import the selection screen data from Calling Program
      IMPORT i_mara
      FROM DATABASE indx(st) ID wa_index_key1 TO wa_index1.
      FREE MEMORY ID wa_index_key1.
    This prepares the field-catalog for ALV.
      PERFORM prepare_fieldcatalog.
    This displays the output in  ALV format .
      PERFORM display_alv.
    ENDFORM.                    " show_alv
    *&      Form  display_status
          text
    -->  p1        text
    <--  p2        text
    FORM display_status .
    To Display the STATUS of the JOB which is exectued in background
      CLEAR : wa_jobsteplist.
      REFRESH : i_jobsteplist.
      WRITE:/ 'DISPLAYING JOB STATUS'.
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / 'Scheduled'.
        WHEN 'R'. WRITE: / 'Released'.
        WHEN 'F'. WRITE: / 'Completed'.
        WHEN 'A'. WRITE: / 'Cancelled'.
        WHEN OTHERS.
      ENDCASE.
      IF sy-lsind GE 19.
        sy-lsind = 1.
      ENDIF.
    ENDFORM.                    " display_status
    *&      Form  display_job_log
          text
    -->  p1        text
    <--  p2        text
    FORM display_job_log .
    To display the log of the background program
      LEAVE TO LIST-PROCESSING.
      CALL FUNCTION 'BP_JOBLOG_SHOW_SM37B'
        EXPORTING
          client                    = sy-mandt
          jobcount                  = w_jobcount
          joblogid                  = ' '
          jobname                   = w_jobname
        EXCEPTIONS
          error_reading_jobdata     = 1
          error_reading_joblog_data = 2
          jobcount_missing          = 3
          joblog_does_not_exist     = 4
          joblog_is_empty           = 5
          joblog_show_canceled      = 6
          jobname_missing           = 7
          job_does_not_exist        = 8
          no_joblog_there_yet       = 9
          no_show_privilege_given   = 10
          OTHERS                    = 11.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " display_job_log
    *&      Form  prepare_fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_fieldcatalog .
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'MATNR'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = 'Material no.'.
      wa_fieldcat-outputlen    = '18'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERSDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = 'Creation date'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERNAM'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = 'Name of Person'.
      wa_fieldcat-outputlen    = '10'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'LAEDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-reptext_ddic = ' Last Change'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
    ENDFORM.                    " prepare_fieldcatalog
    *&      Form  display_alv
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv .
    Call ABAP List Viewer (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          it_fieldcat  = i_fieldcat
        tables
          t_outtab     = i_mara.
    ENDFORM.                    " display_alv
    •     ZPROGRAM_TWO: This is the 2nd program which would be called from program ZPROGRAM_ONE.
    *& Report  ZPROGRAM_TWO                                                *
    REPORT  zprogram_two                            .
    PRASHANT PATIL
    TABLES : mara.
    TYPE-POOLS:slis.
    TYPES : BEGIN OF t_mara,
              matnr   TYPE mara-matnr,
              ersda   TYPE mara-ersda,
              ernam   TYPE mara-ernam,
              laeda   TYPE mara-laeda,
            END OF t_mara.
    DATA : i_mara        TYPE STANDARD TABLE OF t_mara,
           wa_mara       TYPE t_mara,
           wa_index      TYPE indx,        " For Index details
           wa_index_key  TYPE indx-srtfd VALUE 'PRG_ONE',
           wa_index1     TYPE indx,        " For Index details
           wa_index_key1 TYPE indx-srtfd VALUE 'PRG_TWO',
           i_fieldcat        TYPE slis_t_fieldcat_alv,
           wa_fieldcat       LIKE LINE OF i_fieldcat.
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    Before the import, fill the data fields before CLUSTR.
    wa_index-aedat = sy-datum.
    wa_index-usera = sy-uname.
    To Import the selection screen data from Calling Program
    IMPORT s_matnr
    FROM DATABASE indx(st) ID wa_index_key TO wa_index.
    FREE MEMORY ID wa_index_key.
    SELECT matnr
           ersda
           ernam
           laeda
           FROM mara
           INTO TABLE i_mara
           WHERE matnr IN s_matnr.
    PERFORM prepare_fieldcatalog.
    PERFORM display_alv.
    Before the export, fill the data fields before CLUSTR
    wa_index1-aedat = sy-datum.
    wa_index1-usera = sy-uname.
    EXPORT i_mara
    TO DATABASE indx(st) FROM wa_index1 ID wa_index_key1.
    *&      Form  prepare_fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_fieldcatalog .
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'MATNR'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-outputlen    = '18'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERSDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'ERNAM'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-outputlen    = '10'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'LAEDA'.
      wa_fieldcat-tabname      = 'I_MARA'.
      wa_fieldcat-outputlen    = '10'.
      APPEND  wa_fieldcat TO i_fieldcat.
    ENDFORM.                    " prepare_fieldcatalog
    *&      Form  display_alv
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv .
    Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat = i_fieldcat
        TABLES
          t_outtab    = i_mara.
    ENDFORM.                    " display_alv
    its possible to display ALV Grid using OO ALV. Following code can be used instead of FM.
    In the PBO, add following code
    SET PF-STATUS 'ZSTAT'.
    If program is executed in background
    CALL METHOD cl_gui_alv_grid=>offline
    RECEIVING
    e_offline = off.
    IF off IS INITIAL.
    IF container1 IS INITIAL.
    CREATE OBJECT container1
    EXPORTING
    container_name = 'CC_ALV1' .
    ENDIF.
    ENDIF.
    CREATE OBJECT g_grid1
    EXPORTING
    i_parent = container1.
    CALL METHOD g_grid1->set_table_for_first_display
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    I_STRUCTURE_NAME =
    IS_VARIANT =
    i_save = 'A'
    i_default = ' '
    is_layout =
    is_print =
    IT_SPECIAL_GROUPS =
    it_toolbar_excluding =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    it_outtab = i_output
    it_fieldcatalog = i_fieldcatalog
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    with regards,
    Hema.
    pls give points if helpful.

  • When the combobox is rendered all the values displayed look like [object Object].

    I wasn't sure where to post this so please forgive me.
    I am trying to populate a combobox with a series of values
    returned from a Coldfusion method that retrives a resault froma
    database. Basically all the data from a table of staff.
    <cffunction name="getUsers" access="remote"
    returntype="array">
    <cfquery name="q" datasource="#datasource#">
    SELECT *
    FROM STAFF_CHARTS_STAFF_TEMP
    </cfquery>
    <cfset aRecordset= querytoarray(q)>
    <cfset flash.result=aRecordset>
    <cfreturn flash.result>
    </cffunction>
    <cffunction name="querytoarray" returntype="array"
    output="No">
    <cfargument name="q" required="Yes" type="query">
    <cfset var aTmp = arraynew(1)>
    <cfif q.recordcount>
    <cfloop query="q">
    <cfset stTmp = structNew()>
    <cfloop list="#lcase(q.columnlist)#" index="col">
    <cfset stTmp[col] = q[col][currentRow]>
    </cfloop>
    <cfset arrayAppend(aTmp,stTmp)>
    </cfloop>
    <cfelse>
    <cfset stTmp = structNew()>
    <cfloop list="#lcase(q.columnlist)#" index="col">
    <cfset stTmp[col] = "">
    </cfloop>
    <cfset arrayAppend(aTmp,stTmp)>
    </cfif>
    <cfreturn aTmp>
    </cffunction>
    The result from a call of CF method getUsers is set as the
    data provider to ComboBox with id = "cb"
    <mx:RemoteObject
    id="myService"
    destination="ColdFusion"
    source="staff_ratings.staff_Ratings-debug.staff"
    showBusyCursor="true">
    <mx:method name="getUsers" result="handleResult(event)"
    fault="Alert.show(event.fault.message)"/>
    </mx:RemoteObject>
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    [Bindable]
    public var sResult:Array;
    public function handleResult(event:ResultEvent):void{
    sResult=event.result as Array;
    cb.dataProvider=sResult;
    ]]>
    </mx:Script>
    However when the combobox is rendered all the values
    displayed look like [object Object].
    I think the problem is that the result is a array of arrays
    so I need to find away to ectract a particular colun of data into
    the combobox
    How do I fix this?

    This is what I did for a single field.
    If you were wanting the to have muliple fields in the
    dropdown, I would concatenate them in the query.
    something like
    select fname + ' ' + lname + ' ' + anotherfield as tech from
    dbo.table
    <cffunction name="getTech" output="no" access="remote"
    returntype="query">
    <cfset var qTech="">
    <cfquery name="qTech" datasource="datasource">
    select tech
    from dbo.table
    group by tech
    order by tech
    </cfquery>
    <cfreturn qTech>
    </cffunction>
    <mx:RemoteObject
    id="dataManager"
    showBusyCursor="true"
    destination="ColdFusion"
    source="cust.components.cfgenerated.Records">
    <mx:method name="getMasterQuery"
    result="getMasterQuery_result(event)" fault="server_fault(event)"
    />
    <mx:method name="deleteItem"
    result="deleteItem_result(event)" fault="server_fault(event)" />
    </mx:RemoteObject>
    <mx:ComboBox id="TECH"
    dataProvider="{dataManager.getTech.lastResult}" labelField="tech"
    />

  • How to display List of Members

    Hi,<BR><BR>I would like to verify a calc script to check whether it return correct members,<BR>for example:<BR><BR>==============<BR>FIX(@REMOVE(@DESCENDANTS("TOTALOPERINCOME_05",0), @LIST(@UDA("GL Account", "TCACCOUNT"))))<BR><BR>ENDFIX<BR>==============<BR><BR>Can anyone advise how to display List of members from the above selection?<BR>The objective is to select level 0 descendants of "TOTALOPERINCOME_05", and remove the members if they have "TCACCOUNT" UDA.<BR><BR><BR>Thanks,<BR><BR>Norliansyah

    1) The log file is woefully inadequate for validating a list of more than a dozen or so members.<BR><BR>2) Creating a temporary database or application for this is like going from Dallas to Fort Worth by way of India.<BR><BR>3) Neither of the above check your syntax, only the selected elements.<BR><BR>Using member select: you have to rebuild the logic by using subset functionality, but you can both preview the list and generate the members in a useable form (although like I said, it doesn't check your syntax, just the functionality).<BR><BR>Using report generation: you have to replace the @relative with dimbot, and again it only validates the functionality if you successfully re-design the logic.<BR><BR>Overall, I believe the member select (using subset selection) is the quickest, easiest, and most useful.<BR><BR>-Doug.

  • Reference object from function?

    I still can't get a hold of how in flash you're supposed to
    reference objects in the display list.
    I have created a main container. Placed other containers
    inside that will act as layers. Then I've placed items inside those
    layers to animate using TweenLite.
    Everything builds correctly but when I call my startAnimation
    function it has no idea about the movie clips I'm trying to
    animate. I gave them names during the addChild process so why
    doesn't it work?
    root1( main Timeline)
    mainStage ( object mainStage)
    ballLayer ( object ballLayer)
    basketball_mc ( object BasketballMC)
    I added the basketball from the libraray and gave it a .name
    of basketball_mc. During my animation function I'm trying to just
    say:
    Thanks!

    >> root1( main Timeline)
    mainStage ( object mainStage)
    ballLayer ( object ballLayer)
    basketball_mc ( object BasketballMC)
    If I understand, I think you could do:
    TweenMax.to(root1.mainStage.ballLayer.basketball_mc,
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Displaying value of Object type

    Hi All,
    I have created one type as Object and I am trying to display the values available in object type for debugging purpose. Please assist me to display the contents of object type.
    Thanks in Advance.
    Regards,
    Venkatesh S

    vivekan wrote:
    I have created one type as Object and I am trying to display the values available in object type for debugging purpose. Please assist me to display the contents of object type.You can do this statically or dynamically.
    The static approach would be to add a DebugDump() method to the object type class - and code this method to display a "debug dump" (via DBMS_OUTPUT for example) of the current instantiated object. Of course, should the class change (new attributes added for example), this DebugDump() method has to be updated.
    The dynamic method is more flexible - but requires a copy of the object to be created for the dynamic code to use and "dump".
    As the static method is pretty straightforward, I'm only providing a basic example of the dynamic method.
    // create a function that generates a PL/SQL anonymous code block that accepts the
    // object to dump as bind variable and the display the object's attributes
    SQL> create or replace function GenerateDumpCode( typeName varchar2 ) return varchar2 is
      2          LF_INDENT       constant varchar2(10) default chr(10)||chr(9);
      3          LF              constant varchar2(10) default chr(10);
      4          type TAttrList is table of user_type_attrs.attr_name%Type;
      5          type TAttrTypeList is table of user_type_attrs.attr_type_name%Type;
      6          attrName        TAttrList;
      7          attrType        TAttrTypeList;
      8          plCode          varchar2(32767);
      9  begin
    10          select
    11                  a.attr_name, a.attr_type_name
    12                          bulk collect into
    13                  attrName, attrType
    14          from    user_type_attrs a
    15          where   a.type_name = typeName
    16          order by
    17                  a.attr_no;
    18 
    19          plCode :=
    20  'declare
    21          obj '||typeName||';
    22 
    23          procedure W( line varchar2 ) is
    24          begin
    25                  DBMS_OUTPUT.put_line( line );
    26          end;
    27  begin
    28          obj := :var1;
    29  ';
    30 
    31          for i in 1..attrName.Count loop
    32                  plCode := plCode ||LF_INDENT|| 'W( ''Attribute '||attrName(i)||'=''||';
    33                  case attrType(i)
    34                          when 'NUMBER' then plCode := plCode || 'to_char(obj.'||attrName(i)||') );';
    35                          when 'INTEGER' then plCode := plCode || 'to_char(obj.'||attrName(i)||') );';
    36                          when 'VARCHAR2' then plCode := plCode || 'obj.'||attrName(i)||' );';
    37                          when 'DATE' then plCode := plCode || 'to_date(obj.'||attrName(i)||',''yyyy/mm/dd hh24:mi:ss'') );';
    38                  else
    39                          plCode := plCode || '''data type '||attrType(i)||': value not displayed.'');';
    40 
    41                  end case;
    42          end loop;
    43 
    44          plCode := plCode ||LF|| 'end;';
    45 
    46          return( plCode );
    47  end;
    48  /
    Function created.
    // we need a sample object type/class for, so here's a basic one
    SQL> create or replace type TFunkyFoo is object(
      2          day             date,
      3          empID           integer,
      4          empName         varchar2(20),
      5          contract        clob
      6  );
      7  /
    Type created.
    // the dynamic code block that the function will generate looks as follows:
    SQL> select GenerateDumpCode( 'TFUNKYFOO' ) as PLSQL_CODE from dual;
    PLSQL_CODE
    declare
            obj TFUNKYFOO;
            procedure W( line varchar2 ) is
            begin
                    DBMS_OUTPUT.put_line( line );
            end;
    begin
            obj := :var1;
            W( 'Attribute DAY='||to_date(obj.DAY,'yyyy/mm/dd hh24:mi:ss') );
            W( 'Attribute EMPID='||to_char(obj.EMPID) );
            W( 'Attribute EMPNAME='||obj.EMPNAME );
            W( 'Attribute CONTRACT='||'data type CLOB: value not displayed.');
    end;
    // using the function to dynamically display an object's attributes
    SQL> declare
      2          foo TFunkyFoo;
      3  begin
      4          foo := new TFunkyFoo( sysdate, 100, 'John Smith', null );
      5          execute immediate
      6                  GenerateDumpCode( 'TFUNKYFOO' )
      7          using   foo;
      8  end;
      9  /
    Attribute DAY=2012-08-30 14:48:35
    Attribute EMPID=100
    Attribute EMPNAME=John Smith
    Attribute CONTRACT=data type CLOB: value not displayed.
    PL/SQL procedure successfully completed.
    SQL>

  • Loading the Display List partially while runtime

    Happy Christmas!!
    How do I manage that, while the movie starts, some parts of the Display List are "hold in the backhand" and get loaded when I decide that they should.
    Can I only do that via external SWF-Files? Further question: Is it possible to stream the files, by calculating the download speed and starting the movie when I want it to do, or is Flash doing that automatically?
    Thank you very much.

    being a part of the display list me
    rely means they will not be redrawn if htey are not on the list and nor will their events be dispatched up through the display list.
    this does not mean if they are not onthe list they do not load.
    loading a movieClip is something that you must enforce and watch over.
    var ldr:Loader= new Loader()    
         ldr.addEventListner(Event.EVENT_COMPLETE,onComplete)
         ldr.load(new URLRequest('external.swf'))
    function onComplete(event:Event){
    //this fires when your swf has been loaded.  at this point you can add it to the display List
    addChild(event.target)
    event.target.removeEventListener(Event.EVENT_COMPLETE,onComplete)
    this wil add the loaderObject which holds the swf to the stage.
    if you have 10 external movies and want to load all 10 before adding any of them to the displayList you can do something like this
    var arrayOfMovieClipsToDisplay:Array=new Array()
    var counter:int=0
    var totalLoads:int=5
    var swfsToLoadAr:Array=['external1.swf','external2.swf',external3.swf',external4.swf',externa l5.swf']
    for(var i=0;i<totalLoads;i++){
    var ldr:Loader= new Loader()    
         ldr.addEventListner(Event.EVENT_COMPLETE,onComplete)
         ldr.load(new URLRequest(swfsToLoadAr[i]))
    function onComplete(event:Event){
    //this fires when your swf has been loaded.  at this point you can add it to the array
    arrayOfMovieClipsToDisplay.push(event.target)
    checkLoads()
    function checkLoads(){
    if(counter<totalLoads){
    counter++
    }else{
    for each(var ldr:Loader in arrayOfMovieClipsToDisplay){
    addChild(mc)

Maybe you are looking for

  • H2 in HD PLEASE!!!!

    Is there an update as to when FiOS will include H2 in their package? All other major providers include it and I feel left out. History just isn't cutting it anymore with all their reality content. 

  • How To make More smiles on skype

    skype emo for exmple   (rock)  , (Smoking) , (cat) , (durnk) (emo) (football)   Chat room  , Pakistani chat rooms  , chat room  Yahoo Chat Rooms

  • Steps to install my dell vostro 1710, where to put them in wiki?

    Hi All, I'm planning to reinstall my dell vostro 1710, and I would like to document the steps I have taken to install Arch on it. What's the best place for it in the wiki? I'm thinking about this page: https://wiki.archlinux.org/index.php/Ca - Englis

  • There is a problem with the font size of the itouch 4.

    I was given a new ipod touch gen4th (ios 4.3.5) by the Apple authorized repair centre in Hong Kong three days ago. However. i found that there is a problem with the font size of it. It is different from my original one. Either the playlist or the wor

  • Not able to create the Confirmation.

    Hello All,    We are running on SRM 4.0(Classic Scenario).We have activated the WF 10400010 (No Approval WF for GR).But now the requisitioner creates a confirmation,it comes back to him for Approval when actually it should create a  GR in R/3.   When