Access Report Custom Functions from code

Post Author: leedo
CA Forum: .NET
Hello,
I am using VS2005 (VB) and was able to change formula text from within code using the "FormulaFieldDefinitions" object. However, I am having problems finding out how I can do the same to Report Custom Functions.  The reason I am doing all this is that I noticed during my Windows app is running the source of my .rpt file is thrown in the user "Local Settings\Temp" folder and all code is revealed by simply opening that file. Please help. ThanksLeedo

Post Author: MJ@BOBJ
CA Forum: .NET
It looks like it is not possible to access the custom functions within a report using the CR .NET SDK.  However, to address the potential security issue that you may be concerned about, is this a Windows or ASP.NET application?  If this is an ASP.NET application, then you shouldn't have to worry about the security as the end-user (client) will not be able to access that folder since the rest of the web server is typically unaccessible by the client. 
Another way to secure your reports is to use what we call "managed reporting" solutions such as Crystal Report Server or Business Objects Enterprise, which manages reports securely and your users are only allowed to access/see what you allow them to.  These solutions also provide public SDKs so you could incorporate the system into your own applications.  For more information, go to www.businessobjects.com/products.

Similar Messages

  • Trouble migrating Crystal Reports Custom Functions from BOXI R2 to BOXI 3.1

    I can't seem to migrate the custom functions from the custom function repository in my R2 environment to the 3.1 with FP 1.3 environment.
    When I migrate Crystal Reports using the Import Wizard, they all come over and they retain their custom functions, however, they don't bring over or create a new custom function repository. 
    When I do run the import wizard I have selected the repository radio button, but it does not have any affect .
    How can I migrate all of these custom functions without having to manually open up reports and placing them back into the repository on the new server?
    Thanks,
    Randy

    Hi,
    so if they are published to Rel.2 this looks different.
    Just to clarify it a bit more...these Files are no Datasources for Reports and Universes and your Users dont consume them via InfoView?!
    Whats the purpose for these Files? If they have none, you can de- select them in the UMT and dont migrate them (or better said move them cause you wont actually migrate .csv files). But if nobody touches them, you can move them with the UMT during daily business...how long it will take i cant estimate it. But 65GB for .CSV files is a huge amount.
    But you are correct, to move them from Rel.2 to BI4 you have to use the UMT.
    If you have the ressources and time i would recommend the following (Thats what i usually do with my customers):
    1. Setup a Machine (could be a VM) with the same OS and BOE Version (included SPs and FPs) as your production Rel.2
    2. Schedule a half day or day Downtime to copy the content 1:1 from the production Rel.2 to the VM Rel.2 with the IW or CMS DB Copy. Or do this after Business Hours.
    - With this Size of your FileStore i would recommend the CMS DB copy way.
    - Now you have a 1:1 Testing Environment of your Production Environment
    3. Use the UMT to migrate from your VM Rel.2 to your BI4 installation
    - Here you can see how long it takes
    - You can check if the UMT is capable for this 65GB transfer
    - Can sort out other possible issues
    - Do some other Testing
    After you did that you have a perfect estimation on how long the Migration will take and what for issues you are facing. With this information you can decide if you need a downtime or can do it after Business Hours f.e.
    Regards
    -Seb.

  • Exclude inherited properties and functions from code hinting

    Since, by design, the [Exclude] metatag works only with MXML code hinting, I was wondering if there is any other way of achieving this. For my reasoning why I consider this feature a necessity please consult my bug report on jira.
    Anyway, coming back to the problem at hand, I have come up with two possible ways of achieving this:
    1. Use the [Deprecated] metatag and change an option in the Flash Builder, to hide Deprecated functions from the code hinting. The problem is, there is no such option!
    2. Install a plugin which adds a new ASDoc tag (let's name it @exclude) which simply speaking removes all functions/properties which have @exclude in their asdoc from code hinting. But again, I have found no such plugin and I don't have necessary skills to accomplish this task.
    3. A mix of both - plugin which adds an option to hide deprecated elements from the code hinting. Probably the easiest to develop but still, I haven't managed to find such plugin anywhere and I wouldn't know how to even start looking for information to write it.
    If you know how this could be accomplished (without resorting to, for example, manipulating the projects's design by using Interfaces) I'd love to hear them.

    Well yes of course. But I am trying to make everything available to the same package. Like a namespace. But I want to only expose the base class for instantiation by third party developers.
    For instance I have a base class in a SWC named SomethingClass. SomethingClass utilized SomethingClassB, SomethingClassC and SomethingClassD classes and there need to be public methods in between them.
    During code completion/code hinting I would like to stop SomethingClassB, SomethingClassC and SomethingClassD from even showing up in that list.
    The whole class. Not just some methods or variables.

  • Erroring out when trying to call a custom function from the discoverer repo

    Hi everybody, Thanks in advance....
    I have a discoverer report giving the shelf life of an item.
    The shelf life is to be calculated using a function.
    Hence, a custom function is created. I registered the function using Discoverer Administrator Edition.
    Then opened my desktop edition and opened the report.
    Going to Tools > Calculations > New > Functions > Database > selected the function and changed the parameters passed to the function by going to Items selecting the columns from the tables they are available.
    Now, when the query is refreshed, it comes up with an error "Function returns no value".
    When tested from sql session, the function returns value.
    any idea, as to whts the reason???
    -- Kiran

    Hi,
    Have you validated the function in Discoverer administrator?
    Is the function valid?
    Have you manually defined the function details or imported directly from the database?
    pls. let us know.

  • Using Variables in a "Report Custom Functions"

    Hi!
    I created a custom function using Basic Syntax where I am trying to declare/use variables.  I keep getting syntax errors and don't know why.  Here is my code so far:
    Function cdQSIPeriod () As String
    YY = Year(CurrentDate)
    MM = Month(CurrentDate)
    If MM = 1 then
        MM = 12
        YY = YY - 1
    else
        MM = MM - 1
    cdQSIPeriod = String(MM)& String(YY)
    End Function
    Any help you can provide will be appreciated.

    You need to add
    dim YY as number
    dim MM as number
    HTH,
    Carl

  • Report custom function and repository custom function

    Hi Guru:
    We have some repository functions.
    When using them in the report, in design time, we will choose Add to report for the functions and then we could use it.
    Then the repository functions are updated, and I found the report function, which comes from the repository function, is not updated, I need to add the repository function to the report again to update it.
    As we will have more and more reports using the repository function, in the long run, is there a way to automatically update the report function from the repository for all the reports?
    Thanks.
    Eric

    From Crystal's online help:
    Repository objects that are used in a report and are connected to that report's repository can be updated automatically when opening the report in Crystal Reports. This behavior is controlled by an Options setting and is global for all reports.
    Note:    Objects that are used in a report but are disconnected from the repository are not automatically updated when the report is opened.
    To set the update option
    On the File menu, click Options.
    The Options dialog box appears.
    Click the Reporting tab.
    Select the Update Connected Repository Objects on Open check box.
    Click OK.
    If you don't want to use this global option, you can also update a report's repository objects by selecting the Update Repository Objects option on the Open dialog box for an individual report.
    Note:    When you open a report that contains a command that is stored in the repository, and you have specified that you want to Update Connected Repository Objects on Open, only the definition of the command is automatically refreshed; the data that the command returns is not updated until you click the Refresh button in the report.
    HTH,
    Carl

  • Can we pass Custom Varaiables from COD to CRM?

    We are defining Custom Variables within the Call Flow. One can access the $ANI variable in the Call Detail Page. On the same Line, We would like to access the Custom Variables defined in the Call Flow wtihin CRM. Is this Possible? We dont want to use any Web Servcies though. If so, how?

    Dave,
    In COD under the Company there's the CRM Integration tab. One of the options there is Custom Tab. Does that do anything? I tried putting a test page in there in a custom tab and nothing happened.
    If it did work, couldn't you pass a custom variable (or at least a paramater) to a web page. The admin manual seems to state that you can pass a parameter to a web page. Appendix C and E.

  • How to use custom functions from Dlls

    I would like to know if there a way to import functions from
    a custom DLL?
    Thanks

    Hi Wardell,
    Did you get any break through on this I was exploring on same.
    Egarly awaiting reply....
    Regards,
    Ankeet Pujara

  • Access a main function from a child MXML

    Hi im just a beginner in flex.Someone please giude me.
    I have a main MXML which holds another MXML.Is there any
    possiblity to access the main MXML component from the child MXML.If
    there is no possiblity i just want to know how to access the main
    MXML function from the child MXML script.
    thanks in advance
    karan

    Thankyou man..its working...i might require ur help in the
    coming days...
    hei do u have any experience in drawing API

  • Feature Request: Access to Pathfinder functions from JS

    It would be incredibly helpful to have access to the pathfinder from the JS API.
    These functions are pretty complex and rewriting them would surely result in slight implementation differences.

    it would be indeed fantastic if we had access to pathfinders
    post your request here
    http://forums.adobe.com/community/illustrator/illustrator_feature_requests

  • Accessing developer 6i functions from  C++ builder

    how can i call a function in dev 6i from a c++ builder application and pass its arguments and retrieving the result from an oracle database?

    Hi,
    you can not call a function from forms but you can call a stored procedure/function.
    From Metalink, an example of How to call stored procedure returning date as out parameter
    Overview
    This example demonstrates how to call a stored procedure that returns
    a date column as an OUT parameter. The program is written in C using
    the ODBC API.
    Program Notes
    o Steps to build the sample application:
    1. create the procedure check_date from the pl/sql provided using
    SQL*PLUS or Sqlworksheet.
    2. Create a new win-32 console application using MSVC 6.0.
    3. Add the an empty cpp source file to the project.
    4. Add the ODBC32.lib library to the project. (This should be located
    in the Microsoft Visual Studio\vc98\lib directory)
    5. Paste the code provided into the .cpp file.
    6. Choose the build command from the Build pull down menu.
    o The sample was tested using the following components:
    1. Windows NT 4.0 SP 6
    2. MSVC 6.0
    3. Oracle ODBC Driver 8.1.6.2.0
    4. Oracle RDBMS 8.1.6.0.0
    5. Oracle Net 8 8.1.6.0.0
    References
    Information in this article was taken from Oracle Source Code Repository
    Entry # 612.
    Caution
    The sample program in this article is provided for educational purposes only
    and is NOT supported by Oracle Support Services. It has been tested
    internally, however, and works as documented. We do not guarantee that it
    will work for you, so be sure to test it in your environment before relying
    on it.
    Program
    - - - - - - - - - - - - - - - - Code begins here - - - - - - - - - - - - - - - -
    -- The PL/SQL procedure
    create or replace procedure check_date(inNum IN number, outDate OUT DATE) is
    begin
    select sysdate into outDate from dual;
    end;
    // The C source code
    #include <windows.h>
    #include <stdio.h>
    #include <sql.h>
    #include <sqlext.h>
    #pragma comment(lib, "odbc32.lib")
    UCHAR szSqlState[200];
    SDWORD pfNativeError;
    UCHAR szErrorMsg[200];
    SWORD cbErrorMsgMax = 200;
    SWORD pcbErrorMsg;
    int show_error();
    static HENV henv;
    HDBC hdbc;
    HSTMT hStmt;
    HWND hwnd;
    int show_error();
    int main() {
    char db_name[100];
    char username[100];
    char password[100];
    SDWORD cbOut;
    TIMESTAMP_STRUCT inData2;
    int inData1;
    if ( SQLAllocEnv ( &henv ) != SQL_SUCCESS )
    return -1 ;
    if ( SQLAllocConnect (henv, &hdbc ) != SQL_SUCCESS )
    return -1 ;
    printf("Username: ");
    gets((char *) username);
    printf("Password: ");
    gets((char *) password);
    printf("Data Source Name: ");
    gets((char *) db_name);
    if ( SQLConnect ( hdbc, (unsigned char*)db_name, SQL_NTS,(unsigned char*)username, SQL_NTS, (unsigned char*)password, SQL_NTS ) != SQL_SUCCESS ) {
    printf("Cannot connect as %s.\n", username);
    printf("Try again.\n\n");
    return -1;
    if (SQLAllocStmt(hdbc, &hStmt) != SQL_SUCCESS) {
    show_error() ;
    return(-1);
    inData1 = 10;
    cbOut=0;
    if ( SQLBindParameter(hStmt, 1, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, 0, 0,&inData1, 0, &cbOut) != SQL_SUCCESS ) {
    show_error() ;
    return(-1);
    cbOut=sizeof(TIMESTAMP_STRUCT);
    if ( SQLBindParameter(hStmt, 2, SQL_PARAM_OUTPUT, SQL_C_TIMESTAMP, SQL_TIMESTAMP, 19, 0,&inData2, 0, &cbOut) != SQL_SUCCESS ) {
    show_error() ;
    return(-1);
    if ( SQLPrepare(hStmt, (unsigned char*)"{call check_date(?,?)}", SQL_NTS) != SQL_SUCCESS)
    return(-1) ;
    if (SQLExecute(hStmt) != SQL_SUCCESS) {
    show_error() ;
    return -1;
    printf("The date is:\nyear: %d\nmonth: %d\nday: %d\n", inData2.year, inData2.month, inData2.day);
    if (SQLFreeStmt(hStmt,SQL_DROP) != SQL_SUCCESS) {
    show_error() ;
    return -1;
    if (SQLDisconnect(hdbc) != SQL_SUCCESS) {
    show_error() ;
    return -1;
    return(0) ;
    int show_error() {
    int retcode;
    retcode = SQLError(henv, hdbc, hStmt, szSqlState, &pfNativeError, szErrorMsg, cbErrorMsgMax, &pcbErrorMsg);
    printf("%d - %s \n",retcode, szErrorMsg);
    return(0);
    - - - - - - - - - - - - - - - - Code ends here - - - - - - - - - - - - - - - -
    Sample Output
    The Date is:
    year: 2000
    month: 11
    day: 9
    press any key to continue
    Monica

  • Error when accessing a custom RFC from the ISA framework

    Hi,
    I am trying to add new functionality to Ecommerce 5.0 by providing my own custom actions and calling a custom RFC. I followed the procedure given in "Development and Extension Guide u2013 SAP E-Commerce 5.0" i.e., "Extension Demo 6: Copy-Template for Customer Extensions"...
    I am passing 2 parameters company code and customer number to the RFC via JCO.Function.getImportParameterList().setValue(String) one of which is a value "BP01"..I am getting back an error saying
    Guest#0##n/a##8a55139c594311df8f0a000000000000#SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###Field BP01 not a member of INPUT#
    I checked with the SAP guys at my work, the function module works well with those parameters from the GUI.. NOt sure what the problem could be..
    Any kind of input could be of help
    Thanks
    S

    Thanks for your help guys, Your answers were accurate for Ecommerce 6.0 and higher, I just learn t that E Commerce 5.0 uses Sapjco 2.X and there is a slight difference in the way we set the import parameter list..
    In SAPJCO 2.x, we need to set
    <b>myFunction.getImportParameterList.setValue<u>("Value", "FieldName")</u>;</b>
    where as in new SAPJCO3.x, we need to change the order i.e.,
    <b>myFunction.getImportParameterList.setValue<u>("FieldName", "Value")</u>;</b>
    I am glad that my problem got solved
    Cheers..

  • Access report row data from javascript

    -- I have a report. Something like this.
    Select id, name, htmldb_item.checkbox(1, '#ROWNUM#')
    from test;
    -- I can get the rownum via javascript.
    var ml = document.wwv_flow;
    var i;
    for(i = 0; i < ml.elements.length; i++){
    alert("name = " + ml.elements.name);
    alert("value = " + ml.elements[i].value);
    -- I would like to access the other items I selected in the report from javascript. ie. id and name.
    -- So knowing the rownum how do i get those values for a given row?
    Thanks
    Jon

    hi jfortney,
    i have one problem in oa framework, ie i need to get the row number by javascript but could not do . my way is
    document.getElementById('tableid').rows.length.. but there is no id for that table when i c the view source. so please suggest me some idea as to how to get the row number of a table in oa framework page.
    thanks in advance...
    prabhakaran.p

  • Accessing a C function from PL/SQL.

    I have a c function that I would like to access from pl/sql, that is call as any other function in pl/sql. Is this possible? Where can I read about it?

    Yes, this is possible. You have to use the feature named external procedure that involves Oracle Net configuration. Here is a example with Oracle 8:
    http://www.unix.org.ua/orelly/oracle/prog2/ch21_01.htm

  • Calling a custom function from XSLT in SOA

    I want to call a custom java method from an XSLT. The java method will calculate the power for the arguments passed and returns the power calculated.
    Thanks
    Cabo

    It can be done by creating custom xpath function:
    Documentation link:
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10224/bp_xslt_mpr.htm#BABFCJEB
    section 33.3.4.4 Importing User-Defined Functions

Maybe you are looking for

  • Iphone 3gs battery-my story-please help

    hi all i expierenced issues with my iphone 3gs since iOS 4.1,my battery drain was terrible but after iOS 4.2 i thought it becomes better but no,after 2 weeks i observed what my battery is draining sometimes very fast-for example when i charge it yest

  • UDF Using Dynamic Configuration for Counter Reset

    Hi All, In an Idoc to file scenario we want to have counter option at the end of the file.we are using NFS so that we wil not face any problem of counter reset on a j2ee restart But when the counter turns 999999 it has to be reset to 0000001 So we ar

  • Why do we need header datasource?

    I just got confused?  Why do we need header data table if line items datasource contains all the field of header datasource?   Another thing is that should we create different ODS'  for each?

  • Can't find a suggested password (iCloud Keychain)

    I logged in to a website with username and password. Website recommended me to change a password. Keychain offered a suggested password so I clicked on it. Unfortunately, now I can't find this suggested password. In Safari - Preferences - Passwords i

  • Error message when trying to download bootcamp.

    The disk cannot be partitioned because some files cannot be moved.Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. I am unskilled in this matter and would like a bit of assistance. Not to sure what I