Restrict Data Input in an Input Schedule for a particular number of days in a Month

Hi All,
I want to restrict data save in Input Schedule for any particular number of days in a month. BRAD will select number of days for the that particular month and data input for that duration should be disabled.
Duration will be dynamic and will be decided by BRAD.
Basically this is a requirement of BPF, but I have thought of doing in this manner.
Regards,
Mayank

Hi Vadim
I saw your this solution:
Dim epm As New FPMXLClient.EPMAddInAutomation
Dim blnMySave As Boolean
Public Function BEFORE_SAVE() As Boolean
If blnMySave Then
    BEFORE_SAVE = True
Else
    MsgBox "Please use button on the worksheet!"
    BEFORE_SAVE = False
End If
End Function
It seems as if this may help me, but can you please guide me how to trigger this function for a change of value in any particular cell, in an input form.

Similar Messages

  • SSAS Tabular - return number of days in given month using month's start date?

    Is there a way to return the number of days in a month by providing just the month date or month start date?
    We have a time table, but it is at monthly (not daily) granularity.
    So I can't just count rows between start/end of month.
    I need to be able to divide by the number of days in a given month and can't seem to find a way to get number of days in that given month.
    Thanks!

    Hi,
    According to your description, you want to get the number of days in a month with the month's start date, right?
    In this case, we can get the first day of next month using DateAdd function, and then use DateDiff function to calculate the number of days in this month. Here is a sample query for your reference.
    WITH
    MEMBER Measures.Today AS vba!Now()
    member measures.FirstDayOfNextMonth as dateadd("m",1,Measures.Today)
    member measures.daysnumber as datediff("d",Measures.Today,measures.FirstDayOfNextMonth)
    select Measures.daysnumber on 0
    from
    [Adventure Works]
    Reference
    http://msdn.microsoft.com/en-us/library/hh510163.aspx
    http://office.microsoft.com/client/helppreview14.aspx?AssetId=HV080007558&lcid=1033&NS=EXCEL%2EDEV&Version=14&tl=2&pid=CH080007543
    http://office.microsoft.com/client/helppreview14.aspx?AssetId=HV080007559&lcid=1033&NS=EXCEL%2EDEV&Version=14&tl=2&pid=CH080007543
    Regards,
    Charlie Liao
    TechNet Community Support

  • Help with a numbers formula to call up employee schedules for a particular day / hour of day

    So my goal is to be able to use a drop-down menu on Sheet-1 with "day of week" and a 2nd one with "hour of day" to pull up a list of employees working on a particular day at a particular time.
    So far I've got Sheet-1 where the magic will happen
    Sheet 2-8 are different days of the week each displaying an employees hourly schedule and what hours of the day it corresponds with
    Here's a visual example of my thoughts:
    http://imgur.com/a/45ZZr#1
    If anyone can help point me in the right direction that woul be helpful!

    Here is another approach that takes advantage of the Numbers 3 native filtering interface.
    Have a simple data input table like this (no formulas) and set up a filter as shown:
    When the filter box is checked the list shrinks to show employees working on Monday at 10a:
    Typing new values into the filter rule boxes changes the results instantly.
    And if you have the data input table arranged as shown, you can not only filter it but you can easily view it in multiple ways.
    Here's Monday:
    The one formula in the table, in B2 copied right and down, is:
       =IF(COUNTIFS(Hours Input::$A,$A2,Hours Input::$B,$A$1,Hours Input::$C,B$1)>0,"x","")
    And here's A's schedule:
    The formula in B2, copied right and down, is:
      =IF(COUNTIFS(Hours Input::$A,$A$1,Hours Input::$B,$A2,Hours Input::$C,B$1)>0,"x","")
    etc.
    SG

  • No data in Application failure Analysis report for a particular application alone.

    Dear All, 
    We are not able to get the data in Application Failure Analysis report from Appadvisor for a particular application(say ABC) alone, whereas it works fine for different application. Also,we could get the data from other reports(such
    as Application status,Problem distribution analysis,etc) for the same application(ABC). PFB snapshot for your reference.
    Thanks in Advance.
    Regards,
    Rajesh Kumar C

    Hi,
    Is there any error message when you run Application Failure Analysis report for the specific application?
    Does this application have any failure alerts?
    You may also look into operation manager even logs to check is there any errors or warnings.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • User Exit Variable for Calculating number of days in a month

    I need a query to calulate the number of days in a particular month upto the current date. For example if i give 26 Feb it should reutrn 25, if i enter 30march it should return 29 for any specific year. I have gone through some posts and understood that i need to create a formula variable (under calculated KF's) and then go to CMOD, create a project, then enancement Assignment RSAP0001 then EXIT_SAPLRSAP_001 and include a code in INCLUDE ZXRSAU01. But i have any clue of coding. Could someone give me the entire code and how to connect it to the formula variable KF in created. The technical name of the key figure is ZMDAYS. If i have made any mistakes or if there is another eaier alternative please let me know. I thankyou all for the help.

    Hi Uday,
    I have a few modifications in the code
    Data: xdate type d,
          ip_year(4) type N,
          ip_month(2) type N.
    Types : Begin of ty_month_days,
           month(2) type N,
           days(2) type N,
           End of ty_month_days.
    Data : it_month_days type ty_month_days occurs 0 with header line.
    ip_year = 2006.
    ip_month = 01.
    do 12 times.
        CONCATENATE ip_year ip_month '01' INTO xdate.
        xdate = xdate + 33.       "this date is in the next month
        xdate+6(2) = '01'.        "first day of next month
        xdate = xdate - 1.        "last day of xmonth
        it_month_days-month = xdate+4(2).       "number of days of xmonth.
        it_month_days-days = xdate+6(2).
        append it_month_days.
        ip_month = ip_month + 1.
    enddo.
    This code stores Month and No. of days in the internal table it_month_days.
    You can access this internal table for your calculations
    This should help.
    Regards,
    Praveen.
    Message was edited by: praveen mathew

  • How to get the number of days of a month belonging to a date interval

    Hi, i am getting mad around a problem, i have 2 dates and a month, i wanto to retrieve the number of days belonging to the month that are in the interval.
    eg:
    month january 2011 . begin_date = 11/JAN/2011, END_DATE 30/MAY/2011 result is 21
    month january 2011 . begin_date = 11/DEC/2010, END_DATE 10/JAN/2011 result 10
    month january 2011 .begin_date = 02/FEB/2011 , END_DATE 25/may/2011 result 0
    month january 2011. begin_date = 03/JAN/2011 , END DATE 05/JAN/2011 result 3
    and so on ...
    i appreciate any suggestion
    thank you
    Andrea

    Oh, I didnt see your result.
    SQL> with t as
      2  (select  to_date('11/01/11','dd/mm/yy') from_dt,
      3           to_date('30/05/11','dd/mm/yy') to_dt,
      4           'Jan-11' mnth from dual
      5           union all
      6           select  to_date('11/12/10','dd/mm/yy') from_dt,
      7           to_date('10/01/11','dd/mm/yy') to_dt,
      8           'Jan-11' mnth from dual
      9           union all
    10           select  to_date('02/02/11','dd/mm/yy') from_dt,
    11           to_date('25/05/11','dd/mm/yy') to_dt,
    12           'Jan-11' mnth from dual
    13           union all
    14           select  to_date('03/01/11','dd/mm/yy') from_dt,
    15           to_date('05/01/11','dd/mm/yy') to_dt,
    16           'Jan-11' mnth from dual
    17           )
    18  select from_dt,to_dt,mnth,
    19         greatest(
    20              least(last_day(to_date(mnth,'Mon-yy')),to_dt)
    21              -
    22              greatest(to_date(mnth,'Mon-yy'),from_dt)+1
    23                 ,0) cnt
    24  from t;
    FROM_DT   TO_DT     MNTH          CNT
    11-JAN-11 30-MAY-11 Jan-11         21
    11-DEC-10 10-JAN-11 Jan-11         10
    02-FEB-11 25-MAY-11 Jan-11          0
    03-JAN-11 05-JAN-11 Jan-11          3

  • Looking for a particular number, possible?

    Hi there,
    I need to get a particular number, similar to my business name. 
    example: my business name abcdef.
    Now, i am looking for a USA number at the end it will have (*** 222 333) ->(*** abc def)
    any one point me where can i get help to choose this kind of particular number? Or its not possible at all?
    Thank you.

    Hi, Smahi, and welcome to the Community,
    You would need to search through the lists of numbers presented when you arrive at the step to choose your Skype Number in order to determine if the precise numbering sequence is available.  Skype Customer Service is not able to start a subscription, and nor can they search the Skype Number databases to check for available numbers.
    Good luck!
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Calls are not getting thru in Cisco voice GW for a particular Number

    Cisco gateway is connecte to a PBX with an Qsig interface, for a particualr destination number the calls are not gettin estabilished.
    the output of the Q931 debug :
    Aug 16 16:17:46.145: ISDN Se0/0/0:23 Q931: RX <- SETUP pd = 8  callref = 0x7E05
            Bearer Capability i = 0x8090A2
                    Standard = CCITT
                    Transfer Capability = Speech
                    Transfer Mode = Circuit
                    Transfer Rate = 64 kbit/s
            Channel ID i = 0xA98396
                    Exclusive, Channel 22
            Facility i = 0x9FAA068001008201008B0100A16E0202070102011530650201010A010
    1800101A111A00FA50D0A010212083530303035393938A211A00FA50D0A010212083530303035393
    938A312801054454C45434F4D20574F524B524F4F4DA412801054454C45434F4D20574F524B524F4
    F4DA50C06062B0C02FF373730020500
            Facility i = 0x9FAA068001008201008B0100A11D0202010002010080144E455453202
    F204C4F4E472044495354414E4345
            Calling Party Number i = 0x2183, '8168911010'
                    Plan:ISDN, Type:National
            Called Party Number i = 0x89, '18553808521'
                    Plan:Private, Type:Unknown
            Sending Complete
    Aug 16 16:17:46.149: ISDN Se0/0/0:23 Q931: TX -> CALL_PROC pd = 8  callref = 0xF
    E05
            Channel ID i = 0xA98396
                    Exclusive, Channel 22
    Aug 16 16:17:55.709: ISDN Se0/0/0:23 Q931: TX -> DISCONNECT pd = 8  callref = 0x
    FE05
            Cause i = 0x80BF - Service/option not available, unspecified
    Aug 16 16:17:55.741: ISDN Se0/0/0:23 Q931: RX <- RELEASE pd = 8  callref = 0x7E0
    5
    Aug 16 16:17:55.741: ISDN Se0/0/0:23 Q931: TX -> RELEASE_COMP pd = 8  callref =
    0xFE05
    The Qsig and dial-peer configration :
    interface Serial0/0/0:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-qsig
    isdn overlap-receiving
    isdn incoming-voice voice
    isdn send-alerting
    no cdp enable
    dial-peer voice 1 voip
    description To CBTS GK
    destination-pattern +1T
    signaling forward rawmsg
    session protocol sipv2
    session target ipv4:10.9.5.10
    session transport tcp
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad
    interface Serial0/0/0:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-qsig
    isdn overlap-receiving
    isdn incoming-voice voice
    isdn send-alerting
    no cdp enable
    dial-peer voice 1 voip
    description To CBTS GK
    destination-pattern +1T
    signaling forward rawmsg
    session protocol sipv2
    session target ipv4:10.9.5.10
    session transport tcp
    voice-class codec 1
    dtmf-relay rtp-nte
    no vad

    Hi Raj,
    My name is Edson Pineiro, I understand that your problem description is in regards to failed incoming calls from a qsig trunk.
    According to the received q931 setup message I can see the called party number is 18553808521 and as so the gateway should route the dnis based on the best match in destination-pattern. My first suggestion would be to ensure your outgoing dial-peers has a matching destination-pattern that matches the dialed number, for example:
    dial-peer voice 1 voip
    destination-pattern 1T
    The T is a wild card for any digit any length
    Or you can be very specific.
    dial-peer voice 1 voip
    destinaton-pattern 18553808521
    The next suggestion would be to ensure that your incoming pots dial-peers contains 'direct-inward dial'. This is so that you don't receive secondary dial tone when dialing in, which I don't think is happening here.
    Another suggestion would be to remove 'isdn overlap-receiving' from interface serial 0/0/0:23. Reason being is that the DNIS received is enbloc and not overlapping. You can clearly see that the complete e164 number is received within the setup and no further digits are needed.
    But overall the disconnect cause code is 0x80BF the 80 portion is related to the source of the disconnect which is the router and BF "Service/option not available, unspecified" which is described as:
    The network or remote equipment cannot provide the service option that the user requests, due to an unspecified reason. A subscription problem can cause this issue.
    Any ways seems like the router does not support the protocol or type of message included in the Setup. After decoding one of the facility message:
            Facility i = 0x9FAA068001008201008B0100A16E0202070102011530650201010A010
    1800101A111A00FA50D0A010212083530303035393938A211A00FA50D0A010212083530303035393
    938A312801054454C45434F4D20574F524B524F4F4DA412801054454C45434F4D20574F524B524F4
    F4DA50C06062B0C02FF373730020500
    decode -->
    Facility IE first byte (protocol profile): 0x9f(Network Extentions), depends on Network Protocol Profile
    **Note:
    **0x91/0x9f both be used by older qsig spec, including:
    **ISO 11582:1995, ETSI 300 239:1993/1995
    **newer qsig spec use 0x9f only, including:
    **ISO 11582:1995/Cor.1:1999, ECMA 165(4th), ETSI 300 239:2003
    **see CSCeb58118 for CCM compatibility issue
    NetworkFacilityExtension ::= {
    sourceEntity: 0
    destinationEntity: 0
    NetworkProtocolProfile not present
    APDU is a ROSE
    0
    DivertingLegInformation2Invoke ::= {
    invokeID: 1793
    operationValue: 21
    argument: DivertingLegInformation2Arg ::= {
    diversionCounter: 1
    diversionReason: 1
    originalDiversionReason: 1
    divertingNr: PrivatePartyNumber ::= {
    privateTypeOfNumber: 2
    privateNumberDigits: 50005998
    originalCalledNr: PrivatePartyNumber ::= {
    privateTypeOfNumber: 2
    privateNumberDigits: 50005998
    redirectingName: 54 45 4C 45 43 4F 4D 20 57 4F 52 4B 52 4F 4F 4D
    originalCalledName: 54 45 4C 45 43 4F 4D 20 57 4F 52 4B 52 4F 4F 4D
    Looks like this is a redirected call (call forward or transfer), the redireted number is "50005998" and the other end of the PRI maybe attempting to do either a 2 B channel transfer or B channel optimization, which is not supported certain gateways or needs the use of a tcl scripts. Any ways is it possible to confirm if such features are enabled on the other end of the qsig trunk? and what the number 50005998 is assigned too. This may warrant a TAC case.
    However please ensure your carry through the first three configuration changes before looking at the possible bad facility message.
    Here are some good documents on ISDN, IOS dial-peers and call legs:
    Understanding debug isdn q931 Disconnect Cause Codes
    http://www.cisco.com/en/US/tech/tk801/tk379/technologies_tech_note09186a008012e95f.shtml
    Configuring Telephony Call-Redirect Features
    Two B-Channel Transfer
    http://www.cisco.com/en/US/docs/ios/voice/ivr/pre12.3_14_t/configuration/guide/ivrapp.pdf
    Understanding Dial Peers and Call Legs on Cisco IOS Platforms
    http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a008010ae1c.shtml
    Understanding Direct-Inward-Dial (DID) on IOS Voice Digital (T1/E1) Interfaces
    http://www.cisco.com/en/US/partner/tech/tk652/tk653/technologies_tech_note09186a00801142f8.shtml
    Understanding Inbound and Outbound Dial Peers Matching on IOS Platforms
    http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml#prereq
    Voice Translation Rules
    http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml
    Let me know how you go.
    Thanks again for asking the tuff questions.
    Cheers
    Edson

  • Function module for getting teh last working day of a month.

    Hi GURUS,
    this is criteria,please help me 
    if V_T001B- FRYE1 < month entered in selection screen
              Then throw the error message
                Else
    Find the previous period and its last working day from the function module
          (i..e Assume entered date as June 2 2009 then
                   Period 6 -1 = 5.
         Pass the month 05 to function module then
                   Find last working day.
                   Keep it in a variable (V_LAST_PRD_WRKDAY)
                           Proceed further.
    thanks in advance,
    Rajeev

    Hi Rajeev,
    You can use Function Module LAST_DAY_IN_PERIOD_GET.
    Ex:
          CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
            EXPORTING
              i_gjahr = p_gjahr
              i_periv = lwa_t009b-periv
              i_poper = lwa_t009b-poper
            IMPORTING
              e_date  = s_audat-high.
    Regards,
    Ravi K

  • Browsing history in Firefox 17 - can I keep this for a specific number of days?

    Earlier versions of Firefox would let us specify how long to keep browsing history, and would then automatically clear out anything older than that. I can't find this option in Firefox 17. I've been having serious problems with FF, with frequent and lengthy pauses, which I finally traced to there being far too much browsing history being held. When I cleared out all browsing history, it seems to have resolved itself (crossing fingers). For the record: I had also tried starting in Safe Mode (w addons disabled), defragging my hard drive, radically reducing the number of open tabs, etc. Clearing browsing history was the only thing that made a difference.
    Can we setup FF so that it will automatically clear out old browsing history? It seems to be all-or-nothing in Tools > Options > Privacy. I have FF clear out the cache every time I close it, but I don't want to clear out all history; just past a certain time (e.g. 90 days). I'm aware that I can manage this manually through History on the main menu, but I would rather this happen automatically.
    Thanks in advance for the help with this.

    Some developers drop by on occasion, but most developers see problems only when filed on the Bugzilla tracking system:
    https://bugzilla.mozilla.org/
    I found another add-on to consider which is more automated but users seem to have mixed results:
    https://addons.mozilla.org/en-US/firefox/addon/expire-history-by-days/
    Edit: I note another user was having all history deleted after 60 days, but the cause wasn't identified. [https://support.mozilla.org/en-US/questions/944129 How do I get Firefox to save history indefinitely? Right now I am losing history older than 2 months.]

  • HELP, date class and parsing input

    I have reviewed many posts in these forums and have found that detail gets the best results so I apologize in advance if this is detailed. I am taking a Java class and am not doing so hot. The last time I programmed was in 1998 and that was Ada, I very soon moved to Networking. I guess those that can't program become networkers, I don't know, but I am frustrated here.
    Any how I am trying to write a rather simple program, but it is the manipulation of the date I am having difficulty with. Here are the requirements:
    Overall Requirements
    Create a class named Date that stores date values and prints out the date in either a pure numeric format or a name and number format (see sample session for format details).
    Date.java class file
    ? Date objects should store the date in two int instance variables &#9472; day and month, and it should include the String instance variable, error, initialized with null.
    Implement a 1-parameter Date constructor that receives a dateStr string parameter and performs complete error checking on the given dateStr value. The Date constructor is the entity that?s responsible for date error checking. That way, if a Date object is instantiated and if there are no errors, then you?re guaranteed that the Date object holds a legitimate date value. If any kind of error occurs, change the value of the error instance variable to a non-null string value, using an appropriate concatenation of a string constant, input substring, and/or API exception message.
    Constructors use the same exception handling rules as methods: In a try block, include the parsing of the month and day substrings and other error-checking logic that will not work if parsing fails.
    ? Take into account the actual number of days in each month, but assume that there are always 28 days in February.
    ? To extract day and month numbers from the given date string, use String?s indexOf method to find the location of the slash character, and String?s substring method to extract month and day substrings from the input string.
    ? Include a method for printing the date with a numeric format. Use the zero-pad flag in a printf method call to get exactly two digits for each month and day.
    ? Include a method for printing the date with an alphabetic format.
    Include a getError method which returns the value of the error instance variable.
    DateDriver.java class file : In your driver class, include a loop that repeatedly:
    ? Asks the user to enter a date or ?q? to quit. ? If the entry is not ?q?, instantiate a Date object.
    ? If the error variable is null: o Print the date using numeric format.o Print the date using alphabetic format. Otherwise, print the value of the error variable.
    I want to figure this out on my own as much as possible but have until tomorrow night to do so..............I need to understand how I can use Strings indexOf to parse the dateStr so I can locate the /. I see I can use it to find the position of a specified character, but I am not sure of the syntax I need to use. But then once I find the / I need to use the String's substring method to extract month and day. I think I might be able to get that, if I can get the / figured out.
    The below is what I have in my Class and my Driver so far:
    *DateDriver.java (driver program)
    * Christine Miller-Lane
    *Overall Requirements
    *Create a class named Date that stores date values and prints out the date in either a pure numeric
    format or a name and number
    *format (see sample session for format details).
    *DateDriver.java class file
    *In your driver class,
    *????????? If the error variable is null:
    *     &#9702;     Otherwise, print the value of the error variable.
    import java.util.*;
    public class DateDriver
    Date datevalue;
    public static void main(String[] args)
         Scanner stdIn = new Scanner(System.in);
         while (!xStr.equalsIgnoreCase("q"))
         try
              System.out.println("Enter a date in the form mm/dd ("q" to quit): ";
              value = stdIn.nextLine();
              datevalue = new Date(value);                                                        //instaniate the date object
              System.out.println //print date in numeric format
              System.out.println //print date in alphabetic format
              break;
              catch
              System.out.println("print value of error variable.");
              stdIn.next(); // Invalid input is still in the buffer so flush it.
         } //endloop
         }//end main
    } //end class?
    * Date.java
    * Christine Miller-Lane
    *Overall Requirements
    *Create a class named Date that stores date values and prints out the date in either a pure numeric format or a name
    *and number format (see sample session for format details).
    *Date.java class file
    *????????? Date objects should store the date in two int instance variables &#9472; day and month, and it should include
    *the String instance variable, error, initialized with null.
    *     ?     Implement a 1-parameter Date constructor that receives a dateStr string parameter and performs complete
    *     error checking on the given dateStr value. The Date constructor is the entity that?s responsible for date error
    *     checking. That way, if a Date object is instantiated and if there are no errors, then you?re guaranteed that the
    *     Date object holds a legitimate date value. If any kind of error occurs, change the value of the error instance
    *     variable to a non-null string value, using an appropriate concatenation of a string constant, input substring,
    *     and/or API exception message.?
    *     ?     Constructors use the same exception handling rules as methods: In a try block, include the parsing of the
    *     month and day substrings and other error-checking logic that will not work if parsing fails.
    *????????? Take into account the actual number of days in each month, but assume that there are always 28 days in February.
    *????????? To extract day and month numbers from the given date string, use String?s indexOf method to find the
    *location of the slash character, and String?s substring method to extract month and day substrings from the input string.
    import java.util.*;
    public class Date
         Scanner stdIn = new Scanner(System.in);
         boolean valid = false
         int day;
         int month;
         String error = null;
         String dayStr;
         String monthStr;
         String dateStr;
         public Date(String dateStr)
    // Look for the slash and set appropriate error if one isn't found. use String?s indexOf method to find the
    //location of the slash character and String?s substring method to extract month and day substrings from the input string.
    // Convert month portion to integer. Catch exceptions and set appropriate error if there are any.
    Integer.parseInt(dateStr);
    // Validate month is in range and set appropriate error if it isn't.
    // Convert day portion to integer. Catch exceptions and set appropriate error if there are any.
    // Validate day is in range based on the month (different days per month) and set appropriate error if it isn't.
    //public void printDate()      //Include a method for printing the date with a numeric format. Use the zero-pad flag in a printf method
                                       //call to get exactly two digits for each month and day.
    //{                                   //Include a method for printing the date with an alphabetic format.      
    //     } // end print report
    //     public getError()
                                  //Include a getError method which returns the value of the error instance variable.
    }//end class Date
    Here is sample out put needed::::::::
    Sample Session:
    Enter a date in the form mm/dd ("q" to quit): 5/2
    05/02
    May 2
    Enter a date in the form mm/dd ("q" to quit): 05/02
    05/02
    May 2
    Enter a date in the form mm/dd ("q" to quit): 52
    Invalid date format ? 52
    Enter a date in the form mm/dd ("q" to quit): 5.0/2
    Invalid format - For input string: "5.0"
    Enter a date in the form mm/dd ("q" to quit): 13/2
    Invalid month ? 13
    Enter a date in the form mm/dd ("q" to quit): 2/x
    Invalid format - For input string: "x"
    Enter a date in the form mm/dd ("q" to quit): 2/30
    Invalid day ? 30
    Enter a date in the form mm/dd ("q" to quit): 2/28
    02/28
    February 28
    Enter a date in the form mm/dd ("q" to quit): q
    I am trying to attack this ONE STEP at a time, even though I only have until Sunday at midnight. I will leave this post and get some rest, then attack it again in the morning.
    Edited by: stillTrying on Jul 12, 2008 8:33 PM

    Christine,
    You'r doing well so far... I like your "top down" approach. Rough out the classes, define ALL the methods, especially the public one... but just sketch out the requirements and/or implementation with a few comments. You'll do well.
    (IMHO) The specified design is pretty crappy, especially the Exception handling
    [The Constructor] performs complete error checking on the given dateStr value. The Date constructor is the entity that?s responsible for date error checking. That way, if a Date object is instantiated and if there are no errors, then you?re guaranteed that the Date object holds a legitimate date value. If any kind of error occurs, change the value of the error instance variable to a non-null string value, using an appropriate concatenation of a string constant, input substring, and/or API exception message.Please allow me to shred this hubris piece by piece.
    [The Constructor] performs complete error checking on the given dateStr value. The Date constructor is the entity that?s responsible for date error checking.Umm... Well I suppose it could... but NO, the constructor should delegate such "complex validation" to a dedicated validate (or maybe isValid) method... which might even be made publicly available... it's a good design.
    That way, if a Date object is instantiated and if there are no errors, then you?re guaranteed that the Date object holds a legitimate date value. If any kind of error occurs, change the value of the error instance variable to a non-null string value ...Utter Bollocks! When passed an invalid input string the, Date constructor should throw an InvalidDataException (or similar). It should not SILENTLY set some dodgy error errorMessage attribute, which is returned later by a "print" method. We tried that in masm, fortran, ada, basic, c, and pascal for twenty odd years. It sucked eggs. And it STILL sucks eggs. Java has a "proper" try/catch exception handling mechanism. Use it.
    I mean, think it through...
      someDate = get a date from the user // user enters invalid date, so someDate is null and errMsg is set.
      report = generateReport() // takes (for the sake of argument) three hours.
      emailReport(someDate, report) // only to fail at the last hurdle with an InvalidDataException!And anyways... such implementation details are traditionally the implementors choice... ie: it's usually between the programmer and there tech-manager (if they're lucky enough to have one).
    Cheers. Keith.

  • Bex Error for a particular set of data

    Hi Gurus,
        I have strange problem going on with my report, i have report which has variable
        for fiscal period (we can enter like 001/2007), the reports runs fine for 001/2207
        and 002/2007 but fails to run for 003/2007. i have data in the cube for that
        fiscal period.
        Please suggest a solution for this.
    Thanks a ton..

    Hi,
    Check for the fiscal year variant value for that  fisal period 003/2007in the cube is it same as that of othertwo values of the fiscal period.
    May be at the report level or at the cube level you have restricted the values of the fisacl variant for a particular value and for that variant value there is no fiscal period of 003/2007.
    Also it may be possible that your report key figures are restrcited year to date... that is till current fiscal period only through some other way.. and thats why you can only see data till current fiscal.
    Hope it helps
    Thanks

  • Regarding" Activities Scheduled for Today"

    Hello
    I have facing Problem Regarding "Activities Scheduled for Today" I was set different-different Activity For various BPs & Sales Opportunity of Different Dates but in the "Activity Schedule for Today" all activity Pop-up all together.
    I want only day wise Pop-up How can it be Possible in SAP Business One.
    Regards
    Nishikant S Virkhare
    SAP B One Consultant
    Edited by: Nishikant Shalikram Virkhare on Sep 25, 2009 10:01 AM
    Is there no answer for this Query

    Please If any one know about my query let me know ASAP

  • Looking for a particular set of features

    Does anyone know what Abode product will allow me to write with a stylus (on a Sony tablet) on a PDF and at the same time redord audio.  And then allow it to be played back.  I am math a teacher and I would like to upload an example question (PDF) for my students into a program.  then i would like to be able to complete the example by writing with my touch screen and i would like some audio to acompany it.  Then i want to save this and post on my class web page.   
    Are there and porduct out there that do that?

    Hi,
    Check for the fiscal year variant value for that  fisal period 003/2007in the cube is it same as that of othertwo values of the fiscal period.
    May be at the report level or at the cube level you have restricted the values of the fisacl variant for a particular value and for that variant value there is no fiscal period of 003/2007.
    Also it may be possible that your report key figures are restrcited year to date... that is till current fiscal period only through some other way.. and thats why you can only see data till current fiscal.
    Hope it helps
    Thanks

  • Successive dates with  last day of that month being added to succesive date

    Hi ,
    I have a piece of code that displays the succuessive dates from the given date to tilll date with a date interval of 30 days. My requirement goes some thing like this. since the given date is '26-nov-08' the next successive date should be the number of days in nov(30) added to '26-nov-08'. that will be around 26-dec-08. For this date it has to add the number of days in December(31) to '26-dec-08' and that turns out to be '26-jan-09'. and this must go on till date.
    In the below code i have used 30 for the interval of 30 days but the interval has to the last day of the successive date's month( for dec the interval has to 31 and for january the interval has to be 31 and for february 28)
    select to_date('26-nov-08', 'dd-mon-yy') + (level - 1) * 30
    from dual
    connect by level <= trunc((sysdate-to_date('26-nov-08', 'dd-mon-yy'))/30 )Please advice

    hi ,
    the query sent by you is correct and could it be in corporated for this query :
    SELECT TRUNC(inst_due_date) + (LEVEL-1 ) * (ilpa_term_type),iloan_code,LOAN_AMT,FEE_AMT,
    LOAN_DATE,LOAN_STATUS_ID
    FROM (
    SELECT inst_due_date,sm.iloan_code,LOAN_AMT,
    FEE_AMT,
    LOAN_DATE,
    LOAN_STATUS_ID,
    decode(sm.ilp_term_type, 26 ,14,24,15,12,(select to_number(to_char(last_day(inst_due_date),'dd')) from dual)) as ilpa_term_type
    FROM ST_IL_SCHEDULE sc,ST_IL_MASTER sm
    WHERE sc.iloan_code = sm.iloan_code
    AND sc.inst_num = (SELECT MAX(inst_num) FROM ST_IL_SCHEDULE b WHERE b.iloan_code = sc.iloan_code)
    AND sc.iloan_code =123456789)
    CONNECT BY LEVEL <= TRUNC((TRUNC(SYSDATE)-TRUNC(inst_due_date))/(ilpa_term_type) )
    Here we are using the decode concept if ilp_term_type = 26 then 14 but we need to implement the code of adding the number of days to that month in place of this code :
    select to_number(to_char(last_day(inst_due_date),'dd')) from dual:
    Please advice

Maybe you are looking for

  • Payment terms of Purchase Order and F-47

    Dear All, How can we link Payment terms of Purchase Order and Advance Payment made thru F-47. i.e if we have given payment terms in Purchase ORder as 50% advance then by advance payment (F-47) we shall allow to pay only 50% of Purchase Order value as

  • Report Computation

    Hello, I need to create a PL/SQL Expression Computation for a Report Item. When creating the Computation only the Items are listed to select. But I have a Master Detail form that has a Tabular Form that I need to UPPER(:P1_Item)for the Tabular Form I

  • Questions about Novation Remote 25SL integration with Logic Pro 8

    Preface: I have to apologize in advance if this seems somewhat confusing. I'm sure some of the terms I'm using are just plain wrong - I'm somewhat of a n00b. I have a Novation Remote 25SL configured to use AutoMap with Logic Pro 8 from Novation's web

  • How can i set password for my n8?

    I'm sure it's easy but i didn't know how....can you also tell me how can set my picture to be save on the Mass storage ..... Thank you Solved! Go to Solution.

  • How Can I Control (or Understand) Genius Mix Lists?

    I am running iTunes 11. I decided to turn on Genius Mix (Menu--> Store--> Turn On Genius). This was fine. There was some information exchanged, some calculations done, etc. and an hour or so later I had a category under "Genius" of "Genius Mixes". Th