Hi Harry,
 
I override this method. But I couldn't get hit my code. even I tried to hit "info("testing") piece. its not even hitting that info piece also.
What I am doing wrong?.
 
Can you pls let me know....
 
Appreciate your time.....
 


Harry Deshpande <[EMAIL PROTECTED]> wrote:

Hi

 

On dateedit control, there is a validate method, override this method instead of modified method.

 

Regards

 

Harry

 

 


From: Padmaja Iyingar [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 January 2005 1:59 p.m.
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] Modified() with Text Box

 

Thank you very much Harry. But when I try to override the methods, I couldn't find ValidateModified method on the grid's DateEdit control...

do I need to write it on the data source???.

 

Appreciate your time.

 

Padmaja

Harry Deshpande <[EMAIL PROTECTED]> wrote:

Hi

 

modify validate method and not modified method

 

Regards

 

harry

 

 

 

 

Harry Deshpande

Senior Consultant

CGNZ Middle Market Solutions

Ph +64 29 277 5133

Fax +64 9 358 1018

 

CGNZ Limited and its predecessor organisations (Cap Gemini Ernst & Young, and Ernst & Young Consulting) have a proud track record of market leadership and excellent service delivery in all areas of systems delivery both for New Zealand clients and in supporting regional and global projects.  CGNZ is a licensed affiliate of Cap Gemini S.A. (one of the world’s leading management consulting and IT services companies), wholly owned by NZ employee-shareholders, with over 150 IT professionals in our Auckland and Wellington offices.  Middle Market Solutions specialises in the implementation of business solutions for small corporate and middle market companies.  The core activity of our team is the implementation and support of Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), E-Business solutions and related technologies from Microsoft Business Solutions.  Find out more about what we do at http://www.cgnz.com/middlemarketsolutions

 

CGNZ DISCLAIMER: This email and any attachments are confidential and intended exclusively for the person to whom the email is addressed. If you are not the intended recipient, do not read, copy, disclose or use the contents in any way. Please notify us immediately by return email and destroy the email and attachments. CGNZ does not accept any liability for any changes made to this email or attachments after sending by CGNZ. You must scan this email and attachments for viruses. The opinions expressed are not necessarily those of CGNZ. 

CGNZ accepts no liability for any loss, damage or consequence, whether caused by our own negligence or not, resulting directly or indirectly from the use of this email and attachments.

 


From: Padmaja Iyingar [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 January 2005 1:49 p.m.
To: Axapta-Knowledge-Village@yahoogroups.com
Cc: development-axapta@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Modified() with Text Box

 

Hi,

I am not able to get it working. I hope someone will help me.

 

I have a grid and one of fields is "dateEdit". I have a modified method on the dateEdit field. Say, if the user tries to modify the date, I am prompting a messageBox with Yes or No button.

 

What I would like to have is, if user select 'No' option, the value should not be modified to new value , it should retain the old value. I know its something to do with placing super() call.

But I could not make it working.

 

Pls find a piece of my code.

 

/****************************************************************************/

 

public boolean modified()
{
      boolean ret;
       ret = super();

   

   if( Box::yesNo(sometext,DialogButton::Yes) == DialogButton::Yes)
     {

  change the date;

     }

    else {
              don't change the date.

           }

    


    return ret;
}

 

 

but if I select yes or no also, the date is getting modified. How can I prevent modifying the date if the user selects 'No'.

 

Can any one help me?. or do we need to write a validatewrite method ......

 

Thanks in advance

 

-Padmaja


 

 

 

 

 

/***********************************************************************/

 

 


Do you Yahoo!?
The all-new My Yahoo! – What will yours do?

Sharing the knowledge on Axapta.



Sharing the knowledge on Axapta.


Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.

Sharing the knowledge on Axapta.




Sharing the knowledge on Axapta.


Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.

Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to