How to customize a datefield component to visible only 40 days from today?

In my project, I came into a situation like, I had a datefield component for which everyday it must show only 40 days from the current day and the remaining days should be unselectable. it can be in any SDK 3/4.
Please somebody help me in logic.
Thanks in advance

read this.
http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-co ntrol/

Similar Messages

  • How to set default date of 3 weeks(21 days) from today's date during page load?

    I want to show the default date as 3 weeks from today's date during page load.
    For example ,i have given as adf.CurrentDate + 21 in EO for the attribute 'DueDate'. But it is showing me the date as 9.7.2013. 3 weeks default date is not getting set.If i give adf.currentDate also ,it not giving me today's date,it showing the 9.7.2013 only.Kindly provide your suggestions to set the default date as 3 weeks from today's date during page load.Thanks in advance.

    Hi,
    when you set the value on the entity level then you don't want to show it during page load but when the field is empty ? Correct? if so then the use case is a different one. The easiest way to implement this would be to create a Rowimpl class (Java option) and then in the get method of the entity attribute check if the value is null and if it is, set it to the current date + 21 days. This way all rows will be set with the 3 weeks due date but fields are not overridden each time the row is queried
    Frank

  • Restrict a textInput component to accept only numbers from 0 to 250

    I want to restrict a textInput component to accept only
    numbers from 0 to 250. I know I can use restrict to some degree but
    all I can do is restrict it to 0-9 and use maxChars to 3 which
    allows any number from 000-999.
    I believe I could use the TextEvent.TEXT_INPUT and then write
    some code that will convert that event's text (i.e. the text
    entered into textInput component before it is actually added to the
    textInput component's text value) such that I do not allow values
    greater than 250 but I'm not sure what that code would be. Does
    anyone know an easier way to do this?

    use the change event to monitor the input value and if it's
    greater than 250 (after typing the text property as a number),
    assign the text property to be "250".

  • How do you add a due date 2 days from today in a workflow

    So I'm creating a workflow that creates a task in a task list after I've added a new item to my clients list. So for example by adding a new client to the client list, a task will be set to 'Complete all contact details'. All I want to do is set a predetermined
    due date, so instead of picking the current date or a specific date I want the workflow to work out the due date 2 days from today. How can I do this? Please note that I want to be able to change the predetermined due date in the same work flow, so for another
    task I'd like it to be 4 days or a week from today.
    Thanks in advance! :)

    Hi Sarah,
    Thanks for posting your issue, 
    Go to your Tasks List and go into the List Settings. Click on the Due Dat column and tick the Calculated radio button. In the formula, put [Today]+2 and click OK. Go back to the list and select New and you'll see the Due Date is 2 days in the future.
    If you need to do this within the workflow, you'd use an Add Time to Date action, setting it up to add 2 days to the Current Item created by field. Then, you'd use an Update item action to update the Due Date field to the date variable the Add Time to Date
    action output.
    Also, browse below mentioned URL for more details.
    http://dlairman.wordpress.com/2010/10/14/limiting-sharepoint-workflow-due-dates-to-business-days/
    http://www.documentmanagementworkflowinfo.com/sample-sharepoint-workflows/4-ways-set-date-value-sharepoint-designer-workflow.htm
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Component is  visible only  when frame is resize why?

    hai,
    In My application the components are visible only when the JFrame is resize...... why is it so?
    The problem is in login screen..
    that is the frame is displayed in middle the default layer for this borderlayout.... the panel here consists of gridbaglayout
    whats the problem? the size are all i have checked no problem
    Please help me out
    Shanthy

    Probably because you've added the components to the GUI after the GUI is visible.
    If this is the case then you need to revalidate the parent container.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • How can I print in black and white only directly from apps on hp screen?

    My printer preference from my pc is set to print in black and white from my computer. How do I set the same black and white settings from the HP Photosmart Plus printer, when printing directly from Apps on Home screen?

    Hello AdrianaSFleury,
    At this time there is not an option or a default to set black and white only from the front panel of the printer. Some applications may give you settings in the Application itself for color or black and white but that would be the only place to change the color of the document/photo for your print jobs. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • How do you rename a component file (in a book) from the FDK?

    ...and upate all the links?

    Good question. There is no function for it, AFAIK. There is an fcode:
    #define KBD_BOOKRENAMEFILE
    0x30C
    ...and F_ApiNotify() responds to a rename action with that code, but I wouldn't know how to initiate the process with the code. FCodes work good for simple commands, but I don't know how you would submit the new name, etc. Maybe somebody else knows. If not, you might have to build it yourself.
    Russ

  • How can I create a fIlter to delete only "junk" from the server?

    One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
    But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
    I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
    - after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
    - not delete any other messages from the server for that account

    I believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.

  • How can I turn back or just see deleted history from today for example?

    When I try this in history-recent clouse cards doesnt come anything, but I am sure that must be, or if is possible to see recent cookies and date when are they open again?

    Interesting reply. Thank you for helping me with my question.
    I believe it should be up to me to decide the level of security I want on my account - and I of course should also be held accountable of anything related to security. It's not a bank account and I only want to have quick access to free apps. Speed is critical.
    Also, being a touch enabled device I'm, by definition, also restricted by speed. Therefore, forcing me to type one complex word, and two simple ones produce a serious obstacle. So no, I'm not happy at all. Thankfully I only use my iPad in order to study prebuilds of websites. If it would have been more user friendly I'd use it more.
    So to sum up: No, there is no way to change the security settings on your Apple ID account.

  • How to find 90 days from today?.

    Post Author: cruser08
    CA Forum: Formula
    is this formula will do always?...i want a general formula.
    dateserial(year(currentdate)-1, month(dateadd("m", -3, currentdate)),Day (currentdate))

    Post Author: SKodidine
    CA Forum: Formula
    currentdate - 90 was my original proposed solution, but when I ran it on 03/04/2008, it gave me a result of 12/04/2007, whereas it should have been 12/05/2007.  Dateadd('d',-90,currentdate) also run on 03/04/2008 gave the correct result of 12/05/2007.  I believe currentdate - 90 was not taking the leap year into account.

  • Why does old events show up in Calendar day view?  How do I make it show only from today forward

    I have looked at everything but I keep seeing an event from early October as the first event in my day view and not my current days event.  Any ideas on how I can change this so that it only looks from today forward and not backwards

    It isn't a repeating event. But is marked as an all day event?  On the weekly and monthly view it shows only on the specific day it should. On the daily view it is only on the left side that lists calendar events?  Is there a setting I am missing

  • How to Customize the Standard UWL component

    Hello Experts,
    We have a requirement to customize the standard UWL component. 
    But I am not sure how to get standard UWL source code in NWDS and how to create a custom DC from the standard component with different namespace.
    Can anyone please guide me how to achieve this requirement?
    Regards,
    Sambaran Chakraborty

    REPOST with proper format:::
    HI Amar,
    Thanks for you input.
    But we have no option except to go with this customization of UWL; we are in middle of SAP upgrade (NW 7.01 SP07).
    Previously we were in NW 7.0 SP10) and that time we were customized the UWL component.
    But after upgrade it is not allowing us to deploy the old UWL custom component.
    Therefore we have decided to customize the UWL component again with current version.
    Now for NW 7.01 SP07 SAP is not providing the source code(SRC>ZIP) for UWLJWF.sac file. But we are able to get the source code for NW 7.01 SP00.
    Now we have successfully able to build and deploy a local DC from the SRC.ZIP file from UWLJWF.sac of NW 7.01 SP00.
    Then we have created an iview and call the UWL Substitution Application from the custom UWL DC. But when we checked in the UWL Substitution screen we get few issue:
    1.     In the UWL Substitution screen there is not text available for any of the button.
    2.     When we clicked on first button (should be Create Rule button, though no text available for our case) we got an error message of incompatibility, below is the error:
    java.lang.ClassCastException: com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLPeoplePickerInterface$External incompatible with com.sap.netweaver.bc.uwl.ui.pp.wdp.IExternalUWLCustomPicker        at com.sap.netweaver.bc.uwl.ui.subst.wdp.InternalSubstitutionRuleView.wdGetUWLCustomPickerInterface(InternalSubstitutionRuleView.java:362)
            at com.sap.netweaver.bc.uwl.ui.subst.SubstitutionRuleView.wdDoInit(SubstitutionRuleView.java:179)
            at com.sap.netweaver.bc.uwl.ui.subst.wdp.InternalSubstitutionRuleView.wdDoInit(InternalSubstitutionRuleView.java:255)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
            at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:793)
            at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:296)
            at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:767)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
            at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
            at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:219)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Can you please provide your valuable input on this condition?
    Any help from anyone on this issue will be highly appreciated.
    Regards,
    Sambaran Chakraborty

  • Kindly let me know how to customize ESS Screens

    Hi,
    I configured NWDI, created Track. I got all DC's in nwds.
    I created a proj and opend it through WebDynpro. Each proj having min of 3-5 Components.
    I hav seen all the component views. When i execute an application the output what i m gatting is different  from what i hav seen views of different components
    I didnt find frm wer this view is coming.
    for eg, here i opened proj EPD_ESSDev_Dessinaddrsap.com
    this proj is having below components
         CcPerAddressIN
                    FcPerAddressIN
         VcPerAddressINDetail
         VcPerAddressINOverview
         VcPerAddressINReview
    Kindly let me know how to customize this?
    Regards,
    Venkat

    Hi Snehal
    Here is the references,
    WebDynpro Component :FPMComponent - com.sap.pcuigp.xssfpm.wd
    Interface View :FPMComponentWindowInterfacView
    Startup Plug :Default
    But in my proj there is no component with the name FPMComponent - com.sap.pcuigp.xssfpm.wd
    , then from where this is taking...
    kindly guide me
    ThankQ

  • How to customize yAxis of ADF bar: dvt:barGraph

    Hi buddies,
    I met a problem on designing dashboard these days. Now the values of yAxis is not fixed, it usually displays "0,0,1,2,2,3,4,4,4..." I don't want it displays like that, it should be "0,1,2,3,4,..." any one knows how to customize it?
    Thanks a lot.

    Is it possible to set the value type on this component?

  • How to customize Imputed cost?

    hi guru's
    I am kamala, anybody send how to customize the Imputed cost?my mail id is:[email protected]
    Advance Thanks
    Kamala

    Hi kamala,
    Operating expenses are often allocated differently in financial accounting than in cost accounting. If, for example, an expense incurred in external accounting covers a whole year, you must assign a proportion of the whole to each individual cost accounting period. You distribute irregularly-occurring expenses, according to cost-origin, on the months in which they are incurred. This allows you to avoid irregularities within cost accounting. Costs allocated in this manner are termed accrued costs.
    The even distribution of a one-off expense is referred to as time-based accrual calculation. With the aid of the accrual calculation functions, you can take these costs into account in the Controlling component.
    Configuration: You can calculate accruals in two ways.
    You can post accruals in the Financial Accounting component (FI) using recurring entries and pass the accruals along to the Controlling component using a special cost element for accrual allocation. Here, the accruals (or imputed costs) are calculated in financial accounting, not internal accounting.
    You can calculate accruals in the Controlling component based on the costs posted there. To do so you can use the following approaches:
    - Accrual calculations using the percentage method
    - Accrual calculations using the target=actual method
    If you use either of these procedures, you must ensure that subsequent postings are made in the Financial Accounting component if you want to display the accruals postings there as well.
    Actions
    To execute accrual calculation, you must define the necessary data and carry out the following steps, according to the accrual calculation method you are using:
    For accrual cost calculation using the percentage method, you must first create an overhead structure (see: Defining the Percentage Method).
    For accrual calculation using the target=actual or the plan=actual methods, you must create the corresponding accrual cost elements. You must also carry out cost element and activity type planning (see: Maintain Data for Target=Actual Accrual Calculation).
    You can maintain data for an overhead structure, as well as for target=actual credits, during system configuration and for the application component itself. You must enter this data as controlling area dependent.
    This controlling area dependent data includes:
    For the percentage method
    - Calculation bases
    - Overhead percentage rates
    - Credit objects
    For the target=actual method
    - Target=actual credits
    Hope I had been able to help you. Please assign points.
    Rgds
    Manish

