[SOLVED] Get info before import |
3/3/2021 9:42:47 AM |
ASPRunner.NET General questions | |
T
Tim author
Hello, |
|
admin 3/3/2021 | |
The easiest option to pass something from the dialog to the session variable is to use a custom button. See example #1 at https://xlinesoft.com/asprunnernet/docs/about_dialog_api.htm |
T
|
Tim author 3/5/2021 |
Thank you Sergey. Yes, I can put a button on the import page to capture what I need. I was hoping it would just popup when the page loaded, but this is fine if it's the best way to get data to the server. Thanks. |
T
|
Tim author 3/23/2021 |
Has anyone used the dialog API to pass a selection from a lookup field to the server? I still can't get this to work. |
admin 3/24/2021 | |
The following looks correct: XSession.Session["month"]=parameters["month"].ToString();
|
T
|
Tim author 3/24/2021 |
Correct. I print the session to the screen and when the dialog has a dropdown list, the session is empty. If the dialog is just a text field, the session has whatever was typed into the text box. |
admin 3/25/2021 | |
Yes, but my question wasn't about printing session variables. Did you try to print parameters["month"].ToString() in that event? |
T
|
Tim author 3/25/2021 |
Yes, I tried to print both. I published a test project to the demo site and submitted a support ticket and got the answer. There are 2 ways to call the dialog API: "Runner.Dialog( params )" and "ctrl.dialog({settings})". I was using the first, which doesn't pass data to the server. It explains this in the help file (not as clearly as "use ctrl.dialog if you want to pass data to the server", but it's in there if you carefully read the entire page). But thanks for the reply; both for attempting to help, and for getting me to come to the new, improved forum site! This is great. I can't wait to try a search! Thanks, |
admin 3/25/2021 | |
Got it, thank you for the update. |