| Subject |
Re: replace command |
| From |
AGOSTINHO <agostinhoteixeira@yahoo.com> |
| Date |
Sat, 01 May 2021 22:50:11 -0400 |
| Newsgroups |
dbase.getting-started |
Thanks to everyone for your input to my question.
This one works perfect for me.
function ENTRYFIELD3_onChange()
if form.entryfield3.value=0.00
form.rowset.fields["cc"].value = "CASH"
endif
return
Cheers
Agostinho Teixeira
Akshat Kapoor Wrote:
> Good Afternoon Agostinho
>
> > This does not seem to work, please how to make it work?
> > Thanks
> >
> > this.rowset = this.clients1.rowset
> >
> > function ENTRYFIELD3_onChange()
> > if form.entryfield3.value=0.00
> > replace form.rowset.fields["cc"].value with "CASH"
> > endif
> > return
> >
>
> Replace is an XDML command and you are using OODML
> Try
>
> function ENTRYFIELD3_onChange()
> if form.entryfield3.value=0.00
> form.rowset.fields["cc"].value = "CASH"
> endif
> return
>
> This will change the value but not save it.
> form.rowset.save() will have to be issued to save the changes.
> form.rowset.save() will save all the fields in the current row so
> execute it when required.
>
> Regards
> Akshat
|
|