Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

Passing values to a Wizard Empty Passing values to a Wizard

Thu 20 Dec 2018 - 16:15
Original post by Gareth Ahmun

I am able to pass values to a wizard using the following:

Code:
FWBS.Common.KeyValueCollection _kvc = new FWBS.Common.KeyValueCollection();
_kvc.Add("assoc", assocType);
System.Data.DataTable _result =
    FWBS.OMS.UI.Windows.Services.Wizards.GetWizard("UDWZCHASEMETHOD",
    null, FWBS.OMS.EnquiryEngine.EnquiryMode.Add,
    _kvc) as System.Data.DataTable;

However in my wizard I am unable to use the values until after the page has rendered, I actually need to use them on EnquiryLoaded.

Any suggestions on how this can be achieved?
Thanks
Gareth

-----------------------------------------------------------------------------------------------------------------------------------------------------------
Original post by Graham Shaw

Hi Gareth
The key value collection you send is available in the enquiry as ReplacementParameters so access it from there rather than of a linked control

Cheers
G

-----------------------------------------------------------------------------------------------------------------------------------------------------------
Original post by Gareth Ahmun

Thanks Graham, that works great.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum