Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - data transfer
Message
 
À
12/07/2000 10:12:01
Tina Levensky
Siegfried, Crandall, Vos & Lewis, P.C.
Kalamazoo, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00388924
Message ID:
00391222
Vues:
11
>>Difficult to say, if I don't know how exactly you are doing this, but if you SEEK in the same form and datasession - just form.Refresh() should be fine. If the search form is another (modal?) form, you can run it on the default datasession, so you are still moving in the same area. Or you can return the key value of the found record to the calling form and move to it there.
>
>Ok - this is the final one and I'm done with this program (and none too soon because my deadline is Friday!). I just want to thank you so much for all of your help with this. Nothing like being thrown into the fire face first! I have three forms (all modeless) 1) Inquiry - press search button to go to form 2. 2) Search order - sets index for form 3. 3) Grid with Ingrid for search capability.
>
>I want the user to be able to press the enter key in the grid on the record they want to view. With that record selected, close forms 2&3 and view selected record in Inquiry form. Probably capturing the record number and passing back to Inquiry form would be the easiest? The problem is I'm still stuck with the 'how' to do it. Thanks.

Depending what you are using tables or views. If you use tables you may just pass back the RECNO() of the found record and move to it. Or pass the found key field value, and SEEK it again in Inquiry form. If it is a paremeterized view you just REQUERY("myView") with key field value obtained from the search. I still think it is an overkill to use 3 forms for this :), you possibly could move the code for selecting order right into the Grid.Column.Header.Click(), or select the right order automatically in the grid.AfterRowColChange() event depending on what column is selected (it may require more code if you need to order a column in both ascending and descending orde. In fact, commercial frameworks just incorporate all this search functionality right into their base grid classes.

If there is no space for the search grid on the Inquiry form, it is possible to put the pageframe on it and place the search grid to the second "Search" page.

Let me know if it helps.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform