Set List datefield to future date and disable all date behind current date?

Is it possible to set date to future date (atleast 2 week) and all prior  date should be grayed out . User will not able to select behind current. 
Is it possible with OOB option. JQuery work around also fine.
ItsMeSri SP 2013 Foundation
ItsMeSri SP 2013 Foundation

FutureDate - datatype will be Datetype as Calculated column formula 'Today+14'
please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!
Also Place a validation rule as below which will restrict all previous date
[FutureDate] > (Today()+14)
User cant save that item if future date is not greater that today play another 14 days.
Hope this will help !
please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!

Similar Messages

  • Copy control for dates and disable the input

    Hi All,
    I have the following problem: I'm trying to copy dates in a follow-up order from the source order (which works fine by implementing the CRM_COPY_BADY method DATES) and disable the input of the copied dates in the follow-up order (which doesn't work).
    In the change-parameter CT_INPUT_FIELDS you can specify the fields which have to be copied and furthermore you can control the modifiability of the field in the follow-up order via the parameter CHANGEABLE (e.g. 'A' means field can not be changed). This technique is the same in all methods of the copy BADI.
    Unfortunately it doesn't work for the dates. As I said already, the date is copied but can be changed by the user in the follow-up order.
    Anybody an idea?
    Thanks and best regards, Lutz

    Dear John,
          Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want.  Anyways, thank you very much for sharing idea.

  • GPO setting "Hide and disable all items on the desktop" stop applying at policy refresh

    In our organization we have the Hide and disable all items on the desktop setting enabled on our Windows 7 computers. As we are testing Windows 8.1 we have come across an odd behaviour with this setting: At log on the desktop is configured as expected: No
    Icons. But after 90 minutes, or when running gpupdate /target:user manually, the Icons appear.
    How can I make the setting stay?
    Regards/
    Johan

    Hi Johan,
    After the icons appear ,I suggest you use gpresult command to check the result.
    It seems that some setting  overrided ""Hide and disable all items on the desktop".
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Problem with getting current date and time using oracle.jbo.domain.Date

    I`d like to get current date and time using oracle.jbo.domain.Date method getCurrentDate(), but it always return current date and 12:00:00. I also need to get the current time.

    I think you should use java.sql.Timestamp domain.
    (And set database type to TIME or DATETIME.)
    Jan

  • Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow

    Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
    I need to set it today because there are tasks that is needed to be completed on the same day.
    Is there a way without modifying the page/form. like a configuration or something?
    ----------------------- Sharepoint Newbie

    Hi ,
    As Ajeet said,  for implement your requirement, you can change the data validation on the Due data field.
    You can do as the following :
    Open the site with SharePoint Designer 2010
    Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
    On the Forms section, click ‘ReviewApproval_***.xsn’
    Then you can find Due Data for All Tasks, and change the validation
    In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Check the modification date of a file and compare it to the current date

    Hey everyone,
    I'm writing a script that compares the modification date of a file to the current date, and performs actions based on whether the file was modified 7 days ago or not. I haven't been able to figure out exactly how to do this.
    I haven't been able to find much in the way of this online, and I am not that familiar with manipulating dates and whatnot. I was able to get a bit of it, posted below:
    currentDate=`date +%b-%d`
    fileDate=`ls -l ~/.backup.txt | awk '{ print $6, $7 }'`
    echo "$fileDate"
    echo "$currentDate"
    if [ "$fileDate" <= "$currentDate" ]; then
    echo "old enough to run script"
    else
    echo "not old enough yet"
    fi
    Of course, this doesn't work. Any help would be much appreciated. This is for Leopard.
    TIA,
    Andrew

    find ~/.backup.txt -mtime +7 -exec yourscript {} ;
    You may need to play with the +7 value to get the exact number of days old the file needs to be.
    The find command will accept a directory (actually it is frequently used with directories) and will find all files in that directory and any subdirectories below that match the find selection critiera.
    So you could do something like
    find ~ -mtime +7 | xargs yourscript
    or
    find ~ -mtime +7 -name "*.txt" | xargs yourscript
    and if your script does not accept multiple filenames on the command line, you can use
    find ~ -mtime +7 | xargs -n 1 yourscript
    and if your file names have spaces in them, you can use
    find ~ -mtime +7 -print0 | xargs -0 -n 1 yourscript

  • Has anyone else had a problem with data? after updating my phone to the new update, i have all this data, and keep getting notifications that my data is getting high. i never had this problem before.

    has anyone else had a problem with data? after updating my phone to the new update, i have all this data, and keep getting notifications that my data is getting high. i never had this problem before.

    fair enough.  No need for any unnecessary posts either.  You issue had been addressed ad nauseum already in this forum had you bothered to search this forum (as forum etiquette would dictate) before posting.
    In any case, I hope that your problem was solved.

  • Grey out and disable all controls at once

    Is there a simple way to grey out and disable all of the controls on a FP at once?
    Thanks,
    Paul

    Apok, Bill
    Its merely a style issue.  No specific benefit.  Bill is absolutly right that these refs will be cleaned up without the close ref.  In fact, In theory if the Panes[] PN returns an error the loop will not iterate and all of the lower three errors are identical.  So WHY? because, the guy in the next cube may be working with property nodes of some other class. Almost garunteed to be interfacing to some .NET assembly written by the maestro of poor programming practice, known affectionatly to us as "The manager".  Now I have to explain to him/her why your adaptation blows up but my code is safe and maybe, even point out that the richly obfuscated assembly from the manager was concieved with all the talent our worst intern could have outcoded in diapers.   Now they are confussed and remember that my code doen't follow the standard I enforce on them "Just because I think I'm Mr. LabVIEW Trivia buff."  So, the coworkers begin to hate me just a little and, the manager thinks I hate them (I might but, I woudn't want them to think so.)
    I guess that actually is a specific benefit
    Jeff

  • Maximize frame on startup and disable all windows button

    Hi every body:
    I new in java field, but I'm already working with oracle Developer form for three years.In developer form I used to maximize the window at startup and disable all the windows buttons (minimize,maximize, restore and close) but unfortunatly I tried to do it with Java I couldn't .
    For close I used : setDefaulCloseOperation(DO_NOTHING_ON_CLOSE )
    I also tried frame.setResizable(false) it only disable the resizing but what about minimizing and restore
    and how to maximize it automaticly at startup.
    Thanx in advance

    Try to use JWindow instead of JFrame. You can get
    screen size using:
    Dimension
    d=Toolkit.getDefaultToolkit().getScreenSize()
    and then
    jWindow.setSize(d);
    regards,
    StasFor most systems you should leave 20 pixels for the OS status bar, eg;-
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
    setSize(dim.width, dim.height-20);
    "and disable all the windows buttons (minimize,maximize, restore and close) but unfortunatly I tried to do it with Java I couldn't . For close I used : setDefaulCloseOperation(DO_NOTHING_ON_CLOSE )"
    Put the buttons on a Panel, then use this to restore it;-
    getContentPane(),add(ButtonPanel); // or remove(---)
    validate();
    For closing add a custom event class (or an anonymous class), eg;-
    inyour constructor;
    addWindowListener(new WindowController() ) ;
    class WindowController extends WindowAdapter{
    public void windowClosing(WindowEvent e){
    // Conditions: eg typically -ask if the user wants to save befor closing?
    if(yes) System.exit(0);
    Hope that's of some use (:D)

  • I did a clean install and lost all of my iweb data and settings. My site is up and published through yahoo's server. Is there a way to retrieve/import so I can make changes?? HELP!

    I did a clean install and lost all of my iweb data and settings.
    My site is up and published through yahoo's server.
    Is there a way to retrieve/import so I can make changes?? HELP!
    Can I do this through wordpress or using html code?
    Thanks!

    Is there a way to retrieve/import so I can make changes?? HELP!
    It's often asked and answered.
    Search this forum for similar disasters : lost iweb file
    The answer usually is No. You'll have to start from scratch. Unless you have a backup.
    Can I do this through wordpress or using html code
    No.

  • User start date can not be before the current date

    I'm creating users using the Reconciliation engine. The start date attribute doesn't appear to be reconciling. I get many different types of parse errors. The closest I appear to get is when I set the Xellerate User resource object recon field to have Start date as a date field, i receive the error:
    "User start date can not be before the current date.".
    I'm using 9.0.1.1. And I AM trying to create a user that has a start date before todays date.

    Resolution was to patch to 9.0.1.1578

  • How to only show data that hasn't passed the current data?

    I have some data in an xml file. I can get it to connect fine to an .html page. My question is how do I only show the data that hasn't passed the current date? Can this be done?

    The following is the XML file
    <?xml version="1.0" encoding="utf-8"?>
    <sports>
         <item>
              <date>2010-03-21</date>
              <opponet>Essendon</opponet>
              <location>MCG</location>
              <time></time>
         </item>
         <item>
              <date>2011-01-11</date>
              <opponet>Collingwood</opponet>
              <location>Etihad</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-04</date>
              <opponet>Carlton</opponet>
              <location>Princes Park</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-08</date>
              <opponet>Sydney</opponet>
              <location>SCG</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-21</date>
              <opponet>Brisbane</opponet>
              <location>Gabba</location>
              <time></time>
         </item>
    </sports>
    The following is the HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    function pad(number, length) {
         var str = '' + number;
         while (str.length < length) {
              str = '0' + str;
         return str;
    var dt= new Date()
    var today = dt.getFullYear()
        + '-' + pad(dt.getMonth()+1,2)
        + '-' + pad(dt.getDate(),2);
    var ds1 = new Spry.Data.XMLDataSet("asdf.xml", "sports/item[date > '"+today+"']", {sortOnLoad: "date", sortOrderOnLoad: "ascending", useCache: false});
    alert (today);
    </script>
    </head>
    <body>
    <div spry:region="ds1">
    <table>
        <tr>
          <th spry:sort="date">Date</th>
          <th spry:sort="opponet">Opponet</th>
          <th spry:sort="location">Location</th>
          <th spry:sort="time">Time</th>
        </tr>
        <tr spry:repeat="ds1" spry:odd=".atl" spry:hover=".alt">
          <td>{date}</td>
          <td>{opponet}</td>
          <td>{location}</td>
          <td>{time}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    Gramps

  • Filter a list-views on page by Date and Time column, not only by Date (Connected Webpart)

    I have a task - create a page and display on it all lists/libraies with documents of team meetings. Every meeting has a documents and another information, which is storing in the same lists/libraries  on website as another meetings. Additionally there
    is a field "MeetingDate" (type: DateTime), which help to indetify a meeting documents.
    I have added all on one page and my custom connected webpart (IWebpartRow interface), which help to filter all views on page by field meeting date. It send a date to another webparts on page, and user see information only for this date.
    It works fine, but the problem is, that it used only DATE (without time) and i need now to filter all by date and time. 
    Unfortunately, i noticed that i cannot filter items by date with time in the standard list too. Please see my screenshot.
    My question is: may be i should use another interface (not IWebPartRow) that to send 2 values (1 - date, 2 - time) and filter all by 2 columns. Is it possible?
    Unfortunatelly i didn't find something like this. I found only a solution to build url like 'http://sp2013/SitePages/Homepage.aspx#InplviewHasha2528afc-50c3-4d5e-aae9-682400976409=FilterField1%3DDatum-FilterValue1%3D2015%252D02%252D27-FilterField2%3DCustomTime-FilterValue2%3D11%253A00'
    , but it looks not so good ..(
    from MSDN forum...

    Hi,
    Per my understanding, you might want to display all the specific documents in a page, they can be filtered by values of a Date and time column.
    A possible solution I will provide is that, we can create custom visual web part to display all these documents. In the code behind, run a query with CAML to retrieved all the
    documents with the specific date and time, then generate a view of hyperlinks that points to these documents.
    In this way, we can combine the filter component with the data display component into one web part, with the help of CAML query and Object Model, it would not be a tough job to
    implement such a solution.
    More information about CAML and Object Model:
    https://msdn.microsoft.com/en-us/library/office/ee536691%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Set iPad to only scroll through a limit amount of pictures and disable all other apps

    Hi there, is it possible to setup an iPad to only allow users to scroll through 3 or 4 pages, and have all other features disabled?  This will be for a customer display so that people can only view these 3 or 4 pictures and not to be able to use the iPad for any other purpose, i.e access the internet, to tie down the iPad, so to speak.  Many thanks  in advance.

    You can currently have the 'picture frame' icon on the slide to unlock screen via Settings > General > Passcode Lock > Picture Frame 'on', and you can limit which of your photo albums show in that via Settings > Picture Frame. Though you can't stop people trying to exit the picture frame and trying to enter the passcode.
    With iOS 6 later today there will be new accessibility functions which might help (from here) :
    It allows a parent, teacher, or administrator to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen.

  • Query to find the difference between the last date and the second to the last date

    Hi all,
    Hope all is well.
    I am working on the following problem because I am trying to improve my MS SQL skills. But I am stuck at the moment and I wonder if you could provide some assistance please. Here is the issue:
    Table 1: Dividends
    divId
    ExDate
    RecordDate
    PayDate
    Amount
    Yield
    symId
    1
    2013-02-19
    2013-02-21
    2013-03-14
    0.23
    0.00000
    3930
    2
    2012-11-13
    2012-11-15
    2012-12-13
    0.23
    0.00849
    3930
    3
    2012-08-14
    2012-08-16
    2012-09-13
    0.20
    0.00664
    3930
    4
    2012-05-15
    2012-05-17
    2012-06-14
    0.20
    0.00662
    3930
    5
    2012-02-14
    2012-02-16
    2012-03-08
    0.20
    0.00661
    3930
    6
    2011-11-15
    2011-11-17
    2011-12-08
    0.20
    0.00748
    3930
    7
    2011-08-16
    2011-08-18
    2011-09-08
    0.16
    0.00631
    3930
    8
    2011-05-17
    2011-05-19
    2011-06-09
    0.16
    0.00653
    3930
    9
    2011-02-15
    2011-02-17
    2011-03-10
    0.16
    0.00594
    3930
    10
    2010-11-16
    2010-11-18
    2010-12-09
    0.16
    0.00620
    3930
    11
    2010-08-17
    2010-08-19
    2010-09-09
    0.13
    0.00526
    3930
    12
    2010-05-18
    2010-05-20
    2010-06-10
    0.13
    0.00455
    3930
    13
    2010-02-16
    2010-02-18
    2010-03-11
    0.13
    0.00459
    3930
    Table 2: Tickers
    symId
    Symbol
    Name
    Sector
    Industry
    1
    A
    Agilent Technologies Inc.
    Technology
    Scientific & Technical Instruments
    2
    AA
    Alcoa, Inc.
    Basic Materials
    Aluminum
    3
    AACC
    Asset Acceptance Capital Corp.
    Financial
    Credit Services
    4
    AADR
    WCM/BNY Mellon Focused Growth ADR ETF
    Financial
    Exchange Traded Fund
    5
    AAIT
    iShares MSCI AC Asia Information Tech
    Financial
    Exchange Traded Fund
    6
    AAME
    Atlantic American Corp.
    Financial
    Life Insurance
    7
    AAN
    Aaron's, Inc.
    Services
    Rental & Leasing Services
    8
    AAON
    AAON Inc.
    Industrial Goods
    General Building Materials
    9
    AAP
    Advance Auto Parts Inc.
    Services
    Auto Parts Stores
    10
    AAPL
    Apple Inc.
    Technology
    Personal Computers
    11
    AAT
    American Assets Trust, Inc.
    Financial
    REIT - Office
    12
    AAU
    Almaden Minerals Ltd.
    Basic Materials
    Industrial Metals & Minerals
    I am trying to check the last date (i.e. max date) and also check the penultimate date (i.e. the second to the last date).  And then find the difference between the two (i.e. last date minus penultimate
    date).
    I would like to do that for each of the companies listed in Table 2: Tickers.  I am able to do it for just one company (MSFT) using the queries below:
    SELECT
    [First] = MIN(ExDate),
    [Last] = MAX(ExDate),
    [Diff] = DATEDIFF(DAY, MIN(ExDate), MAX(ExDate))
    FROM (
    SELECT TOP 2 Dividends.ExDate
    FROM Dividends, Tickers
    WHERE Dividends.symId=Tickers.symId
    AND Tickers.Symbol='MSFT'
    ORDER BY ExDate DESC
    ) AS X
    Outputs the following result:
    First
    Last
    Diff
    2012-11-13
    2013-02-19
    98
    But what I would like instead is to be able to output something like this:
    Symbol
    First
    Last
    Diff
    MSFT
    2012-11-13
    2013-02-19
    98
    AAN
    2012-11-13
    2012-12-14
    1
    X
    2012-11-13
    2012-12-14
    1
    Can anyone please let me know what do I need to add on my query in order to achieve the desired output?
    Any help would be greatly appreciated.
    Thanks in advance. 

    Could you try this?
    create table Ticker (SymbolId int identity primary key, Symbol varchar(4))
    insert into Ticker (Symbol) values ('MSFT'), ('ORCL'), ('GOOG')
    create table Dividend (DividendId int identity, SymbolId int constraint FK_Dividend foreign key references Ticker(SymbolId), ExDate datetime, Amount decimal(18,4))
    insert into Dividend (SymbolId, ExDate, Amount) values
    (1, '2012-10-1', 10),
    (1, '2012-10-3', 1),
    (1, '2012-10-7', 7),
    (1, '2012-10-12', 2),
    (1, '2012-10-23', 8),
    (1, '2012-10-30', 5),
    (2, '2012-10-1', 10),
    (2, '2012-10-6', 1),
    (2, '2012-10-29', 7),
    (3, '2012-10-1', 22),
    (3, '2012-10-3', 21),
    (3, '2012-10-7', 3),
    (3, '2012-10-12', 9)
    WITH cte
    AS (SELECT t.Symbol,
    d.ExDate,
    d.Amount,
    ROW_NUMBER()
    OVER (
    partition BY Symbol
    ORDER BY ExDate DESC) AS rownum
    FROM Ticker AS t
    INNER JOIN Dividend AS d
    ON t.SymbolId = d.SymbolId),
    ctedate
    AS (SELECT Symbol,
    [1] AS maxdate,
    [2] AS penultimatedate
    FROM cte
    PIVOT( MIN(ExDate)
    FOR RowNum IN ([1],
    [2]) ) AS pvtquery),
    cteamount
    AS (SELECT Symbol,
    [1] AS maxdateamount,
    [2] AS penultimatedateamount
    FROM cte
    PIVOT( MIN(Amount)
    FOR RowNum IN ([1],
    [2]) ) AS pvtquery)
    SELECT d.Symbol,
    MIN(MaxDate) AS maxdate,
    MIN(penultimatedate) AS penultimatedate,
    DATEDIFF(d, MIN(penultimatedate), MIN(MaxDate)) AS numberofdays,
    MIN(MaxDateAmount) AS maxdateamount,
    MIN(penultimatedateAmount) AS penultimatedateamount,
    MIN(MaxDateAmount) - MIN(penultimatedateAmount) AS delta
    FROM ctedate AS d
    INNER JOIN cteamount AS a
    ON d.Symbol = a.symbol
    GROUP BY d.Symbol
    ORDER BY d.Symbol
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers.
    Thanks!
    Aalam | Blog (http://aalamrangi.wordpress.com)

Maybe you are looking for

  • Delete data from a flat file using PL/SQL -- Please help.. urgent

    Hi All, We are writing data to a flat file using Text_IO.Put_Line command. We want to delete data / record from that file after data is written onto it. Please let us know if this is possible. Thanks in advance. Vaishali

  • Not able to create a new FDM application -11.1.1.4

    Hi I have installed Hyperion FDM on win2008 and oracle 10g. After installation, I configured it to authenticate with shared services. Everything else like Load balance, application server are configured. I can login to FDM web url using the shared se

  • Lightroom 2 runtime error when trying to start up *URGENT ERROR*

    I updated from 2.0 to 2.1 recently. Now everytime I try to start lightroom it will not, and i get a microsoft visual c++ runtime error and it immediately asks to close LR before it even opening. I found 3 possible solutions on the adobe knowledge bas

  • Cannot open PDF tutorials in Inspiration Browser?

    Hello, I have Photoshop Elements 7.0 & with it I would like to try using the Adobe Photoshop.com Inspiration Browser tutorials.  However, every time I try to open a PDF tutorial on the Inspiration Browser I get an error message stating, "A sufficient

  • JAXB : Issue with include XSDs

    Hi.. I fail to generate JAXB Schema Driven Classes when I try to use a XSD which has xsd:include tag inside. Due to this include XSD, I am getting compilation error while I try to generate files using xjc command. Hope JAXB will have solution for han