Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > BizForm saving session id View modes: 
User avatar
Member
Member
jack81 - 12/11/2013 10:21:19 PM
   
BizForm saving session id
I would like to save session id in BizForm default field value. Tried this but its empty;
{%# HttpContext.Current.Session.SessionID%}
Un-registered users will fill in the form(many alternative forms) and I need to save data without registering them. What is the best way of doing it.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/11/2013 10:28:37 PM
   
RE:BizForm saving session id
What do you want the session ID for? A unique record ID or something else?

User avatar
Member
Member
jack81 - 12/11/2013 11:05:10 PM
   
RE:BizForm saving session id
A unique record

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 12/12/2013 1:09:12 AM
   
RE:BizForm saving session id
Hi,

Thank you for your message.

Best way of achieving this is through a Custom macro. Inside the macro you can generate your own random/unique value and then use this macro as {#MyMacro#} in the default field and it will get populated with a value as you set it up.

Let us know for further assistance.

Kind regards,
Richard Sustek

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/12/2013 7:20:08 AM
   
RE:BizForm saving session id
jack81 wrote: A unique record
The form will already have a primary key automatically created, so there shouldn't be a need for another. Is this not working for you?