Showing posts with label custom. Show all posts
Showing posts with label custom. Show all posts

Monday, March 19, 2012

Component wizards

I just posted a couple of wizards on http://www.ivolva.com/ssis_wizards.html to help with creating custom tasks and custom data flow components in C#. It is packaged as MSI, so installation hassle is minimal.

If anyone wants to try this out, please help yourself and let me know how it went.

Oleg
http: http://www.ivolva.com

Hi there Oleg,

I tried them out, they're great starters. Hope you're planning on asking Qs like whether users want async/sync transforms and how many initial inputs/outputs to create.

Thanks for doing this!
regards,
ash

Sunday, March 11, 2012

Component icons

Hi,

I'm trying to add an icon to a custom component but its not happening and I can't figure out why. I'm sure I've managed to do this in the past. Here's my DtsPipelineComponent attribute:

Code Snippet

namespace Jamiet.Ssis
{
[DtsPipelineComponent(
DisplayName="MyComponent",
Description="Does some stuff",
ComponentType=ComponentType.Transform,
NoEditor=true,
IconResource="MyComponent.ico"
)

MyComponent.ico is stored in the same folder as my project (i.e. at the same level as the .cs file and the C# project file).

In the application property page I've pointed the icon resource at MyComponent.ico

Everything compiles OK. But I see no icon in my component when I deploy it to the toolbox or use it in a package.

I've also tried changing the attribute to this:

Code Snippet

namespace Jamiet.Ssis
{
[DtsPipelineComponent(
DisplayName="MyComponent",
Description="Does some stuff",
ComponentType=ComponentType.Transform,
NoEditor=true,
IconResource="Jamiet.Ssis.MyComponent.ico"
)

Again, it compiles OK, but no icon!

Any ideas what I'm doing wrong?

Thanks

Jamie

Having in no way shape or form done this myself, looking at pg 476 of the wrox professional guide it appears what you are doing is correct (the only difference I see is the closing bracket "]" but I don't believe that is the problem)...

[DtsPipelineComponent(

DisplayName="ReverseString",

ComponentType="ComponentType.Transform,

IconResource="Konesans.Dts.Pipeline.ReverseString.ReverseString.ico",

UITypeName="Konesans.Dts.Pipeline.ReverseStringUI.ReverseStringUI, Konesans.Dts.Pipeline.ReverseStringUI, Version=1.1.0.0, Culture = neutral, PublicKeyToken=7b20fe705a17bed2")]

public class ReverseString : PipelineComponent

...

|||

In the project properties for the .ico file, make sure you have Build Action set to Embedded Resource.

Also, you may need to use a fully qualified name for the icon - the full assemby name.[your icon].ico

|||

cheers John. I'll give it a bash tonight.

Bothers me that there is no docs around this.

|||

jwelch wrote:

In the project properties for the .ico file, make sure you have Build Action set to Embedded Resource.

Also, you may need to use a fully qualified name for the icon - the full assemby name.[your icon].ico

Hey hey hey. It was the build action bit that I was missing.

Thanks John! Much appreciated!

Component icons

Hi,

I'm trying to add an icon to a custom component but its not happening and I can't figure out why. I'm sure I've managed to do this in the past. Here's my DtsPipelineComponent attribute:

Code Snippet

namespace Jamiet.Ssis
{
[DtsPipelineComponent(
DisplayName="MyComponent",
Description="Does some stuff",
ComponentType=ComponentType.Transform,
NoEditor=true,
IconResource="MyComponent.ico"
)

MyComponent.ico is stored in the same folder as my project (i.e. at the same level as the .cs file and the C# project file).

In the application property page I've pointed the icon resource at MyComponent.ico

Everything compiles OK. But I see no icon in my component when I deploy it to the toolbox or use it in a package.

I've also tried changing the attribute to this:

Code Snippet

namespace Jamiet.Ssis
{
[DtsPipelineComponent(
DisplayName="MyComponent",
Description="Does some stuff",
ComponentType=ComponentType.Transform,
NoEditor=true,
IconResource="Jamiet.Ssis.MyComponent.ico"
)

Again, it compiles OK, but no icon!

Any ideas what I'm doing wrong?

Thanks

Jamie

Having in no way shape or form done this myself, looking at pg 476 of the wrox professional guide it appears what you are doing is correct (the only difference I see is the closing bracket "]" but I don't believe that is the problem)...

[DtsPipelineComponent(

DisplayName="ReverseString",

ComponentType="ComponentType.Transform,

IconResource="Konesans.Dts.Pipeline.ReverseString.ReverseString.ico",

UITypeName="Konesans.Dts.Pipeline.ReverseStringUI.ReverseStringUI, Konesans.Dts.Pipeline.ReverseStringUI, Version=1.1.0.0, Culture = neutral, PublicKeyToken=7b20fe705a17bed2")]

public class ReverseString : PipelineComponent

...

|||

In the project properties for the .ico file, make sure you have Build Action set to Embedded Resource.

Also, you may need to use a fully qualified name for the icon - the full assemby name.[your icon].ico

|||

cheers John. I'll give it a bash tonight.

Bothers me that there is no docs around this.

|||

jwelch wrote:

In the project properties for the .ico file, make sure you have Build Action set to Embedded Resource.

Also, you may need to use a fully qualified name for the icon - the full assemby name.[your icon].ico

Hey hey hey. It was the build action bit that I was missing.

Thanks John! Much appreciated!

Friday, February 24, 2012

Complex Cube Measure

My problem is creating a cube with a very complex measures, I did it by hand
and on a relational table using oracle for a custom dashboard my company
bought, now I need to create an Analysis Services Cube and Reporting Service
s
Client to let analysts create more in-depth reports.
The problem is this, we have a very complex metric with 4 levels in its
product hierarchy:
Business Unit
->Product Line
-->Part Number
-->Production Station
The measure is FTY,at the station level it means the percentage of pieces
that went through the station without failing, the formula for station is 1
-
pieces_rejected/pieces_tested.
Now, this would be great if I could group all the pieces tested and
rejected for a particular partnumber, and apply the same formula but to
obtain the FTY of a partnumber I have to multipy the FTY of each of its
stations, example:
Part Number 12345-001-00 FTY=0.8 * 0.5 * 1.0 = .4
->Welding Station PiecesTested=100 PiecesRejected=20 FTY=0.8 (80%)
->Assembly Station PiecesTested=1000 PiecesRejected=500 FTY=0.5 (50%)
->Test Station PiecesTested=100 PiecesRejected=0 FTY=1.0 (100%)
For the Product Line FTY we have to average all of its part numbers and
for the Business Unit we create an average of its product lines.
I don't know how to design my FTY measure so that it will take into account
that there is a different calculation for each step in the product drill dow
n.
Any ideas guys/gals?
I will thank you a lot!
IgnacioIf [PiecesTested] and [PiecesRejected] are base measures of a
[MetricsCube] with a [MetricsDim], then the metric: [Measures].&
#91;FTY]
could be defined like:
[vbcol=seagreen]
With Member [Measures].[FTY] as
'iif([MetricsDim].CurrentMember.Level.Ordinal <
[MetricsDim].[Part Number].Ordinal,
Avg([MetricsDim].Children,
[Measures].[FTY]),
iif([MetricsDim].CurrentMember.Level is
[MetricsDim].[Part Number],
Exp(Sum(Filter([MetricsDim].Children,
Not IsEmpty([Measures].[PiecesTested])),
Log([Measures].[FTY]))),
([Measures].[PiecesTested] - [Measures].[PiecesRejected])
/[Measures].[PiecesTested]))'
FORMAT_STRING = 'Percent'[vbcol=seagreen]
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!