Highlight Current/selected cell in Calender
Hi,
How can I highlight current / Selected Cell in Calender ?
Im using calender with link as like in Denes application: http://htmldb.oracle.com/pls/otn/f?p=31517:40
But I cannot highlight the clicked/selected cell.
Regards,
Benz
Any clue ? ..
Similar Messages
-
Get Current Selected Cell Value in an af:table
Using JDeveloper 11.1.1.3.0
I currently have a requirement where i need to call a server method and pass the value of the current selected Cell value in my af:table.
The reason why i can't just make use of the currentSelectedRow is because i have a set of Columns (NumericValue1,NumericValue12,...NumericValue1n) and my server method can't really tell which cell i picked.
So far, what i did is that i utilized F. Nimphius's article about using contextMenu and passing a clientAttribute.
Re: How to pass parameter to inline popup when mouse over
I'm hoping to do the same thing but without raising a popup on right click. So basically, i'm hoping to select an outputText in the table and this value will be stored in a pageFlowScopeBean.
Has anybody encountered something similar?
Thanks.Hi Barbara,
You're aproach sounds intersting.
So you mean to say, i'll create a component which has a bindings to my pageDefinition which needs to have it's clientComponent attribute set to true i believe so that my javascript can find this component.
Then, i'll write a javascript that handles the focus event which then stores the clientAttribute value and stores that in the hidden component mentioned earlier. I'm guessing that once i set the newValue to the hidden component, it should be posted to the pageDef bindings upon hitting server side calls.
I'll try this out and give an update on it. -
Function that returns currently selected cell address or column
Is there a function that returns the address (or just the column) of the currently selected cell? Simply put, something like =selectedcolumn.
Background: I want to display help text in a cell, and I want that help text to change according to which cell (actually, which column) the user has selected. I have put the help texts in a hidden row. They take up too much space to be displayed all the time. I want one cell to contain the help text of the column of the currently selected cell.
Trying to not use Filemaker for this project if possible
Thanks for any help /MattThe Numbers method, using comments as Barry showed, is probably the best method. An alternate method which is more complex would be to use an Applescript running in the background. The Applescript can scan in the background for which cell/column is currently selected and write that cell/column address into a cell in your table. A formula in your table (most likely a lookup formula) can use that address to serve up the correct help text in a diffrerent cell in the table or in another table.
Some problems with this methodare
The script is not part of the document. It is a separate entity.
The script must be started manually. It will not automatically start when the Numbers document is opened.
If the Numbers document is to be used on other Macs, each would also need the script installed. -
Highlighting currently selected row in a Report-Form page
Hi,
I have a page with Report - Form layout. On the top of the page there is a classical report (not IR). When the user click a row then I display a detail form below it. It would be nice if I could highlight the row the user clicked last time, to indicate to which row the detail data below the report belongs to. Did any body do something similar?
Regards, TamasIt's relatively simple to achieve this—without JavaScript—using a named column report template and CSS:
http://apex.oracle.com/pls/apex/f?p=34839:27:0
We'll assume a page item (or items) already exists for receiving the master row primary key value(s). In the example this is P27_DEPTNO. Give the master report region a static ID for use in CSS selectors. Here this is department.
If the master primary key value(s) are used as links in the report, then [column link] columns need to be created to replace them in the report attributes.
Create a named column report template as required by your report query, including an HTML ID attribute for the report row element that contains column references to the primary key value(s). Replace column references in the row template for any primary key link columns with the [column link]s created previously. In the example, [column link] (ref #4#) replaces DEPTNO (ref #1#) as we need to reference the original DEPTNO value in the row ID:
Row Template
<tr id="dept-#1#">
<td class="t17data">#4#</td>
<td class="t17data">#2#</td>
<td class="t17data">#3#</td>
</tr>We then just need to use the selected P27_DEPTNO value via substitution in a page HTML Header to create a descendant selector that will apply a highlight to the cells in the currently selected row (along with some others to make it easier to select the row):
CSS
<style type="text/css">
/* Make the whole table cell a link target */
#department td {
padding: 0;
#department td a:link {
display: block;
padding: 2px 8px;
/* Universal Selector sucks */
font-size: 9pt;
/* Highlight the selected row */
#department tr#dept-&P27_DEPTNO. td {
background-color: #eee;
</style> -
Spry Menu Bar Show Highlighting currently selected
Is there a way to get a vertical Spry menu to leave the
lights on while we're on a given page? I'd like to affect the menu
behavior to cue it to leave the highlighting turned on for the
currently selected page. I'm hoping there's a short script I could
add to individual pages to tell the menu where we are. If my menu
has 6 vertical list items, and the page I an displaying was loaded
by clicking on the third item in the list, then I'd like item three
in the menu to remail highlighted. This would cue the user to know
where they are in the menu for any given page. Looking at the
script near "show menu highlighting and MenuBarItemHover"hey,
i think the reason the spry menu isn't working is because it
needs to expand past the frame, which isn't possible. if you want
you can use
this
it's compact and it doesn't need to exapand past the frame.
hope this helped -
CSS Menu Which Highlights Current Selection
Hi,
I'm trying to convert my table and frame-based site to use CSS.
http://www.jchmusic.com
OK, the menu at the left works fine except that I'd like it to behave a bit differently; more like a real 'application' if possible.
When the user clicks on a menu, I want that menu selection to -remain- highlighted (or a different color or -something-) to indicate where the user is on the web site. Then, when the user clicks on another menu option, I want that to 'de-select' and the next menu choice to be highlighted.
I hope that makes sense. In effect, I want the page to have a 'memory' to act as a visual indicator for the user.
I've seen all kinds of CSS menus, but few that do this. And the ones I've seen which -do- work like this have style sheets that are -far- too complex for me to suss out on my own. What's the 'trick'? Is there javascript involved? Session Variables? Or is this something that can be done with only CSS (which is my deep hope.)
TIA,
---JCIf you want just the current page that you are visiting to be different, assign it an id as in "here".
If this is your sidebar links and the example uses <ul><li> as the example below:
<div id="sidebar1">
<div class="sidenav">
<h1>Link Header </h1>
<ul>
<li><a href="#" id="here">Link One</a></li>
<li><a href="/#">Link Two</a></li>
<li><a href="#">Link Three</a></li>
<li><a href="#">Link Four</a></li>
<li><a href="#">Link Five</a></li>
<li><a href="#">Link Six</a></li>
</ul>
</div>
</div>
Then the css would be:
#sidebar1 {
float: left;
width: 150px;
padding: 15px 5px 15px 5px;
margin-left:10px;
.sidenav h1,.sidenav ul {
padding-left: 5px;
.sidenav {
background: #cccccc;
float: left;
width: 150px;
.sidenav h1 {
color: #ffffff;
font-size:1em;
height: 20px;
background-color:#990000;
.sidenav ul {
border-top: 1px solid #fafafa;
margin: 0;
padding: 0;
.sidenav li {
border: 1px solid #fafafa;
border-top: none;
list-style: none;
margin: 0;
.sidenav li a {
color: #000000;
display: block;
font-size: 0.9em;
padding: 3px 6px 3px 14px;
text-decoration: none;
background-color:#efefef;
border-left: solid 5px #ffffff;
.sidenav li a:hover {
color: #ffffff;
background-color:#996600;
.sidenav li a:visited {
text-decoration:underline;
.sidenav a#here {
border-left-color: #900 !important;
background-color: transparent !important;
color: #0074A5 !important; -
CSS to Highlight Current TD Tag Selection
Trying to find how I add a CSS class to show the currently
selected menu item.
I am using
<td height="22"align="center"
class="SmallLinkB"onclick="MM_changeProp('titletxt','','innerHTML','<img
src=\"/FILESPEC.gif\"
alt=\"dwr\" width=\"20\"
height=\"15\" /> TEXT HERE
<o:p><a
href=\"/FILESPEC.pdf\"
target=\"_blank\"
class=\"nugbody\">PDF</a>
<span
class=\"nugbody\">or</span>
<a href=\"/FILESPEC.swf\"
target=\"_blank\"
class=\"nugbody\">FlashPaper</a></o:p><img
src=\"/FILESPEC.gif\"
alt=\"dw\" width=\"20\"
height=\"15\"
/>','DIV');Spry.Utils.updateContent('DIV1',
'/FILESPEC.php'); return false"
onmouseover="this.style.backgroundColor = '#FFD2AA'
;this.style.cursor='pointer'"
onmouseout="this.style.backgroundColor = ''">TEXT
HERE</td>
inside a SpryCollapsiblePanel with color effects.
When I select a meu item, I want the new selection to be
highlighted and to release the last selection.You can achieve this result by adding:
<script language="javascript" type="text/javascript"
src="../../includes/xpath.js"></script>
<script language="javascript" type="text/javascript"
src="../../includes/SpryData.js"></script>
and then embed a DIV in the panelcontent called "test1' to
each button then add onClick=
Spry.Utils.addClassName('test1','selected1')
Spry.Utils.removeClassName('test2','selected1')
make a new class called select1 (or whatever)
This works great without allot of code if compared to some
other solutions I have seen. Also works with onMouseover including
colour effects. -
Need Adds on to highlight or select several(next) pages in search result on current page?
Do you mean this: you would select a bunch of links with your mouse, then right-click and choose something like "open all these links in new tabs"?
There are extensions like that. Here are a few examples, but since I don't use them myself, I don't recommend any particular one. You can check the reviews and try the one(s) that sounds good to you:
* [https://addons.mozilla.org/en-us/firefox/addon/multi-links/ Multi Links]
* [https://addons.mozilla.org/en-us/firefox/addon/selection-links/ Selection Links]
* [https://addons.mozilla.org/en-us/firefox/addon/SnapLinksPlus/ Snap Links Plus]
If you already have one of those but it stopped working, make sure you have the latest version. You can check for updates to your extensions here:
orange Firefox button (or Tools menu) > Add-ons > "gear" button > "Check for Updates"
Any luck? -
JTable selected cell highlight
Hi,
I want to reproduce Excel behaviour in a JTable :
highlight the cell on which user has clicked once
show the caret when the user has double-cliked on it.
The second behaviour looks like being built-in the JTable
But when the user clicks once on the cell not visual effect appears
to reflect the click event.
I would like to have the selected cell "border" painted in another color.
Would you have a hint for that ?
thanksThanks you the hint Razor_Blade.
could you elaborate a bit more please.
I don't feel like getting deep into rendering stuff now,
and was expecting a simple solution.
But if there's no, don't bother.
It will take the time that it needs but I'll find out.
thx. -
Apex 4.2
Theme 21
I am able to highlight current form fields using get focus and lose focus dynamic actions.
How do I highlight the current row of a tabular form or updateable report.
I have tried using DA with
JQuery Selector tr[headers="FEE"] (column in my report)
Execute Javascript
$x_RowHighlight(this.triggeringElement,'yellow');
Any help appreciated
GusGus ,
you can look at my demo ... ( the one you aked for in my other discussion)
http://apex.oracle.com/pls/apex/f?p=53793
demo / demo
when i click on on row of the IR , the text of selected row is set to red .
i m sure that you can use it to highlight your row .
Just remember that when you set for example background-color of a cell, the style of the region may hide what you try to change. I m not sure why but if you disable the region class
your modifications will appears. -
Tab key selects cell for edit in JTable
Hello,
I've seen extensive posts on this forum for this problem, but no solution yet.
I have a Jtable, with custom cellRenders and cellEditors. Some columns are editable, some are not.
What I want to do, is when someone tabs to an editable cell, that cell immediately goes into edit mode. This means, it acts as if someone double clicked on it, or tabbed then clicked on it. Basically, I want it to ACTUALLY go into edit mode.
Please do not respond by telling me how to make it look editable (highlighting, etc) and do not respond with mouseEvent solutions. Please do not respond by telling me to do table.editCellAt(row,col) because that does not kick in my custom editor, it uses the defaultCellEditor.
So basic question:
How to kick in editing when someone tabs to an editable cell?
If you need code examples, please request and I will post.nmstaat,
In JTable:
Look into the processKeyBinding method. It takes a keyevent and matchs it with an InputMap, and the InputMap invokes an Action in the corresponding ActionMap.
You will have to call yourJTable.getActionMap(), then alter the action that corresponds to the 'tab' key.
For Further information, check the JTable API, its all there.
Good Luck,
Alex
Here's the current map for the Metal look and feel:
JTable (Java L&F)
Navigate out forward | Tab
Navigate out forward | Ctrl+Tab
Navigate out backward | Shift+Tab
Navigate out backward | Ctrl+Shift+Tab
Move to next cell | Tab
Move to next cell | Right Arrow
Move to previous cell | Shift+Tab
Move to previous cell | Left Arrow
Wrap to next row | Tab
Wrap to next row | Right Arrow
Wrap to previous row | Shift+Tab or Left
Wrap to previous row | Shift+Tab or Left
Block move vertical | PgUp, PgDn
Block move left | Ctrl+PgUp
Block move right | Ctrl+PgDn
Block extend vertical | Shift+PgUp/PgDn
Block extend left | Ctrl+Shift+PgUp
Block extend right | Ctrl+Shift+PgDn
Move to first cell in row | Home
Move to last cell in row | End
Move to first cell in table | Ctrl+Home
Move to last cell in table | Ctrl+End
Select all cells | Ctrl+A
Deselect current selection | Up/Down Arrow
Deselect current selection | Ctrl+Up/Down Arrow
Deselect current selection | Pgup/Pgdn
Deselect current selection | Ctrl+Pgup/Pgdn
Deselect current selection | Home/End
Deselect current selection | Ctrl+Home/End
Extend selection one row | Shift+Up/Down
Extend selection one column | Shift+Left/Right
Extend selection to beginning/end of row | Shift+Home/End
Extend selection to beginning/end of column | Ctrl+Shift+Home/End
Edit cell without overriding current contents | F2
Reset cell content prior to editing | Esc -
How to disable selective cells in a column of a table?
Hi
I have a Table UI element having 5 columns. 4 of this are non-editable and only one is editable i.e. having input field . The data is picked from the backend. The 5th column also gets default data from the backend, which the user can later on change.
But there is a condition, that only the input fields from that row onwards should remain enabled whose month field matches the current month. Rest all should become disabled or invisible.
I worte the code in the wdModifyView() which picks the current date, and then in a loop it checks all the rows for the condition. If it matches the condition, it comes out of the loop, else it sets the enable property of input field to false.
But when i run this application, all the cells become disabled, not selective cells.
Is there a way in which I can sort this problem, any API using which i can access each cell by its row number and column number and then disable it.
If anybody could please help, it is urgent.
Thanks & regards,
AnupreetAnupreet,
Create a subnode with cardinality 1..1 and boolean attribute IsEnabled right under your data node. Write a supply function for this subnode, and set boolean attribute value depending on month in parentElement (parameter of supply function). Then bind InputField "enabled" property to this boolean attribute.
VS -
Hi All,
I'm looking for a way of selecting all cells from the original drag point to the current cell that the mouse is over.
This is for a year planner which displays the months vertcally and the days horizontally. So if the user was to start selecting cells in one month and move the mouse down a row onto the next month, I would want all cells selected from the first cell to the current cell.
Has anyone got any ideas?Hi Pchatwin,
Any dukes available for bad news? :)
Thanks Stas but wouldn't that select entire rows
rather than cells?
For example, if I have a grid:
12345
67890
and drag from cell 3 to cell 9 I would need to see
cells 3, 4, 5, 6, 7, 8, 9 highlightedUnfortunately this is impossible with JTable's default selection model. By default, JTable models selections simply as an intersection of selected rows and columns. It doesn't track individual cells.
Turning to your example:
If you select cells 2,3,4,5 JTable tracks the following.
Note: The numbers I am using are row/col indexes, not your cell values.
Selected rows = {0}
Selected cols = {1,2,3,4}
This means the following cells are selected:
{{0,1},{0,2},{0,3},{0,4}} or {2,3,4,5}
Now if you want to add cells 6, 7, 8, 9 it won't work. The selection model tracks whether a column is selected or not. It can't be selected for one row and not for another. So it's impossible to have cell 6 selected and not 1. It would mean that column 0 would need to be both selected (to include 6) and not (to include 1). Does this make sense?
Sorry to have to tell you that. On the other hand it may save you some frustration.
Oh, and whether or not one can provide a custom model that allows this, I don't know - I've not tried it myself. It could be, but might be very difficult. For example, what would you return from JTable.getSelectedRows()?
Thanks!
Shannon Hickey (Swing Team)
>
Paul -
How do I change the colour of a selected cell in a jTable?
I have a Jtable that displays URL names in one column. There are several problems I'm having. The effect I'm trying to achieve is this:
When the user runs the mouse over the URL name the cursor should change into a hand (similar to what happens in an HTML hyperlink). I'm aware that the Cursor class can set the cursor graphic so i figure that i need a listener of some sort on each cell (so the cursor can change from an arrow to a hand) and also one to indicate when the cursor is not on a cell (so that it can change from a hand back into an arrow). Is this the right track?
Also, I've looked at the DefaultTableCellRenderer class (which, as i understand it, is responsible for how each cell in the jtable is displayed) for a method that will allow me to set the background of a selected cell (or row or column). I require this because each time i select a cell (or row) it becomes highlighted in blue. I would rather it just remained white and changed the cursor to a hand. I know there exists a method for setting the background for an unselected cell but none for a selected cell. Again, I'm not sure if I'm going down the right track with this approach.
Lastly, if the cell has been selected (by a mouse click) the font of the writing in the cell (i.e. The name of the URL) should change. This shouldn't be too much of a problem I think.
I do not expect anyone to provide code to do all of this but some general pointers would be extremely helpful as I do not know if I'm thinking on the right track for any of this. Having some (limited) experience with Swing I doubt there is a simple way to do this but I can only hope!
Thanks.
Chrishttp://www2.gol.com/users/tame/swing/examples/SwingExamples.html
there you can find some examples with CellRenderer's and so on ...
have fun -
How to get the position of a selected cell in a table ?
Hi,
How can I get the position of a selected cell in a table or in a list multicolumn cmd ?
Thanks.Invoke node >>> point to Row Column
Ben
Message Edited by Ben on 07-19-2007 03:14 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
Point_To_Row_Column.PNG 22 KB
Maybe you are looking for
-
[SOLVED] Unable to open some programs in KDE, HFS+ partiton needs fsck
I've had two unsettling experiences today; I'm not sure if they're related or not. I have a Mid-2012 MacBook Pro. I installed bluez + bluez-utils 5.13.1-1 in order to use an Apple Wireless Keyboard and Magic Trackpad. Following the instructions in th
-
*** How to resume movie rental download?
I started to download a movie and then had to quit iTunes and restart my Mac. When I opened iTunes it wasn't there so I searched for it and the message said "you've already rented this, do you want to rent it again?". I was only about 75mb into a 1.0
-
External Table Performance and Sizing
Hi, Can anyone tell me anything about best practices for external tables? I have an application that writes structured log data to flat files. The size of these files can be configured and when the size limit is reached, they are rolled over. The dat
-
Tables for threshold value in GTS 11
Good morning, to get away from our old ERP preference calculation we bought a license for GTS. At the moment we are discussing implementing version 10.1 or even 11. I am worrying as I am not sure, how to put data out of GTS to BI (BW) with version 11
-
Help! Was using my iPad yesterday set it down for 10 minutes and all of a sudden received "server not responding" and "Cannot verify server" error messages. Cannot open/connect to iTunes to update software. Wifi is working with strong signal. Followe