Binding data for af:forEach from BeakingBean

I have a problem trying to bind data for af:forEach. The thing is that I want to read data like this;
   <af:forEach items="#{BackingBean.myClassValue1.ArrayList1.myClassValue1.ArrayList2}" var="raz">
                        <h:column>
                              <afh:tableLayout width="20">
                                <afh:rowLayout>
                                  <afh:cellFormat}">
                                    <af:outputText value="#{raz.name}"/>
                                  </afh:cellFormat>
                                </afh:rowLayout>
                              </afh:tableLayout>{code}
Works if I read like: {code}BackingBean.myClassValue1.ArrayList1{code} but not if I read like: {code}BackingBean.myClassValue1.ArrayList1.myClassValue1.ArrayList2{code}
Anyone have any ideas pls?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

I did...
It works for
<h:outputText value="#{BackingBean.myClassValue1}" />
<h:outputText value="#{BackingBean.myClassValue1.ArrayList1}" />...but for ...
<h:outputText value="#{BackingBean.myClassValue1.ArrayList1.myClassValue1}" />getting this error on page:
javax.servlet.jsp.JspException: javax.faces.el.ReferenceSyntaxException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.It looks like it empty but its not! When I debug in BackingBean the data its full like it should be!

Similar Messages

  • How to bind data for a UDO table..on to MATRIX

    hi
    i have created a Master Data Table(Video) and also created UDO object...
    i designed a form with 2 controls as text boxes and a matrix with some coloums.........
    the functioality of the form is ..when i enter some values in those controls...it should get data from DB table and should be displayed in matrix on my form. based on condition what i have entered on form controls...
    i have done the same scenario successfully when i'm dealing with other controls like textboxes...by binding data to the controls from DB..
    But i dont know how to deal this scenario where i'm populating data to matrix from DB

    i have used DataTables as u said...but still i'm getting an Exception called " Public MEmber 'Data Table" on type IMatrix not found"
    this is following code i have written in my program...
    plz give me the solution.....and code...
    Try
                oitem = oform.Items.Item("7")
                omatrix = oitem.Specific
                ocolumns = omatrix.Columns
                oform.DataSources.DataTables.Add("[@VIDS]")
                '    odbdatasource = oform.DataSources.DBDataSources.Add("[@VIDS]")
                omatrix.DataTable = oform.DataSources.DataTables.Item("[@VIDS]")
                '// Ready Matrix to populate data
                omatrix.Clear()
                omatrix.AutoResizeColumns()
                '// Querying the DB Data source
                odbdatasource.Query()
                '// setting the user data source data
                omatrix.LoadFromDataSource()
                ocolumn = ocolumns.Item("V_5")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "Code")
                ocolumn = ocolumns.Item("V_4")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "Name")
                ocolumn = ocolumns.Item("V_3")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_CardCode")
                ocolumn = ocolumns.Item("V_2")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_ShelfNumber")
                ocolumn = ocolumns.Item("V_1")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_SPACENumber")
                ocolumn = ocolumns.Item("V_0")
                ocolumn.DataBind.SetBound(True, "[@VIDS]", "U_RentedAvailable")
            Catch ex As Exception
                SBO_Application.MessageBox(ErrorToString)
            End Try

  • How to fetch data for a struture from a cluster table

    How can I fetch data for a struture, from a cluster table, based on the name of the structure?

    Hi,
    In order to read from Cluster DB Table use the following statement:
    Syntax
    IMPORT <f1> [ TO  < g1 > ] <f2> [TO < g2 >] ...
    FROM DATABASE <dbtab>(<ar>)
    [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].
    This statement reads the data objects specified in the list from a cluster in the database <dbtab>.
    You must declare <dbtab> using a TABLES statement. If you do not use the TO <gi> option, the
    data object <fi> in the database is assigned to the data object in the program with the same
    name. If you do use the option, the data object <fi> is read from the database into the field <gi>.
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key>
    identifies the data in the database. Its maximum length depends on the length of the name field
    in <dbtab>.
    The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    For Eg:
    PROGRAM SAPMZTS3.
    TABLES INDX.
    DATA: BEGIN OF JTAB OCCURS 100,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF JTAB.
    IMPORT ITAB TO JTAB FROM DATABASE INDX(HK) ID 'Table'.
    WRITE: / 'AEDAT:', INDX-AEDAT,
    / 'USERA:', INDX-USERA,
    / 'PGMID:', INDX-PGMID.
    SKIP.
    WRITE 'JTAB:'.
    LOOP AT JTAB FROM 1 TO 5.
    WRITE: / JTAB-COL1, JTAB-COL2.
    ENDLOOP.
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 12, 2009 1:35 PM

  • Min date for each month from list

    Hi all,
    I need to select only minimal date for each month from this sample query:
    select date '2011-01-04' as adate from dual union all
    select date '2011-01-05' as adate from dual union all
    select date '2011-01-06' as adate from dual union all
    select date '2011-02-01' as adate from dual union all
    select date '2011-02-02' as adate from dual union all
    select date '2011-02-03' as adate from dual union all
    select date '2011-10-03' as adate from dual union all
    select date '2011-10-04' as adate from dual union all
    select date '2011-10-05' as adate from dual So the result should be:
    04.01.2011
    01.02.2011
    03.10.2011How do I perform it?

    WITH dates
         AS (SELECT DATE '2011-01-04' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-01-05' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-01-06' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-02-01' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-02-02' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-02-03' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-10-03' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-10-04' AS adate FROM DUAL
             UNION ALL
             SELECT DATE '2011-10-05' AS adate FROM DUAL)
    SELECT TO_CHAR (MIN (adate), 'DD.MM.YYYY') adate
      FROM dates
      GROUP BY to_char(adate, 'YYYY.MM')
    ADATE
    03.10.2011
    01.02.2011
    04.01.2011

  • BPC75NW: Error Loading Master data for BPC Dimensions from BW InfoObject

    Hello Gurus,
    I'm trying to load master data for BPC Dimensions from BW Infoobjects.
    The ID thats used in BW is 32 char long. When I run the load, the ID is truncated after 20 chars and  the records are reported as duplicates.
    Due to this the load is failing.
    I cannot use any other ID as the texts will not be loaded in that case.
    Is there any work around to handle this?
    I cannot load the transaction data either.
    I looked at some posts and blogs in sdn, but nothing really helped.
    Cube - 0RPM_c05 (Financial Planning cube in SAP PPM)
    Version: BPC 7.5 NW SP5
    Thanks,
    Vasu

    Thanks Everyone.
    " you can write a transformation file and give a new name to those IDs who have values more than 20 characters."
    Poonam - Could you explain more?
    I tried using a additional Dimension property to hold the 32 char ID. But I cannot access this in the transformation.
    Is there a way to refer the dimension property in the Transformation file or in the UJD_ROUTINE BADI implementation?
    Thanks,
    Vasu

  • How do I change the start date for the week from Monday to Sunday on my iPhone 5?

    How do I change the start date for the week on iCal from Monday to Sunday on my iPhone5?

    Yes. On my new iPhone 5 the iCal week begins on a Monday not a Sunday and does not give me the option to edit in settings on the phone

  • How to copy data for certain member from one dimension to another dimension

    Dear ,
    I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
    I have the following combinations for "511102" :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
    I want to copy "511102"  to "salary"
    -salary have the following dimensions :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
    , I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
    Thanks in advance

    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
    "salary"="511102"->"1011"->"G_10"->"custom Grades";
    ENDFIX
    or
    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
    DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
    ENDFIX
    Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
    Cheers,
    Alp

  • How to bind values for input parameters from an adf table?

    Hi,
    The version I am using is
    Jdev TP4 11.1.1.0.0
    I need to know how to bind values for input parameters to methods.
    I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
    When I have an adf form instead of the table the binding works.
    Any help?
    Thanks.

    Hi Balaji,
    you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
    To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
    Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
    Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
    The method look like    public void bearbeitenQuelle(ActionEvent actionEvent)
            // Add event code here...
            RichTable lTable = getYourTable();
            Object lData = lTable.getSelectedRowData();
            FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
            YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
        }Hope the get you started
    Timo

  • Can I create a Depart Date for a record, from the Arrive Date in the next record?

    I have a Customer database with the tables tblCustomers and tblAddress. The tblCustomers has the following fields; CustomerID, CustomerName. The tblAddress has the following fields; CustomerID, Address, Town, County, ArriveDate. When a customer calls us
    we start a new record with the CustomerID, CustomerName, Address, Town, County. The ArriveDate is left blank. When my service guy calls to the customer he fills in the ArriveDate field. We do not have a LeaveDate field. He could be there from 1 day up
    to 5 days. Each day he is is there he adds another record with all the above data, including the date in the ArriveDate field. If he finishes on a Friday he will take Saturday and Sunday off. On Monday he moves to the next customer, he has a new
    customer/location record waiting for him, as before he fills in the ArriveDate and starts working. If he finishes with a customer midweek he will go straight to the next customer where there is a new customer/location record waiting for him to fill in
    the ArriveDate. It looks something along these lines;
    CustomerID    CustomerName    Address              Town               County            
     ArriveDate
    5437              Mr.A                    123 Main St       
    Nenagh            Tipperary          01/01/2015
    5437              Mr. A                   123 Main St.       Nenagh           
    Tipperary          02/01/2015
    5437              Mr. A                   123 Main St.       Nenagh            Tipperary          03/01/2015
    off Saturday and Sunday
    7890              Mr. B                   77 The Avenue    Tralee              Kerry               
    06/01/2015   
    7890              Mr. B                   77 The Avenue    Tralee             Kerry                
    07/01/2015
    I want to generate a DepartDate which will be generated when the Address, County and/or Town fields change from the previous record. The Depart Date should be equal to the last of the Arrive Dates before the Address, Town and County fields change to
    the new customer/address.
    Is this possible to do, i would appreciate any help with this.              

    Hi NewAccessLearner,
    For the results of the query, I think you accord the logic below to find the DepartDate, but the sql query would be much complex.
    Take the 123A to make a simple demo:
    #1 check the ArriveDate of the next date whether it exist in the ArriveDate
    DepartDate
    Expr1000
    t1.CustomerID
    t2.CustomerID
    Address
    Town
    County
    ArriveDate
    1/2/2015
    5437
    5437
    123 Main St
    Nenagh
    Tipperary
    1/1/2015
    1/3/2015
    5437
    5437
    123 Main St
    Nenagh
    Tipperary
    1/2/2015
    1/4/2015
    5437
    5437
    123 Main St
    Nenagh
    Tipperary
    1/3/2015
    1/8/2015
    5437
    5437
    123 Main St
    Nenagh
    Tipperary
    1/7/2015
    6/2/2015
    7890
    7890
    77 The Avenue
    Tralee
    Kerry
    6/1/2015
    In the first column the “1/4/2015” is not in the ArriveDate, and then the “1/3/2015” would be the date for DepartDate.
    I am not familiar with sql query, I think you need to ask the sql experts for help.
    Best Regards,
    Leo

  • Deriving master data for a InfoObject from DSO

    HI sdn
    I have DSO (D1) fed with flat file data .
    I have a Info-Object ZMAT Compunded with ZCUST/ZSOLDTO  exist in D1.
    Requirement is I have to derive  master data for ZMAT from the same D1 .
    I am thinking of loading  DSO first and then load master data forZMAT from D1. Please let me know  if you see any issues with my procedure and also  Is there any more effective solution for this kind of scenario?

    >
    Sap@BI wrote:
    > I have DSO (D1) fed with flat file data .
    >
    > I have a Info-Object ZMAT Compunded with ZCUST/ZSOLDTO  exist in D1.
    >
    > Requirement is I have to derive  master data for ZMAT from the same D1 .
    >
    >  I am thinking of loading  DSO first and then load master data forZMAT from D1. Please let me know  if you see any issues with my procedure and also  Is there any more effective solution for this kind of scenario?
    You are using DSO as staging to your master data ?
    What type of DSO ? You would not want to use a normal DSO with SID generation, as you would not report out of it.

  • Custom data for equipment load from ECC to CRM 7.0

    Dear All,
    Please suggest the steps required to trace the initial/delta load data for equipment from ECC to CRM & carry out the enhancement for missing fields data.
    Thanks & Regards
    DB

    Hi,
    You have to use download object CRM_EQUI_LOAD. First ensure that all the materials and business partners from  ECC to  CRM are downloaded.
    For more details jut go through
    http://help.sap.com/saphelp_sm40/helpdata/en/94/657a3b233b8541a18ed80b424bf1f8/frameset.htm
    Best Regards,
    Rajendra

  • Company code data for custom replicated from CRM

    Hi,
    I am trying to default the company code data for a BP replicated from CRM as a customer but it is not working.
    How should this be done in CRM 7.0, ECC 6.
    I am have so far copied function module SAMPLE_INTERFACE_DE_BALE, added my own code and created the entry in table TBE34. But it doesn't work.  Is this correct or is there another method?
    regards
    Tim

    This is what we did wen we had a similar requirement...
    u2022     In the ECC create a FM u2018Z_USER_EXIT_BEFORE_SEND_TO_MWu2019.
    u2022     Register this function module for the CRM0_200 exit user in the ERP system.
    a.     Use Transaction SM30, table TPS34, to go to the maintenance of the modules. Here, enter the Z_USER_EXIT_BEFORE_SEND_TO_MWu2019 module for the CRM0_200 process.
    b.     Use Transaction SM30, table TBE24, to check whether the application you have selected (Product column in TPS34) is active.
    u2022     The FM will be triggered whenever a Sold gets successfully replicated from CRM to ECC system.
    a.     Check for the Object Class u2018BUPAu2019.
    b.     Check for the Object Name u2018CUSTOMER_MAINu2019.
    c.     If yes copy the BP GUID from the BAPIMTCS Structure.
    d.     Now call rfc FM ZLSD_BP_EXTRACT_FRM_GUID in CRM to get the BP number and Acc Group for the respective GUID.
    e.     Check if the ACC GRP is Z001.
    f.     If yes make a BDC call to transaction FD01 and update the Company Code data u2026. Recon. Account     110000
                                 Terms Of Payment ZN30       
                               for the  respective BP
    Note: we have recorded a BDC program to create the company code data.
    regards,
    Sameer Ahamad

  • Error while selecting data for mara table from KOTG516 table

    Hello all,
    I am trying to select the data from mara table with respect to KOTG516 table . but i am not getting the value into t_mara table as t_kotg516-matnr is empty . but the t_kotg516 conatins the matnr value . here is the code . i am not getting where i went wrong . please help .
    TYPES: BEGIN OF Y_KOTG516,
            KAPPL TYPE KAPPL,
            KSCHL TYPE KSCHG,
            VKORG TYPE VKORG,
            VTWEG TYPE VTWEG,
            KUNAG TYPE KUNAG,
            MATNR TYPE MATNR,
            DATBI TYPE KODATBI,
          END OF Y_KOTG516.
    DATA: T_KOTG516 TYPE STANDARD TABLE OF Y_KOTG516,
          E_KOTG516 TYPE Y_KOTG516.
    TYPES: BEGIN OF Y_MARA,
            MATNR TYPE MATNR,
            MEINS TYPE MEINS,
          END OF Y_MARA.
    DATA: T_MARA TYPE STANDARD TABLE OF Y_MARA,
          E_MARA TYPE Y_MARA.
        SELECT KAPPL
               KSCHL
               VKORG
               VTWEG
               KUNAG
               MATNR
               DATBI
         FROM KOTG516
         INTO TABLE T_KOTG516
       WHERE VKORG IN S_VKOR
         AND VTWEG IN S_VTWE
         AND KUNAG IN S_KUNAG.
            IF NOT T_KOTG516[] IS NOT INITIAL
                    and SY-SUBRC EQ 0.
              SELECT MATNR
                     MEINS
                FROM MARA
                INTO TABLE T_MARA
               FOR ALL ENTRIES IN T_KOTG516
               WHERE MATNR EQ T_KOTG516-MATNR
                 AND MEINS EQ 'CS'
                  OR MEINS EQ 'IT'.
              ENDIF.
      FOR T_KOTG516 I HAVE VALUE but matnr is not getting selected from mara table as i cheked t_kotg516-mara is empty . i cant use with header line . please advise .
    Regards

    hi,
    SELECT KAPPL
                 KSCHL
                  VKORG
                 VTWEG
                KUNAG
               MATNR
                DATBI
               FROM KOTG516
              INTO TABLE T_KOTG516
              WHERE VKORG IN S_VKOR
               AND VTWEG IN S_VTWE
                 AND KUNAG IN S_KUNAG.
    if sy-subrc = 0 .
    SELECT MATNR
    MEINS
    FROM MARA
    INTO TABLE T_MARA
    FOR ALL ENTRIES IN T_KOTG516
    WHERE MATNR EQ T_KOTG516-MATNR
    AND MEINS EQ 'CS'
    OR MEINS EQ 'IT'.
    ENDIF.
    regards
    deepak .

  • Receive data for same IDOC from 2 different scenarios

    Hello,
    I have already scenario that received xml file and transfer data to IDOC (The IDOC is purchase order).
    This scenario works fine.
    Now I try to add more scenarios. This scenario takes files from other xml source work with new mapping and transfer data to same IDOC.
    The problem is in integration builder u2013
    When I try to create receiver agreement the message the message "Object already exists" appear.
    How can I solve this issue?
    Elad

    Hi Elad,
    +Now I try to add more scenarios. This scenario takes files from other xml source work with new mapping and transfer data to same IDOC.
    The problem is in integration builder u2013
    When I try to create receiver agreement the message the message "Object already exists" appear.+
    Does this mean that the other xml source is from the same party? If yes, then that party is already configured in your receiver agreement as explained by the error "Object already exists".
    If the xml source is from a different party. What you can do is to delete the existing receiver determination. Make a new one and replace the party with an "*", in that way, increasing the parties would only consist of one receiver determination for that particular interface. You would only have to add sender and receiver agreements.
    Hope this helps,

  • Extraction fo data for SEM 6 from ECC6

    Hi Gurus,
    We are working on to set up SEM 6.0 with ECC6 as the transactioanl system.
    Please could you help solving the following doubts in this regard: -
    1) Is this true that in order to get consolidation relevant fields (like Trading partner, Partner profit center
    etc.) we should use DS 0SEM_BCS_10 and not DS 0FI_GL_10? SAP Note 852971 suggests as follows: -
    '.......The DataSource 0FI_GL_10 is available in the BI business content for the extraction of data of the leading ledger from the new general ledger accounting to BW. However, only one part of the transferred fields can be updated by the structure of the data flow saved in the BI content. This is due to technical constraints during the update into an ODS object. The partner fields that are relevant for consolidation are not updated in the InfoProvider 0FI_GL_10 and, therefore, you cannot use it as the "staging" InfoProvider for SEM-BCS.
    SAP delivers the DataSource 0SEM_BCS_10 for the data collection of the leading ledger from the new general ledger into the consolidation. This allows you to set up another data transfer branch to SEM-BCS without affecting the data transfer to the InfoProvider of the new general ledger......'
    What is not clear from above is whether we need to use both the data sources or we can manage with 0SEM_BCS_10.
    2) Is the BI content statging cube for BCS 0FI_GL_10?
    3) I believe that we need to create some other data sources to load data from non-leading ledgers. Are we going to load data from non-leading ledgers to the same staging cube in BW (0FI_GL_C10)? If yes how the data will be differentiated? There could be various sets of data in the same inforprovider for each parallel ledger.
    Please advise.
    BR,
    SSC

    Hi,
    1. We use 0SEM_BCS_10. It clear said in notes that 0FI_GL_10 is not useful.
    2. No, AFAIK, it's a custom cube.
    3. If you use the flex GL why you are going to use non-leading ledger.
    More info you may find using search.
    Particularly, here:
    Re: 0SEM_BCS_10 or 0FI_GL_10
    I provided some more notes on the theme.

