Table cell progress indicator

I see in the JavaFX 2.2 API that there is a table cell implementation for rendering a progress bar. However, it appears that this only supports the progress indicator that takes an incremental update value (as a double, presumably a value between 0 and 1?) to adjust the "progress" in the indicator. There does not appear to be any support for an indeterminate progress indicator that can be embedded in a table cell.
I am asking because I have a situation where there will be a background task that will be launched potentially for any row in a table. The task may take some time to execute and complete and I would like to show an indeterminate progress indicator that will "spin" until the task completes. I wanted to be able to include this as a cell (column) for each row so that individual rows could indicate whether they were currently "working" or done.
Is there, or will there be in the near future, support for this type of functionality? Or, are there suggestions on a way to cobble together something that can do this?

Copy and paste the ProgressBarTableCell code and search and replace ProgressBar with ProgressIndicator on it.
http://hg.openjdk.java.net/openjfx/8/master/rt/file/tip/javafx-ui-controls/src/javafx/scene/control/cell/ProgressBarTableCell.java
Here's a minor update to the great example James put together which does this.
Seems to work fine. Only issue I see when running it on a recent jdk8 version is that the indeterminate progress indicator is a bit too big, then the whole indicator shrinks a little bit once the indicator switches to reporting percentage progress. I didn't investigate that any further, likely it's a minor styling bug in the new JavaFX modena style sheet for Java 8 which you could work around by applying your own style to indeterminate progress indicators.
* Portions of this code (ProgressIndicatorTableCell) are base upon Oracle
* JavaFX code (ProgressBarTableCell), which is subject to the following license term.
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.  Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
package test;
import java.util.Random;
import java.util.concurrent.*;
import javafx.application.Application;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Task;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import javafx.util.Callback;
public class ProgressIndicatorTableCellTest extends Application {
  public void start(Stage primaryStage) {
    TableView<TestTask> table = new TableView<>();
    Random rng = new Random();
    for (int i = 0; i < 20; i++) {
      table.getItems().add(
              new TestTask(rng.nextInt(3000) + 2000, rng.nextInt(30) + 20));
    TableColumn<TestTask, String> statusCol = new TableColumn("Status");
    statusCol.setCellValueFactory(new PropertyValueFactory<TestTask, String>(
            "message"));
    statusCol.setPrefWidth(75);
    TableColumn<TestTask, Double> progressCol = new TableColumn("Progress");
    progressCol.setCellValueFactory(new PropertyValueFactory<TestTask, Double>(
            "progress"));
    progressCol
            .setCellFactory(ProgressIndicatorTableCell.<TestTask>forTableColumn());
    table.getColumns().addAll(statusCol, progressCol);
    BorderPane root = new BorderPane();
    root.setCenter(table);
    primaryStage.setScene(new Scene(root));
    primaryStage.show();
    ExecutorService executor = Executors.newFixedThreadPool(table.getItems().size(), new ThreadFactory() {
      @Override
      public Thread newThread(Runnable r) {
        Thread t = new Thread(r);
        t.setDaemon(true);
        return t;
    for (TestTask task : table.getItems()) {
      executor.execute(task);
  public static void main(String[] args) { launch(args); }
  static class TestTask extends Task<Void> {
    private final int waitTime; // milliseconds
    private final int pauseTime; // milliseconds
    public static final int NUM_ITERATIONS = 100;
    TestTask(int waitTime, int pauseTime) {
      this.waitTime = waitTime;
      this.pauseTime = pauseTime;
    @Override
    protected Void call() throws Exception {
      this.updateProgress(ProgressIndicator.INDETERMINATE_PROGRESS, 1);
      this.updateMessage("Waiting...");
      Thread.sleep(waitTime);
      this.updateMessage("Running...");
      for (int i = 0; i < NUM_ITERATIONS; i++) {
        updateProgress((1.0 * i) / NUM_ITERATIONS, 1);
        Thread.sleep(pauseTime);
      this.updateMessage("Done");
      this.updateProgress(1, 1);
      return null;
class ProgressIndicatorTableCell<S> extends TableCell<S, Double> {
  public static <S> Callback<TableColumn<S, Double>, TableCell<S, Double>> forTableColumn() {
    return new Callback<TableColumn<S, Double>, TableCell<S, Double>>() {
      @Override
      public TableCell<S, Double> call(TableColumn<S, Double> param) {
        return new ProgressIndicatorTableCell<>();
  private final ProgressIndicator progressIndicator;
  private ObservableValue observable;
  public ProgressIndicatorTableCell() {
    this.getStyleClass().add("progress-indicator-table-cell");
    this.progressIndicator = new ProgressIndicator();
    setGraphic(progressIndicator);
  @Override public void updateItem(Double item, boolean empty) {
    super.updateItem(item, empty);
    if (empty) {
      setGraphic(null);
    } else {
      progressIndicator.progressProperty().unbind();
      observable = getTableColumn().getCellObservableValue(getIndex());
      if (observable != null) {
        progressIndicator.progressProperty().bind(observable);
      } else {
        progressIndicator.setProgress(item);
      setGraphic(progressIndicator);
}

Similar Messages

  • Issue regarding Progress Indicator on table row selection

    Hi Team,
    I have overridden onSelectionListener on a table. On click of any record in the table I am performing some operation which takes few seconds to execute. So, I have to show a processing bar on click of any records in the table till the execution completes. I have added a .gif image as the progress Indicator and referring this in the client attribute of the output text in the columns in the table.
    --Code added for the output text in table column
    <af:column sortProperty="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.name}"
    sortable="false" headerText="#{emqacerts_uiBundle.TAG_NUMBER}" id="c9"
    filterable="true" align="center"
    inlineStyle="#{row.sn_status eq 'PRINT'?'background-color:#c4ff94;' : row.sn_status eq 'DRAFT'? 'background-color:#ffefa3;':'background-color:#ffffff;'}">
    <af:inputText value="#{row.bindings.TagNumber.inputValue}"
    label="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.label}"
    required="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.mandatory}"
    columns="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.displayWidth}"
    maximumLength="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.precision}"
    shortDesc="#{bindings.XxqaSSCOrderInfoRO11.hints.TagNumber.tooltip}"
    id="it6" clientComponent="true">
    <f:validator binding="#{row.bindings.TagNumber.validator}"/>
    <af:clientAttribute name="loadingIndicatorId"
    value="#{backing_Pages_MainPage.loadingIndicatorId}"/>
    <af:clientListener method="showWhenBusy" type="click"/>
    </af:inputText>
    </af:column>--Code in the backing bean
    public void setLoadingBox(RichPanelBox loadingBox) {
    this.loadingBox = loadingBox;
    public RichPanelBox getLoadingBox() {
    return loadingBox;
    public String getLoadingIndicatorId() {
    return getLoadingBox().getClientId(FacesContext.getCurrentInstance());
    }--Code in the jsff page for the image
    <af:panelBox text="#{emqacerts_uiBundle.PROCESSINGPLEASEWAIT}" id="pb10" clientComponent="true"
    binding="#{backing_Pages_MainPage.loadingBox}" inlineStyle="display:none;"
    titleHalign="center" background="dark" showDisclosure="false" ramp="highlight">
    <af:panelGroupLayout id="pgl5" layout="horizontal" halign="center">
    <af:spacer width="60" height="10" id="s1"/>
    <af:image source="/images/progress.gif" id="i1"/>
    </af:panelGroupLayout>
    </af:panelBox>--JavaScript
    <af:resource type="javascript">
    //Global variable to hold the component ref.
    var loadingIndicatorComponent;
    function showWhenBusy(event) {
    //get the dialog or other component we want to show and hide
    var componentId = event.getSource().getProperty('loadingIndicatorId');
    loadingIndicatorComponent = AdfPage.PAGE.findComponent(componentId);
    if (loadingIndicatorComponent != null) {
    AdfPage.PAGE.addBusyStateListener(loadingIndicatorComponent, handleBusyStateCallback);
    event.preventUserInput();
    else {
    AdfLogger.LOGGER.logMessage(AdfLogger.SEVERE, "Requested indicator compoenent not found");
    function handleBusyStateCallback(event) {
    if (loadingIndicatorComponent != null) {
    // Check is this is a dialog as
    // this needs different treatment
    var isDialog = (loadingIndicatorComponent.getComponentType() == "oracle.adf.RichPopup");
    if (event.isBusy()) {
    if (isDialog) {
    loadingIndicatorComponent.show();
    else {
    loadingIndicatorComponentId = AdfAgent.AGENT.getElementById(loadingIndicatorComponent.getClientId());
    loadingIndicatorComponentId.style.display = "inherit";
    else {
    if (isDialog) {
    loadingIndicatorComponent.hide();
    else {
    loadingIndicatorComponentId = AdfAgent.AGENT.getElementById(loadingIndicatorComponent.getClientId());
    loadingIndicatorComponentId.style.display = "none";
    AdfPage.PAGE.removeBusyStateListener(loadingIndicatorComponent, handleBusyState);
    </af:resource>My problem is, if I click on any record in the table for first time, progress bar is not displayed. But from second click of any record, it starts displaying.
    If anyone has any idea on this then please let me know what the issue is.
    Thanks in advance,
    Kavitha

    Hi John,
    Thanks for your quick reply. I tried using af|statusIndicator component. But this doesnt disable the components on the page while the server is busy.
    Is there any way to disable the page/make the page read only when the processing is happening ?
    Thanks in advance,
    Kavitha

  • Mail.app: text in table cells in incoming formatted mail - problems replying

    MacOS 10.9.2
    mail.app  7.2, threading enabled
    Sometimes I receive a formatted email that is really difficult to reply to, when I want to intersperse my reply text among the incoming paragraphs.
    The trouble occurs when multiple incoming paragraphs are grouped. I can’t open up vertical space for my reply  text inside the groups. 
    If I click anywhere in the group, mail.app marks the group with a surrounding rounded-corner grey rectangle, with a X-in-a-circle “close icon” at the upper left corner. 
    When I look at the raw source of the incoming message, I see that the groups correspond to table cells, that is, the sending mail client enclosed the paragraphs within a <td> … </td> pair.
    The sending email client is sending me a table, for no clear reason — the group doesn’t correspond to anything obvious in the message thread.
    I’m guessing we won’t ever know why some email clients group paragraphs like this, but I’d like to do my best to adapt, so I can keep up with my incoming email. 
    Yeah, I can ask my correspondents to use a different email client, or perhaps different settings in the same client, but except for the few tekkies among my correspondents, this isn’t really practical.  I can also ask my clients to use unformatted messages, but THAT is a whole different issue, and frequently isn’t practical, either.
    My questions:
    Q1:  What’s the point of the grey rectangle and the  “close icon”?    (Is this mail.app’s way of saying, “I received this crazy formatting, almost impossible to process, so I’m making it easy for you to just delete the whole mess”?  Or what?)
    Q2:  Is there any SIMPLE way to untangle (modify or remove) these groupings within mail.app?  (I guess I can access the raw html, copy-and-paste it into another app, modify it, and paste the results back into my reply.  Yuck!)
    Q3: Am I missing a really obvious work-around or fix?
    TIA

    In your question, you indicated that you are running Firefox 8. Is that correct? It might be difficult to diagnose issues with that version because most people have moved on to Firefox 12 (plus or minus 1 version). Can you upgrade?
    It's hard to think of a reason that ordinary text or links in ordinary text would not display. For embedded images or videos, one possibility is a difference in the protocol, i.e., HTTP (not secure) versus HTTPS (secure).
    Hopefully someone else will have a better guess (or actual knowledge!).
    Regarding the blue lines in a message, that usually indicates the earlier message was forwarded a few times. I don't know whether Gmail will let you reformat that area or whether you have to clean it in another application (e.g., for plain text, in Notepad) and paste it back in.

  • TIME-OUT error in BSAK select query(Progress Indicator is also used)

    Hi,
        In my report program one select query is there on BSAK table, which is as follows --
           SELECT BUKRS                                                     
                         BELNR
                        GJAHR
                        SHKZG
                        BSCHL
                        UMSKZ
                        LIFNR
                        EBELN
                        EBELP
                        WRBTR
                        DMBTR
                        XZAHL
                        REBZG
                       AUGBL
                       BLART
                       AUFNR
                       AUGDT
                       BUZEI FROM BSAK
                                  INTO TABLE IT_BSAK
                                  FOR ALL ENTRIES IN IT_BKPF1
                                   WHERE BUKRS = IT_BKPF1-BUKRS
                                                AND AUGDT = IT_BKPF1-BUDAT
                                                AND AUGBL = IT_BKPF1-BELNR
                                                AND BSCHL IN ('31' , '29', '26', '39', '25').
    I used Progress Indicator befor running this query and after this query also. But still It's giving me TIME-OUT error in this select query only.
      I run the same query for 10 records in IT_BKPF1 table, it runs perfectly. But when I run it for 1000 records it giving dump.
    And in actual bussiness my records are always more than 100 only.
    I also check the indexing. It having secondary indexing on this BUKRS, AUGDT, AUGBL fields. Then also it's giving error.
    so, How can I solve this dump..?? What could be the reason..??
    Thanks in advance...!!
    Regards,
    Poonam.

    Hi Poonam Patil,
    Try to provide BELNR and GJAHR in where condition...
    BKPF-DBBLG ==> BSAK-BELNR
    Also check
    BKPF-BLDAT ==> BSAK-AUGDT
    Check out above relation...
    If data is there in these fields of the table and both are matching then you can pass it and as they are in primary key of BSAK it will improve the performance...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Table cell spanning pages

    Hi all,
    I'm having a rather major problem with Pages. I've managed to convince my sister-in-law to buy an iBook and star using Pages for her school work, however we've encountered a particularily difficult problem:
    Pages (and AppleWorks) does not allow her to use table cells that span more than one page! Not only is this a problem because she has whole load of old MSWord documents that she needs to read, but she definitely needs to continue working like this. First because it's the only sensible thing to do, second because her teachers require her to.
    Here's the problem: She creates a table, 2x8 cells (for example). In the rightmost column she generally writes quite a lot of text, often so much that it does not fit inside a cell that is limited vertically to the size of the page. In MSWord, this cell automatically wraps to the next page, however in Pages, the cell simply stops growing and the text appears to continue "behind" the next page.
    We've tried to devise other layouts for her work, but tables seem to be the only feasible alternative. Using columns would not help her at all, text boxes would be too cumbersome, manually splitting the cells would make the document extremely difficult to edit (all her documents are, for a very long time, a work in progress, so editing happens all the time).
    Can anyone help us out here? I'm || this close to going out to buy her a copy of MS Office, as no other word processor I've tried (Pages, AppleWorks, NeoOffice/J, OpenOffice) manages to deal with this properly. This would be a major admission of defeat.
    Anyone?
    Thanks,
    /Eirik

    Welcome to Apple Discussions Elrik
    I have a Pages document with a single table that spans 11 pages. Unfortunately, it took a bit of fiddling with it & I can't remember how I did it. This is a table I had converted from AppleWorks, which also doesn't easily allow tables to span page breaks. I think I got it to do it by inserting new rows in the middle of the existing table. Then I would select & drag the contents from an unconnected table on another page into these new rows.

  • Dreamweaver CS4 - Can't see table cells and borders

    Hello you all.  I just started using CS4 and whenever there is a white background I can't see any of the table cell or main borders.
    I went to View>Visual Aids>Table Borders and it is on, but I can't seem to find the area I need to change the color to view it on white.

    I just remember the previous versions would allow you to change the dotted line color that indicated the table and cell borders.
    Must say I can't ever remember that being a preference in any previous version of DW.
    Sadly, it looks like I will be using tables to set up my site.  Haven't adopted CSS as much as I'd like at this point.
    Now's as good a time as any to start with CSS from the ground up.
    Try one of the pre-made templates in DW under File > New

  • Progress indicator in webdynpro

    we have a requirement to display a progress indicator when large data is being loading on to a webdynpro view.Can some body please help with any FM or any logic to display a progress indicator.

    Hi,
    Can anyone please tell me the way to upload file from client system to server.
    The code i have is as follows:-
    Jsp:-
    function saveImage(){
         //projectname.javafilename
         var strStatus = "save";
         document.saveImageForm.action="/irj/servlet/prt/portal/prtroot/TestXML.TextImageLink?frmstatus="+ strStatus;
         document.saveImageForm.method="post";
         document.saveImageForm.submit();     
    <form name="saveImageForm" encrypt="multipart/form-data">
    <table width="388" cellpadding="1" cellspacing="1" bgcolor="#F0F0F0" border='0'>
           <tr>
                 <td><font color="blue" face="verdana" size="2">IMAGE:</font></td><td><input id="image" type="file" name="image" value=""/></td>
         </tr>
    <tr>
         <td><input type="submit" name="submit" value="Submit" onclick="saveImage();"/></td>
         </tr>
    </table>
    </form>
    now i am not getting what to write in java file
    using IPortalComponentRequest.
    Using the jsp file upload in tomcat is working but here it is not working
    please help meee
    Thanks in Advance
    Regards
    Sirisha

  • Progress Indicator within ALV

    Hi all,
    I have another small problem. In my wd application ther is an ALV output. Within this list I want to display a progress indicator. I tried this:
      DATA: lr_cellvar TYPE REF TO cl_salv_wd_cv_standard,
            l_cellvar TYPE string,
            lr_progress_indicator TYPE REF TO cl_salv_wd_uie_progr_indicator,
            lt_columns                TYPE salv_wd_t_column_ref,
            ls_column                 TYPE salv_wd_s_column_ref,
            lr_column                 TYPE REF TO cl_salv_wd_column.
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'PROGRESS_STATUS'.
            CREATE OBJECT lr_cellvar.
            l_cellvar = 'CV_SB'.
            lr_cellvar->set_key( l_cellvar ).
            CREATE OBJECT lr_progress_indicator.
            lr_progress_indicator->set_percent_value_fieldname( 'PROGRESS_STATUS' ).
            lr_progress_indicator->set_display_value_fieldname( 'PROGRESS_DISP_VALUE' ).
            lr_progress_indicator->set_tooltip( 'Fortschrittsanzeige Status des Vorganges' ).
            lr_progress_indicator->set_bar_color( '00' ).
            lr_cellvar->set_editor( lr_progress_indicator ).
            lr_column->add_cell_variant( lr_cellvar ).
            lr_column->set_width( '75' ).
            lr_column->set_position( '-1' ).
            lr_column->set_selected_cell_variant( l_cellvar ).
        ENDCASE.
      ENDLOOP.
    But only the first row in ALV is shown as well as progress indicator.
    Any Ideas?
    Many Thx and best regards
    Stefan

    Stefan,
    How many elements do you have in your Node? If you have only one element, even if you alv table has 10 visible lines, it'll display only the first one with the progress indicator.
    Regards,
    Andre

  • Notes within table cells

    I made a large table where each cell contains a number indicating
    the level of a parameter.
    Some of these cells would need an explanation. And I'd like to put this
    explanation outside of the table so as to keep it filled with
    numeric values. I thought that a note would be the perfect tool to make
    this kind of table explanation.
    Hence I tried to insert a footnote within a cell,
    but the menu stay as grey as deaf.
    It doesn't even give me the smallest word of explanation about
    this error or inability.
    I didn't find any help on how to insert a footnote within a table cell?
    Is it prohibited?
    Why?
    <pre>--------
    As long as you'll see students making graphics with pen on paper,
    you'll see the missing keystone of the software empire.
    dan</pre>

    fruhulda wrote:
    Yes, you can't use footnote within tables.
    Bad news, but clear and fast answer.
    I appreciate .
    I'd appreciated to read this as quickly and clearly in the inline help.
    Do you know if this banning of notes within tables
    is lifted with Pages'09?
    Otherwise, I'll submit a feedback.
    <pre>--------
    As long as you'll see students making graphics with pen on paper,
    you'll see the missing keystone of the software empire.
    dan</pre>

  • Table cell shifting issue

    Getting a wierd within-cell selection indicator shift effect when using tables in LV 2013(32) on Win 7 (64).   Hestitate to call it a "scroll" 'cause that has other meanings in the table context.
    Click on the letters in the attached VI to see it -- same effects if the table is in a running VI or not.
              + clicking on "A" does nothing.  Deleting "A" causes the cell to shift.
              + clicking on any of the cells below "A" act like the above
              + clicking on header cell "x" causes a big sideways shift.  Putting other values in the cell has other effects (some shift a lot, some not at all)
              + clicking on table cell "y" causes a big sideways shift.  Putting other values in the cell has other effects (some shift a lot, some not at all)
              + clicking on table cell "z" does not shift.  Deleting "z" causes a big sideways shift
              + I noticed the shift that happens when you delete "A" stops at the same horizontal location as if you 
    Observations:
              + Appears to be tied to cell's justify=center. 
              + Shifting is always is right-to-left.
              + I noticed the shift that happens when you delete "A" stops at the same horizontal location as if you click on "y"
              + occurs on at least two different machines from different mfg's.  Both running 2013-32 on Win7-64.
    Solved!
    Go to Solution.
    Attachments:
    table_issue.vi ‏8 KB

    That's it!  Thanks for tying up a loose end on an old thread.
    With this information I was able to recreate this in LV2014-32 on Win7-64 so it's still a bug. 
    The key is the table has to span quadrant 3&4 of the front panel. 
    Drop a table control with (left,top)=(-108,185) for instance and (width,height)=(250,169).  Select the entire table and set justification=center.  The first column whose center is to the right of the front panel's "y axis" will have centering issues.  Move the table off the y axis and the issue goes away.  Move it back and issue comes back.
    Having left or right justified prevents the issue but this is a Band-aid, not a fix, and was not applicable in my case as my UI needed centered text or it would look funny.  I was using the table to display info and allowing the user to click on a cell to select it, at which point I would change the color via property node.  My workaround was to change control focus immediately after the mouse click to minimize the time the drifting cell was noticeable. 

  • How to highlight the table cell color in respective colors as needed per the requirements??

    var aData = [
        {notificationNo: "10000000", description: "Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000010", description: "Genreal Maintenance for boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
        {notificationNo: "10000011", description: "boiler Maintenance", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000012", description: "Pump breakdown", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "ordered"},
        {notificationNo: "10000013", description: "External service boiler", location: "G001-STG-UTLR-BLR", equipmentNo: "100000053", orderStatus: "notordered"},
    jQuery.sap.require("sap.ui.model.json.JSONModel");
    var oEnterpriseAsset_NotificationConsole;
    sap.ui.model.json.JSONModel.extend("EAM_Notification_Console", {
        CreateNotificationConsole:function(){
            oEnterpriseAsset_NotificationConsole = this;
                var oTable = new sap.ui.table.Table({
                //title: "Table Example",
                visibleRowCount: 7,
                firstVisibleRow: 3,
                selectionMode: sap.ui.table.SelectionMode.Single,
            /*    toolbar: new sap.ui.commons.Toolbar({items: [
                    new sap.ui.commons.Button({text: "Button in the Toolbar", press: function() { alert("Button pressed!"); }})
                extension: [
                    new sap.ui.commons.Button({text: "Button in the Extension Area", press: function() { alert("Button pressed!"); }})
            }).addStyleClass("tableform");;
            oTable.addColumn(new sap.ui.table.Column({
            label: new sap.ui.commons.Label({text: "Notification"}),
            template: new sap.ui.commons.Link().bindProperty("text", "notificationNo").bindProperty("href", "href",
                    function(aValue)
            //    sortProperty: "notificationNo",
                //filterProperty: "notificationNo",
                width: "200px"
            oTable.addColumn(new sap.ui.table.Column({
                label: new sap.ui.commons.Label({text: "Description"}),
                template: new sap.ui.commons.Link().bindProperty("text", "description").bindProperty("href", "href"),
                //sortProperty: "notificationNo",
                //filterProperty: "notificationNo",
                //width: "200px"
            var oModel = new sap.ui.model.json.JSONModel();
            oModel.setData({modelData: aData});
            oTable.setModel(oModel);
            oTable.bindRows("/modelData");
        var idForTable= "DimTable"
            //alert("id of tbale " + idForTable);
            var htmlOutput = '<table id=' + idForTable + ' name="DimTab" style="border: 1px solid black;margin-left:15px;" cellpadding=6 cellspacing=0><tr style="background-color:#E5E5E5"><td><b>Dimension</b></td><td><b>Value</b></td></tr>';
            for(var i=0;i<aData.length;i++)
             alert(aData[i].notificationNo);
            htmlOutput += '<tr style="display:none;"><td style="border-right:1px solid #e5e5e5;">Contract No</td><td>'+ aData[i].notificationNo+'</td></tr>';
            htmlOutput += '<tr style="display:none;"><td  style="border-right:1px solid #e5e5e5;">Unit No</td><td>'+ aData[i].description+'</td></tr>';
            htmlOutput += '</table>';   
             var html2 = new sap.ui.core.HTML({
                 // static content
                 //content : "<div style='position:relative;background-color:white;'>Weather</div><script src='//www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/builtin_weather.xml&synd=open&w=320&h=200&title=__MSG_weather_title__&lang=en&country=ALL&border=http%3A%2F%2Fwww.gmodules.com%2Fig%2Fimages%2F&output=js'></script>",
            content : htmlOutput,
                  //2 wrkng sydney content : '<div id="cont_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><div id="spa_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"><a id="a_Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx" href="http://www.weather-wherever.co.uk/australia/sydney_v37463/" target="_blank" style="color:#333;text-decoration:none;">Weather forecast</a> © weather</div><script type="text/javascript" src="http://widget.weather-wherever.co.uk/js/Mzc0NjN8NXwxfDF8NHxlZGY1ZjV8M3xGRkZGRkZ8Y3wx"></script></div>',
                  //content : '<div style="margin-left:-10px;margin-top:10px;width:100%;"><LINK rel="StyleSheet" href="http://weatherandtime.net/new_wid/w_5/style.css" type="text/css" media="screen"><div class="ww_5" id="ww_5_2119"><div class="l_b"></div><div class="c_b"><div class="day" id="d_0"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_1"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="day" id="d_2"><span class="den"></span><br><span class="date"></span><br><span class="temp"></span><div class="pict"></div><span class="press"></span><br><span class="hum"></span><br><span class="vet"></span><br></div><div class="cl"></div><div class="links"><a target="_blank" title="Pune Weather forecast" href="http://weatherandtime.net/en/Asia/India/Pune-weather.html">Pune Weather forecast</a><br><a style="font-size:12px !important;color:#12A0D7 !important;text-decoration:none !important;" href="http://weatherandtime.net/en/widgets-gallery.html" title="weather"></a></div></div><div class="r_b"></div></div><script type="text/javascript" src="http://weatherandtime.net/w_5.js?city=2119&lang=en&type=2&day=3"></script></div>',
              // initially behaves the same as Sample 1
                 preferDOM : false,
                 // use the afterRendering event for 2 purposes
        return     oTable;
    /* In the screen shot as u can see.. I have to highlight the table cell in green color and red color for ordered and unordered status(which is binded to a json data) respectively....anyone please help??

    Hi Abhi,
                   Check this link it may helpHow I made highlight of specific values in Table

  • Looping table cells....... is it possible to loop more than one table cell?

    Hi there
    Hope everyone is doing well
    I have been using the addt looper wizard and it works great.....
    I usually put all the things I want to loop into one cell.... then select all the things and apply the looper.... which works fine....
    But..... it is hard to align all the elements I want to loop
    I have been using transparent gif images to space the loops evenly but when I space dynamic taxt on top of each other there is a large gap.....
    It is a nightmare to get it looking even
    Ok say I want to loop this.....
    A thumbnail
    Product ID
    Price
    It would look like this
    A thumbnail
    Product ID
    Price
    Because I cannot reduce the space between the lines......
    So I would like to place all the different elements in separate table cells and loop them..... I have tried and get really strange results....
    When you look at most online shops, their product pages have a thumbnail image the id, price, description, etc.... all spaced evenly.... and looks like is looped...... So.... how do I do it?
    Is there any easier way to align the things I want to loop?
    Any help would be great

    Hi there
    I seem to have figured out how to loop cells....
    Should have thought of it earliar but anyway
    Was easy....
    Just create a looped (repeat) region and insert a table into the region and edit the table to align all the looped elements easily....
    Cool

  • Highlighting text in a table cell

    Im trying to get text in a table have it background shaded a different colour to the rest of the table cell but it doesnt work. No exceptions are thrown does anyone have any idea.
    public Component getTableCellRendererComponent(JTable table,
            Object value,
            boolean isSelected,
            boolean hasFocus,
            int row,
            int column)
            setFont(table.getFont());     
            this.setText(value));
            this.selectAll();
            this.setSelectionColor(new Color(0,0,255,100);
            return this;
        }

    The answer is similar to what someone else asked recently for highlighting text in a JFormattedTextField cell.
    class MyFocusListener extends FocusAdapter
    public void focusGained(FocusEvent e)
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    selectAll();
    Put that in your cell editor or its base class. You can change the color or whatever you want. I think the problem is a timing thing where normal focus processing is interrupting your changes. So give the focus processing time to run with this Runnable triggering your processing to occur on the Awt thread (as is proper) after the system is doing whatever it wants to do. Let us know if it works for you.

  • How can I make a table cell extend beyond the page?  The text disappears when the cell becomes larger than the page.

    How can I make a table cell extend beyond a page?  The text disappears when the cell becomes bigger than the page.  I want the table to continue to the next page.

    As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.

  • Can't get past gray screen with progress indicator... Help

    I can't turn on my Macbook. It starts but won't go past the gray screen with the progress indicator (spinning circle).
    I have tried:
    1. turning off, removing battery, holding start for 5+ seconds, replacing battery and then turning on.
    2. Holding command + option + R + P while staring up, waited for 3+ chimes.
    3. holding Shift down while starting up
    none of these things are working.
    I've been on hold with apple service/support for almost an hour now.
    I have an assignment on the computer that is due by midnight.
    HELP!
    I'm not very computer savvy and this is my first mac.
    Any ideas folks??
    Thanks.
    Macbook   Mac OS X (10.4.7)  

    You've done all the standard procedures. If you have any peripherals attached, disconnect them.
    This describes resetting the PMU:
    http://docs.info.apple.com/article.html?artnum=303319
    Did you have the AC disconnected when you did it? I don't have any other ideas.
    These are the startup key options:
    http://docs.info.apple.com/article.html?artnum=303124
    Edit: If you have the install disc stuck in it anyway, can you get the hardware test to work? (Reboot while pressing the D key.)

Maybe you are looking for