Showing posts with label intelligence. Show all posts
Showing posts with label intelligence. Show all posts

Wednesday, March 21, 2012

I want to make formula in business Intelligence Project

Hi Friends,
I want to make formula in business Intelligence Project like as we make
formula in Crystal report.
Thanks,
AlexWell if I understand your question correctly you want to convert a Crystal
formula to RS. I had a lot of trouble with this as well and without doing
custom code that I'm not experienced with you are going to have to move to
single line vb .net functions in order to get your functionality.
The one that I have used the most is the =Iff statement as it lets you test
and chose 2 results and you can nest them inside each other. Here is a link
to the Microsoft MSDN Reference and some text from the link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctiif.asp
Visual Basic Language Reference IIf FunctionReturns one of two objects,
depending on the evaluation of an expression.Public Function IIf( _
ByVal Expression As Boolean, _
ByVal TruePart As Object, _
ByVal FalsePart As Object _
) As ObjectExampleThis example uses the IIf function to evaluate the TestMe
parameter of the CheckIt procedure and returns the word "Large" if the
amount is greater than 1000; otherwise, it returns the word "Small".Function
CheckIt (ByVal TestMe As Integer) As String
CheckIt = IIf(TestMe > 1000, "Large", "Small")
End FunctionGood luck,Dan"Alex Smith" <sam@.gmail.com> wrote in message
news:ODPzlaGfFHA.2372@.TK2MSFTNGP14.phx.gbl...
> Hi Friends,
> I want to make formula in business Intelligence Project like as we make
> formula in Crystal report.
> Thanks,
> Alex
>

Monday, March 19, 2012

I want my custom SQL errors to display on the RS Page

Dear Anyone,

We have custom raise error messages embedded in our stored procedures. I've noticed that using Business Intelligence Dev, when these errors are invoked, they actually display on the RS report. But unfortunately, when I tried it on a deployed report, I always get the error below.

Is there a way to display custom SQL errors from my stored proc to the RS page? Where do I enable the remote errors?

Thanks,

Joseph

  • An error has occurred during report processing.
  • Cannot create a connection to data source 'AdventureWorks'.
  • For more information about this error navigate to the report server on the local server machine, or enable remote errors.
  • Regarding remote errors:

    You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table. Alternatively, you can use the SetSystemProperties SOAP call:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_63le.asp

    Here is an example for a .rss script that will turn it on:

    Public Sub Main()
    Dim P As New [Property]()
    P.Name = "EnableRemoteErrors"
    P.Value = True
    Dim Properties(0) As [Property]
    Properties(0) = P
    Try
    rs.SetSystemProperties(Properties)
    Console.WriteLine("Remote errors enabled.")
    Catch SE As SoapException
    Console.WriteLine(SE.Detail.OuterXml)
    End Try
    End Sub

    Then run the .rss script by using the rs.exe command line utility:

    rs -i EnableRemoteErrors.rss -s http://Server/ReportServer

    Once remote errors are enabled, you could throw a specific exeception with a informative error string in the stored procedure. That message should then be shown as inner message.

    -- Robert

  •