Displaying the fields in an order

Hi,
I have a requirement where i need to display the fields in a 2 column layout like left to right and these fields are displayed dynamically. I am using struts , here tiles wont work as the fields are dynamic in nature as well <c:forEach> and <logic:iterate> wont work either as they are used to display the 1 field at a time and will be displayed sequentially, which is one after another. Hence i need to use the while or for loop in the JSP with scriplet to do it.
Something like :-
<table>
<%
int index =0;
CustomerItem item = null;
while( index < CustomerForm.getCustomerItemList.size()){
item = CustomerForm.getCustomerItemList.get(index);
     %>
<tr>
     <td>
     <label><c:out value="${item.custName}"/>
     <input type="text" name="${item.custId}"/>
     </td>
     <%
     index++;
     if(index<CustomerForm.getCustomerItemList.size()){
          item = CustomerForm.getCustomerItemList.get(index);
     %>
     <td>
     <label><c:out value="${item.custName}"/>
     <input type="text" name="${item.custId}"/>
     </td>
     <%
          index++;
     }%>
</tr>
     <%
%>
</table>
This will allow me display the fields in the left to right manner,but i dont wnat to use scriplet , is there the same can be done using <c:forEach> or <logic:iterate> or we whether we can use a custom tag to do it? please shed some light into it.
thanks

Hi,
Try this
<table>
<logic:iterate id="customerList" name="CustomerForm" property="customerItemList">
<tr>
<td><label><bean:write name="customerList" property="custName"></label></td>
<td><html:text name="customerList" property="custId"/></td>
</tr>
</logic:iterate>
</table>
or
<table>
<logic:iterate id="customerList" name="CustomerForm" property="customerItemList">
<tr>
<td><label><c:out value="${customerList.custName}"></label></td>
<td><input type="text" name="custId" value="${customerList.custId}"/></td>
</tr>
</logic:iterate>
</table>

Similar Messages

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
    to include the tabulated view for the content query.
    However the way it is displayed is such that only the content is displayed.
    As i am using a tabular view wto display the data, i want to display their field names as well.

    Hi  ,
    According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
    For your issue, please refer to the code as below:
    <xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
    <html>
    <table width="100%">
    <xsl:if test="count(preceding-sibling::*)=0">
    <tr>
    <td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
    <td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
    <td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
    <td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
    </tr>
    </xsl:if>
    <tr>
    <td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
    <td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
    <td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
    <td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
    </tr>
    </table>
    </html>
    </xsl:template>
    For more information, please have a look at the blog:
    http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
    http://msdn.microsoft.com/en-us/library/ms497457.aspx
    http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
    http://blog.sharepointexperience.com/customitemstyle/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Just purchased a new iMac and transferred all info from my old iMac. Now when using iPhoto slideshow is displays the pictures in reverse order.

    Just purchased a new iMac and after transferring all info from my old iMac.  Now when using iPhoto slideshow it  displays the pictures in reverse order.

    There's a bug in iPhoto 9.5.1 and Mavericks that affects slideshows played directly from an album.  The slideshow will not play correctly if the photos have been sorted manually.  Any other type of sort, date, rating, keyword or title, will play correctly.
    If you need that manual sort of pictures for your slideshow create the slideshow in iPhoto's slideshow mode.
    OT

  • How to display the field "Country" in the Address Book UI ?

    How to display the field "Country" in the Address Book UI ?

    Using an add-on, MoreFunctionsForAddressBook gives you that opportunity.

  • How to display the fields in effective

    i have 10 fields names as name,add,code,no.seats......
    I have two choices those are Table, and other one is add fields and JScrollpane to a panel and display it.
    Can any one have other choices to display the fields effectively.

    You are only limited by your imagination. What sort of answer are you looking for?

  • Can we display the field name vertically

    Hi BI Experts ,
    Iam using Bex Analyzer to run reports.
    1.in report i want to display the field name vertically. is there any possibilities.
    2.i had tried using format cells in excel settings , but i have to make settings every time after running the report.
    3. i need this settings should be done before running the report and user can see the report such a way that field name should be displayed vertically.
    Please suggest me is there any way to do this.
    Thanks
    Tulsi

    Hello,  
    You can create a workbook, do the necessary format and turn off the format refresh in the Bex Tool bar property. You can turn off the same in Query Property.
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

  • Displaying the field symbol result in ALV GRID

    hi.
        I have a requirement to display the field symbol in ALV GRID. I am getting a error 'FIELD SYMBOL NOT YET BEEN ASSIGNED'  when i am calling the 'REUSE ALV GRID DISPLAY'. Can any one help me out..

    I have a requirement that i have to display all the GL indicators as a field.
    For that i have created a dynamic internal table so that based upon the GL indicators available in the database table i can create a dynamic internal table with GL indicators as the fieldnames.
    Now i want to populate the corresponding amount with respect to the GL indicators in the dynamic internal table.
    For ex.
    I have a database table as follows:
    Vendor Id GL indicators Amount
    1000 A 2000
    1000 S 3000
    I have to created a field symbol as follows
    Vendor Id A S
    1000 2000 3000.
    Now my requirement is that i want this values to be displayed in ALV GRID.
    At the point of calling REUSE ALV GRID DISPLAY  i am getting the error field symbol is not yet been assigned..

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • What is the field for sales order type?

    pls tell me what is the field for sales order type??
    and from which table........urgent

    Hi,
    Field for sales order type is AUART in table TVAK
    the Parent table for Sales order type is TVAK.
    Best regards,
    raam

  • Select will not displaying the Rows in any order

    hai
    in oracle 8i if i give run this
    SELECT "Payor Name","UnappliedMonth1" AS "Apr 04", "UnappliedMonth2" AS "Mar 04",
    "UnappliedMonth3" AS "Feb 04", "UnappliedMonth4" AS "Jan 04", "UnappliedMonth5" AS "Dec 03", "UnappliedMonth6" AS "Nov 03", "UnappliedMonth7" AS "Oct 03", "UnappliedMonth8" AS "Sep 03", "UnappliedMonth9" AS "Aug 03", "UnappliedMonth10" AS "Jul 03",
    "UnappliedMonth11" AS "Jun 03",
    "Total Cash Applied" AS "Total Cash Applied", "Total Unapplied Cash" AS "Total Unapplied Cash", "Percentage Unapplied" AS "Percentage Unapplied" FROM "RP_Unapplied0I1" GROUP BY "Payor Name", "UnappliedMonth1", "UnappliedMonth2", "UnappliedMonth3", "UnappliedMonth4", "UnappliedMonth5", "UnappliedMonth6", "UnappliedMonth7", "UnappliedMonth8", "UnappliedMonth9", "UnappliedMonth10", "UnappliedMonth11", "Total Cash Applied", "Total Unapplied Cash", "Percentage Unapplied"
    statement it is displaying the result in ascending order
    but if i run in oracle 9i It is not displaying in a ascending order
    what is the problem?
    please help me

    Yes.
    Please note that without the presence of an ORDER BY clause Oracle is free to display the resultset in any order it may choose (may depend on the plan the optimizer comes up with).
    if you need results displayed in a particular order, you MUST supply an ORDER BY clause.
    You cannot rely on the order of the resultset as you get today when executing the query (if not using ORDER BY clause), since the ordering can (and will) change in the future.

  • Regarding MV45AOZZ and MV45AIZZ, using these includes display the fields

    Hi,
    using the MV45AOZZ and MV45AIZZ includes i have to display some fields in display mode even in chage mode.
    The requirement is to make certain fields display only. This would prevent certain users ( SPOC ) not to edit or change these fields without interacting with the OTS team.
    SPOC users would go into orders in Change mode and make changes for manual allocation like changing the plants or the Schedule line dates.
    Field which need to be in display mode in order change model –
    Bill to Address ,
    Ship to address,
    Pricing – screens
    Payment Terms –
    Freight terms -
    how to do this ?? very urgent.. thanks in advance

    Do as below:
    1. Insert a module with pattern ZZ* in the PBO flow logic of the respective screen.
    2. Create these modules in the programs you mentioned.
    3. For disabling field in a screen, code shld be like:
       loop at screen.
         if screen-name = <screen fld>
            screen-input = '0'.
            modify screen.
            exit.
         endif.
       endloop.
    Regards
    Eswar

  • How to display the fields using field catelog in ALV Report

    Hi,
    I have rquiremrnt in ALV report.I would need to add the new fileld in the ALV output screen.I have added the field but its appearing in the layout set but not directly displaying in the output screen.
    I have written the below logic for field catelog.
    CLEAR wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'LOGGR'.
      wa_fieldcatalog-ref_tabname = 'MARC'.
      wa_fieldcatalog-col_pos     = l_pos.
      wa_fieldcatalog-outputlen   = 13.
       wa_fieldcatalog-seltext_s   = 'Log. group'.
      wa_fieldcatalog-seltext_m   = 'Logistics group'.
      wa_fieldcatalog-seltext_l   = 'Log. handling group'.
       wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
      APPEND wa_fieldcatalog TO it_fieldcatalog.
      l_pos = l_pos + 1.
    Please let me know why the added field was not displaying automaticaly in the output screen.
    Regards,
    Reddy

    hi,
             try this
    clear wa_fieldcatalog.
    wa_fieldcat-tabname       = 'ITAB' ( give the internal table which has the field LOGGR)
    wa_fieldcatalog-fieldname = 'LOGGR'.
    wa_fieldcatalog-ref_tabname = 'MARC'.
    wa_fieldcatalog-col_pos = l_pos.
    wa_fieldcatalog-outputlen = 13.
    wa_fieldcatalog-seltext_s = 'Log. group'.
    wa_fieldcatalog-seltext_m = 'Logistics group'.
    wa_fieldcatalog-seltext_l = 'Log. handling group'.
    wa_fieldcatalog-reptext_ddic = 'Log. handling group'.
    APPEND wa_fieldcatalog TO it_fieldcatalog.
    l_pos = l_pos + 1.

  • How to display the fields dynamically in OAF

    Hi All,
    I have developed a OAF Page and it has one table region and has 5 rows on it.One of the field on the table is Message Choice.
    The requirement is,If I select "Parts" then Lov Field should be displayed and If I select "Services" then one text field should be appear on that perticular table row.
    I have created a PPR on Message Choice and done the coding as follows,but it is not working;
    Please help me to achive it.
    if("lineChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    String rowReference =pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowReference);
    String claimCategory = (String)row.getAttribute("ClaimLineType");
    if ("Parts".equals(claimCategory))
    row.setAttribute("ClaimPartNoLovRender", Boolean.TRUE);
    row.setAttribute("ClaimPartNoRender", Boolean.FALSE);
    else
    row.setAttribute("ClaimPartNoRender", Boolean.TRUE);
    row.setAttribute("ClaimPartNoLovRender", Boolean.FALSE);
    Please let me know if there are any other ways to achive the same.
    Thanks in Advance..

    You might have the wrong forum. This forum is on IOP.

  • T code for editing the field in Sales Order

    Dear All,
    I want to change some field in sales order (display to editable)...
    Please suggest me..........
    Regards
    Lallan....

    Dear,
    I hope it will reach your req:
    Same post.....
    Sales Order editing fields
    Sap help.
    http://help.sap.com/saphelp_47x200/helpdata/en/7d/f63a0d015111d396480000e82de14a/frameset.htm
    How to do this process with screen shots..
    http://www.mortenhjorthnielsen.dk/Security/transactionvariants.htm
    Regards
    Chandra

Maybe you are looking for

  • Schedule lines not updating while using the BAPI_SCHEDULE_MAINTAIN

    Hi all, I am using BAPI_SCHEDULE_MAINTAIN to change the schedule line delivery date and schedule line quantity while i was changing using t-code ME38 it is changing but while using the above mentioned BAPI i am getting the below errors 1)Instance Pur

  • File and folder import

    I just installed Aperture and began to import files and folders from previous photo shoots (stored on a hard drive). I have many original jpgs that I modified in Photoshop and then saved as a separate version with a .psd extension. That means I have

  • Can we apply custom validation before uploading data in WebADI in 12.1.3

    Hi, I have requirement of applying custom validation before uploading data from spreadsheet using webADI. How can we do that. Is there any way in desktop Integration Manager Responsibilty in WebADI. I have just started exploring webADI Please Help Me

  • Table Control first line of data is blank

    Hi i have a table control screen built.  I have inserted my data into the table control, but the first row of it is blank, and it seems to be affecting everything else i need to do around that, how do i get that blank row out of there?

  • How do I delete a tool bar

    How do I delete unwanted tool bars, not just hide them, but delete them permanently.