Errors in Walkthrough Documentation

Topics: CAB & Smart Client Software Factory
Oct 11, 2005 at 4:39 AM
originally posted by: mbpublic

1. On page 10. The ProfileCatalog.xml code line for Description should be below SolutionProfile.

2. On page 17. parentWorkItem.Run(... should be changed to reflect the pre-built code that ships with CAB since this doesn't work as documented. parentWorkItem becomes myWorkItem.Run(...

3. Same code line as above. "tabWorkSpace1" should have a lowercase "S" and be "tabWorkspace1".
Oct 11, 2005 at 5:41 AM
originally posted by: BradWilsonMSFT

Thanks! We'll fix these for the final release.
Oct 11, 2005 at 8:03 PM
originally posted by: eipub

Could you please explain a little more about what changes are needed for #2? I believe that I've done everything; however, I cannot get past this line for one reason or another.
Oct 11, 2005 at 9:13 PM
originally posted by: yarezki

Where is the documentation?

TIA
Yazid
Oct 12, 2005 at 4:09 AM
originally posted by: BradWilsonMSFT

The documentation is contained in the Help folder in PDF form.
Oct 12, 2005 at 5:48 AM
originally posted by: eipub

Ok, I finally understood that the idea was to look at the Walkthrough solutions for the right coding. I got that and all is working as expected.
Oct 12, 2005 at 6:48 AM
originally posted by: jnicholsonfl1

Also in the Walkthrough doc, the MyModuleInit has a local variable that should probably be documented as being of type IWorkItemTypeCatalogService instead of IWorkItemCatalogService.
Oct 14, 2005 at 3:33 AM
originally posted by: yarezki

Where does myWorkItem come from?

in my MyModuleInit I have:

public override void Load()
{
base.Load();
myCatalogService.RegisterWorkItem<MyWorkItem>();
parentWorkItem.Run(parentWorkItem.Workspaces"tabWorkspace1");
}

I changed it to:

public override void Load()
{
base.Load();
myCatalogService.RegisterWorkItem<MyWorkItem>();
myWorkItem.Run(parentWorkItem.Workspaces"tabWorkspace1");
}

I have defined myWorkItem as follows:

private MyWorkItem myWorkItem;
ServiceDependency
public MyWorkItem MyWorkItem
{
set { myWorkItem = value; }
}

I get an exception:

Service MyModule.MyWorkItem is not available in the current context.

Could ypu expand on the code you have added so that the walkthrough compiles.

TIA
Yazid
Oct 14, 2005 at 3:48 AM
originally posted by: yarezki

Sorry guys got it,


public override void Load()
{
base.Load();
MyWorkItem myWorkItem = parentWorkItem.WorkItems.AddNew<MyWorkItem>();
myWorkItem.Run(parentWorkItem.Workspaces"tabWorkspace1");
}