Calendar

albertoalberto Member Posts: 59
Hi,

does anyboby know a way to hamper resources allocation for non working days?

Or is there a way to be allerted by a message if i try to allocate a resouce in a non working day?
Is there something in or I have to program?


Thanks
Alberto

Comments

  • lakshmivallurulakshmivalluru Member Posts: 168
    you can check before allocating a resource ona date if it is a non working day or not. like if the day of the date is saturday or sunday then error.


    IF NOT weekends THEN
    CurrForm.Matrix.MatrixRec.SETFILTER("Period No.",'<6') ELSE
    CurrForm.Matrix.MatrixRec.SETRANGE("Period No.");


    the above is an example for matrix form
    LR
  • sudhakar_568sudhakar_568 Member Posts: 6
    you just extract the day of week by using
    day->integer
    day:=date2dwy('day no.','month no.','year no.');
    if (day=6|7) then
    message('Allocate The Resources');
    i think this will solve your problem
    for thur clarifications mail me at sudhakar@praxistechnologies.com
    i am MCCP in Navision

    regards
    s.v.sudhakar
    Technical Consultant
    Praxis i-Technologies Pvt. Ltd.
Sign In or Register to comment.