Maybe you are looking for

  • ISE 1.2 Profiler Feed Service

    Just curious if any updated device profiles have been made available for download via the feed service in ISE 1.2? 

  • Transfer iPhone backup to new macbook pro from old macbook pro

    I bought a new macbook pro last week, but, I need to transfer my iTunes library (music, apps, podcast, photos, other) from my old macbook pro to my new macbook pro and the iPhone backup, off course, please, I have read entire hours on google but I ca

  • External SSD not detected!

    Hi, I'm running Mac OS X Lion (latest version) on a MacBook Pro mid-2010 model. OS X Lion was installed via recovery tools a few days ago. Today I plugged in a brand new Crucial M4 SSD via USB and it got detected. I restarted the laptop in recovery m

  • Inserting an ImageIcon into a JLabel

    Hello. I'm trying to insert an ImageIcon into a JLabel component which includes text. I want this JLabel to be a cell in a JTable, so i'm trying to add the ImageIcon inside the method public Component getTableCellRendererComponent (JTable table, Obje

  • After OS X reboot - temp file in Trash

    Please bear with me if this has been asked before concerning Dreamweaver CS4 (I saw an older post relevant to Dreamweaver CS3, but there was no real resolution). Situation: I purchased, downloaded and installed Dreamweaver CS4 onto my Mac Pro (early