How to create a template for more than four column conditions?

Hi
I want to create a report template for a tabular form should have more than 4 column template conditions (more than 12 conditions i need) to get the coloring for row based on the conditions.
so, please tel me how to do a template to meet my requirements.
APEX VERSION: 4.2
Database :11gR2.
Cheers
Tulasi.

Tulasi 1243 wrote:
Hi
I want to create a report template for a tabular form should have more than 4 column template conditions (more than 12 conditions i need) to get the coloring for row based on the conditions.
so, please tel me how to do a template to meet my requirements.
VC wrote:I don't think it is possible using the template column conditions...try using some jQuery code that runs on page load.
I am sure this has been discussed here before. Search the forum...good luck.It is possible using a template, and it has been discussed many times...
The trick is to combine classTyler's conditional <tt>class</tt> technique with a custom named column report template.
Determine a class for the row in the query:
select
          empno
        , ename
        , sal
        , case
            when sal < 1000 then 'low'
            when sal between 1000 and 2000 then 'medium'
            when sal > 2000 then 'high'
          end sal_class
from
          empCreate a custom named column report template, referencing the class in the row template:
<tr class="#SAL_CLASS#"><td>#EMPNO#</td><td>#ENAME#</td><td>#SAL#</td></tr>Then create a style sheet to apply the required backgrounds:
tr.low td { background-color: yellow; }
tr.medium td { background-color: white; }
tr.high td { background-color: red; }

