Refer to cells in Calendar

Hello, I was wondering if there is any way to refer to specific cells in an SQL calendar without returing any values into them? The reason I ask is because I'm trying to change the background color of a range of dates between the current date and some end date, and I can't see a way of doing this without being able to refer to a cell in some way.
Thanks for any suggestions,
Joel

Hello,
There is no easy way to do this. The only thing I can think of is this.
1) In your calendar template add this.
In the "Day Open Format","Today Open Format","Non-Day Open Format","Weekend Open Format" add id="#DD##MM##YYYY#" to the containing HTML tag, usually a TD. This will give you a way to identify the table cells.
2) Now add some javascript. This will change 1/31/2005 to have a background color of red.
<script>
// Simple crossbrowser function to grab elements on the page
function html_GetElement(pNd){
switch(typeof (pNd)){
case 'string':node = document.getElementById(pNd); break;
case 'object':node = pNd; break;
default:node = null; break;
return node;
// now change the color
html_GetElement("31012005").style.backgroundColor="red";');
</script>
While that works for 1 day you want a range. So, printing the javascript from pl/sql would give you the flexibility to do anything.
Here's a simple example to highlight 1/12/2005 - 1/28/2005.
declare
i number;
begin
htp.p('<script>');
-- This is a simple function to grab elements in the page
-- Same function from above
htp.p(' function html_GetElement(pNd){
switch(typeof (pNd)){
case "string":node = document.getElementById(pNd); break;
case "object":node = pNd; break;
default:node = null; break;
return node;
for i in 12..28 loop
-- build the ID to be passed
htp.p(' html_GetElement("'||i||'012005").style.backgroundColor="red";');
end loop;
htp.p('</script>');
end;

Similar Messages

  • Modifying the size of cells in calendar

    All:
    Is it even possible to modify the size of the cells?. The cells are too narrow and all my contents are wrapped and looks cluttered. Any thoughts?.
    Thanks
    Rajesh

    Hello,
    The specific layout of a calendar is almost totally controlled by css. Just find out what the CSS controlling your specific template is, by looking at the template HTML itself or using something like Firebug and then adjust accordingly.
    You don't need to change the CSS that is shipped with APEX, in fact I discourage that, but just override it by including in a custom css file or snippet after the standard one is included.
    If you don't know CSS here is a good place to start http://www.w3schools.com/css/default.asp it's well worth the time to spend an hour or two learning at least the basics, it will save you countless hours later in any web development environment.
    Regards,
    Carl

  • Refer to cell in previous sheet?

    Is there a way to refer to a cell in previous sheet for each of 150 sheets with consecutive sheet names ("sheet 1", "sheet 2" etc.)?
    I need to carry the value in one cell from sheet 1 to another cell in sheet 2 - all the way through to sheet 150.

    The syntax for referring to another table or sheet is:
    =Sheet 1 :: Table 1 :: B7
    where "Sheet 1" is the name of the sheet "Table 1" is the name of the table on "Sheet 1" and "B7" is the cell of the table.
    There is no programatic way to get the name of the sheet you are on so you will have to manually set the sheet number someplace on each sheet-- in which case it is just as easy (to me) to copy the formula, then paste into each sheet and change the reference.
    On Sheet 2:
    Table 1, cell A5=Sheet 1 :: Table 1 :: B7
    On Sheet 3:
    Table 1, cell A5=Sheet 2 :: Table 1 :: B7
    On Sheet 4:
    Table 1, cell A5=Sheet 3 :: Table 1 :: B7
    On Sheet 5:
    Table 1, cell A5=Sheet 4 :: Table 1 :: B7
    etc

  • How to use Different Calendars in one DP Planning Area

    Hi Experts,
    I would like to know that whether it is possible to use different calendars in single planning area ? Will explain the scenario in details as under
    We have 3 plants having separate calendars (different weekly offs). Now using single planning area in DP, I have to plan the demand for all the 3 plants in weekly buckets.So I need to refer to 3 different calendars in single planning area. Is this possible in DP ? As far as I know, we can attach only one fiscal year variant to the planning area through storage bucket profile. Also in this case, the system do not refer to public holiday calendar there by assuming all day working except the weekly off.
    Thanks in advance
    Regards
    Sandeep

    Thanks Sujay for immediate reply. The time bucket profile will just help me see the data in different buckets say Daily, weekly or monthly. However this still doesn't solve my problem. As only 1 Fiscal Year Variant is attached to the storage bucket profile, the system still will read the same profile for all the plants & will assume the same weekly off for all the plants which is not true in reality.
    Any other suggestion for considering different weekly offs for different plants in the same planning area ?
    Thanks & Regards
    Sandeep

  • How to Update a particular cell in Excel with its specific cell Name?

    {color:#000080}Hi,
    I have connected my Java program to Excel using JDBC ODBC connection and also I am able to read/write data to Excel currently.
    In my write code, I have updated the data in particular Excel cells by using conditions in "where" clause.
    Example:
    String $mcode="hello";
    double da1 = Double.parseDouble(txtda1.getText());
    st.executeUpdate("insert into [Sheet4$] values (' " +$mcode+ " ')");
    st.executeUpdate("Update [Sheet4$] set Lot1="+da1+" where Lot1='"+$mcode+"'");
    But I would like to refer to the individual excel cells by their cell name instead of like the above said one.
    In whatever I saw, third party tools were used to refer to the excels cells by their name. But I have to refer to in an ordinary way.
    It would be great if somebody could help me in referring to Excel cells by their name.
    Thanks in advance!{color}

    I don't think it is possible to refer to cell in excel using jdbc, since jdbc is intended to communicate with mostly database in generic way. So you have to use queryStrings to update or retive cell info.
    The only way to access them by cell name is possibly by using some third party tools.

  • Cell reference Parameters in Connection properties of Excel are not saved, how do I fix this?

    Hi!
    I'm using excels pivot table function to grab data from my MS access db through ODBC connection.
    I've set up the connections with parameters for my selection criteria or the "where" clause if you read the SQL statement. The parameters I use refer to cell values on in my workbook.
    My problem is that the parameters are empty every time I reopen the workbook. This creates several problems. If I attempt to refresh the connection Excel crashes. If I attempt to save the workbook excel will crash.
    So I have to manually re-input the parameters for each connection I have in the workbook. The parameters function and the ability to use cell values as the parameters is great and opens up for great possibilities. But it seems it's not working?
    I even opened the xml file in the .xlsx container and found where the information for the parameters reference is stored. And it was present the connections.xml as:
     <parameter name="From YYYYMM" sqlType="4" parameterType="cell" cell="Admin!$C$5" />
    Which tells me there is nothing wrong with my saved xlsx file.
    Is there any way around the problem?
    Regards, Erik

    Hi Jaynet, thanks for your reply.
    My cells do contain values so that's no problem. It's a very simple setup where I have 2x6 cells with a couple of parameters that are to be used by all my connections in the workbook.
    Using vb code to update the "forgotten" parameters inside the connections was something I also was thinking could be a solution. Just felt it would be a shame when the functionality for what I'm trying to do cleary has been built
    in to excel in a very simple way through the UI.
    Before I go down the vb route I'm gonna see if I can find more info about any fixes for this bug in excel, maybe a hot patch or something like that. (I can't speak vb so building such a thing is going to take a while for me as I have to take bits
    and pieces I find around the web to get stuff working) :)

  • RichFaces calendar colors

    Hi !
    I use RichFaces (version 3.3.1)
    I have a problem with view of richfaces-calendar.
    I wrote this code in my JSP file:
    <h:panelGrid styleClass="alap">
      <rich:calendar />
    </h:panelGrid>My CSS file:
    table.alap {
      font-size: 13px;
      font-family: Verdana, sans-serif;
    table.alap td {
      background-color: green;
    }  So, all the cells of calendar have green colour of background, but I don't want this view.
    I would like to protect the cells of calendar from the outer effect.
    Bye, xesj.hu

    Hi !
    BalusC: Ok, this is a CSS problem...
    I tried css child selector, but the selector not working cause of table :)
    h1>p>b is working, table>tr>td is not working :))This is my html code:
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css">
        table>tr>td {
          background-color: green;
        h1>p>b {
          background-color: red;
      </style>
    </head>
    <body>
    <table border="1" cellpadding="10">
      <tr>
        <td>
          calendar here
          <table border="1" cellpadding="10"><tr><td>inner table</td></tr></table>
        </td>
      </tr>
    </table>
    <h1>
      <p>111<b>bbbb</b>111</p>
    </h1>
    <h2>
      <p>222</p>
    </h2>
    </body>
    </html>Bye, xesj.hu

  • How to name a cell

    omg the most basic thing and I cant find it anywhere...how to name a cell? Instead opf refering to a cell as "a9", I would like to refer to it as "total"

    Generally you can't name cells in Numbers.  That being said... you can enable a feature in preferences for Numbers call "Use header cell names as references":
    If you enable this then when you assign a row header and column header you can refer to cells as the combination of the corresponding  row and column header name.  e.g.
    Most of us do not use this feature but I cannot think of specific reasons why.  I hope this helps

  • Super-scripted Ref Numbers with generated Ref Table (A Glossary?)

    Good Morning All!
    I have been trying to create a paragraph style that will be applied manually, but when applied Italicizes and adds a sequential super-scripted "reference number". These reference numbers will then be used to produce a table which will sort rows numerically and produce info based on each reference. I will also need this to delete duplicates. I have a remove duplicates script for my ToC and may be able to retrofit it to this, but we'll get to that later. I can single out words with GREP, but without creating my own "parts dictionary" it would be a pain to add a thousand or so part names* to a GREP. I figured the easiest way to do this would be to manually apply a paragraph or character style per instance and then use a script to remove duplicates. If there is a better way to do this I'm open to suggestions.
    *Sadly part names aren't always consistent either due to different writers writing styles.
    To keep it simple for now I'm wanting it to just produce: Example Row in Table - [Ref # / Blank cell for part number / Part Name (Text that Ref style was applied to) / Blank cell for description]
    Example:
    I'm running into a problem that my super script numbers wont sit right if its done through a paragraph style as it reads the entire paragraph. I need the style to apply to a word or group of words. I tried creating a numbering system like a ToC, but once again that works off of paragraph styles. I can manually apply a character style but it doesn't have any sequential numbering options. For right now I'm fine manually applying the style for each instance and then copy/pasting part number and description. I'm just looking for something to generate reference numbers and the name that coincides into a row of a target table. In the future it would be amazing to have it access the component dictionary (excell doc) I'm painstakingly building to grab the part number(s) and descriptions so I don't have to copy/paste.
    I have been tasked with making multiple writers write the same thing. It feels impossible btw. So I have been creating an indesign template that does a lot of the work for you so that the largest inconsistencies are now handled by Indesign and leave no room for user error. This will not only help my older writers be consistent but will lessen the learning curve on newbies. Let me know if there is something differently I could be doing or if anything has worked well for you. I am open to any and all help/suggestions, I look forward to hearing back!

    Thanks for the quick response Pete. They would need to be created as well. 
    I was hoping that they would continue on through pages, but not documents (for booked instances). That they would be numbered on the fly so that if you moved pages around they would renumber themselves and then you could run a script to fix the order in the table. I have the sequential numbering scheme down for automatic figure box numbering. I just cant figure out the in-text mid-paragraph numbering. What do you have for me MVP?

  • Need User Documentation for Oracle Calendar 9.04

    I Need User Documentation for Oracle Calendar 9.04 (which replaced Steltor Corporate Time product). I've searched all over this site and can only find server administration documentation.
    I see lots of requests from other users for this documentation and no satisfactory answer. Could someone please provide proper documentation for this software?
    Thank you.
    Helen

    Hi,
    You can refer to the Oracle Calendar Resource Kit found here:
    http://download-west.oracle.com/docs/html/B10894_01/mainpage.htm#1005552
    Thanks,
    Lily

  • Macbook Pro and Verizon LG VX9400 cell phone

    Is it possible to synchronize my Verizon cell phone (LG VX9400) with the MacBook Pro or .Mac account? I am new to the Mac and have a number of contacts in the cell phone to add to the address book in the Macbook.
    Also via .Mac is it possible to synch my work calendar (MS Outlook) with my .Mac account and Macbook? I don't always bring my work laptop home and would like access to the calendar. I am thinking I can eventually get it link to my cell phone calendar.
    Thanks

    They really pushed that it would all work great! Has anyone had the same struggle? Are there any step-by-step instructions to get linked up?
    Call Verizon's wireless tech support & explain your problem to them.  They will provide "step-by-step" instructions over the phone. 
    Take notes too!
    TIP:  If you do call & don't want to go through all those darn promps, when you initially call, just don't say anything.  The automatic voice will then say,  "will connect you to a service rep."

  • Cell editor use

    what all the advantages using cell editor and where it is necessary to use

    Hi,
    Refer,
    Re: cell editor
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm
    Regards,
    Gunjan.

  • Disable input in certain cells of ALV

    Hi All,
    This probably has been posted before, but i can't find the answer to my question, I have an ALV table that requires certain cells to be disabled and enabled based on the  value.
    Can anyone guide me on how do i go about solving this? also if you have good sites/guide step by step on cell variant. please let me know.
    Help is very much appreciated.
    Thank you,
    Vinod

    You need to use Cell variant.
    Refer the Program: SALV_WD_TEST_TABLE_CV
    Also refer thread [Cell variant | Re: Table row / cell editable;
    BM

  • Calendar appointments missing

    I just noticed in my Blackberry that all my appointments are purging out for the previous month.  This is a very serious situation because I need to refer back to my calendar and look at past appointments.  I checked my sync settings and I have it set that my phone overrides my Outlook calendar and on my phone I have it set to save appointments forever.  So why is this happening??  I link to a Google calendar so I have a backup there but it would be nice to have all my appointments on my phone back.
    Please help!

    While in calendar, hit the Blackberry menu button and choose "options." From the choose "Calendar Display and Actions," then scroll down to "Keep Appointments" and choose, "Forever."

  • How to update existing excel cell by dropdown value in ole programm

    hi guys,
    i am updating excel sheet using ole program, i stuck in point where i want to fill an excel cell by selecting dropdown value from list,
    how it  can be achieve.

    I don't think it is possible to refer to cell in excel using jdbc, since jdbc is intended to communicate with mostly database in generic way. So you have to use queryStrings to update or retive cell info.
    The only way to access them by cell name is possibly by using some third party tools.

Maybe you are looking for

  • Ability to use Adobe Photoshop Album tags in CS3 Bridge

    I currently have 15,250 photos and 155 tags entered in Adobe Photoshop album. I would like the ability to convert, import or somehow use these tags in CS3 Bridge without reentering everything. PLEASE!

  • JBoss and local interfaces (JNDI)

    I'm trying to do simple example involving local interfaces on JBoss. There is Bar remote interface, which uses Foo, local interface. And the problem is - i cant locate Foo within Bar: ejb-jar.xml: <session> <ejb-name>BarEjb</ejb-name> </session> <ent

  • Error when installing CD Software for Treo 650

    For some reason or another, it does not look like their are any scratches on my installation CD that I got with my Treo 650, but when I go to do the install, it almost completes the install and then it gives me an error message that says: Error 1316.

  • Blackberry link will not install on windows 8

    New Laptop: Samsung core i7 Up to Date Windows 8 link software: 111_b020_multilanguage and i get the following during installation Any thoughts  how do i get this installed  ?????????? Windows ® Installer. V 5.0.9200.16384 msiexec /Option <Required P

  • Enable Final Cut Studio color compatibility

    I was wondering who has this function available in the QuickTime player preferences. If you go to QuickTime>Preferences do you see a checkbox for this as the last item in the General prefs panel? What I'm trying to find out is if this is available to