Load page setup (Highjacked EurOmnis 2014)
Michael Rowan
michael.rowan3 at gmail.com
Thu Aug 28 10:23:31 EDT 2014
My continued thanks to Michael and Rudolf on this. At the moment I am
using Rudolfs technique, which in developer mode works beautifully.
Strangely, the line:
Set report name dummylib.[iDummyName]
and the line:
Set report name $libs.dummylib.[iDummyName]
both work correctly in developer mode but not in runtime. They raise an
"Unable to find class....." error.
I have never before seen code that fails in runtime but works in developer,
and am at a loss to understand. Any final cluesto this saga?
Mike
On Wed, Aug 27, 2014 at 6:06 PM, Michael Monschau <michael at brainydata.co.uk>
wrote:
> Hi Mike,
>
> The Save class command expects just a class name, not notation, as far as
> I am aware.
> You may also have to qualify the class name with the library name if you
> are calling Save class from another library, i..e
> Save class dummylib.[iDummyName]
>
> Regards,
> Michael
>
> Michael Monschau (Director)
> Brainy Data Limited
>
> Reply To: michael at brainydata.co.uk
> Phone: +44 (0)870 474 0708
> Web: www.brainydata.co.uk the home of Omnis Components and Developer
> Services
>
> On 26 Aug 2014, at 15:00, Michael Rowan wrote:
>
> > Sorry, I am still lost in the woods on this.
> >> From my main library I want to modify and then permanently save a report
> > class $pagesetupdata in another library dummylib.
> >
> > Set report name $libs.dummylib.$reports.[iDummyName]
> > Load page setup
> > Prompt for page setup
> > If flag true
> > Do
> >
> $libs.dummylib.$reports.[iDummyName].$pagesetupdata.$assign($root.$prefs.$pagesetupdata)
> > Returns %R
> > If not(%R)
> > Breakpoint
> > End If
> > End If
> >
> > ;;At this point any changes to the page setup are visible in the
> > properties/pagesetup data and get used in printing. Very nice.
> >
> > ;;Now, here the remaining problem. Saving the changes.
> >
> > Yes/No message (Sound bell) {SAVE the page setup changes?}
> > If ktrue
> > Save class {$root.$libs.dummylib.$classes.[iDummyName]}
> > OK message [#F] ;; says True, but its not|
> > End If
> >
> > If I now CLOSE the library dummylib and reopen it, the page setup for the
> > report class is back to its original settings.
> >
> > The library dummylib is set to $ignoreexternal=kTrue, and the dummy
> report
> > classes are set to $external=kTrue
> >
> > Mystified.
> >
> > Mike
> >
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
More information about the omnisdev-en
mailing list