Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CListObj and .AddViewParameter()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00265175
Message ID:
00265223
Vues:
21
>ver4.2
>
>First I tried to roll my own cGridList inside of a ContainerX... but I couldnt figure out the right place to call .RegisterBizObj()
>
>So now I'm trying to do the same kind of thing with cListObj. When I dig into this control to get to the BizObj via Builder, and try to issue This.AddViewParameter('tnRateYear', '1999') in the PostInitHook I keep getting Property is not found error.
>
>tnRateYear is defined as the view parameter in the single view that the data environment opens. It is a numeric value & I've tried all sorts of quote mark combinations around the constant in the AddViewParameters()call including This.AddViewParameter('tnRateYear', 1999) and This.AddViewParameter('tnRateYear', "'1999'"). What's the deal?

This doesn't really answer your question, but if you're going to hardcode it like that, why not just include it in the view?

You could try (if you haven't already):

This.AddViewParameter('tnRateYear','"1999"')

I get the feeling though you'll have to do something like a VAL(tnRateYear) in your view.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform