Sage SalesLogix
  • Contact Us
  • Sage North America
800-643-6400
Welcome Twitter Facebook LinkedIn
Community Home Blogs Share Ideas Search Request Access Resources
Reply
Avid Listener
Veronka
Posts: 17
Registered: 04-03-2009

How to pass values beetween 2 web forms?

How do you inkove and pass values to a specific form (Smart Part)? Anyone has an example?

Please use plain text.
Bronze Super Contributor
RyanFarley
Posts: 175
Registered: 03-17-2009

Re: How to pass values beetween 2 web forms?

There are a few ways to do that. First, the PageWorkItem has a built in State where you can easily pass values from SmartPart to SmartPart on the same page.

 

// add myvalue
this.PageWorkItem.State["MySavedValue"] = myvalue;

// then later to retrieve
string myvalue = this.PageWorkItem.State["MySavedValue"].ToString();

// to remove
this.PageWorkItem.State.Remove("MySavedValue");

 

 

Another way is to use the Session to store values there. Kris Halsrud from CFX just posted about that this week: http://customerfx.com/pages/integrationblog/2009/10/09/using-page-session-to-store-values-in-the-sal...


Ryan Farley - Customer FX Corporation / Director of Development


customerfx.com
| slxdeveloper.com | goodtraining.com
Please use plain text.
Copper Contributor
sgaykhe
Posts: 73
Registered: 04-15-2009

Re: How to pass values beetween 2 web forms?

You can also look at campaign -> add response screen. It is passing few info using dialogwindow methods.

May be that would helpful.

 

Thanks and Regards

Sandeep Gaykhe

Thanks and Regards
Sandeep Gaykhe
Firsteservice (I) Pvt. Ltd.
Please use plain text.