Information générale
Catégorie:
Programmation Orientée Object
I have a dropdown with a method called transactn_search in the Interactivechange. Here's the code for transactn_search:
SELECT trancustin &&view in the DE
SEEK Thisform.Combo1.value &&Rowsource is a field in transcustin
IF FOUND()
Thisform.Combo1.value = trans_id_a
Thisform.Text1.VALUE = track_num
Thisform.Text2.VALUE = company
Thisform.Text3.VALUE = amt_total
Thisform.Text4.VALUE = amt_initial_owed
Thisform.Text5.VALUE = amt_initial_pd
Thisform.Text6.VALUE = amt_pending
ELSE
= messagebox('The record you searched for is invalid and should be deleted')
ENDIF
THISFORM.cursor_trans_items() &&Gets data for grid
THISFORM.grid_controls() &&Modifies grid properties
The code for grid controls:
THISFORM.Grid1.RecordSource = 'trans_items'
ThisFORM.Grid1.Column1.ControlSource = 'trans_items.item_status'
ThisFORM.Grid1.Column2.ControlSource = 'trans_items.stocknum'
ThisFORM.Grid1.Column3.ControlSource = 'trans_items.p_descript'
ThisFORM.Grid1.Column4.ControlSource = 'trans_items.total_chg'
Transactn_search() is also in the init of the form.
THE PROBLEM: I set the columncount at 4, the width of each column, and each header caption. When the form opens and transactn_search() runs in the init, everything looks and works beautifully, but when I click on the combobox and make another selection (triggering transactn_search() in the interactivechange), my columns disappear and the cursor itself shows up in the grid. Why?
Thanks
JD
Suivant
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