` Printed Icetips Article

Icetips Article



ABC: Must be in list implementation in drop down
1999-03-06 -- Carlos San Miguel
 
Newsgroups: topspeed.products.c5ee

> I have drop down list on a form. When I created the dictionary I set the
> validity checks to "must be in list". There are only two choices on the
> list. And there is one value for ech choice. Now, when I'm browsing the
> table and I edit one of the records, the drop down list field is empty.
> Shouldn't the field contain the option that was last saved? For example,
> if the two choices are Import|Export and the values are I|E, and the
> record was saved with Import(I), then the field should have "Import"
> when is being modified. What is happening? Is this standard behaviour?

I solved this problem already, here is the code:

IF Self.Request = ChangeRecord
     IF Parte:Tipo = 'I'
        SELECT(?Parte:Tipo,1)
     ELSIF Parte:Tipo = 'E'
        SELECT(?Parte:Tipo,2)
     END
END

The embed I used is :  ThisWindow.Ask, before parent call.



Printed April 29, 2024, 8:57 am
This article has been viewed/printed 35118 times.
Google search has resulted in 17 hits on this article since January 25, 2004.