ADF Dynamic type of input elements

Hi, I wonder if it is possible to create a form with dynamic input elements. In more details, imagine that I have a huge document repository. Documents are being inserted into that repository and they are separated by catalogs, profiles and properties. User must select catalog, then choose appropriate profile and then fill out all the properties of the document he is inserting. Some properties are dropdown menus, some date fields and others are plain text fields. My goal is to ease my GUI development with ADF, so can I somehow code oracle.adf.view.faces.model.CollectionModel to be used in ADF Table Component?
That is what I think:
In my jsf I will use some table:
<af:table var="p" value="#{myBean.requiredProperties}">
  <af:column>
    <af:outputText value="#{p.textLabel}"/>
  </af:column>
  <af:column>
    <????  value="#{p.inputElement}"/>
  </af:column>
</af:table>What may I use instead of ???? and how to code my method getInputElement() to return CoreInputText ,CoreSelectOneChoice or CoreSelectInputDate
Regards.
Sergei Emelianov

hi,
i had given one example it will help you
data: begin of itab_alv1 occurs 10,
          MAKTX like MAKT-MAKTX ,
          MATFI like MARA-MATFI ,
          MATNR like MARA-MATNR ,
          MFRPN like MARA-MFRPN ,
      END OF ITAB_ALV1.
type-pools: slis.
data: afield type slis_fieldcat_alv.
DATA: fieldcat type slis_t_fieldcat_alv.
clear afield.
afield-col_pos = 1 .
afield-fieldname = 'MAKTX'.
*afield-seltext = ''.
append afield to fieldcat.
afield-col_pos = 2 .
afield-fieldname = 'MATFI'.
*afield-seltext = ''.
append afield to fieldcat.
select * from mara.
   select * from makt where
         matnr = mara-matnr.
       itab_alv1-matnr = mara-matnr.
       itab_alv1-maktx = makt-maktx.
       append itab_alv1.
   endselect.
endselect.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       IT_FIELDCAT = fieldcat
    Tables
       t_outtab = itab_alv1.

Similar Messages

  • ADF Faces  - type of key element!

    Does anybody know What type of element that can be get by
    Set rowSet = selectionEvent.getSelectedKeys().getKeySet();
    or
    Set rowSet = treeTableEventType.getSelectionState().getKeySet();
    Iterator rowSetIterator = rowSet.iterator();
    in SelectionListener method

    Dear John,
    I think so
    but I get exception
    SEVERE: java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXTreeTable.broadcast(UIXTreeTable.java:318)
    When when Itry to cast Set element to Key type:
    Key k=(Key)rowSetIterator.next()

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • Can not select a PDF file in the file uploader window after clicking the Browse... button for a file type input element.

    After upgrading to 5 (this worked in 4) I can not select a PDF file in the File Upload dialog that appears when I click the Browse button next to an HTML file type input element. The specific HTML element source code has the attribute: ACCEPT="image/*". I can select image files such as jpg, png, tiff, etc. But not PDF. This worked great in Furefox 4 and works in the latest version of Safari.
    The HTML code for the form element is:
    INPUT TYPE="file" NAME="file_1" ACCEPT="image/*" SIZE=35
    The File Upload dialog lists all files with PDF extension as dimmed and not selectable in Firefox 5.
    Can you help?

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

  • How to use dynamic types: []

    Hello!
    I don't know to use dynamic types: []
    for example:
              double[] tmp = new double[2];
              ArrayList<double[]> tmp2= new ArrayList<double[]>();
              for(int i = 0; i<5; i++){
                   tmp[0] = i;
                   tmp[1] = i+1;
              tmp2.add(tmp);
    *Why all tmp2 members are similar to the last value of tmp?
    *How can I keep all the values from
              tmp[0] = 0;
              tmp[1] = 1;
    to
              tmp[0] = 4;
              tmp[1] = 5;
    in tmp2?
    Thanks!

    800512 wrote:
    I don't know to use dynamic types: []I'm going to take a punt here, and assume that you are talking about using a List as a dynamically extending array, in which case you need to learn about defining element types:ArrayList<double[]> tmp2= new ArrayList<double[]>();is wrong. You cannot put primitive types in angled brackets; only class or interface names. Therefore the proper definition is:ArrayList<Double[]> tmp2= ...
    *Why all tmp2 members are similar to the last value of tmp?Because you've only added one element to tmp2.
    *How can I keep all the values from...in tmp2?Look at your loop and write out on a piece of paper what you think it's doing. Hopefully that'll give you the answer.
    If you do indeed want each element in the List to contain a pair of values, you're going to have to work out some way of adding to your List once for every two values you're inputting. I suggest you think about that too.
    Winston

  • How to invoke a Web Service from PL/SQL with Complex Type as  input.

    Hello,
    I am trying to invoke a web service from PL/SQL using the UTL_DBWS package.
    The web service expects a complex type as input (defined below):
    <xs:complexType name="MsgType">
    <xs:sequence>
    <xs:element name="sender" type="xs:string"/>
    <xs:element name="messageId" type="xs:string"/>
    <xs:element name="messageType" type="xs:string"/>
    <xs:element name="dateSent" type="xs:date"/>
    </xs:sequence>
    </xs:complexType>
    How to construct input to this in PL/SQL Procedure?
    Has any body tried this before?
    An exmaple will be helpful.
    Thanks

    Dear,
    I have read your article, it is useful for me. But I cannot Apply to my case. Please kindly help me. Thank you.
    When running, the error occurs:
    1:39:31 Execution failed: ORA-20000: soapenv:Server.userException - org.xml.sax.SAXParseException: Attribute name &quot;password&quot; associated with an element type &quot;user&quot; must be followed by the &apos; = &apos; character.
    My webservice Url: http://abc.com.vn:81/axis/ABC_WS_TEST.jws?wsdl
    I make PL/SQL (similiar as your example)
    FUNCTION INVOKESENDMT
    RETURN VARCHAR2
    AS
    l_request soap_api.t_request;
    l_response soap_api.t_response;
    l_return VARCHAR2(32767);
    l_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_method VARCHAR2(32767);
    l_soap_action VARCHAR2(32767);
    l_result_name VARCHAR2(32767);
    p_zipcode VARCHAR2(160);
    BEGIN
    --p_zipcode:='''TEST'' ; ''TEST'';''84912187098'';''84912187098'';''0'';''8118'';''1'';''000001'';''ThuNghiem'';''''';
    p_zipcode:='TEST';
    -- Set proxy details if no direct net connection.
    --UTL_HTTP.set_proxy('myproxy:4480', NULL);
    --UTL_HTTP.set_persistent_conn_support(TRUE);
    -- Set proxy authentication if necessary.
    --soap_api.set_proxy_authentication(p_username => 'TEST',
    -- p_password => 'TEST');
    l_url := 'http://abc.com.vn:81/axis/ABC_WS_TEST.jws';
    l_namespace := 'xmlns="' || l_url || '"';
    l_method := 'sendMT';
    l_soap_action := l_url || '#sendMT';
    l_result_name := 'sendMTResponse';
    l_request := soap_api.new_request(p_method => l_method,
    p_namespace => l_namespace);
    soap_api.add_parameter(p_request => l_request,
    p_name => 'user password sender receiver chargedflag servicenumber messagetype messageid textcontent binarycontent',
    p_type => 'xsd:string',
    p_value => p_zipcode);
    l_response := soap_api.invoke(p_request => l_request,
    p_url => l_url,
    p_action => l_soap_action);
    l_return := soap_api.get_return_value(p_response => l_response,
    p_name => l_result_name,
    p_namespace => l_namespace);
    RETURN l_return;
    END;

  • Can I create a dynamic number of inputs during runtime?

    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID               NUMBER                (This will be the primary key)
    TBL_FILE_NAME          VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID               NUMBER               (This will be the primary key)
    TBL_FILE_ID               NUMBER                (This will be the forign key to the file table)
    TBL_META_COLUMN     VARCHAR2(30)     (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE          VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    Other things to note is that we would like this to be on a single page.
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.

    Welcome to the Oracle Forums !
    >
    Can I create a dynamic number of inputs during runtime?
    Oracle 11g
    Application Express 4.0.2.00.06
    Here is my problem:
    We have a table that holds metadata about files (hardcopy or softcopy files).
    We expect we may need more columns in the table at some point and don't want to modify the table or the application.
    So in order to do this I would like to create:
    A table called TBL_FILE with the columns:
    TBL_FILE_ID NUMBER (This will be the primary key)
    TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
    A second table will be called TBL_FILE_META with the columns:
    TBL_META_ID NUMBER (This will be the primary key)
    TBL_FILE_ID NUMBER (This will be the forign key to the file table)
    TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
    So a person can have as much meta data on the file with out having to add columns to the table.
    The problem is how can I allow users to add as much data as they like with out having to re develop the page.
    >
    Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
    >
    Other things to note is that we would like this to be on a single page.
    >
    The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
    >
    I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
    however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
    >
    If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
    >
    So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
    >
    Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
    >
    Any idea's how I could accomplish this? Is there a better way of doing this?
    Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
    I found this method when looking at Oracles Workflow tables.
    >
    I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
    Regards,

  • How to force focus last focused HTML input element when going back in history with backspace?

    SUMMARY: I am a Firefox user with HTML knowledge. I want to be able to configure Firefox to behave in a special manner when I hit backspace. It's something that Firefox already does, BUT NOT ALWAYS. I don't know why it behaves differently in different situations for no apparent reason. I want to be able to configure firefox to ALWAYS behave in the manner I want to. Read below for the precise description.
    When I fill a FORM in a page, wether POST or GET, and press ENTER, it obviously acts as expected: submits the data and brings me to a new page. When I get to the new page, and I press BACKSPACE, Firefox behaves in sometimes like TYPE 1 and sometimes like TYPE 2 (see below), and I can't predict which one he will choose. I want to be able to configure it to behave ALWAYS like TYPE 2.
    TYPE 1 - Firefox reloads the previous page, as if I just entered it for the first time.
    TYPE 2 - Firefox brings me back to the exact same page view I had before pressing ENTER to submit the FORM.
    2.1 - It doesn't reload the page;
    2.2 - It places the page in the same scrolled position I was before (for example, if I scrolled to the bottom of the page to fill the FORM and press enter, after pressing backspace it brings me to the bottom of the page again;
    2.3 - It automatically focus the HTML input element I last typed (the element that was focused at the very moment I pressed ENTER to submit the FORM).
    So, I want to be able to configure Firefox for it to ALWAYS BEHAVE LIKE TYPE 2 whenever I fill a HTML FORM, press ENTER and press backspace after going to the new page. All three details I gave are important. Remember that I've already experienced TYPE 2 in previous versions of Firefox, I just wish to FORCE IT to behave like that ALWAYS (because for no apparent reason, sometimes it behaves like TYPE 1 instead).
    Please let me know if that's possible, and if not, I would really THANK YOU ALL FOREVER if you add this feature to the next version.

    It's set to true.
    I saw the add on you suggested, but it does not fulfill my needs.
    I like the behavior exactly as I said because, after submitting the form, I want to be able to look something in the new page and quickly get back to the form, change the text I wrote in the input element and submit it again, in a matter of one or two seconds only...
    I was able to do that whenever firefox behaved like TYPE 2 (explained above)...
    Thanks for the reply but didn't solve my problem yet...

  • ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence

    Hi ,
    I executed the below query in database version 11.2.0.3.0, it throws the error like "ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence"
    with PAYMENT_XML as (
          select XMLTYPE(
            '<Document>
            <pain.002.001.02>
                <GrpHdr>
                      <MsgId>CITIBANK/20091204-PSR/4274</MsgId>
                      <CreDtTm>2009-12-04T09:36:00</CreDtTm>
               </GrpHdr>
                <OrgnlGrpInfAndSts>
                <OrgnlMsgId>10002</OrgnlMsgId>
                <OrgnlMsgNmId>pain.001.001.02</OrgnlMsgNmId>
                <OrgnlNbOfTxs>20</OrgnlNbOfTxs>
                <OrgnlCtrlSum>7000</OrgnlCtrlSum>
                <GrpSts>PART</GrpSts>
                <StsRsnInf>
                  <AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
                </StsRsnInf>
              </OrgnlGrpInfAndSts>
              <OrgnlGrpInfAndSts>
                <OrgnlMsgId>10001</OrgnlMsgId>
                <OrgnlMsgNmId>pain.001.001.02</OrgnlMsgNmId>
                <OrgnlNbOfTxs>202</OrgnlNbOfTxs>
                <OrgnlCtrlSum>9000</OrgnlCtrlSum>
                <GrpSts>PART</GrpSts>
                <StsRsnInf>
                  <AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
                  <AddtlStsRsnInf>Formated</AddtlStsRsnInf>
                </StsRsnInf>
              </OrgnlGrpInfAndSts>
          </pain.002.001.02>
      </Document>') as OBJECT_VALUE1
       from dual
      select R.*
      from PAYMENT_XML,
           XMLTABLE(
           'for $COMP in $COMPANY/Document/pain.002.001.02
              for $DEPT at $DEPTIDX in $COMP/OrgnlGrpInfAndSts
               return <RESULT>
                        <NAME>{fn:data($COMP/GrpHdr/MsgId)}</NAME>
                          $DEPT/OrgnlMsgId,
                          $DEPT/OrgnlNbOfTxs,
                          $DEPT/OrgnlCtrlSum,
                          $DEPT/GrpSts,
                          $DEPT/StsRsnInf/AddtlStsRsnInf
                      </RESULT>'
           passing OBJECT_VALUE1 as "COMPANY"
           columns
             NAME            VARCHAR(10)  path 'NAME',
             OrgnlMsgId      VARCHAR2(24) path 'OrgnlMsgId',
             ORGNLNBOFTXS    VARCHAR2(24) path 'OrgnlNbOfTxs',
             ORGNLCTRLSUM    NUMBER       path 'OrgnlCtrlSum',
             GRPSTS          VARCHAR2(24) path 'GrpSts',
             ADDTLSTSRSNINF  VARCHAR2(40) path 'AddtlStsRsnInf'
         ) r
    Errors comes this part :
                <StsRsnInf>
                  <AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
                  <AddtlStsRsnInf>Formated</AddtlStsRsnInf>
                </StsRsnInf>
    if i put the single statement for this xml element <AddtlStsRsnInf> it works fine if more than one element comes it raised the error.
    i want the output like the below format : want to merge the element value with (, comma)  delimiter with single coloumn value
    NAME
    ORGNLMSGID
    ORGNLNBOFTXS
    ORGNLCTRLSUM
    GRPSTS
    ADDTLSTSRSNINF
    CITIBANK/2
    10002
    20
    7,000
    PART
    ACK - FILE PARTIALLY SUCCESSFUL
    CITIBANK/2
    10001
    202
    9,000
    PART
    ACK - FILE PARTIALLY SUCCESSFUL, Formated
    Thanks is advance for reply
    Thanks,
    Chidam

    Try with XQuery string-join() function :
    ADDTLSTSRSNINF  VARCHAR2(40) path 'string-join(AddtlStsRsnInf, ", ")'

  • Dynamic enabling of input fields via radio btn in report selection screen?

    Hi there!
    I was wondering whether one can dynamically enable/disable input fields on a selection screen of a report-program.
    Or is this only possible for selection screens in dynpro-programs?
    If possible for reports - could you give an example?
    Thanx a lot.
    Andreas

    Hi,
    yes..You can dynamically disable and enable inputs fields in the selection screen..
    Check this ex..If you press the first radio button..The second input will be disabled...And vice versa..
    PARAMETERS: p_r1 RADIOBUTTON GROUP g1 USER-COMMAND usr DEFAULT 'X',
    p_r2 RADIOBUTTON GROUP g1.
    PARAMETERS: p_input1 TYPE matnr MODIF ID m1,
    p_input2 TYPE matnr MODIF ID m2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_r1 = 'X'.
    IF screen-group1 = 'M2'.
    screen-input = '0'.
    ENDIF.
    ELSE.
    IF screen-group1 = 'M1'.
    screen-input = '0'.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Thanks,
    Naren

  • Dynamic type variable creation

    I want to create a variable with a pre-defined TYPE, but the latter will only be known at runtime.
    For instance:
    Consider that I my DEFINITIONS1 include file is:
    TYPES: BEGIN OF type1,
                    field1 TYPE i,
                    field2 TYPE i,
                    field3 TYPE i,
                END OF type1,
                  BEGIN OF cust_type_A,
                       INCLUDE TYPE type1.
    TYPES:       erdat TYPE vbak-erdat,
                  END OF cust_type_A,
                 BEGIN OF cust_type_B,
                       INCLUDE TYPE type1.
    TYPES:       fkdat TYPE vbrk-fkdat,
                  END OF cust_type_B.
    Than I have the following code (assume "letter" is a character parameter I receive, either 'A' or 'B'):
    INCLUDE definitions1.
    DATA: z TYPE REF to data.
    FIELD-SYMBOLS: <fs> TYPE ANY.
    DATA str type string.
    CONCATENATE 'MY_CUST_TYPE_' letter INTO str.
    CREATE DATA z TYPE (str).
    *  ASSIGN z->* TO <fs>.
    Why is that that the CREATE DATA z TYPE (str) statement fails ?
    How, then, I create a variable/field symbol from a specific type, which will only be known at runtime ?
    Thanks
    Avraham

    Check this code to create a dynamic type at run time using the RTTS - Run Time Type Services.
    DATA: lo_struct   TYPE REF TO cl_abap_structdescr,
          lo_element  TYPE REF TO cl_abap_elemdescr,
          lo_new_type TYPE REF TO cl_abap_structdescr,
          lo_data     TYPE REF TO data,
          lt_comp     TYPE cl_abap_structdescr=>component_table,
          lt_tot_comp TYPE cl_abap_structdescr=>component_table,
          la_comp     LIKE LINE OF lt_comp.
    DATA: lc_num TYPE char10.
    * field symbols to access the dynamic table
    FIELD-SYMBOLS: <f_line>  TYPE ANY,
                   <f_field> TYPE ANY.
    PARAMETERS: p_a RADIOBUTTON GROUP rd1,
                p_b RADIOBUTTON GROUP rd1.
    START-OF-SELECTION.
      DO 3 TIMES.
        lc_num = sy-index.
        CONDENSE lc_num.
    *   Element Description
        lo_element ?= cl_abap_elemdescr=>describe_by_name( 'INT4' ).
    *   Field name
        CONCATENATE 'FIELD' lc_num INTO la_comp-name.
    *   Field type
        la_comp-type = cl_abap_elemdescr=>get_p(
                          p_length   = lo_element->length
                          p_decimals = lo_element->decimals ).
    *   Filling the component table
        APPEND la_comp TO lt_tot_comp.
        CLEAR: la_comp.
      ENDDO.
      IF p_a = 'X'.
    *   Element Description
        lo_element ?= cl_abap_elemdescr=>describe_by_name( 'ERDAT' ).
    *   Field name
        la_comp-name = 'ERDAT'.
    *   Field type
        la_comp-type = cl_abap_elemdescr=>get_p(
                          p_length   = lo_element->length
                          p_decimals = lo_element->decimals ).
    *   Filling the component table
        APPEND la_comp TO lt_tot_comp.
        CLEAR: la_comp.
      ELSEIF p_b = 'X'.
    *   Element Description
        lo_element ?= cl_abap_elemdescr=>describe_by_name( 'FKDAT' ).
    *   Field name
        la_comp-name = 'FKDAT'.
    *   Field type
        la_comp-type = cl_abap_elemdescr=>get_p(
                          p_length   = lo_element->length
                          p_decimals = lo_element->decimals ).
    *   Filling the component table
        APPEND la_comp TO lt_tot_comp.
        CLEAR: la_comp.
      ENDIF.
    * 3. Create a New Type
      lo_new_type = cl_abap_structdescr=>create( lt_tot_comp ).
    * 5. data to handle the new table type
      CREATE DATA lo_data TYPE HANDLE lo_new_type.
    * 6. New internal table in the fieldsymbols
      ASSIGN lo_data->* TO <f_line>.
    Regards,
    Naimesh Patel

  • FF differs from other browsers - keystroke is swallowed when creating input element

    Hi all
    I have found a workaround for this problem, so its importance is low, but I will be interested in any comments.
    I am creating a control in javascript which represents an editable grid - a bit like a spreadsheet. The cells consist of 'span' elements with text nodes. I can move around the grid with the keyboard or the mouse.
    The user can signal their intent to edit a cell in three ways - double-click, press F2, or just start typing. When any of these are detected, I hide the span element and replace it with a text input element.
    If they doubleclick or press F2, the initial content of the input element must be the same as the content of the text node. If they type a character, the initial content must be the character they typed.
    In all other browsers I have tested (IE8, Opera, Chrome and Safari) the keystroke entered is still 'active', so it automatically becomes the first character in the input element. In FF, it does not.
    My workaround is to store the keystroke entered in a variable, then create the input element, then update the 'value' attribute of the element with the string value of the keystroke, then call setSelectionRange(1, 1) so that the insertion point is positioned after the character.
    I can live with this, but it would be nice if I could get FF to behave the same as the others, and render the workaround unnecessary.

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    <br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Change Type of Screen Element in Report Program

    Okay guys, I have been struggling with this the whole day.. someone please help me.
    I have a selection screen defined in the selecton-screen of a report program
    select-options : so_matnr for mara-matnr,
                     so_ebeln for ekpo-ebeln,
                     so_ebelp for ekpo-ebelp.
    Now if I go to SE51 and give the program name and the screen number as 1000 (Default screen for report)
    Now go to tab "Element List" --> "General Attributes"
    in the column "Type of screen element" everything is considered as "I/O".
    *Name*                 *Type of Screen Element*
    %_SO_MATNR_%_APP_%-TEXT             I/O
    %_SO_MATNR_%_APP_%-OPTI_PUSH     I/O
    SO_MATNR-LOW     I/O
    %_SO_MATNR_%_APP_%-TO_TEXT     I/O
    SO_MATNR-HIGH     I/O
    %_SO_MATNR_%_APP_%-VALU_PUSH     Push
    %_SO_EBELN_%_APP_%-TEXT     I/O
    %_SO_EBELN_%_APP_%-OPTI_PUSH     I/O
    SO_EBELN-LOW     I/O
    %_SO_EBELN_%_APP_%-TO_TEXT     I/O
    SO_EBELN-HIGH     I/O
    %_SO_EBELN_%_APP_%-VALU_PUSH     Push
    %_SO_EBELP_%_APP_%-TEXT     I/O
    %_SO_EBELP_%_APP_%-OPTI_PUSH     I/O
    SO_EBELP-LOW     I/O
    %_SO_EBELP_%_APP_%-TO_TEXT     I/O
    SO_EBELP-HIGH     I/O
    Now, my requirement is that I  need to do something at the loop at screen to change the 'I/O' to 'Text' for all the %TEXT% screen fields. Exactly behave like text labels in the dialog program
    Now, I don't want to write a dialog program to achieve this. Is there any thing i can do in the report program to achieve it.

    Hello,
    Try something like this:
    INITIALIZATION.
    loop at screen.
      if screen-name eq <your field>
        screen-input = 0.
        modify screen.
      endif.
    endloop.
    The important thing is to do it on INITIALIZATION event
    Gabriel P.-

  • Get the type of collecion elements

    Hi,
    I would like to get the type of the elements of a collection when I give the name the collection. Does anybody suggest anything about the SQL code?
    For example
    CREATE OR REPLACE TYPE CourseList AS TABLE OF VARCHAR2(64);
    CREATE TABLE department (
    name VARCHAR2(20),
    director VARCHAR2(20),
    office VARCHAR2(20),
    courses CourseList)
    NESTED TABLE courses STORE AS courses_tab;
    How it is possible to get the type of elements of CourseList (in the example it is VARCHAR2(64)) if I give the name of the nested table courses?
    Thank you

    > I would like to get the type of the elements of a collection when I give the name the collection.
    sniff sniff
    Smells like some kind of dynamic SQL or dynamic PL/SQL thing. It usually stinks.
    If the dynamic part comes into play at rendering time (like in APEX for example that executes a SQL and then needs to dynamically render the projection) - use DBMS_SQL cursors (or ref cursors when rendering in an external client). Use the describe interface to dynamically determine the structure of the SQL projection.
    Anything more than that - think carefully. Especially at it seems you want to deal with actual relational data structure dynamically. 99% of the time it is flawed and the remaining 1% of the time the person usually have no idea what he (or she) is really doing... ;-)

  • Dynamic type conflict when assigning references - Dump

    Hi All,
    I am getting the dump "Dynamic type conflict when assigning references". In my application I have used a table control inside which I have  input field, text view and text edit.
    I guess the text edit is creating the issue. The error analysis report is below :
    If anyone have any idea about the issue, please help.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_MOVE_CAST_ERROR', was not
         caught in
        procedure "IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT" "(METHOD)", nor was it
         propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        It was tried to assign a reference to a rereference variable using the
        'CAST' operation ('?=' or 'MOVE ?TO').
        However, the current content of the source variable does not fit into
        the target variable.
        source type: "\CLASS-POOL=/1WDA/L0STANDARD\CLASS=CL_TEXT_EDIT"
        target type: "\INTERFACE=/1WDA/VTABLE_CELL_EDITOR"
    Information on where terminated
        Termination occurred in the ABAP program "/1WDA/L3STANDARD==============CP" -
         in "IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 2290
        of the (Include) program "/1WDA/L3STANDARD==============CCIMP".
        The termination is caused because exception "CX_SY_MOVE_CAST_ERROR" occurred in
        procedure "IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT" "(METHOD)", but it was
         neither handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "/1WDA/L3STANDARD==============CP "; its source
         code begins in line
        2034 of the (Include program "/1WDA/L3STANDARD==============CCIMP ".
    2265       if va__CONTENT_READONLY is bound and
    2266          va__CONTENT_READONLY->IFUR_NW5__CONTROL~_IID <> ifur_nw5_invisible=>_iid_invisible.
    2267         IFUR_NW5_SAPTABLECELL~HASCONTENT = abap_true.
    2268       else.
    2269         IFUR_NW5_SAPTABLECELL~HASCONTENT = abap_false.
    2270       endif.
    2271     endif.
    2272
    2273 *    >> ProvideCONTENT
    2274
    2275     IF mv_CONTENT_READONLY <> va__CONTENT_READONLY.
    2276       finalize_adapter( mv_CONTENT_READONLY ).
    2277       mv_CONTENT_READONLY ?= va__CONTENT_READONLY.
    2278     ENDIF.
    2279
    2280 *   >> property-Aggregation mv_CONTENT_EDITABLE
    2281     DATA va__CONTENT_EDITABLE TYPE REF TO /1WDA/VTABLE_CELL_EDITOR. "#EC NEEDED
    2282 *   >> UCA STANDARD|TABLE_CELL|CONTENT_EDITABLE
    2283     data adp_uielement type ref to /1WDA/VUIELEMENT. "#EC NEEDED
    2284     if mv_CONTENT_READONLY is not bound and
    2285        mv_WD_TABLE_CELL_EDITOR is bound.
    2286           va__CONTENT_EDITABLE ?= mv_CONTENT_EDITABLE.
    2287     IF va__CONTENT_EDITABLE is bound and va__CONTENT_EDITABLE->m_view_element = mv_WD_TABLE_
    2288     ELSE.
    2289
    >>>>>     va__CONTENT_EDITABLE ?= create_by_view_element(
    2291                          view_element = mv_WD_TABLE_CELL_EDITOR
    2292                          parent       = me
    2293     ).

    Hi Everyone,
    Thanks for your replies.
    We raised an OSS call for the same and got the below response.
    Dear Customer,
    I've analized your actual problem and found out that you are using a notallowed combination of text edit as cell editor within table for
    clasical Web Dynpro ABAP rendering. The text edit as cell editor work in701 releases when the lightspeed rendering is enabled. However in case
    that you want to used
    lightspeed rendering, I would suggest to upgrade on a higher
    SP level than SP4 as for technical reason we can only deliver
    corrections for Unified Rendering first from SP04.

Maybe you are looking for

  • Distinguishing between READ and WRITE synchronized?

    Example: highly multi-threaded application, but almost all threads use a common resource - read only in most cases. In some rare cases (few in number and occurrence), however, the resource can be modified by a single thread. So the resource has to be

  • I have an iPad 2 is there a way I can connect it an Apple TV?

    Is there anyone please that can help me how to connect iPad 2 to Apple TV. I spent six hours still I don't know how. Please help meeeee

  • From sort of newbie with a video problem

    Hello all... am attempting to launch a video clip (.mov file..) in a new window by linking from an image. Click on the image, it SHOULD open video clip in new window/page. It works from the local site (on my pc) but not from remore server.... I'd app

  • Flash Player Development for Embedded Device

    I recently submitted a request for the Flash Player Lite and Flash Player SDK. The website told me I would soon be contacted by an associate with instructions on how to download the tools to build a flash player for my embedded device. Instead Adobe

  • Broker Commission for Export

    Hello: We have a need to pay commission to export broker based on value of sales order. Is it possible to create a shipment cost document where I accrue freight for a carrier and also accrue commission for an export broker based on sales order value?