Maybe you are looking for

  • How does APEX check for null values in Text Fields on the forms?

    Hello all, How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written. I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I m

  • Camera Raw 6.7 does not save XMP files

    I am running Camera Raw 6.7 on a Windows XP machine. In the Preferences under "General" I have the "Save image settings in" set to "Sidecar ".xmp" files. And in the DNG File Handling, I do NOT have the "Ignore sidecar ".xmp." file check-box checked i

  • [SOLVED]Jmtpfs permission denied

    Hello Arch Forums! I've mounted my encrypted android phone to ~/mnt (directory I made in my home directory) via jmtpfs. ~/mnt shows up in ls, but not in ranger. When I try to unmount my phone fusermount tells me fusermount: entry for /home/switch/mnt

  • How to control the data rate of a digital write to a port on a PCI-6509

    I am using a PCI-6509 to write digital words to a custom digital board. I can generate the proper patterns with the 6509 but the resulting pulse rates are very high (150+ khz) which is very noisy. I know the board cannot have its clock controlled. Is

  • Cannot access deployed JDeveloper App in Weblogic Server

    I have built and successfully deployed an Oracle JDeveloper 11.1.2.2.0 web application using ADF security to a clustered (two servers) Weblogic 10.3.5.0 server. The login page comes up when I type in the URL but upon submitting the login page I get t