The validataWrite method is a Boolean method. That means you can return
false if you don't want to insert the record.

Mvh,
Morten

-----Original Message-----
From: k_otickashka [mailto:[EMAIL PROTECTED]
Sent: 15. april 2004 01:46
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: Inserting data into a table

I did that and got the part working where the user clicks "yes" but
for the "no" part i am not sure on which method to call to clear the
newly appended record.

--- In [EMAIL PROTECTED], "Morten Aasheim"
<[EMAIL PROTECTED]> wrote:
> Hi, you could try overwrite the validateWrite method on the
DataSource.
>
> Morten
>
> -----Original Message-----
> From: k_otickashka [mailto:[EMAIL PROTECTED]
> Sent: 15. april 2004 01:20
> To: [EMAIL PROTECTED]
> Subject: [development-axapta] Inserting data into a table
>
> I would like enable a user to insert a customer to insert a record
> with the same customer name. After inserting the record by typing
> the customer information, I would like a prompt to indicate that
the
> user is adding a customer that has the same name as another
customer
> in the table. This would be followed by a yes or no box to
indicate
> if the user should proceed or not. If the user says no then it
> should delete the appended record, if yes then it should go ahead
> and insert into the database. In which method can I make this
> modification?
>
>
>
>

> Yahoo! Groups Links





Yahoo! Groups Links










Yahoo! Groups Links

Reply via email to