How to set the text in the last line of the table to be bold

Hi all

I have two tables in the report on my page and I would like to have the last line of the table as a "BOLD" text data.

I found a jQuery selector to select the last row of the table, but I do not know how to implement it in the Apex. I want to control what table will have changed last row and who won't.
$("tr:last").css({backgroundColor: 'yellow', fontWeight: 'bolder'});
Could someone help me how to create a dynamic action to accomplish, or if y at - there another solution?

My test app:

user name: [email protected]
passwd: kurintest
appl: REPORT_APPL 12451

Thanks in advance,

Jiri

Nico Martens wrote:

PS: If you worry about sql plsql context switching, use a box instead of my function. Which probably could increase performance.

Using this technique , analytics, and casewould be more effective and offer the best separation of concerns:

Source report

select
          product_id
        , sum(quantity_on_hand) qty
        , avg(quantity_on_hand) avg
        , case
            when   count(*) over ()
                 = row_number() over (order by product_id nulls last)
            then
              'bold'
            else
              'normal'
          end font_weight
from
          oehr_inventories
group by
          rollup(product_id)
order by
          product_id nulls last

HTML column expression

#PRODUCT_ID#

Avoid generating HTML in the query when it is possible that its impact on the ability to use the features of declarative report as column sorting and setting in the form. (See examples on page 3)

If you have a table with 100 rows and you show only 15 lines. Do you want the 15th line "BOLD" or just line 100Le.

It is really the important issue here. If the reports do not use paging and always show all lines, then it's trivial to implement using dynamic Action (as shown on page 2):
H4. When

Event: After refresh
Selection type: jQuery Selector
jQuery Selector: .report-standard

H4. Real Action

Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:

$(".report-standard tr:last-child td").css({backgroundColor: 'yellow', fontWeight: 'bolder'});

(Here is to use appropriate DA / jQuery selectors to make sure that only reports including totals get this formatting applied...)

For more complex presentations, a report of custom line model is the way forward, as in the link in the previous thread of the OP: + {: identifier of the thread = 2436912} +.

Also note that the columns hidden, based on the GROUP_ID/GROUPING/GROUPING_ID functions are very useful in these reports. They can be used to report conditions of line to avoid the additional conditions to be ready in the query (as in the case above) and provide the break several levels of formatting.

Tags: Database

Similar Questions

  • How to set the table at the bottom of the Page

    Hi all

    I was working with Oracle apps r12 and Oracle 10 g BI report.

    I was working with customer appraisal report. I have the table used for aging bucket. This table should set at the bottom of the page.

    We have the personalized message to the footer before this fotter message that this table must get fixed.

    Thanks and greetings

    Srikkanth

    Hello

    I tried, but useless, don't is there another way to set the table at the bottom of the table.

    Concerning

    Srikkanth.M

  • How to set the table rows spacing and line changing automatically if is limit

    Greetings,

    I use JDeveloper 11.1.2.4. By default, if you set (or not) the table width and the line is its width, it will create a scroll down bar.

    Is what I want to do, if the text inside each row its greatest width, to change the line inside his line. TO

    more to explain it, I'll demonstrate a small table below:

    MESSAGE ID

    1 Hello Philip

    2 Hello Philip

    3 How are yo

    u today?

    4 tries...

    This way, if the text in the column 'message' is the largest say width 40, to increase his height of line automatically if the text

    fits inside 1 row without creating a scroll bar.

    Thanks in advance for any help.

    Have you attempted to assign noWrap = "false" on af:column?

    Dario

  • How to set the table

    Hi experts,

    I have a script for the table to find and change the properties.

    Could someone show me how it works.

    Respect of

    John

    myDoc = app.activeDocument;

    findTable();

    function findTable() {}

    for (s = myDoc.stories.length - 1; s > = 0; a--) {}

    for (t = myDoc.stories [s].tables.length - 1; t > = 0; t-) {}

    myTable = myDoc.stories [s] .tables [t];

    tables [t].cells.everyItem (). texts.everyItem () .fillColor = "Black";

    tables [t].cells.everyItem () .fillColor = "None";

    tables [t].cells.everyItem () .leftEdgeStrokeColor = 'None ';

    tables [t].cells.everyItem () .rightEdgeStrokeColor = 'None ';

    tables [t].cells.everyItem () .topEdgeStrokeColor = 'None ';

    tables [t].cells.everyItem () .bottomEdgeStrokeColor = 'None ';

    }

    }

    }

    Alert ("Finish.")

    Hi John,.

    I have made some changes, but kept things similar to your original code, let me know how you go.

    var myTables = app.documents[0].stories.everyItem().tables.everyItem().getElements()
    
    findTable();
    
    function findTable(){
        for ( t = 0; t < myTables.length; t++ ){
            myTables[t].cells.everyItem().texts.everyItem().fillColor = "Black";
            myTables[t].cells.everyItem().fillColor = "None";
            myTables[t].cells.everyItem().leftEdgeStrokeColor = "None";
            myTables[t].cells.everyItem().rightEdgeStrokeColor = "None";
            myTables[t].cells.everyItem().topEdgeStrokeColor = "None";
            myTables[t].cells.everyItem().bottomEdgeStrokeColor = "None";
            }
        }
    

    Kind regards

    Brett

  • How to set the banner text in Vcenter?

    Hello

    I'm looking how to set the Banner text in Vcenter not in the ESX Server.

    The banner message should apper when connecting users on the VCenter server.

    Thanks in advance.

    See screenshot:

  • How to set a text index in the Data Modeler

    Hello

    How to set a text index (indextype is ctxsys.context) in data maker?

    The SQL command would be:

    create index P1_TEXT_BESCHR_SPRACHE on indextype P1_PDM_MODUL_SPRACHE (DESCRIPTION) is ctxsys.context
    parameters ("lexer global_lexer language format column FORMAT STORAGE PDMSTORE")
    Online
    /


    Thanks in advance for any help.

    Monika

    Hi Monika,

    After you create the relational model, you create a physical. In the physical model there is dialog box properties index, where you can set the properties of context index.

  • How to set the ToolTip text programmatically?

    Anyone know how to set the ToolTip text programmatically? forms10g, db10g.

    Thank you
    m.

    Hello

    You can use the SET_ITEM_PROPERTY to define the criterion of an element tool tip.

    SET_ITEM_PROPERTY('.', TOOLTIP_TEXT, '');
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • How to set the height of cfinput text

    How to set the height of a "text box" in ColdFusion? When I look at this in dreamweaver, the box is multiline, but when it appears in the browser, is only a single line.

    < cfinput type = "text" name = "Comments" size = "40" height = "500" width = "150" >

    Hmmm... just changed to

    and it works... didn't even worry Pass Through.

  • How to set the path of the report in a plugin for model

    I'm trying to figure out how to set the path of the report in a plugin process model. I can't find a way to have access to it. It seems this would be a reasonable thing to do since the plug-ins are for the treatment of the results. Does anyone know how to do this? We generally use the sequential process model, but I try to keep my plug-in as independent as possible.

    Thank you.

    If I understand correctly, you want your plug-in, when enabled, change the settings of all other instances of the report OR plugin as their reports share the same directory that your plug-in is configured to use.

    If so, your plug-in can access and change the settings of all other instances of plugin. All instances are passed to all the points of plugin entries in the subproperty of the plugins of the ModelConfiguration parameter table. You can browse this table. Any element of the array with an equal to "NI_ReportGenerator.seq" Base.SequenceFilename is an instance of the report OR plugin. Its report options are stored in the element under PluginSpecific.Options.

    You can change the report options to what you want. Note that the recall of the ReportOptions model is called from template-plugin Initialize entry point, then you might want to ensure that your changes are applied after that, so they are not replaced. To do this, you could make your changes in the Initialize entry point of your plugin and make sure your plugin runs last. To rotate the last, you can set the FileGlobals.ModelPluginComponentDescription.Default.Base.RunOrder in your file of plug-in with a value greater than 0, for example 1.0 (see Help for TestStand > Fundamentals > process template Architecture > plug-in for the model process Architecture > Structure of the plugin sequence files > plugin model of entry Points > Order Execution of Point of entry at run time).

  • How to set the voltage on a 3.3 volt NI 9237 module?

    Hello

    How to set the voltage on a 3.3 volt NI 9237 module?

    The voltage is now at 2.5 volts.

    This is my first time with this camera.

    This set of MAX or are there jumpers?

    I want the value of the excitation voltage at 3.3 Volts and do not change.

    The NI 9237 is a NEITHER cDAQ-9172.

    Thank you

    Bill

    Hi POBA,.

    This can be set to your programming environment.  For example, LabVIEW Signal Express, a task of MAX, or a DLL call in a text-based environment.  You want to create a strain, tension Custom with excitement, or any bridge based task in any environment.

    "" "In MAX, right-click on your device and choose create a task" acquire signals "analog input"...

    "" "In LabVIEW, place a DAQ Assistant" acquire signals "analog input"...

    "" "In Signal Express, add a step for Acquire" DAQmx Acquire"analog input"...

    In any C language based, you will want to call a function such as: DAQmxCreateAIVoltageChanWithExcit, DAQmxCreateAIStrainGageChan, DAQmxCreateAIBridgeChan

    You can then specify the Source of Exictation to be internal to 3.3V.

    Best,

  • How to set the size of the print topic

    I have a deskjet 3520 all in one and my computer is a computer laptop dv6 with prof. windows7 64 bit.

    I want to print traces of PCB so that I can make my own, but I do not know how to set the size

    with this printer. They take the entire page when I want to be 2.35x3.35.

    Don't know if it is possible with this printer.

    Any help would be apreciated.

    Last night, I figured out how to resize with IrfanView. It allows me to get the size I want in metric or inches

    and it's free.

  • How to set the height of row?

    How to set the height of row for my text in EA? I checked this article Edge animate help | Adding text to your project (tutorial) , but it refers to an old version of the environmental assessment.

    Hey Bruce,.

    You can set it in the user interface. Activate additional text settings in the property Panel by clicking on the arrow.

  • How to set the alignment of the field in a table in jdev 11.1.2.3?

    Hello
    How to set the alignment of the field in a table in jdev 11.1.2.3?
    for example: to display a body of numbers in a table as right aligned.
    I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
    and jspx, flowing, but it doesnot work.
    Thank you.
    Bao

    < af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
    sortable = "true".
    headerText = "#{bindings." VO1.hints.amount.label}.
    ID = "c44" width = "60".
    Align = "center" >
    < af:inputText value = "#{row.bindings.Amount.inputValue} '"
    label = "#{bindings." VO1.hints.amount.label}.
    required = "#{bindings." VO1.hints.amount.mandatory}.
    columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
    maximumLength = "#{bindings." VO1.hints.amount.precision}.
    shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
    ID = "it58.
    secret = "false".
    inlineStyle = "" text-decoration: overline; ">"
    < f: validator binding="#{row.bindings.Amount.validator}"/ >
    < / af:inputText >
    < / af:column >

    Hello
    To set a field right alignment in a table:
    It doesnot work when InlineStyle-> text-align: right;
    It works when ContentStyle-> text-align: right;

  • How to set the pixels for the softer - edge, in a design? I use PhspCS5 TRIAL grateful for help!

    First of all, I'm not a rather advanced digital artist know the tools of basic (a bit) and I'm pretty good with those who, over the years, however, have a new Mac and better

    visibility for sure and an ASSESSMENT of PSHP CS5 Extended version; what I'm asking is: how to set the pixels... to achieve the softer contour for example. I have

    greeting card templates and is now working on a Christmas tree, with gold stars, they better look (vy-light = blk) but when I ZOOM IN I see the ' wavy lines

    pixels, which appear on the 'place '.  I would like to know how to set the pixels * 1 # and then with respect to colors, when I take a yellow (there are many! yellow!)

    and use my Intuos "tap tap tap" pen drawings (yellow), it does NOT save... (he did it on my other computer and CS4 more aged).  So going

    back to my swatches of color, of... .remember just what yellow I took... ha ha... can be: "not so fast!"

    I buy this subscription at the end of the trial and my bet is that the color picker / working on the purchased version when I "tap tap" to pick up the

    same color II had chosen.  Wouldn't it be good to have a monitor of sorts that says you, what color (s) is used when you need to know, to go

    on the 'design' say after a break for tea, etc.  ?????  (    :

    I save my drawings when facts JPEGs and see now, there's a JPEG 2000... I don't know what it is all about.  I save pdf (1) and a jpeg.  Hope that this sounds

    like what we "do"... When we know much more than me.

    And finally, what program or tool, can a use to put a 'framework' (border) around an eg: 5 x 7 design (again, my goal is for my greeting cards designs.  Are there

    another of Adobe products, I would have to do this.  Free hand has not worked so well, so far.

    I'm in advance, so grateful to you - anyone you may, for your help.  I'm on my way 'Hooray' last now in the hope of success soon... I am a senior of 71

    and so feel I have to really "go there" and learn these basics to ensure my chances of success, at least. Thank you, thank you & thank you! CDW

    Please post in the Photoshop forum.

    http://forums.Adobe.com/community/Photoshop

    Bob

  • How to set the focus

    Hai

    Say like page of connection in onload, the cursor should focus in the box, how to set the focus?

    Second, even connect click on the connection through properties of the keyboard button, if I click enter on the keyboard it should connect

    How to have the keyboard properties in flex?

    Can someone help me

    Thanks in advance :-)

    for logging by using the... button you can add eventlistenrer to the area of particular text... example...

    ti.addEventListener (KeyboardEvent.KEY_DOWN, EnterKeyEvent);

    private function EnterKeyEvent (event: KeyboardEvent): void
    {
    if(Event.keycode == 13)
    {
    do something
    }
    }

Maybe you are looking for

  • Is there anyway for Firfox 29 unmetrouifiy?

    I never run Windows 8 because of the user interface,Now that Firefox was made to look like a Windows 8...I want to know if there is anyway to change UI back to what had 28 Firefox?

  • Info page says "ISO-8859-1" but Firfox displays the page in UTF - 8

    Only after you manually change the character encoding ISO - 8859 - 1 German Umlaute are displayed correctly.

  • Skype does not webcam

    Hello I use Windows XP SP3. My webcam works fine on Yawcam. Skype won't recognize it. I have the latest drivers for my graphics card and I ran the Sir Microsoft Fixit but without success. I know that others have had this problem and I spent some time

  • No sound on my laptop

    The sound of my laptop (HP Pavilion series 7g) Windows 7 went all of a sudden and I don't know how to fix... I try any (Manager of device, mixer and other things) but nothing... The strange thing is that when I put my headphones the sound is ok... No

  • error during execution of SAS 9.2 on windows 7 pro

    yesterday I installed my new windows 7 proAfter I installed SAS 9.2 when I try to run SAS or loading of any old projects continue to give me this messageError: The SAS syntax editor control is not installed.I don't know how to solve the problem and I