index > Visual Studio Guidance Automation Toolkit > Custom Wizards and custom arguments

Custom Wizards and custom arguments

I am working on a code generation recipe that requires some significant data collection. As such I've created a custom wizard page. The custom wizard populates an object hierarchy that I'd like to make available to my T4 template. I am making the following calls (as shown in the Custom Wizard Page instructions) when my data has been captured into my custom business object:

IDictionaryService dictionaryService = GetService(typeof(IDictionaryService)) as IDictionaryService;
dictionaryService.SetValue("DAFMapper", dafMapper);

DAFMapper is my custom business object. Though the SetValue call appears to be capable of taking an object in it's value param, it dies wanting to convert my object to a string. I'm wondering if anyone else has attempted to push object data (rather than strings) into the stack for use by templates.

--Chris



Chris Mazur
Chris Mazur
Turns out I answered my own question and figured I'd post in case someone else runs into this. I had not specified a Type attribute for my DAFMapper argument in my Guidance.xml file. It appears that the default type for an argument is string if none is explicit specified



Chris Mazur
Chris Mazur
That's right, the default type is string.



Daniel Cazzulino [Solutions Architect MVP]
kzu
reply 3

You can use google to search for other answers

 

More Articles

• uninstall of HoLPackageSetup.msi failed with "manifest file ...
• Slow loading Guidance Navigator
• How to create a database project with template?
• Build path
• When is the next release for GAT???
• How do you include a folder that has been excluded from a project...
• How do I add an empty project folder?
• Slow Wizard Input using MonitorArgument
• CAB Module menu item doesn't run
• VSTS - Web Test - FIND TEXT command
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Error while unfolding template with empt
• Build path
• How to generate class file from t4 templ
• How to use Generic List in T3
• Fail to register Guidance Package from S
• How to Create Project Reference and App_
• Extending Designer Toolbox
• Can't download GAT, GAX?
• Issue with DSL Tool
• Get all classes from a Project?
• Can we checkout file under ClearCase as
• What is the benefit of using GAT versus
• How is GAT Package information persisted?
• CommandBars
• Loosing Item Template Information

Hot Articles

• Integrating validation information withi
• CodeDom -Error when Run Recipe
• Extending Designer Toolbox
• Create New Project Hangs
• how to add website project
• Build Event programatically - set post b
• Is GAT/GAX compatible with non-English v
• Use AddEntity recipe form HoL on existin
• Successful installation - July Vista GAX
• Another installation error
• Access Denied (On Windows XP SP2)
• How does one set a default value?
• How to Add Fixed Assets in GAT?
• Making compiling faster!!!
• Guidance Automation Extensions Registrat

Recommend Articles

• GuidancePackage Solution Will Not build
• Execute Action when content of Combobox
• Set version for Guidance Package
• CAB Module menu item doesn't run
• System.Collections.Generic.KeyNotFoundEx
• Error installing GAX
• Use AddEntity recipe form HoL on existin
• GAT/GAX for VS2005 RTM released!
• Problem with Specifying Command Bars
• Can we checkout file under ClearCase as
• June 2006 CTP and Hands On Lab
• Wizard size and colors
• Support for the June or July CTP of VS .
• How do you pass arguments from previous
• Input arguments for wizards