Studio 6.x - setting field width
Scotte Meredith
spomacguy at gmail.com
Tue Jan 9 14:05:50 EST 2018
$cinst refers to the particular instance of the object as it exists while running. So having to use $cinst.r_test… is certainly unusual. Perhaps see if $cinst is at that point referring to some other instance. Maybe try something like
Calculate #S1 as $cinst().$name
As for $clib.$reports.r_test, that would refer to the object as it exists on disk and would be used to permanently change the item as it exists in the library, not the current instance of the report that exists in memory temporarily.
> On Jan 9, 2018, at 10:54 AM, Mayada Al-Kishtini <malkishtini at gmail.com> wrote:
>
> Hi Andrew,
>
> I don't understand the use of $cinst in your case.
>
> You could try this syntax and see if it works with you as well:
>
> Calculate $clib.$reports.r_test.$objs.r_test_1225.$width as 4.833
>
> HTH,
> Mayada
>
> -----Original Message-----
> From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
> Of Andrew Stolarz
> Sent: Tuesday, January 09, 2018 1:46 PM
> To: OmnisDev List - English
> Subject: Re: Studio 6.x - setting field width
>
> After some messing around, In order to set the field width correctly on the
> report, you need to include the the report class name as well. (strange as
> it is not required for things like setting visibility etc)
>
> So it will look like this:
>
> Calculate $cinst.r_test.$objs.r_test_1225.$width as 4.833
>
>
> Andrew
>
>
>
> On Tue, Jan 9, 2018 at 10:06 AM, Andrew Stolarz <stolarz at gmail.com> wrote:
>
>> I have a report class. In the $construct I have this line:
>>
>> Calculate $cinst.$objs.r_test_1225.$width as 4.833
>>
>> In developer it does what it should, however in runtime it does not
>> set the field width.
>>
>>
>> Am I missing something here or possible bug?
>>
>>
>>
>> Andrew
>>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
Scotte Meredith
SpoMacGuy at gmail.com
More information about the omnisdev-en
mailing list