Creating a grid-like layout

Previously, I posted a problem with trying to wrap tables within tables, referencing this code.
<!-- ... -->
<tableLayout>
  <contents>
    <rowLayout>
      <contents>
        <bc4j:viewObjectScope name="CustomArrayDataGraphsView">
          <bc4j:rowStamp>
            <cellFormat>
              <contents>
                <tableLayout>
                  <contents>
                    <rowLayout>
                      <contents>
                        <link
                              styleClass="OraHeaderSub"
                              targetFrame="display">
                          <boundAttribute
                                          name="text">
                            <bc4j:attrValue name="AnalysisParam"/>
                          </boundAttribute>
                          <boundAttribute
                                          name="destination">
                            <bc4j:ordProperty name="url"/>
                          </boundAttribute>
                          <boundAttribute
                                          name="shortDesc">
                            <bc4j:attrValue name="Description"/>
                          </boundAttribute>
                        </link>
                      </contents>
                    </rowLayout>
                    <rowLayout>
                      <contents>
                        <bc4j:attrScope name="Graph">
                          <contents>
                            <html:object
                                         width="300"
                                         height="200">
                              <boundAttribute
                                              name="data">
                                <bc4j:ordProperty name="url"/>
                              </boundAttribute>
                              <boundAttribute
                                              name="type">
                                <bc4j:ordProperty name="contentType"/>
                              </boundAttribute>
                              <rawText>
                                <boundAttribute
                                                name="text">
                                  <bc4j:attrValue name="Description"/>
                                </boundAttribute>
                              </rawText>
                            </html:object>
                          </contents>
                        </bc4j:attrScope>                                                                                                                                  
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
              </contents>
            </cellFormat>
          </bc4j:rowStamp>
        </bc4j:viewObjectScope>
      </contents>
    </rowLayout>
  </contents>
</tableLayout>
<!-- ... -->The above code renders a single row of elements which are tables themselves. Using the <cellFormat> inside the <viewObjectScope> avoids the "new line" rendering of the internal tables of title/images. However, the internal tables do not wrap.
This is an unfortunate side-effect of html tables. So, I need to basically make a sizeable grid (similarly to a GridLayout for all you AWT/Swing folks out there) layout that can render a specified number of columns per table, creating new rows as necessary. Something like...
<gridLayout columns="5">
  <contents>
    <bc4j:viewObjectScope                                 name="CustomArrayDataGraphsView">
      <bc4j:rowStamp>
        <cellFormat>
          <contents>
            <!-- render something per row -->
          </contents>
        </cellFormat>
      </bc4j:rowStamp>
    </bc4j:viewObjectScope>
  </contents>
</gridLayout>This custom layout will render a maximum of five columns of data per table row, where each column is actually a row of information from the view object.
Is this possible using UIX components or should I start coding?
Thanks,
joe

Also, displaying a bunch of "inline"ed tables would be really useful. I can't seem to do this from within a <header>, <hideShowHeader> tag, even with explicitly coding:
  <bc4j:viewObjectScope name="CustomArrayDataGraphsView">
    <bc4j:rowStamp>
      <bc4j:attrScope name="Graph">
        <contents>
              <html:table style="display: inline">
                <html:tr>
                  <html:td>
                    <styledText text="Title"/>
                  </html:td>
                </html:tr>
                <html:tr>
                  <html:td>
                    <styledText text="Image"/>
                  </html:td>
                </html:tr>
              </html:table>
<!--
              <tableLayout styleClass="display: inline" width="300">
                <contents>
                  <rowLayout>
                    <contents>
                      <styledText text="Title"/>
                    </contents>
                  </rowLayout>
                  <rowLayout>
                    <contents>
                      <styledText text="Image"/>
                    </contents>
                  </rowLayout>
                </contents>
              </tableLayout>
        </contents>
      </bc4j:attrScope>
    </bc4j:rowStamp>
  <!-- render a "No Records Found" message -->
    <contents>
      <styledText
                  text="No Records Found"
                  styleClass="OraErrorText">
        <boundAttribute
                        name="rendered">
          <if>
            <comparison
                        type="lessThan">
              <bc4j:viewObjectProperty name="estimatedRowCount"/>
              <fixed
                     javaType="int">1</fixed>
            </comparison>
            <fixed
                   javaType="boolean">true</fixed>
            <fixed
                   javaType="boolean">false</fixed>
          </if>
        </boundAttribute>
      </styledText>
    </contents>
  </bc4j:viewObjectScope>Apparently, the header tags do something which effects the display of "inline"ed elements, like the tables in the previous example. Any suggestions? I know taking out of the header works great, but, the <hideShowHeader> functionality is particularly necessary.
I have a time constraint on this... gotta be done by today, so if you have any other later minute suggestions besides creating a grid-like layout, let me know!
Thanks,
Joe

Similar Messages

  • Its possible to create a grid like this?!?!?

    hello to all, im new in Mii and i have a sql statement to populate the table but i want to know if it is possible to create a grid like the image in this link :
    http://img17.imageshack.us/img17/3021/gridx.jpg
    and then put the information that comes from the sql in the blank spaces
    regards and thanks for the help in advance
    Mário

    hello, correct me if i say something wrong of yours steps:
                1) Create a Doc action block with three columns like: Shift,Quantity,Scrap......
                       and then i put another field Total....correct?!?! or not?
                2) Add SQLQuery Action block and configure it with already created SQL Query.
                       the result of my SQLQuery comes like this...
                       Yield                 Scrap
                       5000                 1100
                        this is the result of this query:
                       select sum(max(yieldqty)), sum(max(scrapqty))
                       from z_event
                       where linenumber= '[Param.1]' and shiftnumber = '[Param.2]'
                        and (eventtimestamp >= to_date('[Param.3] 00:00:00', 'dd.mm.YYYY hh24:mi:ss'))
                        and (eventtimestamp <= to_date('[Param.4]', 'dd.mm.YYYY hh24:mi:ss'))
                        group by ordernumber
                       its better that the shiftnumber comes to???if yes the result comes like this:
                         Yield         Scrap     ShiftNumber
                          3720          35                  1
                         30878         117                  1 
                3) Put a repeater action block below that and configre with XPATH.
                4)Add a Row action block,configure with Doc.output and map the each column from the repeater.
                5) Also add other row with the total and take the sum of the quantity and scrap.
                how to make the SUM?!?! There isnt SUM Function...
                 like this Total = Total + Repeater_0.Output{/Row/MAX_YIELDQTY_}    ???
    regards and sorry for all this questions
    matinha

  • How to create a table-like layout using Iterator?

    I want to render several items in a table format using an iterator. Can anyone guide me on how to line up the different columns, like in a table?
    I cannot use the built in table because I want to change the display later using javascript and the af:table component does not work with that.
    The table will be in a panelsplitter element. The code I have right now:
    <af:iterator id="i1"
                       value="#{bindings.DenormPlanLine1.collectionModel}"
                       var="row"
                       rows="#{bindings.DenormPlanLine1.rangeSize}">
                        <af:panelGroupLayout id="pg1" layout="horizontal"
                                             inlineStyle="width:800.0px;">
                          <f:facet name="separator">
                            <af:spacer width="5" height="1" />
                          </f:facet>
                          <af:outputText value="#{row.StartDate}"  styleClass="sDate"/>
                          <af:outputText value="#{row.FinishDate}" styleClass="fDate"/>
                          <af:outputText value="#{row.DenormWbsLevel}" styleClass="level"/>
                          <af:outputText value="#{row.DisplaySequence}" styleClass="dSequence"/>
                          <af:outputText value="#{row.ElementVersionId}" styleClass="elVersionId"/>
                          <af:outputText value="#{row.TaskType}" styleClass="taskType"/>
                          <af:outputText value="#{row.PercentComplete/100}" styleClass="percent">
                            <af:convertNumber type="percent" />
                          </af:outputText>
                        </af:panelGroupLayout>
                        <af:spacer width="100%" />
                        </af:iterator>

    User, please tell us your Jdev version!
    Check out this sample http://andrejusb.blogspot.de/2011/05/oracle-adf-11g-custom-table-pagination.html
    Timo

  • How to create a grid like the sample of "profit Centre - Report" use sdk ?

    hi
    in the grid of "profit Centre - Report", it has a button,if you click it ,it can show the detaildata. it can implement many levels "Expand " and "Collaspe",but it's not implemented by group! i want to know how to implement it by ui dpi or udo .
    thanks!

    Hi,
    You need:
    - to know the relevant queries
    - to make copies (use GetAsXML) from the relevant system forms to mimick the standard functionality
    - to do it via UI API (use Grid and DataTable - then you don't need DI API at all)
    Here's some more information on DataTable / Grid:
    The UI sample no. 19 shows you how to load data into the Grid - via the DataTable...
    You can find an enhanced version of the sample (showing you how to get linked buttons, combo boxes etc) in the Education area on SAP Service Marketplace (SMP): http://service.sap.com/smb/education
    Or just try these links (need SMP user account for that...) to download the sample from the Archive of "Live Expert Sessions" (includes a few more things):
    http://service.sap.com/~sapidb/011000358700006282762006E.zip
    That's the link to the PDF for the session:
    http://service.sap.com/~sapidb/011000358700006282742006E.pdf
    ...and that's the recording:
    http://service.sap.com/~sapidb/011000358700006280182006E.wrf
    HTH,
    Frank

  • How can i create a grid with summary row

    Hello Professionals,
    I'm wondering how could i create a grid like the grid below, i want to create a grid with summary row,
    i have tried to create it using collapsing but it didn't work as required.
    Any suggestions?, i want to know just the starting point so i can make deep investigations.
    Thanks in Advance,

    Hi Karem,
    this can be achieved by just assigning a datatable containing the data plus some formatting of grid. Meaning there is no feature for that.
    The datatable can be filled manually or by sql query. Then you have to attach some events for updating the values ( validate after for gid item ).
    A small example for a sql query showing last month quotations and orders with summary :
    select 1 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 2 as Sort,'Summary ( Quotation ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    select 3 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 4 as Sort,'Summary ( Order ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    ORDER by Sort
    regards,
    Maik

  • How do you create THIS "grid" in Oracle Forms

    Hi,
    I am new to Forms. I have to develop a grid very similar to the one shown here.
    How can you create the grid in the bottom??
    I can't see using any of the standard Oracle toolbox items (like multi-record blocks) for this?
    Any help would be greatly appreciated.
    Thanks
    User 122...

    Hi Soofi,
    Appreciate your quick response.
    In the image, can you see a huge grid?
    Grid column headings are days of the week, Mon, Tue, Wed etc.
    Grid Rows also have names, like Room, Status and Rm. Type.
    Cells have various values in various colors (red, blue, green etc) and signs like ">>".
    Can you see that??
    My question is, how to create a grid like this in Oracle Forms??? We cannot do it using a multi record block.
    So, how have they done it??? The form in the image is an actual Oracle Form from a hotel reservation system.

  • Creating Editable Grid Data

    I have to create a grid like form which has editable fields including text box, selects and text areas, and plain text all in each row.
    e.g. of data
    ROW 1
    COL1     COL2          COL3          COL4          COL5
    text     select box     textbox          textbox          text
    ROW 2
    COL1
    textarea
    ROW 3
    COL1     COL2          COL3          COL4          COL5
    text     select box     textbox          textbox          text
    ROW 4
    COL1
    textarea
    I tried to use the netui-data:repeater tag(given below) on a two dimentional array but that works only when you have just text in each column.
    It does not work when you have editable fields in any row or column.
    <netui-data:repeater dataSource="{pageFlow.multiArray}">
    <tr>
    <netui-data:repeater dataSource="{container.item}">
         <td><netui:label value="{container.item}" /></td>
    </netui-data:repeater>
    </tr>
    </netui-data:repeater>
    Example data to be displayed is given below
    recordSetArray[0][0] =      text     - ROW 1
    recordSetArray[0][1] =      text     - ROW 1
    recordSetArray[0][2] =     text     - ROW 1
    recordSetArray[0][3] =     text     - ROW 1
    recordSetArray[0][4] =     selectbox - ROW 1
    recordSetArray[0][5] =     textbox     - ROW 1
    recordSetArray[0][6] =     textbox     - ROW 1
    recordSetArray[0][7] = textbox     - ROW 1
    recordSetArray[0][8] =     selectbox - ROW 1
    recordSetArray[0][9] = selectbox - ROW 1
    recordSetArray[0][10] = textarea - ROW 2
    recordSetArray[1][0] = text     - ROW 3     
    recordSetArray[1][1] = text     - ROW 3
    recordSetArray[1][2] = text     - ROW 3     
    recordSetArray[1][3] = text - ROW 3
    recordSetArray[1][4] = selectbox- ROW 3
    recordSetArray[1][5] = textbox     - ROW 3
    recordSetArray[1][6] = textbox     - ROW 3
    recordSetArray[1][7] = textbox     - ROW 3
    recordSetArray[1][8] = selectbox- ROW 3
    recordSetArray[1][9] = selectbox- ROW 3
    recordSetArray[1][10] =textarea - ROW 4
    recordSetArray[2][0] = text     - ROW 5     
    recordSetArray[2][1] = text - ROW 5
    recordSetArray[2][2] = text - ROW 5
    recordSetArray[2][3] = text - ROW 5
    recordSetArray[2][4] = selectbox- ROW 5
    recordSetArray[2][5] = textbox     - ROW 5
    recordSetArray[2][6] = textbox - ROW 5
    recordSetArray[2][7] = textbox - ROW 5
    recordSetArray[2][8] =     selectbox- ROW 5
    recordSetArray[2][9] = selectbox- ROW 5
    recordSetArray[2][10] =textarea - ROW 6
    How can this be accomplished?
    Thanks
    Mich.

    Chief,
    Yup that data grid is most buggy. I think most people expect
    it to work as well an Excel spreadsheet, and it's not quite there
    in Flex 2. I'm not sure if it is any better in 3.
    I think I am giving up trying to make mine work until they
    fix it.
    I have some of the same issues as you with focus and tab
    order.
    Mathias

  • Creating a grid layout

    Hi All,
    I am completely new to ADF UI part. I am looking for creating a grid layout of static/dynamic image content. just like the one that is there in suppose 'ebay search'.
    can somebody please tell me about how to go about this.
    Regards,
    ND

    For this you can use an af:table and put an af:image in a column.
    Check out this blog http://jobinesh.blogspot.com/2010/06/decorate-ui-with-view-row-attributes.html for a start.
    Timo

  • Create a grid or table layout report

    <p>Hi,</p><p> Anyone knows what&#39;s the simplest way to create a grid or table report using CR4E? my report is very simple, a list of POJO and want to display it in a table.</p><p>I guess you could add outside borders to each field, is there any simple way to do it?</p>

    Hi,
    The easiest way to create a report under the form of a simple table or grid, is to follow these 5 easy steps in CR4E, once your datasource is ready :
    1) Select your fileds
    In the Field Explorer, select all the fields you want to show in your report, using the Ctrl key to select them all at once
    2) Drag and drop fields on the report
    Drag and drop the selected fields all at once from the Field Explorer onto your report, on the Body section.
    The dropped fields will automatically be aranged in a row.
    3) Position the fields Â
    While all your fields are still all selected, make sure they are positionned at the very top of the Body section, so that there will be no space between your data on the final report.
    4) Set the Fields Property to make them look like a tableÂ
    While all your fields are still all selected, go to the Property panel, and set the Border Properties from None to Single. You will also probably want to set the LeftIdentation Property to a fraction of inch so that the text doesn't start right on the border of your grid.
    5) Set the Body section size
    Adjust the height of the Body section, so that it is exactly of the size of your fields, to ensure there will be no horizontal space between your grid rows on the final report.
    At this point, you can preview your report, and you already have a table.
    Of course, from there, you can adjust the fields size (columns width), font size, color of the text, etc ... with the available Properties in the Property panel, and make your table look the way you like.
    Cheers.
    Thierry Crespo (Business Objects)

  • How to create a grid

    Hi Friends,
    How to create a Grid, not a form or table.
    I want a grid to hold about 10 fields.
    so :-
    f1 v1 f2 v2
    f1 v1 f2 v2
    f--fields
    v--values
    I can get it using simple form ,but it doesnot look like a grid.
    I need the look and feel of a grid.
    Thanks!

    Hi Naveen,
    Check http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf Section "7.6 Layout managers"
    It will give you the most exhaustive description of how to build a grid in WD.
    Best tregards, Maksim Rashchynski.

  • How can i create a website like this?

    Hello Adobe Community
    I've had this idea in my head for a while, but i cannot think of how to create it.
    I think of creating a website with a very nice layout where you can purchase and submit your own ebooks to sell, and they need to be approved by an admin before it shows up on the website.
    I have been thinking about this for some time but i don't have a clue on how to create a website like this and it must take a very long time.http://puu.sh/5Ki7Q.png
    My idea: You can hover over the ebooks to get more information about them, you can see star rating and feedbacks / comments under the ebooks.
    I need help with getting started on the right track, i don't know very much about Dreamweaver, but i am starting to get good at it. I know HTML and a little CSS.
    I would really appreciate any help i can get.

    Unless you have very strong coding skills with PHP & MySql,  I think you could do most of this with  WordPress and  WordPress plugins for e-commerce, star ratings, lightbox viewer, reviews, etc...
    Nancy O.

  • Unable to create a new Message  Layout : 500 attempts failed.

    I am getting this error " Unable to create a new Message Layout : 500 attempts failed." when I am trying to add my custom region to seeded Message Layout.

    Is that all the error message you are getting or java error stack is also there? It looks like a custom message as I couldn't find it in fnd messages. DO you have any other custom code on this page or is this a custom page?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • Is it possbile to create ALV Grid using Class &  without using SE51

    Is it possible to create a alv grid using Class, with out using the screen painter(SE51).

    Hi Preethi,
    It is possible to creat ALV grid using class, provided u have to create a custom control in the screen dialog.
    Try with the foll code. This is an example for flight detail.
    DATA: container TYPE REF TO cl_gui_custom_container,
          alv_con TYPE REF TO cl_gui_alv_grid.
    data : it_sflight like table of wa with header line,
           g_fieldcat type lvc_t_fcat.
    /* Paste the code the PBO
        CREATE OBJECT container
          EXPORTING
            container_name              = 'C_SPFLI'. "Specify the container name which u created in the dialog screen.
        CREATE OBJECT alv_con
          EXPORTING
            i_parent          = container.
    /* Use the foll. to dislay the report
    CALL METHOD cl_grid->set_table_for_first_display
            EXPORTING
             I_STRUCTURE_NAME              = 'SFLIGHT'
            CHANGING
              it_outtab                     = it_sflight[]
              IT_FIELDCATALOG               = g_fieldcat.
    First create the container and then place the ALV in the container and for dislaying pass the necessary table.
    Hope this will useful for u.
    Get back if u r unable to do it.
    Regards
    Router

  • What is the easiest way to create a grid/matrix of images?

    We want to create a 'graduation plaque' with a number of students in a grid - like this
    http://50.asc.upenn.edu/drupal/sites/default/files/50th%20Anniversary/Students%20and%20Cla sses/1990's/Class%20of%201993.JPG
    The source photos are all different sizes. Is there a faster/easier method of producing something like this rather than resizing every image to fit a predefined size and then manually placing them on separate layers?

    Contact Sheet II is a Photoshop Plug-in Script writen by xbytor.  He is a much better Photoshop Script writer then me I'm just a hacker.  Contact Sheet is a much more complicate script then mine for is a Photoshop Plug-in with Photoshop action support.  It is also not designed to size all image to the exact same size and aspect ratio if images sizes and aspect ratio differ there will be some variation in images sizes on the contact sheets.  The only labeling it will do is place the file names on the contact sheet.
    My script is simpler therefor easier to change then Contact Sheet II and my Script is designed to make all image unform in size.  My script does not do any labeling but it would be easy to add to a point. My script is also only set up the do spacing the same vertically and horizontally but adding a couple of field to its dialog you could easily separate them but this might not be needed.  The hard part would be the labeling for you may want to rotate the roll paper print so it a wide image rather then tall. In which case the labeling would need be set up up rotated and moved the the side of the image which would be rotated because of the tile aspect ratio set up  you would make tile have a landscape aspect ratio. Portraits would automatically be rotate for best fit, when you rotate the print they will be orientated portrait.  The labeling would need to have at least two options in the dialog,  One to do labeling and one for which way you want the labeling done to the side or below. All image processed must have the same orientation otherwise some will be rotated not all or none. Image can vary in size and aspect ratio.  But all should be landscape or portrait for the script is designed to rotate image for best fit into tile size.

Maybe you are looking for