Print report with return value

Ben Weinberg ben at pca.com
Thu May 8 12:30:26 EDT 2008


"	<omnisdev-en_lists.omnis-dev.com.lists.omnis-dev.com>"
List-Unsubscribe: <http://lists.omnis-dev.com/mailman/listinfo/omnisdev-en_lists.omnis-dev.com>,
"	<mailto:omnisdev-en-request at lists.omnis-dev.com?subject=unsubscribe>"
List-Archive: <http://lists.omnis-dev.com/pipermail/omnisdev-en_lists.omnis-dev.com>
List-Post: <mailto:omnisdev-en at lists.omnis-dev.com>
List-Help: <mailto:omnisdev-en-request at lists.omnis-dev.com?subject=help>
List-Subscribe: <http://lists.omnis-dev.com/mailman/listinfo/omnisdev-en_lists.omnis-dev.com>,
"	<mailto:omnisdev-en-request at lists.omnis-dev.com?subject=subscribe>"
Content-Type: text/plain
Sender: omnisdev-en-bounces at lists.omnis-dev.com
Errors-To: omnisdev-en-bounces at lists.omnis-dev.com

Reg & Gier:

Thanks for the help.  I have it working now.

Ben

On May 7, 2008, at 11:16 PM, Geir Fjærli wrote:

> Hi Ben.
>
> Your pValue parameter needs to be of type Field reference, so that  
> it points
> at the original field. As it is now, pValue will hold a copy of the  
> original
> value, not a pointer to it.
>
> Geir :)
>
> -----Original Message-----
> From: omnisdev-en-bounces at lists.omniscentral.com
> [mailto:omnisdev-en-bounces at lists.omniscentral.com] On Behalf Of Ben
> Weinberg
> Sent: 8. mai 2008 01:33
> To: Reg.Paling at Lokanet.com; OmnisDev List - English
> Subject: Re: Print report with return value
>
> Reg:
>
> The calling method is a method in a Menu class.  I defined a local
> variable lValue, Short Num 2dp
>
> Set report name RNEWORDERS
> Set search name SNEWORDERSALL
> Print report (Use search) {(lValue)}
> OK message  {lValue=[lValue]}
>
>
> The report class has the following variables:
> Parameter: pValue  Short Num 2dp
> Instance: iValue  Item reference
>
> In the $construct:
> Set reference iValue to pValue.$ref
>
> In the Totals section:
> $print method:
> Calculate iValue as 555.55
> Do default
>
> (I also tried placing a calculated variable in the totals section but
> that didn't work either.  Something tells me I can't calculate the
> value of an item reference)
>
> Ben
>
>



More information about the omnisdev-en mailing list