General information
Category:
Coding, syntax & commands
Title:
Novice question on data environment
I have two forms for my stock transaction history. One form is for the user to select the stock and the other form is to display the transaction history for the stock. At the moment, I am using a formset. I don't really like it because if I have different format of the transaction history form, I need to have many forms in the formset. It seems to slow down the whole thing.
My question is: can I use 'do form txnhist' in my first form (the select stock form)? My problem is if I set up my data environment in the first form, open the second form without closing the first one, the second form doesn't use the table open in the first form.
I know that I can make the second form a class and instantiate it. But it seems stupid.
What is the usual way? Can anyone share?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only