| Subject |
Re: replace command |
| From |
Akshat Kapoor <akshat.kapoor@kapoorsons.in> |
| Date |
Sat, 1 May 2021 12:54:35 +0530 |
| Newsgroups |
dbase.getting-started |
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
|
|