Need a panelGrid which renders a List one item per column

I want to show items from a list in my backing bean as icons in a grid, 4 columns wide.
This means I need to iterate through the list and show each item in the list in a separate column, moving to the next row after every fourth item.
My experience with the dataGrid shows that I can only display one record per row with this control, and the panelGrid doesn't allow iteration through a data structure.
Any suggestions?

I solve this problem using binding
First
<h:panelGrid id="panel" columns="4"                          
binding="#{BeanClass.panelList}" >
</h:panelGrid>     
this is all that need in my jsp.
Inside my BeanClass i have a property panelList
/** This is in my BeanClass */
private HtmlPanelGrid panelList;
public UIComponentBase getPanelRole() {
panelList = new HtmlPanelGrid();
//TODO this is option, because already it's define in jsp page
panelRole.setColumns(4);
List objectList = getAnyWhere(); // this should be your object List
for (Iterator iter = objectList.iterator(); iter.hasNext();) {
AnyObject element = (AnyObject) iter.next();
// You can create other object ( link, button, simple text and soon )
// I wanted to create a button link
UICommand out = new UICommand();
out.setValue(element.getName());
out.setId(element.getId());
// Both name and id are String
panelList.getChildren().add(out); // here attach the components
return panelList;
public void setPanelRole(UIComponentBase panelRole) {
//I don't use this method
}

Similar Messages

  • Delivery from sales scheduling agreement with one item per schedule line

    Hi all,
    I have a sales scheduling agreement where the same part number has 3 different JIT schedule lines and I need to create a delivery with 3 item lines: every item line of the delivery has to be referred to one schedule line of the scheduling agreement.
    When I create the delivery with transaction VL10E it has only one item line and its quantity is the sum of the 3 schedule lines of the sales scheduling agreement.
    I've tried to change the customizing of the User Role, choosing the Split Schedule Line = 2 ("One item per schedule line") but the delivery is created again with only one item line.
    How can I solve this issue?
    Thanks in advance for reply

    Dear Alex
    The SAP standard behaviour is that all schedule items with delivery date in the past have to be rescheduled anyway to one date and are combined therefore.
    Partially this behaviour can be influenced in VL10* by 2 parameters in
    the user role : Split per sched.line and Rule (delivery qty).
    Please find below informations about these different parameters
    "Split per sched.line propose you 3 Rule for creating one delivery item
    per schedule line. In a delivery list in item view with multiple
    schedule lines, you can decide for the same document item whether you
    want to generate one delivery item per schedule line or whether you want
    to deliver the cumulated quantity of the last schedule lines selected.
    About rule for delivery quantity, the following rules are currently
    implemented:
    1. No cumulation
    The open schedule line quantity to be delivered is the quantity at which
    the list line is delivered.
    2. Sum of all open schedule line quantities to be delivered that fall
    before the chronologically latest date in the to field (following the
    Deliv. creation date field) of the selection criteria.
    3. Sum of all open schedule line quantities to be delivered whose
    delivery creation date falls within the selection time frame (between
    the dates in the Deliv. creation date and to fields, respectively),
    making the calculation of the quantity to be delivered consistent with
    selection criteria. However, calculationof the quantities delivered with
    the order's schedule line quantities is not affected."
    Hope this helps.
    Regards
    Tonia

  • Need xsl function which will convert 100 = One Hundred.

    Hi
    i have to print the number as a text .
    EX:100=Hundred
    In one of the Vetsrini reply i seen this
    ""we have xsl function which will convert 100 => One Hundred.
    If anybody interested to use this function, let me know.
    i will post that in my blog in sometime.""
    Convert Number into words in RTF
    Thanks,
    Ananth.v

    <?xdoxslt:toWordsAmt(100)?>http://winrichman.blogspot.com/2008/08/convert-number-into-amount-in-words.html
    Convert Number into words in RTF

  • How to filter with multiple selection on a single column on external list, currently only one filter per column is available.

    I have external list where i want to apply multiple filter for every column like we do in Excel spreadsheet - we can filter a spreadsheet column by selecting multiple checkbox for every  column. I am using Sharepoint 2010
    Is this possible in sharepoint 2010? Any idea how to acheive that?
    Thanks in advance.

    Hi Rahul,
    According to your description, my understanding is that you want to use filter with multiple values on a column of an external list in SharePoint 2010.
    Per my knowledge, there is not an OOB way to achieve it. As a workaround, you can custom the web part to implement it. There is an articles for your reference:
    http://blogs.telerik.com/aspnet-ajax/posts/13-11-05/add-excel-like-multi-select-filtering-to-your-asp.net-datagrid
    In addition, you can use a third party solution to achieve it, please take a look at:
    http://abilitics.com/Blog/index.php/sharepoint-improved-grids-with-excel-like-inline-editing/
    http://social.technet.microsoft.com/forums/sharepoint/en-US/3d19b9d3-d394-4af9-9e8e-2dee70b50540/filter-column-with-multiple-filter-values-in-sharepoint-list
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • FDS only creating one item per session

    I'm using a ColdFusion data source assigned to a MS-SQL
    database. The database has a primary key with data type set to
    smallint, auto-increment/identity = yes.
    I'm using the CFC wizard to create my CFCs and actionscript
    valueObject. My application is basic so far, just a data grid and a
    3-field form. When I run my app, the data grid populates properly
    with the data from my MS-SQL db. I can fill out the form and submit
    the data, which adds another record to my database and is
    immediately reflected in the data grid. However, if I try to add
    additional records, the application does not do anything. I have to
    refresh my app each time I want to add a new record.
    I'm using DataService to handle my data (along with FDS which
    is running on my server).
    here's my basic setup
    import mx.data.DataService;
    import mx.collections.ArrayCollection;
    import valueObjects.myTable; // created by CFC Wizard
    private var ds:DataService;
    [Bindable]
    private var ac:ArrayCollection;
    private var myObject:myTable;
    private function initApp():void{ // this is called from
    creationComplete
    ds = new DataService("myds");
    ac = new ArrayCollection();
    ds.fill(ac);
    private function newRecord():void{
    myObject = new myTable;
    myObject.col1 = field1.text;
    myObject.col2 = field2.text;
    myObject.col3 = field3.text;
    ds.createItem(myObject);
    resetForm() // just a method that clears the form fields for
    additional entries
    So I fill the fields out (field1, 2, 3) and hit the submit
    button, which calls newRecord(). This will insert my newly created
    record into my database and will also immediately display in the
    datagrid. But from this point on, no new records can be added
    without manually refreshing the browser.
    My work-around for this is adding ds.release(); and
    ds.fill(ac); after ds.createItem(myObject); While this works, it's
    very clunky. Each record I add clears the datagrid and repopulates
    it, creating a "flash" of the datagrid in which things disappear
    and then reappear. It's only a minor cosmetic flaw, but to myself
    it's an eye sore. I've created MS access db apps using the same
    code and I've never had to release and refill my ds.
    So what could be going on that would prevent new items from
    being added? I am 100% sure that my app fails when calling
    ds.createItem() twice or more times.

    Uh. I should have put the version number in the title. I've happily ripped more than one CD after another in the past. Currently running Windows XP with all it's attendant updates and the latest build of iTunes. However I've just realised I was controlling the PC via Remote Desktop at the time which would appear to be the cause of the problem, although I'm pretty sure Windows Explorer noticed the change of CD contents at the time. Anyway, working locally normal service is resumed.
    tt2

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • Data logging more then one data per column

    Hello,
    I want to log multiply data to on column in my database. I use TestStand 3.0 and a SQL database. For example:
    I have the column "data" and in this column I want to log all data results from different steps (String, ButtonHit, Numeric) as a string. Logging.StepResult.Numeric, Logging.StepResult.ButtonHit, Logging.StepResult.String ......
    How is it posssible?
    Greetings
    Schwede

    Schwede -
    This is currently done in the default schema for the STEP_NUMERICLIMIT and MEAS_NUMERICLIMIT statements. Both log to the MEAS_NUMERICLIMIT table. The STEP_NUMERICLIMIT statement logs a single value for a Numeric Limit Test step and the MEAS_NUMERICLIMIT logs a value for each measurement in the Multiple Numeric Limit Test step.
    In summary, if you the step subproperties are different between two step types, but you want to log them to a shared table column, you have to use a separate statement per step type.
    Scott Richardson
    National Instruments

  • Need validation that ensures only one item has a value.

    Hello,
    I need a validation that ensures that only one item has a value. I want to allow a person entering information into a form to have the option to either select from a drop-down or enter something into a text box but not both.
    I have found some information about validation of this type but I'm not sure how to use it. Here is what I found:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This validation ensures that only one item (ITEM_1, ITEM_2) has a value.
    Example 5:
    Assume a function similar to the following exists:
    create or replace function sampleValidation (p_arg in varchar2) return boolean
    as
    begin
    if p_arg= '1' then
    return true;
    else
    return false;
    end if;
    end;
    A validation of type PL/SQL Expression could then reference this function returning a boolean using the following syntax:
    sampleValidation(v('MY_ITEM'))
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please let me know how to implement this or give me another way to validate.
    Thanks
    Linda

    Linda,
    The best is to use a Validation of type PL/SQL Function Returning Error Text like this:
    BEGIN
       IF :p1_item_1 IS NULL AND :p1_item_2 IS NULL
       THEN
          RETURN 'One of the items must have a value.';
       ELSIF :p1_item_1 IS NOT NULL AND :p1_item_2 IS NOT NULL
       THEN
          RETURN 'Only one of the items must have a value.';
       END IF;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Parse column with csv string into table with one row per item

    I have a table (which has less than 100 rows) - ifs_tables that has two columns: localtable and Fields. Localtable is a table name and Fields contains a subset of columns from that table. Fields is a comma delimited list:  'Fname,Lname'. It looks like
    this:
    localtable         fields
    =========  =============
    customertable   fname,lname
    accounttable     type,accountnumber
    Want to end up with a new table that has one row per column. It should look like this:
    TableName             ColumnName
    ============ ==========
    CustomerTable        Fname
    CustomerTable        Lname
    AccountTable          Type
    AccountTable          AccountNumber
    Tried this code but have two issues (1) My query using the Splitfields functions gets "Subquery returned more than 1 value" (2) some of my Fields has hundreds of collumns in the commas delimited list. It will returns "Msg 530, Level 16, State
    1, Line 8. The statement terminated. The maximum recursion 100 has been exhausted before statement completion.maxrecursion greater than 100." Tried adding OPTION (maxrecursion 0) in the Split function on the SELECT statment that calls the CTE, but
    the syntax is not correct.
    Can someone help me to get this sorted out? Thanks
    DROP FUNCTION [dbo].[SplitFields]
    go
    CREATE FUNCTION [dbo].[SplitFields]
    @String NVARCHAR(4000),
    @Delimiter NCHAR(1)
    RETURNS TABLE
    AS
    RETURN
    WITH Split(stpos,endpos)
    AS(
    SELECT 0 AS stpos, CHARINDEX(@Delimiter,@String) AS endpos
    UNION ALL
    SELECT endpos+1, CHARINDEX(@Delimiter,@String,endpos+1)
    FROM Split
    WHERE endpos > 0
    SELECT 'Id' = ROW_NUMBER() OVER (ORDER BY (SELECT 1)),
    'Data' = SUBSTRING(@String,stpos,COALESCE(NULLIF(endpos,0),LEN(@String)+1)-stpos)
    FROM Split --OPTION ( maxrecursion 0);
    GO
    IF OBJECT_ID('tempdb..#ifs_tables') IS NOT NULL DROP TABLE #ifs_tables
    SELECT *
    INTO #ifs_tables
    FROM (
    SELECT 'CustomerTable' , 'Lname,Fname' UNION ALL
    SELECT 'AccountTable' , 'Type,AccountNumber'
    ) d (dLocalTable,dFields)
    IF OBJECT_ID('tempdb..#tempFieldsCheck') IS NOT NULL DROP TABLE #tempFieldsCheck
    SELECT * INTO #tempFieldsCheck
    FROM
    ( --SELECT dLocaltable, dFields from #ifs_tables
    SELECT dLocaltable, (SELECT [Data] FROM dbo.SplitFields(dFields, ',') ) from #ifs_tables
    ) t (tLocalTable, tfields) -- as Data FROM #ifs_tables
    SELECT * FROM #tempFieldsCheck

    Try this
    DECLARE @DemoTable table
    localtable char(100),
    fields varchar(200)
    INSERT INTO @DemoTable values('customertable','fname,lname')
    INSERT INTO @DemoTable values('accounttable','type,accountnumber')
    select * from @DemoTable
    SELECT A.localtable ,
    Split.a.value('.', 'VARCHAR(100)') AS Dept
    FROM (SELECT localtable,
    CAST ('<M>' + REPLACE(fields, ',', '</M><M>') + '</M>' AS XML) AS String
    FROM @DemoTable) AS A CROSS APPLY String.nodes ('/M') AS Split(a);
    Refer:-https://sqlpowershell.wordpress.com/2015/01/09/sql-split-delimited-columns-using-xml-or-udf-function/
    CREATE FUNCTION ParseValues
    (@String varchar(8000), @Delimiter varchar(10) )
    RETURNS @RESULTS TABLE (ID int identity(1,1), Val varchar(8000))
    AS
    BEGIN
    DECLARE @Value varchar(100)
    WHILE @String is not null
    BEGIN
    SELECT @Value=CASE WHEN PATINDEX('%'+@Delimiter+'%',@String) >0 THEN LEFT(@String,PATINDEX('%'+@Delimiter+'%',@String)-1) ELSE @String END, @String=CASE WHEN PATINDEX('%'+@Delimiter+'%',@String) >0 THEN SUBSTRING(@String,PATINDEX('%'+@Delimiter+'%',@String)+LEN(@Delimiter),LEN(@String)) ELSE NULL END
    INSERT INTO @RESULTS (Val)
    SELECT @Value
    END
    RETURN
    END
    SELECT localtable ,f.Val
    FROM @DemoTable t
    CROSS APPLY dbo.ParseValues(t.fields,',')f
    --Prashanth

  • Retrieve as many duplicate records as a value stored in one of the columns

    Hi,
    I have a peculiar requirement where I want multiple copies of rows the count of which is determined by one of the column values:
    create table test (id number, value number, data varchar2(100));
    insert into test values (1,5,'one');
    insert into test values (2,2,'two);
    insert into test values (3,3,'three');
    insert into test values (4,4,'four');
    insert into test values (5,5,'five');
    select * from test where id=3;
    I get:
    id,value,data
    3,3,three
    I want:
    id,value,data
    3,3,three_1
    3,3,three_2
    3,3,three_3
    i.e. Althought there is ONLY ONE row for the id=3, but as the column value=3, i want 3 rows from this table (all identical) except the last column to which I append a running sequential number.
    How to do that?
    Thanks.

    You have still pipelined function :
    SQL> create or replace type TypeTest as object (id number, value number, data varchar2(100));
      2  /
    Type created.
    SQL>
    SQL> create or replace type ListTest as table of TypeTest;
      2  /
    Type created.
    SQL>
    SQL> create or replace function TblTest(p_id number default null)
      2  return ListTest
      3  pipelined
      4  is
      5  begin
      6      for x in (select id, value, data from test where id = nvl(p_id,id)) loop
      7          for i in 1.. x.value loop
      8              pipe row (TypeTest(x.id, x.value, x.data||'_'||to_char(i)));
      9          end loop;
    10      end loop;
    11      return;
    12  end;
    13  /
    Function created.
    SQL> show err
    No errors.
    SQL>
    SQL> select * from table(TblTest(3));
            ID      VALUE DATA
             3          3 three_1
             3          3 three_2
             3          3 three_3
    SQL> select * from table(TblTest);
            ID      VALUE DATA
             1          5 one_1
             1          5 one_2
             1          5 one_3
             1          5 one_4
             1          5 one_5
             2          2 two_1
             2          2 two_2
             3          3 three_1
             3          3 three_2
             3          3 three_3
             4          4 four_1
             4          4 four_2
             4          4 four_3
             4          4 four_4
             5          5 five_1
             5          5 five_2
             5          5 five_3
             5          5 five_4
             5          5 five_5
    19 rows selected.
    SQL> Nicolas.

  • WM: Transfer Requirements with just one item

    Hi experts,
    does anybody know if it is possible to customize WM in order to create just one item per transfer requirement.
    My problem is that in material staging from PP, I have customized creation of transfer requirements on order release. If OF consist of three components, system create one transfer requirement with 3 items, nevertheless I need to create 3 transfer requirement.
    Thanks

    No std funcationality available but i have done in the Past using the PO item user exit to force the user to enter the one line item PO only or the same item in the next line.
    so with the developement it is possible

  • TS3989 hi one guy stolen my iphone, and now i need my pictures which i have in my icloud i open my Apple id in icloud but i downlode just 20 pic how i got my all picturs in my pc?

    hi one guy stolen my iphone, and now i need my pictures which i have in my icloud i open my Apple id in icloud but i downlode just 20 pic how i got my all picturs in my pc?

    Update:  I reset my phone again and this time I restored it from my last iCloud backup.  That "sort of" worked.  (The missing info was on my phone temporarily, but it's still missing from iCloud.com and as the phone syncs with the cloud the missing contacts are disappearing.) 
    This is good news, but I'm losing progress.  How can I restore my iCloud settings to that last backup?

  • TS3694 my i pad is showing connect to i tunes picture when i connect to i tunes it tells me i need to restore, but when i do it keeps coming up with error code!! which is a different one each time can anyone offer some advise to solve this frustrating pro

    my i pad is showing connect to i tunes picture when i connect to i tunes it tells me i need to restore to factory settings, but when i do it keeps coming up with error code!!   which is a different one each time can anyone offer some advise to solve this frustrating problem.

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • Want to know table which stores SPOOL LIST RECIPIENT & email addres

    Hi Guys,
    I need to create a report for all jobname & recipient email address. Kindly let me how to find out the recipent's email address for all jobname in TBTCP. I understand that recipent is the distribution list, distribution list has email address.
    JOBNAME ---> SPOOL LIST RECIPEINT -
    > EMAIL ADDRESS.
    thanks.

    Guys thanks for you help and time.
    I am not getting the expected result after doing above steps.
    I will try to clarify the requirement further.
    When I run t-code SM37 and enter following :
    Job name : TXDET-DAILY
    User name :  *
    Job Status : Checked Sched. Only.
    On next screen JOB OVERVIEW. Only one record shows up for job TXDET-DAILY.  When I double click this record, system takes me to next screen where there is button for SPOOL LIST RECIPIENT. When I click this button it displays the recipient is TXDET. TXDET is actually a Distribution list name, maintained in SAP office (SO01).
    When I go in t-code SO01 and click DISTRIBUTION LIST button and then enter shared distribution list name TXDET.
    It gives me 2 email addresses under this TXDET distribution list. 
    [email protected]
    [email protected]
    The spool from the job TXDET-DAILY will be emailed to these 2 email addresses.
    Now I need a report which gives following information.
    Job Name................. Distribution List Name...............Email Address         
    TXDET-DAILY............TXDET......................................[email protected]
    TXDET-DAILY............TXDET......................................     [email protected]

  • I need to add one field Pers. sub area for Actions screen

    Normally, we will have Position, Pers. area, Emp group and Emp sub group in Actions screen. Now I want to add one more field to that screen, what is the navigation?
    Can anybody help me please.
    Regards,
    Pavani.

    hi,
    pavani. If i understood right, you need to add a field which is not listed in the module pool related to the screen you have to create a new field, here you can hide or make optional or intialize the field for the info types the table no T588M.
    let me know whether this is correctly answered or not
    regards,
    madhu

Maybe you are looking for

  • Script for the SAP report - download to excel - problem

    Hi all I know that similar problem had already been discussed but going through the solution presented in any of that topic I was not able to be successful  (I am beginner in terms of VBA and SAP scripting) What I would like to do is simply create th

  • UnAuthorised error while checking Resource History of provisioned account

    Hi Experts, I have provisioned an ACF2 account in OIM 11gR2, I wanted to check the resource history of the provisioned account. When i clicked on the resource history button,, i get error page saying: Just for information, i tired doing the same from

  • Bridge CC / How to use all cores to generate JPEG images?

    Hi! Is there anyway to tell Bridge, that it should use all my cores to generate the JPEG images out of RAWs? Actually it uses less then 25% of my CPU performance. I've a Intel Core i7-2600 CPU @ 3,4 GHZ, with four cores and enabled hyperthreading, al

  • Bootcamp Issues: XP Frozen with New Hardware Found screen

    I've installed bootcamp on an Imac with MacOS 10.6.4. This went fine. Then I installed XP. This went fine as well. Then I inserted a Mac OX X Snow Leopard 10.6.4 disk to install the Boot Camp Drivers for Windows. But XP is just frozen with the "Found

  • Place Holder in Bridge

    Place holder so that when you are working with multiple clients you can easily find where you left of when working with large file directories etc.