Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Thanks Crescencio for your help.
>
>I was cheking out the IC combobox and the only way that I could resolve the trouble was making a public variable.
>
>At final this is the code.
>At form init:
>public codigo
>
>At combobox 1:
>codigo=this.value
>select aimtabd1
>set filter to codimp=codigo
>select aimtabd2
>set filter to codimp=codigo
>sele tabmov
>
>The unique trouble that I have is when the user go to the next record the prewie record in the combobox desapear.
>
>What is your advise..???
If the filter criteria is the same for the other two tables, then the above code should work in the first combo's IC.
The testing I did was with the following settings:
- For Column's (Grid) controlsource, the field that should take the value selected from the combobox. In your example, the first column would be tabmov.codimp. Also, this works with the column's Sparse property set to .T. (Default).
- For the comboboxes: (example is for first col)
Rowsourcetype = (Fields)
Rowsource = tipimp.codimp, desimp
Boundcolumn = 1
Columncount = 2
HTH
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement