Thematic Map from dynamic table

I found an example of creating a Thematic Map on http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_58/jdtut_11r2_58_4.html
But, it creates the map from a collection by dragging and dropping on a page.
My scenario is:
1. Search for data
2. Display Search Results in table on page
3. Then, I want to click a button that will transfer to another page where the data in #2 is plotted.
Any ideas, or examples that can help?
I am user Oracle ADF 11.1.2.3
Thanks

1. You can't bind in the table name. You would have to use string concatenation for the table_name. But should still use binds for the variable.
2. The syntax for execute immediate is not
execute immediate 'select into ...'but
execute immediate 'select ....' into variable.extending your example to include the table_name, you would end up with something like this:
set serveroutput on;
declare
myvar varchar2(200);
mytablename varchar2(30) := 'DUAL';
secondvar number;
begin
EXECUTE IMMEDIATE 'select 1 from '|| mytablename ||' where rownum = 1' into secondvar;  --using 'using' if binding in the variable for a predicate
dbms_output.put_line(secondvar);
end;Edited by: dombrooks on Sep 23, 2009 4:17 PM

Similar Messages

  • Extract data from Dynamic Table in Pdf

    Hi,all
    How can I extract data from dynamically created table(the rows are added/removed by user in offline scenario) in pdf form?
    Regards,
    Michael

    Hi Micheal,
         I have a scenario which is similar as yours.I want to extract table data from the offline form.when i extract data i am getting values only for first row of the table.Can u please guide me how to fetch the data for a table(this table also has dynamically increasing rows in offline).I need the solution urgently.Please help me on this.
    WIll reward points for sure.
    Thanks and Regards,
    Srividya.

  • Read fields from dynamic table

    Hello everyone,
    I'm a BW-guy with some ABAP background, but it has been a while since I've used field symbos. I'm writing an enhancement for a BI-extractor using a badi. This is the situation:
    I have a dynamic table <t_data> over which I need to loop to change data. The fields I need to change are in another table, t_fields. I've written the following code, but in <fieldname>, I get the value of temp instead of the value in <s_data>-fieldname.
        LOOP AT <t_data> INTO <s_data>.
          LOOP AT t_fields INTO s_fields.
            concatenate '<s_data>-' s_fields-fieldname into temp.
            ASSIGN temp TO <fieldname>.
          ENDLOOP.
        ENDLOOP.
    for example a possible result is:
    <fieldname> =  '<s_data>-calday' in stead of '01.01.2009'
    Can anyone tell me what I've been doing wrong? Your help is greatly appreciated.

    Hi,
    Please let me know if I am clear on this.
    You have two internal tables, itab1 and itab2. You would like to change the value of field (say fld1) in itab1. This fld1 value is available from fld in itab2.
    If this is the situation, following is the code.
    FIELD-SYMBOLS: <w_tab1> TYPE ty_tab1.
    DATA:                   w_tab2     TYPE  ty_tab2.
    LOOP AT itab1 ASSIGNING <w_tab1>.
      READ TABLE itab2 into w_tab2 WITH KEY
                                   fldkey = <w_tab1>-fldkey.
      IF sy-subrc EQ 0.
        <w_tab1>-fld1 = w_tab2-fld.
      ENDIF.
    ENDLOOP.
    This is it. Table itab1 will be changed.
    Let me know if this works or if your issue is different.
    Regards,
    Sourav
    Edited by: Sourav1233 on Jul 8, 2009 2:15 PM

  • Delete adjacent duplicates from dynamic table

    Hi all,
    How to do delete adjacent <tab> comparing f1 f2 f3 for a dynamic table.
    Thx in advance
    Edited by: Misha Denis on Feb 14, 2010 9:28 AM
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Feb 14, 2010 3:45 PM

    you can use a function   GET_COMPONENT_LIST to get all the fields' name  after the dynamic table generated. then you can use the field name in the statement "DELETE....COMPARE "
         CALL FUNCTION 'GET_COMPONENT_LIST'
             EXPORTING
               program          = SY-REPID
               fieldname        = THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE
             tables
               components       = ITAB
    LOOP AT ITAB.
    *ASSIGN THE ITAB-COMPNAME TO SOME VARIANTS:FIELD1,FIELD2,FIELD3.
    ENDLOOP. 
    SORT THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE BY FIELD1  FIELD2  FIELD3.
    DELETE ADJACENT DUPLICATES FROM THE_NAME_OF_THE_DYNAMIC_INTERNAL_TABLE COMPARING FIELD1 FIELD2 FIELD3.

  • How to Create file link from dynamic table.

    Howdy -
    I have MySQL database over PHP containing a simple table that lists a group of documents, including their file system address (contained within the site).
    I've successfully created a recordset showing this table, and attached that to a dynamic table on a .php page.  The display is correct, except I can't get the column contents to link to the document.  The column just shows the text (title) of the document.
    I've consulted article tn_15364 (http://kb2.adobe.com/cps/153/tn_15364.html), but that doesn't seem to work...
    Any thoughts would be appreciated.  I'm sure this is pretty simple, but I'm coming up snake eyes.
    Charles Andrews

    To clarify:
    My site has a folder where uploaded files (.doc, .xls, .pdf, etc.) are stored after having been uploaded by a user.  During this upload process, the location of these files is stored, along with other identifying data, in a simple database table.
    I have a dynamic table created in Dreamweaver that pulls from this database, listing the document name, etc. I would like the document name shown in a column to automatically link to the actual file so a user could just click on it and open the file.
    I hope I'm not making sound more complicated than it is -
    Thanks,
    CWA

  • Copying fields froma dynamic table

    i have a dyanmic table say t1. now i have craeted another dynamic table say t2 with some fields in common with table t1. i won't be knowing which fields are in common. the common fields will be stord in another table t3. now i need to copy the common fields from t1 to t2 after reading them from t3. how do i go about it???

    TYPES:
      BEGIN OF s_t3.
        INCLUDE TYPE A.
        INCLUDE TYPE B.
    TYPES:
      END OF s_t3.
    DATA:
      t1                TYPE TABLE OF A,
      t2                TYPE TABLE OF B,
      ls_t3            TYPE s_t3,
      t3                TYPE TABLE OF s_t3.
    FIELD-SYMBOLS:
      <fs_t1>        TYPE A,
      <fs_t2>        TYPE B.
    LOOP AT t1 ASSIGNING <fs_t1>.
      READ TABLE t2 ASSIGNING <fs_t2>
        WITH KEY
          [key_t2] = [key_t1].
      CHECK sy-subrc IS INITIAL.
      MOVE-CORRESPONDING <fs_t1> TO <ls_t3>.
      MOVE-CORRESPONDING <fs_t2> TO <ls_t3>.
      APPEND ls_t3 TO t3.
    ENDLOOP.

  • How to map from one table to another dependable on data from lookup?

    I'm new in warehouse builder and i wonder how to do something what is very easily done by sql..
    I want to map data from table_a to table_b, but not all rows - only those for which one of attributes in table_a have reference in table_c (is not null)...
    I suppose it should go somehow with lookup operator, but playing with it, I wasn't able to achieve goal..
    Thanks in advance for any help..

    Hi Zeljko,
    On of the easier ways (in my experience) of accomplishing this is to define a view which does a SELECT DISTINCT on table A and uses an EXISTS clause to exactly filter those records that you want to get into your target table (i.e. the ones that already have an occurrence in table C).
    And if performance is an issue, you could experiment with FIRST_ROWS hint or rownum=1 in the EXISTS clause.
    Cheers, Patrick

  • How to delete data from dynamic internal table

    Hi,
    I have dynamic internal table and I have some slection screen fields , using these selection screen fields
    (select -options), I have to filter the data? assigning will work with READ , but I have select options not the parametre,
    and also delete will not work for dynamic table..
    as we cannot use assigning with delete..
    So how to do this?
    and one more thing is , I cannot filter the data while selection( in select, I cannot filter the data-> as it's not coming directly from table, it's coming from buffer),
    so now after selection of data, I need to filter the data from dynamic table.
    Is there any way to do this?
    Regards,
    Mrunal

    Hi matt,
    I tried with below code as  you said. But I am getting dump. can you help?
    here is my piece of code.
    FIELD-SYMBOLS: <LS_DATA> type any,
                               <LT_DATA> TYPE table,
                                <L_FIELD> type any.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LS_DATA>.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LT_DATA>.
    LOOP AT <LT_DATA> ASSIGNING <LS_DATA>.
    ASSIGN COMPONENT 'BUKRS' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BUKRS.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ASSIGN COMPONENT 'BELNR' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BELNR.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ENDLOOP.
    and here is the description of my dump:->>>
    You attempted to access an unassigned field symbol
    (data segment 32772).
    This error may occur for any of the following reasons:
    - You address a typed field symbol before it is set using ASSIGN
    - You address a field symbol that points to a line in an internal table
      that has been deleted
    - You address a field symbol that had previously been reset using
      UNASSIGN, or that pointed to a local field that no longer exists
    - You address a global function interface parameter, even
      though the relevant function module is not active,
      that is it is not in the list of active calls. You can get the list
      of active calls from the this short dump.

  • Reading the Data from dynamically added rows of a table...

    Hi,
                  I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code).  I have to fech these data into an internal table. But I can read only the first row data..
                  Also While adding rows dynamically the same data is repeating for the consecutive rows..
                  I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
    1) How to solve repeatative data while adding rows..?
    2) How to read dynamically added row data during runtime into internal table..?
    Thanks,
    Surya.

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • Populate Final internal table from Dynamic internal table

    Hello,
    I have ti display data in ALV grid whose structure is fixed. I am dynamically selecting data iin an internal table.
    Now from this dynamic internal table, i need to populate my final internal table whose structurte is fixed.
    Please help.
    Rgds,
    Himanshu

    Hello Himanshu,
    When you say dynamic internal table there are two things one is the actual structure and other one is field table that holds information for all the fields used to create dynamic internal table.
    No if you want to move data from dynamic table to fixed internal table then you can try as follows:
    1.
    field-symbols <field_name> TYPE C.
    field-symbols <field_value> TYPE C.
    Now you either use
    LOOP AT fields_itab.
    ASSIGN fields_itab-fieldname to <field_name>.
    ASSIGN COMPONENT <field_name> OF STRUCTURE <structure_name> TO <field_value>
    Now you move value from <field_value> to required field in fixed internal table.
    i.e.
    itab-fieldname = <field_value>.
    Other way to do this:
    If you fields order is constant then you can also use index in assign component statement.
    do <no_of_fields> times.
        ASSIGN COMPONENT sy-index OF STRUCTURE <structure_name> TO <field_value>.
    rest is same as first method.
    Hope this help!
    I have given sudo code and you need to work on it little.
    Thanks,
    Augustin.

  • Retreival of Dynamic Table Datas from Adobe to WebDynpro- ABAP

    Dear Friends,
    I have Developed an application in Webdynpro-ABAP, where i have integrated Adobe form in the webdynpro.
    In the adobe form, dynamic table is there where we can add and delete the rows at runtime.
    I am trying to retreive the table datas at runtime from the adobe.
    I can able to retreive only the first record from the table, even if the table contain more than one rows.
    As per the below code i have retreived the count, where it is showing the count as 1.
    using the method get_static_attributes_table i am trying to fetch all the records, but i can able to retreive only the first record.
    lo_nd_zsm_fm_transport_tra = wd_context->get_child_node( name = wd_this->wdctx_zsm_fm_transport_tra ).
      lo_nd_tr_details_i = lo_nd_zsm_fm_transport_tra->get_child_node( name = wd_this->wdctx_tr_details_i ).
    count = lo_nd_tr_details_i->GET_ELEMENT_COUNT( ).
    elems_bank_table = lo_nd_tr_details_i->get_elements( ).
    lo_nd_tr_details_i->get_static_attributes_table(
      importing
        table = ls_tr_details_i ).
    Even Cardinality i have maintained as 1.N for the node.
    Kindly provide me the solution.
    Thanks and Regards,
    Sathish,,

    Hi, I have solution for read data from dynamic table and add these added row to WD4A context (and then save them to DB) (in ONACTIONPROCESS_SUBMIT event):
    DATA: l_fp TYPE REF TO if_fp.
    l_fp = cl_fp=>get_reference( ).
    DATA: l_pdfobj TYPE REF TO if_fp_pdf_object.
    l_pdfobj = l_fp->create_pdf_object( ).
    l_pdfobj->set_document( pdfdata = lv_pdfsource ).
    l_pdfobj->set_extractdata( ).
    l_pdfobj->execute( ).
    DATA: pdf_form_data TYPE xstring.
    l_pdfobj->get_data( IMPORTING formdata = pdf_form_data ).
    DATA: converter TYPE REF TO cl_abap_conv_in_ce, formxml TYPE string.
    Converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
    Converter->read( IMPORTING data = formxml ).
    TYPE-POOLS: ixml.
    DATA: l_ixml TYPE REF TO if_ixml.
    l_ixml = cl_ixml=>create( ).
    DATA: streamfactory TYPE REF TO if_ixml_stream_factory,
    istream TYPE REF TO if_ixml_istream.
    streamfactory = l_ixml->create_stream_factory( ).
    istream = streamfactory->create_istream_string( formxml ).
    DATA: document TYPE REF TO if_ixml_document.
    Document = l_ixml->create_document( ).
    DATA: parser TYPE REF TO if_ixml_parser.
    parser = l_ixml->create_parser( stream_factory = streamfactory
                                               istream = istream
                                               document = document ).
    Parser->parse( ).
    the code above allows you to read xml data from pdf file, then you need only to read xml and adding rows to your context:
    data : item type string.  DATA: nodechild TYPE REF TO if_ixml_node,
            Childschild TYPE REF TO if_ixml_node.
        data: num_of_children type i,
              x type i,
              y type i,
              num_of_attribute.
    node = document->find_from_name('ZAM_PROTSTROJF').
    num_of_children = node->num_children( ).
    nodechild = node->get_first_child( ).
    data: wa_strojdetail type ZAM_PROTSTROJF,
          wa_strojdetail_tab TYPE TABLE OF ZAM_PROTSTROJF.
    wa_strojdetail-docnum = ls_zam_protstroj-docnum.
    wa_strojdetail-bukrs = 'VVS'.
    wa_strojdetail-mandt = sy-mandt.
    y = 1.
    do Num_of_children times.
           num_of_attribute = nodechild->num_children( ).  " Childschild->num_children( )." Getting the number of attributes
           Childschild = nodechild->get_first_child( ).
           wa_strojdetail-itemnum  = y.
           x = 1.
           do num_of_attribute times.
              item = Childschild->GET_value( ).
              CASE x.
                WHEN 4.
                  wa_strojdetail-anln1 = item.
                WHEN 5.
                  wa_strojdetail-anln2 = item.
                WHEN 6.
                  wa_strojdetail-bubtr = item.
                WHEN 7.
                  wa_strojdetail-belnr = item.
              ENDCASE.
              Childschild = Childschild->get_next( ).
              x = x + 1.
          enddo.
          y = y + 1.
          APPEND wa_strojdetail to wa_strojdetail_tab.
          nodechild = nodechild->get_next( ).
    enddo.
    This is complete solution for adding rows in interactive forms and working with them in WD4A!
    Regards Jiri
    Edited by: Jiri Neuzil on Jun 10, 2009 8:13 AM
    Sorry for formatting, but I don't know, how to format text correctly on this site in plain text I have all text correctly formatted, but in preview....

  • Dynamic table name in an inner join - select statement

    Hi,
    Please can you let me know if is possible to use a Dynamic table name in an inner join?
    Something like the statement below? (It works in a simple select statement but not in an inner join)
    SELECT  *
         INTO CORRESPONDING FIELDS OF <t_itab>
          FROM <Dynamic table name> INNER JOIN pa0050 ON
          ( <Dynamic table name>pernr =  pa0050pernr )
           WHERE <Dynamic table name>~pernr = it_pernr-l_pernr
           AND pa0050~bdegr = f_bdegr.
    Any help would be apprecited very much.
    Thanks & Regards.

    Hi,
    Check this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm]
    [Re: accessing dynamic internal table's fields??;
    hope it'll help u.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jun 18, 2009 1:57 PM

  • Problem using DELETE ADJACENT DUPLICATES with dynamic table

    Hello All,
       In my program i have to delete duplicate records from dynamic table.
    I tried using  DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING <fieldname1> <fieldname2> but it fails in syntax check, then i tried like below:
      DATA string type string.
      string = '<fieldname1> <fieldname2>.........'.
      DELETE ADJACENT DUPLICATES FROM <DYN_TABLE> COMPARING (string).
    It also got failed at runtime.
    Please suggest how can i achieve this....
    Regards
    Munish Garg

    Hi,
    this code is worked truly.
    You can try this.
    Regards.
    DATA itab LIKE STANDARD TABLE OF mard.
    SELECT * FROM mard INTO TABLE itab UP TO 100 ROWS.
    * You define max number of the field that you need
    data : cmp01  TYPE string,
    cmp02 TYPE string,
    cmp03 TYPE string,
    cmp04 TYPE string,
    cmp05 TYPE string.
    * You fill the fields that you need, others is clear.
    cmp01  = 'MATNR'.
    cmp02 = 'WERKS'.
    CLEAR : cmp03,cmp04,cmp05.
    SORT itab BY (cmp01) (cmp02) (cmp03) (cmp04) (cmp05).
    DELETE ADJACENT DUPLICATES FROM itab COMPARING (cmp01) (cmp02) (cmp03)
    (cmp04) (cmp05).

  • Add null rows in WDDOINIT  for fetching data from dynamically added rows..

    Hi,,
    I have to fetch data from a dynamically added rows of a table.
    I have followed / gone through many forums but they ddnot mention how to add null rows in the initialization method..
    I am using WD Abap..
    Can anyone help how to bind null rows in WDDOINIT method..?
    Thanks,
    Surya

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • Dynamic Table & Workflow

    Hi, is there any way to access data from dynamic table in workbench?
    is there any data object for that?

    You will need to use an index into your xpath expression. The xpath expression builder does not do this for you, you've got to add it yourself.
    See this: http://livedocs.adobe.com/livecycle/8.2/wb_help/000262.html and other pages nearby.
    Howard
    http://www.avoka.com

Maybe you are looking for