Dvt:schedulingGantt : to show current date directly with the week

Hello everyone,
i use Jdeveloper 11g and ADF.
I use this component: "dvt:schedulingGantt" and
Q1: I would like to know if I can show directly when I'm going on this page the current week.
Q2: Is it possible to put on "Start time" field the current date minus one month? and "End time" field the current date plus one year?
Thank you
Regards

Are you sure you haven't committed one of the cardinal sins of the Java-ignorant by confusing it with Javascript?

Similar Messages

  • Current date - End of the week

    Hi Masters,
    By using <b>GET_WEEK_INFO_BASED_ON_DATE</b> this function module we can find the last day of the week.
    That is it's giving SUNDAY. But my case SAT DAY is the last day of week. Please can any body give me the proper code..It's very urgent..
    I realy appricate..
    Thanks!
    SReddy

    try this ( I am in ECC 5.0 just check it in your version)
    data : vdate  like sy-datum,
           vsatday like sy-datum.
           vdate = sy-datum.
    CALL FUNCTION 'HR_GBSSP_GET_WEEK_DATES'
      EXPORTING
        p_pdate             = vdate
    IMPORTING
    *   P_SUNDAY            =
       P_SATURDAY          = vsatday
    *   P_DAY_IN_WEEK       =
    *   P_WEEK_NO           =
    write : / vsatday.
    regards
    shiba dutta

  • Show Current Date in Year Format (and now - 1, etc.)

    Our form has some column headers that need to change each year, the headings are current year (2010) + previous 3 years.  Am trying to programatically add the titles to eliminate modifying the form just to change the year, but not finding how to accomplish, and was checking out some date samples found, but no success yet.  My question is 2 part - how/where do I put code, I don't need the user to enter anything, just want a column header.  This example below is where I copied the idea from a sample and tried to adjust, it's on the calculate event of a date/time field, and I get an error message that says 'the display pattern "date-{MM/DD]" is incompatible with the object's data format.  Define a compatible Display pattern.  This display pattern error is the 2nd part of the question.  How do I display only the 4 digit year?
    year1.rawValue
    = num2date(date(), "YYYY")
    How do I accomplish this - am newbie on this!  Thank you very much!

A: Show Current Date in Year Format (and now - 1, etc.)

1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object  your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve

