Determine fields in a report at run time

I am using Crystal XI R2 for reporting ina an a VB.net application.
I want to be able to determine which fields are in a report at run time to provide a list to the user for filtering purposes. I can list the available fields of the database table that the report is hooked into but they might not all be on the report.
Which Objects and/or Methods are used to determine this?
Can someone provide an example?
Thanks ahead of time.

You will have to use the RAS InProc SDK. RAS Developer help files are here:
https://boc.sdn.sap.com/developer/library
Samples:
https://www.sdn.sap.com/irj/boc/businessobjects-samples?rid=/webcontent/uuid/b02c1cac-ad86-2b10-88ae-cb36551bab06 [original link is broken]
Intro article:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32
In a nut shell though, your code would be similar to the below (except for a subreport object, you'd be lookign for a db field object.;
Dim crSections As Sections
Dim crSection As Section
Dim crSubreportObject As SubreportObject
'set the crSections object to the current report's sections
crSections = crReportDocument.ReportDefinition.Sections
'loop through all the sections to find all the report objects
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
'loop through all the report objects to find all the subreports
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'you will need to typecast the reportobject to a subreport
'object once you find it
crSubreportObject = CType(crReportObject, SubreportObject)
'open the subreport object
crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
'set the database and tables objects to work with the subreport
<your .SetDataSource code here>
Next
End If
Next
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Similar Messages

  • How to configure oracle 6i report server run time component with application server

    we got oracle 6i report server for developing the web based reports for our undergoing product. we r succesed in developing the web based reports using oracle 6i report server.But we r facing problems while deploying the product with oracle reports at clients place,why because the client does not have the oracle 6i report server. To solve this problem we have to configure the oracle 6i report server run time component with application server at client side , but we are unable to configure this component(that is CGI handler).

    You can run multiple instances of Reports Server in 6i.
    In tnsnames.ora, for each server, have a different name and each listening to different port.
    For example,
    server1.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1949))
    server2.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1950))
    Also, if you want to know about Reports Server Clustering, you may refer to "Publishing Reports" document on OTN:
    http://otn.oracle.com/docs/products/reports/pdf/A73173_01.pdf

  • HOWTO: Control Printer Attributes for a Report at Run Time Reports 6i

    HOWTO: Control Printer Attributes for a Report at Run Time
    Like page width , height etc
    my problem is i had installed a printer and it is set for
    printing different reports ( like invoice slips , legal size ,
    A3 etc ) each time i have to manually set the page settup from
    printer folder .instead if there is an option to set the printer
    attributes from Reports 6i it is great
    rajesh

    All the Printer Setup(Page Height and Page Width) must be set in
    the Reprot Program. These can be set at the Layout-Main Section
    in the Object Navigator.
    hth

  • Modify the title of a wad report at run time.

    Hello Gurus,
    i have a query in a report which lists the products.On clicking on a product, it takes me to anthr template which has the details of that product.The current scene is that whenever the user selects a product its detail report opens in a new browser.
    The requirement is to display the name of the product in the tiltle bar of the browser.
    I have the value of prod selected in a var(thru ABAP code), how can i set the title of the summary report at run time??
    Please send suggestions ASAP.
    Thanks
    Regards,
    priya

    Hi Priya,
    insert a text element into your detail web template and surround it by
    <div id="someid" style="display:none">
    <!-- your text element -->
    </div>
    The text element should display the value of the selected product and its property "ONLY_VALUES" should be set to "X". Now you can access the value of your selected product via JavaScript:
    <script language="JavaScript">
    function getSelectedProduct() {
      var selectedProduct = document.getElementById("someid").innerHTML;
      return selectedProduct;
    </script>
    Now you can set your title with the selected product.
    I hope this helps a bit.
    Greetings,
    Daniel

  • How to design report at run time SSRS

    most of the time we point store procedure or table and then SSRS report designer show us field and we just drag drop those field on to report designer surface. after all we call those report programmatically and pass parameter and report shown on report
    viewer.
    now my company want that customer will customize the report who will see the report. they want to display all the fields in a form and just customer will select each field and place on report designer surface and give some input like filter condition like
    date range or employee id etc and report will be shown. also at run time if customer want they can add text or move existing field etc.
    i do not have any idea how could i do this with SSRS. if this is possible with SSRS then please guide me in such a way as a result i can start the job or if possible give me few relevant url of that kind from where i can get the idea. thanks

    You can also use report builder application to get most of these functionality. For that you'll just create and deploy a report model with required attributes from involved entities.
    Then use can consume the model within report builder and add required fields to report,filter etc
    see below videos for more details
    http://technet.microsoft.com/en-us/sqlserver/dd430326.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Generate Reports at run time

    Post Author: Sherif_hfm
    CA Forum: General
    Hi every onewhen I use Crystal Reports 9 or 10 I can Generate Reports and view at run time without I need to save it but now with  Crystal Reports2008 I can not do that , If anyone know how to make that in  Crystal Reports2008 please replythanks 

    Ki Klassal,
    For user simulation you could use a tool such as LoadRunner, this would enable you to action specific tasks i.e.
    User Logons
    Report Refreshes
    Report Schedules
    If you run this against "multiple users" you need to pay attention to your use of the WAIT time parameter, i.e. how long the application waits before user clicks, typically 5-7 seconds for the wait time should be sufficient.
    SAP does not provide any specific documentation around this type of performance activity, but you could also gather valuable information by using our Remote Support Component tools:
    The Remote Support Component is a wonderful new product that enables an SAP BusinessObjects Enterprise administrator to:
    u2022     save time and effort thus reducing cost of ownership
    u2022     identify and resolve performance issues to makes things go faster!
    u2022     Be proactive and not reactive
    And itu2019s completely free!
    Only for SAP BusinessObjects Enterprise XI 3.1 SP2 and SP3 customers.
    Central Monitoring 24 x 7
    u2022     Just one location not multiple
    u2022     No more log files
    u2022     End to end converge
    Guided Analysis
    u2022     Dashboard of all components
    u2022     Traffic Lighting
    u2022     Historic and Live
    Saving you time and effort
    u2022     Root Cause Analysis with u2018Live traceu2019
    u2022     Auto uploading of your configuration
    u2022     Be proactive, not reactive
    An introduction to the benefits of using Remote Support Component for SAP Business Objects Enterprise. The recording is 4 minutes and 30 seconds long: https://sap.emea.pgiconnect.com/p84837556/
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • Clock In Clock Out Report without running Time Evaluation

    Hi Every1
    Is it possible to get report on clock in clock out without running time evaluation?? Can we get a report on Time events after uploading Punch in punch out from other system thru BDC?
    Here requirement is as soon as punch in punch out is uploaded on daily basis thru BDC they shud get a report on Clock In from th system so that they can immediately find out in morning shift how many employees are present.
    Thanks & Regards
    Neha

    Well what tables are you uploading in the BDC ?? are the PTX tables being uploaded or the PA2011 Tables uploaded ?
    If the PA2011 Tables are uploaded then yes we can run a report for each day as required but if the PTX tables are updated then they are either waiting for managers approval or to be transfered to HR which triggers updation of the Infotypes accordingly.
    And when you transfer to HR i guess Infotype 2011 is not updated but rather 2001 and 2002 Tables are updated but have to check on this, time eval schema would not update 2011 Infotype but rather would update ZL tables with time types if present, try to figure out what table the BDC updates each night.
    Edited by: insane saint on Jul 14, 2009 10:38 PM

  • XL reporter 2005: Run time error 430

    Hi,
    When launching XL reporter 6.80.01.25 the following error message appear:
    "Run time error 430
    Class does not support automation or does not support expected interface."
    Please advice.
    Regards
    Thomas Lai

    Hi Thomas,
    We had exactly the same problem when upgrading to patch 25. I think it's a bug in that patch. We got around it by uninstalling patch 25, rebooting the workstation and then reinstalling patch 25 again (...not sure if the reboot made any difference but I thought I'd mention it anyway). The program then worked ok. Very strange!!
    Hope this helps,
    Owen

  • How to Maximize a report in run time previewer

    Hi all,
    I want to maximize my report automatically during run time in the report previewer (I am calling this report from a form).
    Thanks
    Asad.

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time

    Exclude:
    you Can exclude columns in either Table view or pivot table view by placing those columns in Excluded section but you will notice that it will appear in bi server parsed sql query.
    Not sure you were asking about runtime??
    would you please explain your question!!
    Thanks
    NK
    Edited by: DNK on May 8, 2013 9:48 PM

  • How to Change  Numeric Value into Character Value in Reports at run-time?

    Hi,
    I am creating some reports, in which i am facing a problem.
    i have an AMOUNT field of "NUMBER" data type in a table, I want to show the AMOUNT value in Character at run-rime.
    For example, if AMOUNT is 12000 then it should be converted into Character like "Twelve Thosand".
    Please help me to make it clear.
    Thanking you in advance.

    u can get decimal points through this function
    FUNCTION amt_2_word(amt varchar2) RETURN Char IS
    BEGIN
         declare
              --TYPE v_arr IS VARRAY(6) of varchar2(3);
              len number;
              i number;
              t_amt varchar2(100);
              t_word varchar2(20000);
              last_3rd varchar2(1);
              main varchar2(1000); -- number in format main.sub
              --v_main v_arr := v_arr('00','0','00','00','000');
              v_main1 varchar2(3) := '00';
              v_main2 varchar2(3) := '0';
              v_main3 varchar2(3) := '00';
              v_main4 varchar2(3) := '00';
              v_main5 varchar2(3) := '000';
              sub varchar2(1000);
              res_1 varchar2(32000);
              res_2 varchar2(32000);
              res_3 varchar2(32000);
              res_4 varchar2(32000);
              res_5 varchar2(32000);
              res varchar2(32000);
         begin
              t_amt := lpad(amt, 10, '0');
              len := length(amt);
              i := instr(amt, '.');
              if i = 0 then
                   main := lpad(amt, 10, '0');
                   sub := '';
              else
                   main := lpad(left(amt, instr(amt, '.')-1), 10, '0');
                   sub := rpad(right(amt, len - instr(amt, '.')), 2, '0');
              end if;
              v_main1 := right(main, 2);
              v_main2 := left(right(main, 3), 1);
              v_main3 := left(right(main, 5), 2);
              v_main4 := left(right(main, 7), 2);
              v_main5 := left(main, 3);
              if v_main1 <> '00' then
                   res_1 :=getTwo(v_main1);
              end if;
              if v_main2 <> '0' then
                   res_2 := getOne(v_main2) || ' Hundred ';
              end if;
              if v_main3 <> '00' then
                   res_3 := getTwo(v_main3) || ' Thousand ';
              end if;
              if v_main4 <> '00' then
                   res_4 := getTwo(v_main4) || ' Lac ';
              end if;
              if v_main5 <> '000' then
                   last_3rd := left(right(v_main5, 3), 1);
                   if last_3rd <> '0' then
                        res_5 := getOne(last_3rd) || ' Hundred ';
                   end if;
                   res_5 := res_5 || getTwo(right(v_main5, 2)) || ' Crore ';
              end if;
              res := 'Rupees ' || res_5 || res_4 || res_3 || res_2 || res_1 || ' ';
              if sub is null then
                   res := res || 'Only';
              else
                   res_1 := getTwo(sub);
                   res := res || 'and Paise ' || res_1 || ' Only';
              end if;
              return res;
         end;
    END;
    u write this PL SQL in ur databse and u can use this function and get amount to word

  • Maximize report at run time

    hi every body
    please any body tell me when i run report it will not display on full screen user maximize report to see all page data by mouse click i want when user run report the report maximize automaticaly
    thanks is advance
    allaha hafiz

    Hi Faiz,
    Can you try to append your run_product command with
    MAXIMIZE=yes
    It works from the command line, but I haven't tried it using run_product. My guess is it should work. Let me know.
    Navneet.

  • How can we make disable a Field of a FORM at run-time?

    Hi to everybody,
    I want to know that how can we make a filed DISABLE at runtime <whenever we run a FORM>.
    I know about SET-ITEM-INSTANCE-PROPERTY but don't know how to use it,
    please make it clear.
    I will be gratefull to all of you
    Thanking you in advance.

    There's no property values for enabled or disabled in SET_ITEM_INSTANCE_PROPERTY.
    Instead what you can do is set INSERT_ALLOWED, UPDATE_ALLOWED and NAVIGABLE to FALSE which basically what a disabled item behaves like.
    Regards,
    Tony

  • Cisco CRS Historical Reports error "run time error 364 application defined or object-defined error"

    Hi All,
    we are getting an error when we open historical report

    Hi;
    The 713 error generally means something is not installed correctly for the runtime.
    How did you deploy the runtime to the client system?
    Regards,
    Jonathan

  • Sending mail to agent at run time determination

    hi all
    i have a problem sending mail to the person who has been identified on runtime basis.
    scenario is that i have created a custome rule to determine the person (partner function) on run time basis but problem is that i need to send only mail to that person not the object. as you may be aware we cant use rule in send mail step
    is there any way i can send mail only in this scenario
    help will definitely be appreciated
    regards
    ashish

    You need to store the agents that is getting retrieved from the rule in a Container element and use this isn the Expression of the send mail task.
    Use FM RH_GET_ACTORS to retrieve agent from Rule by using coding in method of respective BO.
    Thanks
    Arghadip

Maybe you are looking for