Subject |
Re: CODEBLOCK IN DETAIL BAND |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Thu, 20 Jul 2017 19:58:42 +0200 |
Newsgroups |
dbase.getting-started |
On 2017-07-20 4:44 PM, MUSTANSIR GHOR wrote:
> Dear Mervyn
>
> Thank you. It was an opening as this will be required very much in all reports. Here 'this' refers to which object
>> function TEXT1_canRender()
>> if this.form.YourQueryName.rowset.fields["resulty"].value = 'L'
>> this.text = this.form.YourQueryName.rowset.fields["resultl"].value
>> elseif if this.form.YourQueryName.rowset.fields["resulty"].value
>> = 'N'
>> this.text = this.form.YourQueryName.rowset.fields["resultn"].value
>> elseif if this.form.YourQueryName.rowset.fields["resulty"].value
>> = 'C'
>> this.text =
>> this.form.YourQueryName.rowset.fields["resultc"].value
>> endif
>> return true
'This' is always the object associated with the even handler. In this
case it is text1 on the detailband.
The 'full address' for this.text is form.streamsource1.detailband.text1.text
Mervyn.
|
|