1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object  your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve

  • Calendar today doesn't show current date, it's now 23rd of Nov 01:03 in Beijing, but  Today button of Calendar itself shows "today" as 22nd. So does the Calendar of Yosemite

    Calendar "today" doesn't show current date, it's now 23rd of Nov 01:03 in Beijing, but Today button of Calendar itself shows "today" as 22nd. So does the Calendar of Yosemite.
    Is it a bug?

    Sorry for the huge chunk of code.
    Mm, yes, I'm far too lazy to read all that.
    But you should be overriding paintComponent(), not paint().
    http://www.google.co.uk/search?hl=en&q=java+swing+painting&btnG=Google+Search&meta=
    I've not bothered to work out from that pile of magic numbers exactly what you're tring to draw but is it not something that JTable would happily do?

  • CS4 Actions change "Show Current Layer, Toggle With Others" MIA

    Greetings forumers,
    I have been using Photoshop for years as a hobby and professionally. My employer recently upgraded our Mac Pro Quad-Core Intel Xeon computers to Photoshop CS4. The transition has been mostly painless accept for all the changes to the keyboard shortcuts (I'll live).
    Recently we have come across an issue with one of our customer's workflows that we have not been able to get by using CS4. Or customer has a workflow that we must work within in order to provide them with the artwork files in a way they can use for other processes. The main parts of this workflow involve layer structure and a set of actions that they have been using since Photoshop 7. Our customer uses Photoshop CS3.
    With the transition to Photoshop CS4 in our shop, one line of their action does not function in CS4.
    Show Current Layer
    Toggle With Others
    What needs to happen is at the end of the action all layers need to be turned visible. In CS3, in the layer palette, by Control & Clicking the eye and selecting "Show/Hide all other layers" produced the recorded action 'Show Current Layer, Toggle With Others'. The names of the layers are not recorded. This is good because the action will work on any layer no matter what the name of the layer is. In essence all layers are made visible.
    In CS4 performing the same above clicks produces a recorded action 'Show , ...' The diference is that in CS4 the action is recording the name of every layer that it is showing/hiding. Simply change the name of one of your layers and running the action again produces a verbose error box.
    So any thoughts on how to make visible all layers in a document using an action that will work on any layered file?
    We are constructing our files in CS4 and opening them in CS3 to run the action for our customer as a work around. Or we are manually toggling the visibility, but what fun is that when it used to be automatable?
    Any help would be greatly appreciated.

    You could try this script (CS4 only) to make all layers/groups visible. If it works for you, you could then call it as part of your action.
    selectAllLayers();
    var sl = getSelectedLayersIdx();
    var sLayers = new Array();
    for( var i = 0; i < sl.length; i++ ){
       makeActiveByIndex( [ sl[ i ] ], false );
       sLayers.push( activeDocument.activeLayer.name );
    ShowAllLayers(sLayers);
    function ShowAllLayers(layerNames) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
       for(var a in layerNames){
                ref.putName( charIDToTypeID('Lyr '), layerNames[a] );
       $.writeln(layerNames[a] );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function selectAllLayers(){ 
       var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
    executeAction( stringIDToTypeID( "selectAllLayers" ), desc, DialogModes.NO );
       function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                   activeDocument.backgroundLayer;
                   selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                   selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
           }else{
             var ref = new ActionReference();
             ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
             ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
             try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
             }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;
    function makeActiveByIndex( idx, visible ){
       for( var i = 0; i < idx.length; i++ ){
          var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putIndex(charIDToTypeID( "Lyr " ), idx[i])
          desc.putReference( charIDToTypeID( "null" ), ref );
          if( i > 0 ) {
             var idselectionModifier = stringIDToTypeID( "selectionModifier" );
             var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
             var idaddToSelection = stringIDToTypeID( "addToSelection" );
             desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
          desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
          executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • After 11.1 update, podcast page now shows 1500 undeletable ones with the cloud symbol. Turn it off?

    Itunes just updated to v11.1 for windows 7. On the podcast page every one of my subscriptions now show ALL available podcasts with the little cloud logo. I cannot delete them nor is there a place to turn that off. If I download it then delete it, it goes right back to the cloud logo. I want it back the way it used to be just a few days ago where it only showed downloaded podcasts that I can delete when done.. Please help me get rid of that. Thank you.

    Huh.  My complaint actually got fixed at some point; I'm on 11.1.3 (8) now, and it's been working for a while.  (My current complaint is that iOS 7's podcast app introduced the feature of letting you download eps directly on your phone, rather than sync-ing over from iTunes, but in the process they made it somewhat harder to manage your podcast subscriptions; I still haven't 100% figured out what actions will sync between phone and computer, and what I need to do manually in both places.  It's definitely not working as smoothly as, say, the way Contacts syncs through iCloud.)

  • I have a MBP retina display, early 2013, 512GB SSD storage& I want to upgrade it into a 768GB SSD storage, would that be possible WITHOUT replacing my current storage disks with the new 768GB ?keeping the 512GB&only adding a 256 GB disk?! please advise (:

    I have a MBP retina display, early 2013, 512GB SSD storage& I want to upgrade it into a 768GB SSD storage, would that be possible WITHOUT replacing my current storage disks with the new 768GB ?keeping the 512GB&only adding a 256 GB disk?! please advise (:

    The main error in this position is thinking ANY sized SSD can be "storage"
    Any Macbook SSD should be idealized as a working platform computer system, containing all your applications, documents, and weekly-use necessary files; and all media files such as ‘big-data’ (music/PDF collections/video/pictures), unless directly needed in the near future, should be kept off the computer and on external storage USB or likewise bare hard drives.
    You cant do what you want without removing the internal SSD
    Officially, it is not possible for an end user to upgrade the storage in any Retina Display MacBook Pro model after purchase
    Get a nice 1TB USB external HD for $65 

  • YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads.

    YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads, if it's even loading at all.
    I do not know if it's relevant or not, but I got a message on my ipad while on safari saying that my iPhone has a virus. I looked it up and it seems it might have just been an ad from the website I was on, but it happened around the same time YouTube stopped working.

    You will find that using the YouTube app will provide a better viewing experience for YouTube videos.

  • Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of '

    When I deploy the cube which is sitting on my PC (local) the following 4 errors come up:
    Error 1 The datasource , 'AdventureWorksDW', contains an ImpersonationMode that that is not supported for processing operations.  0 0 
    Error 2 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'AdventureWorksDW'.  0 0 
    Error 3 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Customer', Name of 'Customer' was being processed.  0 0 
    Error 4 Errors in the OLAP storage engine: An error occurred while the 'Customer Alternate Key' attribute of the 'Customer' dimension from the 'Analysis Services Tutorial' database was being processed.  0 0 

    Sorry hit the wrong button there. That is not entire solution and setting it to default would work when using a single box and not in a distributed application solution. If you are creating the analysis database manually or using the wizard then you can
    set the impersonation to your heart content as long as the right permission has been set on the analysis server.
    In my case I was using MS Project Server 2010 to create the database in the OLAP configuration section. The situation is that the underlying build script has been configured to use the default setting which is the SQL Service account and this account does
    not have permission in Project Server I believe.
    Changing the account to match the Project service account allowed for a successful build \ creation of the database. My verdict is that this is a bug in Project Server because it needs to include the option to choose impersonation when creating the Database
    this way it will not use the default which led to my error in the first place. I do not think there is a one fix for all in relations to this problem it is an environment by environment issue and should be resolved as such. But the idea around fixing it is
    if you are using the SQL Analysis server service account as the account creating the database and cubes then default or service account is fine. If you are using a custom account then set that custom account in the impersonation details after you have granted
    it SQL analysis administrator role. You can remove that role after the DB is created and harden it by creating a role with administrative permissions.
    Hope this helps.

  • When I use camwow, and I take a picture, then i tap the the little thingy that lets you see it. The picture doesnt show. It just shows a black screen with the camwow retro logo in the bottom right corner....PLEASE HELP IMA CRY.

    Please help. Like I said when I go to see the picture it just shows a black screen with the little camwow logo in the bottom right corner. I already tried turning it off and turning it back on, and I already tryed reseting it. PLEASE HELP PLEASEEEEEEEEEEEEEE imma cry.

    I've tried that.. twice. It didn't work for me - any other suggestions?

  • TS4357 The song I downloaded cuts off about 3 seconds before the ending, I have tried re-downloding per apple support directions with the same results. What further actions may I take to fix this issue?

    The song I downloaded (Slayer, Criminally Isane) cuts off about 3 seconds before the ending, I have tried re-downloding per apple support directions with the same results. What further actions may I take to fix this issue?

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to keep data integrity with the two business service in OSB 10.3.1.0

    How to keep data integrity with the two business service in OSB 10.3.1.0
    In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue.
    Basing customer requirment, I created a testcase but I can't keep data integerity, For detail information, please refer the attached docs.

    Can you please explain what you meant my data integrity in your use case?
    Manoj

  • How can I make the message date appear with the time for unread messages?

    Mail systems I am moving from display the date & time with the messages. I need this displayed to determine aging and importance of received mail. When archiving/saving old mail it helps filing mail off and not duplicate archived messages.

    Thunderbird displays time and date for all messages except for the present day messages. The time only is displayed for today and the date is appended at midnight.

  • I set up iCloud on my iMac with OS version 10.6.8 but I'm not able to have the icon show on my Dock with the other application icons. What do I do?

    I set up iCloud on my iMac with OS version 10.6.8 but I'm not able to have the iCloud icon show in my Dock with the other application icons. What can I do? Is it because iCloud is not part of the 10.6.8 version? I clicked System Preferences and I saw MobileMe and no iCloud.

    Thanks for your reply! Would my IMac be able to support the Mavericks (10.9) considering that I bought it in June 2011? Not sure if that even matters.

  • Maybe you are looking for