On 4/7/11 2:29 AM, enrico secco wrote:
> Hi,
> This is the code:
>      def setValue(self, evt = None):
>                  try:
>                          sessione = self.Application.Sessione
>                          anno = sessione['anno']
>                  except:
>                          anno = None
>                  if anno:
>                          self.selectFields['ANNO']["ctrl"].Value = anno
>                          self.onRequery(evt)
>                  return
>
> The method is defined in SelectPage.
> To call onQuery() is mandatory if we want to update also the grid. Otherwise 
> it's commentable.
> It's
>   an example because different selectPages can have the necessity to set
> more value to be consistent with the session parameters.
>

So I'm not clear what changes the session, but if your Application's Sessione 
is a 
property, in the setter for the property you could do:

for form in self.uiForms:
   try:
     form.setValue()
   except AttributeError:
     # form doesn't have setValue() method

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to