Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some ideas needed for the problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01224678
Message ID:
01224683
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have the following three forms:
>
>Search Criteria ->Search Results -> Tickets
>
>All forms are non-modal, so you can have multiple Tickets form opened at the same time.
>
>The select happens in Search Criteria form and the Search Results form just simply showing the results and it only has code in its SelectRecord method.
>
>Now, I didn't program this functionality (perhaps found that difficult at the moment), which seems to be a requirement - if the user changed something in Tickets form, the grid should display the changed information.
>
>We're done this in MereMortals framework using subject/observer mechanism, but there is no framework here, so I have to invent something myself.
>
>First of all, I'm thinking, that even if the record now doesn't satisfy the original search criteria I still would want to show it, just show the right information (say, see a resolution date if the problem is resolved).
>
>So, I just want to discuss some ideas. One problem is how would I know that my modeless form finished execution in the following code:
>
>* Invoke Tickets form in Edit mode
>LOCAL loParameter
>loParameter = CREATEOBJECT('oParameter')
>loParameter.cMode = 'Edit'
>loParameter.lChanged = .f.
>loParameter.iTicket_ID = crsSearchResults.iTicket_ID
>DoForm('frm_Ticket', m.loParameter)
>
>** This is I just put, but I'm not sure this would work if we have multiple frm_Ticket opened
>IF NOT WEXIST('frm_Ticket') AND m.loParameter.lChanged
>   ** We need to refresh the grid
>endif
>*thisform.Release() && Lets keep the results visible
>
>
>Thanks a lot in advance.

If the form is not modal (frm_Ticket) How do you know when the user do an action in it and after that closes it? Also, If the form is not modal loParameter going out of scope soon after you DoForm() unless you made it public (Grrrrr).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform