Highlight the cell
i want to dynamically update my cell in jtable which is customized by my own tablecellrenderer. every update, i need a yellow border around the cell and wait for a sec and fade. How to do that?
You are asking about a JTable, I suppose. See the tutorial How to Use Tables:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
In particular, the section about TableCellRenderers. The method you will be using to control how the cell appears has a "boolean hasFocus" parameter.
Similar Messages
-
Can you select the row in a table view without highlighting the cell?
I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.I tried that, but setting the highlighted property doesn't seem to affect it.
I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method. -
Report Query - Highlighting the cells that have a new value...
hello all,
I have to display a report in alv in web dynpro abap.
In that I have to display two fields and both the fields are locations of different months.
If the location is different than the previous one then i have to display cell with the new location in red color or highlighted.
How can I achieve this.???
Only for the changed ones it has to be highlighted or different color..... I repeat.
Happy Coding.IF want to display 2 locations , one corresponding to location of previous month and other corresponding to location of curr month ,and if 2 are not same then current month location should be highlighted or displaying in red color . If this is what u want to do then try following .
1] In context where ur data to be display exist - In LIST NODE along with attribute Location_previous_month , Location_current_month add attribute "COLOR" TYPE WDUI_TEXTVIEW_SEM_COL .
2] Find out the column which has to be marked with a different colour based on its content ( Location_ Current_ Month in your case ) . Assign the context attribute "COLOUR" to the "Cell Design Fieldname" attribute of the respective column. This can be done while setting Column attributes for each of the ALV Columns
IF find any problem in implementing above step then go thro' this link :
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Web%20Dynpro%20ALV%20-%20Change%20Cell%20Colour%20based%20on%20Content
3] In the method to fill the data to be displayed .
CREATE INTERNAL TABLE OF TYPE List node
FILLINTERNAL TABLE CREATED ABOVE ( SAY ITAB ) WITH VALUES FOR LOCATION_ CURRENT_ MONTH , LOCATION_PREVIOUS_MONTH .
FILL COLOR VALUE FOR EACH ROW OF ITAB AS FOLLOW
LOOP AT ITAB INTO LS_ITAB .
IF LS_ITAB-LOCATION_CURRENT_MONTH <> LS-ITAB- LOACTION_PREVIOUS_MONTH .
COLOR = 06 ." 06 IS COLOR CODE
ENDIF .
4] BIND THIS INTERNAL TABLE WITH NODE LIST_NODE .
DATA NODE_LS_NODE TYPE REF TO IF_WD_CONTEXT_NODE .
NODE_LS_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'LIST_NODE' ) .
NODE_LS_NODE->BIND_TABLE ( EXPORTING
NEW_TAB = ITAB ).
Hope thid will help .
THKS ,
RUSHIKESH
Edited by: RUSHI123 on Oct 31, 2009 8:59 PM -
How do I highlight multiple cells in a form?
I created a form in Acrobat X. Previously, when the customer filled the (Excel) form and returned it, our staff would be able to highlight an entire column and paste it into another software package that tracks expenses etc. Now, with a requirement of digital signatures on our forms (as well as a few other requirements that the PDF form fulfills), we need to go the PDF route instead fo Excel. The downside to the PDF is that I can't figure out how to make it so that our staff can highlight an entire column and copy paste.
For example, if it were the table below. Pressing "select all" in Reader would only highlight the cells A1 - D1 and A1 - A7, the cells that say "TXT ENTERED TO FORM" would not be highlighted. I would not be able to highlight the cells (like you can in Excel) B2 - D2.
A1
B1
C1
D1
A2
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
A3
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
A4
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
A5
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
A6
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
A7
TXT ENTERED TO FORM
TXT ENTERED TO FORM
TXT ENTERED TO FORM
Any assistance or suggestions would be greatly appreciated!You state that you have "Multiple lines" checked but you don't get multiple lines. Does this mean you don't see visually mulitple lines or you have tested the form and you can't enter in multiple lines? If you are wanting the field to expand as you type, please check out my solution here: http://forums.adobe.com/thread/832659?tstart=0.
Mallard27 -
How Highlight a CELL on an ALV table
Hi all!
I'm trying to do some checks on an input field of an ALV table component. But using REPORT_ATTRIBUTE_T100_MESSAGE it doesn't highlight the CELL of the row if the check hasn't been passed succesfully.
I've used this source code but nothing appears on the screen, no message and no cell highlighted. I put my source code for more information:
LOOP AT lt_data_mod INTO ls_data_mod.
alternative access via index
lo_el_n_empleado = lo_nd_n_empleado->get_element( index = ls_data_mod-index ).
CHECK VALUE
report message
CALL METHOD wd_comp_controller->go_message->report_attribute_t100_message
EXPORTING
msg = ls_msg
element = lo_el_n_empleado
attribute_name = ls_data_mod-attribute. " The name of input field that it is being modified
All that source code is in ON_DATA_CHECK event of ALV component.
Can anyone help me ?
Thanks!Hello,
I put my source code:
ON_DATA_CHECK event of ALV:
lt_data_mod[] = lr_data->t_modified_cells[].
LOOP AT lt_data_mod INTO ls_data_mod.
alternative access via index
lo_el_n_empleado = lo_nd_n_empleado->get_element( index = ls_data_mod-index ).
get all declared attributes
lo_el_n_empleado->get_static_attributes(
IMPORTING
static_attributes = ls_n_empleado ).
Leemos la información inicial para hacer posteriormente los recalculos.
READ TABLE wd_this->gt_empleados_inicial INTO ls_empleados_inicial WITH KEY pernr = ls_n_empleado-pernr.
ASSIGN ls_data_mod-r_value->* TO .
Fijamos el valor del campo INCIN o PERIN en función de si el usuario ha modificado el valor en pantalla
IF ls_data_mod-r_value NE ls_data_mod-r_old_value AND
GE ls_n_empleado-incsu.
IF ls_data_mod-attribute = 'INCPA'.
ls_n_empleado-incin = abap_true.
ELSEIF ls_data_mod-attribute = 'PERVC'.
ls_n_empleado-perin = abap_true.
ENDIF.
ELSEIF <fs_data> LT ls_n_empleado-incsu. " Check if user entry is less than incsu value then throw message...
wd_comp_controller->show_message_2( imp_element = lo_el_n_empleado
imp_msgno = '622'
imp_attr = ls_data_mod-attribute ). " El valor introducido es menor que el " incremento sugerido
ENDIF.
METHOD show_message_2 .
DATA lv_message_id TYPE string.
DATA ls_msg TYPE symsg.
ls_msg-msgty = 'E'.
ls_msg-msgid = 'ZHR_CM'.
ls_msg-msgno = imp_msgno.
report message
CALL METHOD wd_this->go_message->report_attribute_t100_message
EXPORTING
msg = ls_msg
element = imp_element
attribute_name = imp_attr.
ENDMETHOD.
Also I've tried with report_element_t100_message method but nothing happens.
Thank you.
Edited by: vanbelal on Mar 22, 2010 4:54 PM -
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 -
How do you highlight several cells with the mouse in numbers
how do you highlight several cells with the mouse in numbers
Hi David,
Using only the mouse, you can select a contiguous range of cells using the method described by dwb.
For larger (but still contiguous) ranges you might prefer this method:
Click the first (top left) cell of the desired selection.
Scroll to the last (botom right) cell of the desired selection.
Shift-click the bottom right cell to select it, and all of the cells in the rectangular array defined by this and the top left cell selected in step 1.
To select two or more non-contiguous cells:
Click on the first to select it.
Command-click on another to add it to the selection.
Repeat as necessary.
Regards,
Barry -
I am using numbers to automatically calculate wages, when I highlight a group of cells containing the numbers 4 4 3 I would expect to get a sum value of 11 but i get nil? any ideas would be greatfully appreciated.
Are the cells formatted as text rather than as numbers?
-
How to highlight the Textbox red in colour
Hi all,
I have a requirement to highlight the textbox (border) red in color. Any body having idea on this, how to do?
I know to do this via
wdComponentAPI.getMessageManager().reportContextAttributeMessage(
wdContext.currentContextElement(), wdContext.getNodeInfo().getAttribute("name"),
IMessageTestMsgPoolComp.MY__AGE_ERROR,arg,true);
Where arg is the Object Array.
But for this i will get an error message. I don't want to display any error message. I just want to highlight some textboxes in the view.
Thanks in Advance,
VJR.Hi VJR,
I am not sure if you can get exactly red color border, but there is a way you can high light the text field.
- Change the <b>parent container Layout</b> for Input Field to Matrix Layout.
- Now if you check LayoutData properties of Input Field you can see <b>Cell Back ground design</b> property. You can use various designs which high lights the field.
If you want to acheive this dynamically then you can write the following code in wdModifyView().
IWDInputField inField = (IWDInputField)view.getElement("my_input");
IWDMatrixData matrixData = (IWDMatrixData)inField.getLayoutData();
matrixData.setCellBackgroundDesign(WDCellBackgroundDesign.BORDER);
Regards
Abhilash -
Excel - Remove specific characters from entire worksheet if they are the first 2 in the cell
Hello,
I have a very large worksheet that is used to populate a SQL database.
I need to have the data clean before I pass it on to the owner of that database.
The data is riddled with "na" where the supplier of the data sometimes leaves it blank, like they should, but instead sometimes puts in "na" as either "not applicable" or "information not available".
I just need the all "na" removed. If I highlight the entire sheet and replace "na" with nothing then where it says "international" it will say "inertional" and I can't have that.
I need a routine, with an on-click for a button, probably, that removes all of the "na" that comes first in the cell.
I've seen where you can do it with individual cells, but not looping through the whole spreadsheet.
Thank you in advance for any help I can get!
Gee>>then where it says "international" it will say "inertional"
Selecting the "match entire cell contents" option may give you what you want. -
Highlight ALV cells conditionally?
Good afternoon
Iu2019ve been introduced to the following way of ALV generation by some colleagues, but would like to know if there is a way to highlight certain cells conditionally?
The highlighting could be anything from a different font to a different background color for instance. Thanks.
*& Form output_alv
form output_alv.
data gr_table type ref to cl_salv_table.
data gr_display type ref to cl_salv_display_settings.
data gr_functions type ref to cl_salv_functions.
data gr_sorts type ref to cl_salv_sorts.
try.
cl_salv_table=>factory( importing r_salv_table = gr_table changing t_table = gt_data ).
Set zebra layout
gr_display = gr_table->get_display_settings( ).
gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
Display all standard function
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_table->display( ).
catch cx_salv_msg.
write: / 'Exception CX_SALV_MSG'.
catch cx_salv_not_found.
write: / 'Exception CX_SALV_NOT_FOUND'.
catch cx_salv_data_error.
write: / 'Exception CX_SALV_DATA_ERROR'.
catch cx_salv_existing.
write: / 'Exception CX_SALV_EXISTING'.
endtry.
endform. " output_alv>
Adrian Bruwer wrote:
> If I could find a relevant post regarding the specific class and factory I would not post a question... have a nice day
Well, although you will probably never find a specific answer to your specific problem by searching, you should be able to find enough to work it out on your own.
So as indicated by the answer you marked as solving your question, the answer really was RTFM.
Rob -
Highlight Changed Cells - Too many cells (no named range)?
Hello,
I implemented the Highlight Changed Cells Function as described in the How-To-Paper from Gerd Schoeffl (How To...Highlight Changed Cells in SAP BusinessObjects Analysis for Office).
In my workbook I have two tabs with different crosstabs. I noticed that the highlighting function only works for one of them and that there is a warning for the other one: "There is no named range for Crosstab1". In the coding I saw that the error message is put out by the Highlighting Changed Cells subs but I am not sure why the problem occurs (I could not find out at which point of the runtime the error occurs, even when I tried debugging it).
When I restrict the selection to less cells it works for the same crosstab. Therefore I would assume that there are simply too many cells for the function to work, is that possible? And if so, has anybody found a solution? In the crosstab there are 376 rows and 21 columns...
This is the code that contains the error message:
Sub createMapInitial(CrossTabName As String)
Dim map As Object
Dim cross As Range
Dim Cell As Variant
Set map = CreateObject("Scripting.Dictionary")
On Error GoTo RangeNotFound
Set cross = Range("SAP" + CrossTabName)
Dim RowSel As Object
Dim ColSel As Object
Dim rowkey As Variant
Dim colkey As Variant
Dim keyMap As String
' delete the last selection tables
If Not RowSel Is Nothing Then
Set RowSel = Nothing
End If
If Not ColSel Is Nothing Then
Set ColSel = Nothing
End If
Set RowSel = CreateObject("Scripting.Dictionary")
Set ColSel = CreateObject("Scripting.Dictionary")
Call FillSelTabs(CrossTabName, RowSel, ColSel)
For Each Cell In cross
If isDataCell(Cell) = True Then
rowkey = RowSel.Item(Cell.row)
colkey = ColSel.Item(Cell.column)
keyMap = rowkey + colkey
Call map.Add(keyMap, Cell.value)
End If
Next
Call MapCollection.Add(CrossTabName, map)
On Error GoTo 0
Exit Sub
RangeNotFound:
Dim text As String
text = "There is no named range for " + CrossTabName
Call Application.Run("SAPAddMessage", text)
On Error GoTo 0
End Sub
Thanks, JanHi Werner,
I disabled the OnError handling which gave me some progress:
Now when I switch on the Highlight Changes function I receive this error message:
When I click Debug it takes me to the following part of the "update MAP and compare" sub (code will be posted below):
From my understanding in this step a key is created that consists of an identifiert (the first big string) and the elements of the selection of the data source (e.g. 27 is the region, 1144 the plant number). The smallest unit in our case is the plan and we don't have the same plant number twice in our selection, therefore the key should be unique.
When I remove the plant from my selection by filtering suddenly the Highlight Changes function works again. So it seems that this plant causes the problem but I don't really understand why. Does anybod have an idea?
Here the missing code of update map and compare (same as in the How To Paper):
Public Sub updateMapAndCompare(CrossTabName As String) ' when called the first time, the before status must be kept - and no delta is possible
If MapCollection Is Nothing Then
Set MapCollection = CreateObject("Scripting.Dictionary")
End If
' do we have information about the current crosstab already?
Dim isNewMap As Boolean
isNewMap = Not MapCollection.exists(CrossTabName)
If isNewMap = True Then
Call createMapInitial(CrossTabName)
Exit Sub
End If
Dim isNewDataCell As Boolean
Dim isChangedDataCell As Boolean
Dim keyMap As String
Dim sel As Variant
Dim map As Object
Dim newMap As Object
Set newMap = CreateObject("Scripting.Dictionary")
Dim Cell As Variant
Dim cross As Range
'On Error GoTo RangeNotFound
Set cross = Range("SAP" + CrossTabName)
' get the correct comparison table
Set map = MapCollection.Item(CrossTabName)
Dim RowSel As Object
Dim ColSel As Object
Dim rowkey As Variant
Dim colkey As Variant
' delete the last selection tables
If Not RowSel Is Nothing Then
Set RowSel = Nothing
End If
If Not ColSel Is Nothing Then
Set ColSel = Nothing
End If
Set RowSel = CreateObject("Scripting.Dictionary")
Set ColSel = CreateObject("Scripting.Dictionary")
Call FillSelTabs(CrossTabName, RowSel, ColSel)
For Each Cell In cross
If isDataCell(Cell) = True Then
' task1: build up new before status - as reference for next comparison
rowkey = RowSel.Item(Cell.row)
colkey = ColSel.Item(Cell.column)
keyMap = rowkey + colkey
Call newMap.Add(keyMap, Cell.value)
' task2: check if cell values has changed or newly occured
isNewDataCell = Not map.exists(keyMap)
If isNewDataCell = True Then
'Cell.Style = C_STYLE_NEW
Else
isChangedDataCell = (map.Item(keyMap) <> Cell.value)
If isChangedDataCell = True Then Cell.Style = C_STYLE_CHANGED
End If
End If
Next
' update the MapCollection
Set MapCollection(CrossTabName) = newMap
'On Error GoTo 0
Exit Sub
RangeNotFound:
Dim text As String
text = "There is no named range for " + CrossTabName
Call Application.Run("SAPAddMessage", text)
'On Error GoTo 0
End Sub -
Creating "the token representing the cell range"?
Reference: http://help.apple.com/numbers/mac/3.2/#/tan727173a8, "Preserve row or column addresses in formulas".
"Click the triangle on the token representing the cell range you want to preserve.
" - end of quote.
Where in this help manual can I find where to call a cell range "Number of Guests"?
All the other token references are about cell formats.Mel,
select the range of cells:
The range "token" is the blue, rounded, highlighted text "C2:C10". The triangle you should click is just to the right of this text. -
How to disable the cell from being edited
how to make a column in a jtable ineditable .i.e when i click on a column in a table the cell is highlighted and the caret is show .
due to this i am unable to use the double click on the left button coz as soon as i click once the left button the cell becomes editable and the caret appears.
i wanna make it in editable / disable the editable option of the cell can anyone tell me howThat's no problem if you're using DefaultTreeModel, you just rewrite the isCellEditable(col,row) function.
For example here, you can only edit cells of the first column (but you can test each cell separately if you really want ;-) ):
public boolean isCellEditable(int paramRow, int paramCol)
if (paramCol == 0)
return true;
return false; -
Conditional formating if the cell contains any date
Hi,
In my excel sheet i have one column containing only date (US format) or else they are blank. I want to format the cells containing date to Red color. How do i do it
Please helpIf you mean the font colour, just format the cells to have red font.
So I guess you mean interior colour.
You haven't said which version of Excel - it always helps.
For Excel 2003, for example, select the cells then
Format > Conditional Formatting > Cell Value Is > Greater Than: 0 > Format > Patterns > Red
For Excel 2007 or 2010, Home > Conditional Formatting > Highlight Cells Rules > Greater Than > 0 with Light red fill
Bill Manville. Excel MVP, Oxford, England. www.manville.org.uk
Maybe you are looking for
-
Crackly line with broadband drop out
Hi, another that has a crackly line! When I spoke to my ISP tech team this week as my connction (or lack of it) was driving me insane the engineer was shocked at the number of drop outs there had been. I had put this down to too many children at hom
-
Is it possible to add new line to existing Blanket Agreement through interface?
Hi All, I need to add a new line to exisitng list of blanket agreements. I populated po_headers_interface and po_lines_interface and ran 'Import Price Catalogs' program. But this is only trying to update existing line instead of creating a new one. P
-
Transfer iMovie '09 Files to a New Mac Running iMovie '11
I need transfer/upgrade advice. I have an old Mac running iMovie '09 (v8.0.6) with iMovie Events stored on an external (Firewire) drive. I have not created any real iMovie Projects yet ("one of these days, I'm gonna I'm gonna make those vaction vide
-
Please help. I had clitch on my iphone. i was advised to reset my phone to factory settings. I successfully erased all the data. when i came to restore the software and back up data on to my phone I accidentally put the wrong email address whilst set
-
HI All, My requirement is to create a idoc for the process order which is released from COR1.(idoc part is completed) Can any one suggest me a badi which will triger while releasing the process order from COR1 (not cor5), i worked with workorder_upda