English 中文(简体)
Oracle APEX: Tooltip on cell of the report
原标题:

I have an APEX tabular form, all columns of which are standard report columns. Is it possible to display a tooltip on mouse over of a particular cell of the report?

最佳回答

In the report column attributes look for the region named Column Formatting. Inside this section is a text box for an "HTML Expression". Here you can add html to the report column contents e.g., <span title="My tooltip text">#COLUMN_NAME#</span>

The tooltip text could be from another column, you would just replace the contents of the title attribute with the column name surrounded by hashes.

问题回答

SOLUTION 1: If your record needs to be editable then this solution works:

Under column attributes go to LINK For Target: Type - URL and URL is just a hashtag
URL: #

Link Text: &COLUMN_NAME.

Link Attributes: title="&COLUMN_NAME." class="column_name_class"

Then in your inline CSS add the following

.column_name_class{
    text-decoration: none !important; 
 }

Solution one I definitely prefer. But here is solution 2 anyways.

SOLUTION 2:

See here for the solution on JSDoc: Widget Grid

You can also initialize the grid with the tooltip option specified.

function( options ) {
    options.defaultGridViewOptions = {
        tooltip: {
            content: function( callback, model, recordMeta, colMeta, columnDef ) {
                var text;
                // calculate the tooltip text
                return text;
            }
        }
    };
    return options;
}
} );

Calculating the tooltip :

config.defaultGridViewOptions = {
    tooltip: {
        content: function( callback, model, recordMeta, colMeta, columnDef ) {
            
            return model.getValue( recordMeta.record, "COLUMN_NAME");
          
        }
    }
}
function( options ) {
options.defaultGridViewOptions = {
    tooltip: {
        content: function( callback, model, recordMeta, colMeta, columnDef ) {
            var text;
            // calculate the tooltip text
            return model.getValue( recordMeta.record, "COLUMN_NAME");
           
        }
    }
};
return options;

}





相关问题
Oracle Apex - Optional List of Values (LOV)

Is there a way in Oracle APEX to use a list of values or select list but do not force the user to select an item and allow them to enter different items? The basic functionality which I require is ...

Oracle APEX: Tooltip on cell of the report

I have an APEX tabular form, all columns of which are standard report columns. Is it possible to display a tooltip on mouse over of a particular cell of the report?

Keeping a DHTML tree expanded in Oracle APEX

I have created a list item to be used as the primary navigation within my APEX application. The tree can be expanded and clicking on a leaf node takes you to the correct page. However, on arrival at ...

Oracle APEX - Setting up a Tabular Form with default values

I pretty new to APEX and I m having a bit of trouble working with my first Tabular form. The table I ve linked it to is fairly simple. The columns are as follows: Primary key representing an ...

How to create a submit button template in Oracle APEX?

I m trying to create a template for a button in Oracle APEX but I don t seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a ...

热门标签