![]() |
Admin 6/22/2022 |
Check this article in the manual. |
R
|
Rajesh author 6/23/2022 |
Hi Admin, Thanks for the link.
Thanks, |
R
|
Rajesh author 6/23/2022 |
Here is what I tried but with an error while build -Rajesh ========================================================================== Server: |
P
|
ppradhan@live.com 6/23/2022 |
@Rajesh, not sure if session in phprunner and asprunner is same, but we use $_SESSION["UserID"] in phprunner. |
R
|
Rajesh author 6/23/2022 |
I am using Netrunner10.6 , server code is working with hardcoded values now. string sql = DB.PrepareSQL( "EXEC sp_SetMODcurrent 4498,'Test' "); |
R
|
Rajesh author 6/23/2022 |
Following server code is partially working(ID is working), but I am still not able to add the current username, temporarily using 'Test' as username for testing purpose. dynamic record = button.getCurrentRecord(); |
T
|
Tim 6/24/2022 |
Rajesh, Try this in the server section of the button: XVar data = button.getCurrentRecord(); string sql = DB.PrepareSQL("exec sp_SetMODcurrent " + data["ID"].ToString() + ",'" + XSession.Session["Username"].ToString() + "'"); I hope it helps. Good luck. And you may want to post questoins like this in the "ASPRunner.Net General questions" forum instead of the tips and tricks. I think you'll get more responses. Thanks, |
![]() |
jadachDevClub member 6/24/2022 |
Do this: XVar data = button.getCurrentRecord(); |
R
|
Rajesh author 6/25/2022 |
@jadach, @Tim and Admin. Rajesh |