Richard Taylor
|
| Posted: 01/14/2005, 4:11 PM |
|
I'm creating a set of "wizard-type" pages -- the user selects a value from a
droplist, then clicks on a "Next Page" link. On the next page, I want to
display the value selected on the previous page. I've tried several ways to
get the value, but the closest I've come to making it work still doesn't
work.
I created a session variable and in the Save Control Value event I added
this action:
Function NewRecord1_ListBox1_DataSource_AfterExecuteSelect()
'Save Control Value @15-E51D7CA0
'Session("BatchTypeID") = NewRecord1.ListBox1.Value
Session("BatchTypeID") = 88
'End Save Control Value
End Function 'Close NewRecord1_ListBox1_DataSource_AfterExecuteSelect
@5-54C34B28
When I assign a constant value, it works nocely and displays the "88" on the
next page, but when I try to assign the listbox value, I get nothing.
Any ideas? Suggestions?
--
Richard Taylor http://www.behlerpublications.com/titles-taylor.asp
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 01/14/2005, 11:58 PM |
|
Try event OnValidate of the grid or record form.
Or Server side OnClick of the Submit button.
Is your listbox bound to a database column?
_________________
Best regards,
Michael |
 |
 |
Richard Taylor
|
| Posted: 01/15/2005, 5:14 PM |
|
OnValidate doesn't work, either. Yes, it's bound to a database column.
I don't have a submit button, since I don't want to write to disk until the
user has filled in all the fields on several succeeding pages.
Any other suggestions?
--
Richard Taylor http://www.behlerpublications.com/titles-taylor.asp
"mrachow" <mrachow@forum.codecharge> wrote in message
news:641e8cd35c7d10@news.codecharge.com...
> Try event OnValidate of the grid or record form.
> Or Server side OnClick of the Submit button.
>
> Is your listbox bound to a database column?
> _________________
> Regards,
> Michael
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 01/16/2005, 12:07 AM |
|
Sorry but how do you get the data from your first page if no button is pressed?
Maybe the example project Multipage registration form can help you?
_________________
Best regards,
Michael |
 |
 |
Richard Taylor
|
| Posted: 01/16/2005, 11:40 AM |
|
I get from one page to the next with simple "next page" links.
I looked at the example you suggested, but it's writing to disk on each
page, which I didn't want to happen, but it's beginning to look like that's
the only way it's going to work, so ...
Thanks for your help.
--
Richard Taylor http://www.behlerpublications.com/titles-taylor.asp
"mrachow" <mrachow@forum.codecharge> wrote in message
news:641ea20d2c176a@news.codecharge.com...
> Sorry but how do you get the data from your first page if no button is
pressed?
> Maybe the example project Multipage registration form can help you?
> _________________
> Regards,
> Michael
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 01/16/2005, 11:40 PM |
|
One last question only.
Are your controls embedded into a form for forcing them to be posted?
_________________
Best regards,
Michael |
 |
 |
Richard Taylor
|
| Posted: 01/17/2005, 3:59 PM |
|
Yes, they're in a form. Thta's why I was stumped as to why it wasn't
working, but as soon as I made the form write to disk, it worked -- so
apparently the value property is only being updated when a disk write is
about to happen.
--
Richard Taylor http://www.behlerpublications.com/titles-taylor.asp
"mrachow" <mrachow@forum.codecharge> wrote in message
news:641eb6be556016@news.codecharge.com...
> One last question only.
> Are your controls embedded into a form for forcing them to be posted?
> _________________
> Regards,
> Michael
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|