Similar Messages

  • How to create combobox to display more than one columns

    I need kind help with the following question. As the combobox includes two pieces--textbox and the combobox list. Then how to create a combo box bean, which is based on table EMP(empno number(6), ename varchar2(40)) records for example, to achieve these features:
    1) allow more than one columns to be displayed in its records list--e.g., I need to show these records:
    empno (value) ename (label)
    103 David M Baker
    104 David M Baker
    105 Kelly J Volpe
    106 Krista F Carpenter
    107 Michelle P Silverman
    The two 'David M Baker's are different employees, but unfortunately, with the same name.
    2) allow combo box list to return the column value 'empno' even though it shows both columns as above. i.e., if user picks the second record above, then the combobox list returns 104 to the textbox in the background, but the 'David M Baker' is displayed on the textbox. Of course the combobox list may return 'David M Baker' if needed when there is only one column in the list as the current standard feature.
    3)allow partial match search by typing in some letters. i.e., if user types in the textbox of the combobox letter 'K' or 'k' then the partially matched records
    105 Kelly J Volpe
    106 Krista F Carpenter
    should be automatically displayed in the combobox list, not the whole list as above; then user may double click to choose one of the two or if user continues to type in 'R' or 'r', then the uniquely matched record 'Krista F Carpenter' is displayed in the textbox and the 106 is returned to the textbox.
    4) as a bonus if it's doable, allow combobox to return values to different textboxes when its records list has more than one columns.
    The reason I need these features is that I am working on the project migrated from Microsoft Access applications to centralized Java version web application. We at beginning promised to users community that Java swing will provide all the GUI user friendly features Microsoft Access has, but now we got stucked--we ate our words and got tons of complains from our users community. This is just the most needed component I posted here. I really hope that Java would add all the default GUI user-friendly features to compete with MS since its Win95 GUI has been accepted as industry standard. And most users are used to it. They claimed that they don't know and don't care what tool you use the newly created application should be more user friendly, not the opposite.
    I would be very much appreciated if any one would help me with this item.

    Thanks for your comments. I think nobody expects Sun to write everything including special features for its components. But I do think Sun should provide at least those standard user-friendly features for the GUI components because most users have been used to the GUI user-friendly features provided by Win95 and Access/Excel applications. Then this will help us to productively create applications to beat MS applications.
    Other wise like me, to get the existing GUI features, existed in old MS Access application, for our migrated Java application, I must re-create the GUI components library first which is a big burden to me at least, for others it might be fun for coding on their own from scratch, but I have to focus on the timing of project.
    If you really can pass the request to Sun and push them move a bit, please pass these words: before Sun starts to revise them, please play around window GUI, e.g., Access/Excel applications, then plan what to do, the bottom line is to equally match or better than them in FUNCTIONALITY(Look and feel is not my focus here). Don't ignore the influence of Windows regardless of you hate it or love it, the reality is most users are so familiar with windows GUI features which are accepted as industry standard. Thus the choice is to match or better to beat them. Don't make your car by closing your door, don't assume users will like what you come out in a closed room.

  • How to create Single Queue for more than one interfaces(XI)

    Hi Experts,
    I want to set up a separate queue for 3 interfaces which all are outbound IDOC to FTP.
    Please let me know ' Hhow to create a queue for multiple interfaces with Quality of Service 'EO''.
    Thanks,
    Srinivas P.

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • Creating Scatter chart for more than one column

    Hi,
    I have 2 columns of sorted numbers, when I select one column at a time and create a Scatter type chart, every thing is OK,
    But I want a chart with both columns in it, and when I select both columns and select a Scatter chart, Numbers takes the Group1 column as X axis and Group2 column as Y axis and draws me this chart whiich is not what I want!
    When I try this type of chart the chart is something like I want, but not with connected lines.
    How can I draw a Scatter chart with 2 columns of data in one chart?
    Thanks in advance,
    Regards,
    Hadi

    Thanks Jerrold, The problem was the first column, on the left of Group1. that column should not be as header. I created another table like this and the Share X Values command worked like a charm. I really don't know why!?

  • How to create Dynamic Table with more than one column?

    Hi,
    I'm trying to learn Dreamweaver. I'm trying to display 2 units from my database in the same row then I would like go to next row.
    By default DW shows single record in each row. Is it possible to display more than one?
    Thank you

    Of course. You will not name the divs differently, they will all be <div class="RowContainer">  (in the example below) and the reason they will look like
    1 2
    3 4
    5 6
    is because they will "stack themselves up". That is, the first will float to the top left, the next will float up next to it. The third will not fit on the top line floating next to two, so it will start a new row. Four will float up next to it, and five will start the new row.
    Think of the string of divs (don't put wordspaces between them...) as a continuous ribbon or chain of divs. That is a slightly poor analogy, since the second and third won't be next to each other, as a chain or a ribbon might be. But you should be able to have as many divs as you have records... you define the div in the CSS and in your page markup really only show one div.
    Here's a modified example from one of my files:
    <div spry:region="ds1" class="...">
      <div spry:repeat="ds1" class="RowContainer"> <!--this is the div that you would style to float -->
        {category} {title} {medium}<br>
         {price} {sold} {date}<br>
         {sold_to_purchase_price}
      </div>
    </div>
    Beth

  • Same template for more than 8 regions in a page

    anyboday can explain how to apply same template for more than 8 regions in a page ?

    Hello,
    You should be able to apply the same template to any number of regions on the page. There is no constraint.
    Carl

  • How to create a Templates for Categories and Products In BCC

    Hi All,
    Could you please tell me How to create a Templates for Categories and Products In BCC and how Can I get those Templates details(Categories and Products)in jsp
    If possible can any one send the document or where we find in atg docs
    Regards,

    At product/category/sku level there is a property called template.
    Find the property in ACC/BCC and provide all the values including the URL property.
    In you jsp, you can use this property from product/sku like the way you retrieve any other property from sku/product.
    <dsp:valueof param="product.template.URL" />
    Using that property with <dsp:include> includes that page.
    Peace
    Shaik

  • I want to create a report with more than  64 column's.

    I want to create a report with more than 64 column's. I have generated Query the XML.When I tried to create a template for the report.I have Inserted the colum's Wizard and finish it throughing error message. "you cannot create atable with more that 63 coloum's "

    Hi ,
    Can u Check the below thread
    More than 63 columns in rtf template

  • How to create a table with more tan 20 columns

    I created a A4 landscape document to make a calendar for the next year.
    To add the date information I need to insert a table with 32 columns (name of month + 31 days). It should be possible to create a table with a over all width of 29.7 cm (consisting of 1 column of 4.9 cm and 31 columns with 0.8 cm)?
    Remark: Yet reduced all indention's (? German: Einzug) and other spacers and the size of used font of the table.

    Hello Till,
    unfortunatly Pages connot create a table with more than 20 columns. This is no question of size or place.
    But you can create two tables, set the most right border of the fist table to "no line" and align the second table (with the other 12 columns) at the right side of the first table. Now you have "one" table with 32 columns.
    I have done this with my driving book (Fahrtenbuch, um es korrekt zu schreiben and it works fine.
    Frank.

  • Can I create a table with more than 40 columns ?

    Hello,
    I need to organize my work with a table and need about 66 columns. I am not very good with Numbers but I know a little bit of Pages. I cannot find a way to create a table with more than 40 columns... Is it hopeless ? (Pages '08 v. 3.0.3)
    Thank you all

    It's never too late to try to teach users that the Search feature is not only for helpers.
    The number of columns allowed in Numbers is not a relevant value when the question is about Pages '08 tables.
    I tried to copy a 256 columns Numbers table into a Pages '09 document.
    I didn't got a table but values separated by TABs.
    I tried to convert this text range in a table and got this clear message :
    If I remember well, in Pages '08, the limit is 40 columns.
    It seems that you are a specialist of inaccurate responses, but I'm not a moderator so I'm not allowed to urtge you to double check what you wrote before posting.
    Yvan KOENIG (VALLAURIS, France) vendredi 29 avril 2011 14:57:58
    Please :
    Search for questions similar to your own before submitting them to the community

  • How to create custom template for webcenter portal application

    Hi,
    I created webcenter portal application in my jdev using the webcenter portal application template provided by the webcenter framework.
    I tried to create custom template for my application by following steps:
    1. Created new application using webcenter portal application template with all default package structure.
    2. Right click pagetemplates folder under webcontent package and select new option.
    3. New gallery opens up.
    4. Selected JSF under webtier and JSF Page Template under items in the right hand side and clicked Ok button.
    5. New wizard opens up for creating new JSF page template.
    6. Gave template name(file name) and Page Template Name(template def name).
    7. Selected checkbox staing start a Quick Start Layout and selected three column layout and selected Ok.
    8. Selected checkbox for Create Associated ADFm Page Defination(so that page templates can be changes at run time).
    9. Created some Facet Definations (header, footer, content1, content2, LHN, RHN).
    10. Clicked Ok button which will create custom template.
    11. Added some Panel Group Layout component from Component Palette.
    12. Created new page (.jspx) with this template.
    Now when I try to add producer portlets created using Producer Portlet application template and connected to the above application using WSRP2.0, I'm facing problem.
    The prolem is that I'm not able to add more than one portlet in one single page?
    Kindly let me know whether the steps followed by me is wrong some where and needs to corrected and let me know how I can add more than one portlet to page?
    Basically I cant see more than one placeholders in my page to add portlets.

    Thanks Yannick.
    In the step 9 I had mentioned that I created various facet definations (header, footer, content, content1 RHN and LHN).
    Is this is not facet you are talking about or should I drop facet ref from the resource palette?
    Can't I add moer than one portlet to my page at design time itself?
    Annoying since in weblogic portal we do this at design time(.portal).

  • Creating Common Bom for more than two Organizations

    Hi All,
    I have a requirement of creating a Common BOM (bill of materials and few components to some organizations at a time) for more than one Organization.
    How can i do this.
    Can any one help me on this.
    Thank you,
    Amar

    Amar,
    Create org hierarchy and use hierarchy when running common bill program rather than org by org.
    Thanks
    Nagamohan

  • How to create a template for pages in a book

    How to create a template in Pages to create camera ready pages for publishing a book?

    Nothing is "camera ready" these days, it is all digital.
    What is it you need to know, a book can take many forms.
    Does it contain color photos, spot colors, purely black ink etc?
    Peter

  • How to buy mountain lion for more than 1 Mac

    Hi All,
    I want to upgrade the system for more than 10 users from snow leopard & lion, how to use one apple ID to apply a batch license for mountain lion upgrading?
    Is there anyway that I can get a solution?
    Jack,

    I'm unclear on what you're talking about, because you keep on talking about users and clients... how many actual machines need the software? Note that the number of users on a particular machine is unimportant. There is no limitation on that based on the licensing.
    To get volume licenses for Mac OS X for business use, see:
    http://www.apple.com/mac/volume-licensing/

  • How do I get to have more than 20 columns in a table in adobe form?

    I see that there is limitaion to not have more than 20 columns in my table in adobe form, Is there any way I can have more than 20 columns in a table in adobe form in landscape mode.

    Hi,
    That only relates to the Table Wizard. Once the table is placed on the page, you can add columns manually, from the menu or right-clicking on a column.
    You can also use fields within a repeating subform (instead of the table object).
    Good luck,
    Niall

Maybe you are looking for

  • Unable to retrieve server listen address through MBEAN API in Weblogic 10.3

    Hi, I am using weblogic 10.3 and i am lookign to retrive the listen address of the weblogic server where my application has been deployed. I have used the below piece of code to do that. Code snippet : ====================================== private P

  • Unable to download Photoshop Elements 12 on Windows 8.1 64 bit. [was: downloading]

    Is the new Photoshop Elements 12 compatible with Windows 8.1 on a 64 bit computer?  Purchase product on 7/15 and have not yet been able to successfully download and register, etc.

  • Business Place Edit Issue

    Dear SAP Guru, When I am using T.Code:- J1INPP for put the missing Business Place into document.After excute that time the massage is document is incomplete Massage no. 8I0000 and not update the FI document. Please suggest me, How I can resolve this

  • BPM-API and generic task completion

    Hi experts, I want to write an application that allows you to work on different tasks. The problem is that these tasks could include various input and output data. How can I resolve this DataObjects generic and receive all relevant information such a

  • HT4946 iPhone4 backing using iTune.

    My iPhone4 home button is not working (currently frozen at "message" screen). Does anyone know how to back up the data (incl. photos) using iTune, before I get the new replacement from Apple? Thanks a lot for your help.