Hi Pooja,

Here is the solution

static void Time_dialog(Args _args)
{
    Dialog dialog = new Dialog("Schedule an Inteview");
    dialogText text = dialog.addText( "Please Enter the Interview scheduling 
details");
    DialogField DrNo = dialog.addField( typeid(dirpartyid),"Doctor Registration 
No");
    DialogField DateInt = dialog.addField( typeid(Transdate ), "Date of 
Interview");
    DialogField StTimeInt = dialog.addField( typeid(smmActivityStartTime) , 
"Interview Start Time");
    DialogField EnTimeInt = dialog.addField( typeid(smmActivityStartTime) , 
"Interview End Time");
    TimeOfDay stime, eTime;
    str       startTime, endTime;
     ;
    if (dialog.run( ))
    {

         stime = StTimeInt.value();
         etime = EnTimeInt.value();
         
         starttime = time2str(stime, -1, -1);
         endTime  = time2str(etime, -1, -1);

         
         box::info(strfmt( "You will be sending an email to Doctor %4 with 
Interview schedule details\n\nDate of Interview : %1,\nStart time: %2 
\nEndTime: %3",DateInt. value(),starttime ,endtime,DrNo.value())) ;

    }
}

Thanks,
Sreenath Reddy G


 

--- On Wed, 6/24/09, Pooja . <dyna.a...@yahoo.com> wrote:

From: Pooja . <dyna.a...@yahoo.com>
Subject: Re: [Axapta-Knowledge-Village] OutLook
To: Axapta-Knowledge-Village@yahoogroups.com
Date: Wednesday, June 24, 2009, 6:45 AM











    
            
            


      
      
Hi Good morning,
time values are not giving out put what we enter into ..please execute this job 
what would be the reason.
.......
boolean myDialogjob( date FromChequeNum, date NumOfCheque)
{
    Dialog dialog = new Dialog("Schedule an Inteview");
    dialogText text = dialog.addText( "Please Enter the Interview scheduling 
details");
    DialogField DrNo = dialog.addField( typeid(dirpartyi d),"Doctor 
Registration No");
    DialogField DateInt = dialog.addField( typeid(Transdate ), "Date of 
Interview");
    DialogField StTimeInt = dialog.addField( typeid(smmActivi tyStartTime) , 
"Interview Start Time");
    DialogField EnTimeInt = dialog.addField( typeid(smmActivi tyStartTime) , 
"Interview End Time");
     ;
 
    if (dialog.run( ))
    {
         box::info(strfmt( "You will be sending an email to Doctor %4 with 
Interview schedule details\n\nDate of Interview : %1,\nStart time: %2 
\nEndTime: %3",DateInt. value(),StTimeIn t.value() ,EnTimeInt. value(),DrNo. 
value())) ;
     
        return true;
    }
    return false;
}
 
 




      
 

      

    
    
        
         
        
        








        


        
        


      

Reply via email to