Is it possible to call different queries in a report whn called from a form

hello all
I want to know if it is possible to call different report queries when called from oracle 9i form .
i tried to use he
SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
option and actualy called the report name
but it dint seem to work !!!
also is it possible to chng the title of the browser at runtime

hello,
not sure i understand what you are trying to achive. you can change the SQL statement at runtime by using e.g. lexicals in the SQL statement.
w.r.t. changing the browser title, check the report level properties that define the pre- and post HTML code that is generated into the output.
regards,
philipp

Similar Messages

  • Possible solution: Open Crystal Reports Print Layout from UDO form

    Hi all,
    I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which so far works great. I post it here for anybody else needing this kind of workaround, or in case somebody has a better solution, pick that up.
    Here it is:
    1) Create your Crystal Report file and import using the Reports and Layouts screen in SAP Business One. Give it a meaningful name and location in the menu. Have at least one parameter to take the DocNum or DocEntry, or whatever your primary key is. (Note: I know the import can be done by SDK, but as far as I can see there's no way to place it in the menu structure just yet.)
    2) In your Add-On in the event ID 520 (print), call the following function with the Document Number grabbed from the open form:
    public static bool printUDO(string strDocNum)
                // get menu UID of report
                Recordset oRS = (Recordset)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
                oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = 'ReportName' AND Type = 'C'");
                if (oRS.RecordCount == 0)
                    B1Connections.theAppl.MessageBox("Report layout 'ReportName' not found.", 0, "OK", null, null);
                    return false;
                // execute menu and enter document number
                B1Connections.theAppl.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString());
                Form form = B1Connections.theAppl.Forms.ActiveForm;
                ((EditText)form.Items.Item("1000003").Specific).String = strDocNum;
                form.Items.Item("1").Click(BoCellClickType.ct_Regular); // abrir reporte
                return true;
    I know it's kind of a dirty solution, but it works, and if you have any suggestions, I'd be happy to hear them.
    Thanks!
    Joerg.

    Hi Joerg,
    It's not a dirty solution... I like it and i'm using it
    Thanks!
    Best regards,
    Ana Silva

  • Call a user defined method in web dynpro from interactive forms

    Hi All,
    how to call a user defined method in web dynpro java, when a selecting value from drop down list which is in interactive forms by adobe
    thanks.
    Edited by: venkat99 on May 24, 2010 4:52 PM

    Well, you can use F4 help, of course, check here: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a1900622ec062be10000000a42189d/frameset.htm
    You need to select the value first and then use the submit button, which is mapped to the WD action submit (you have to set this up in WD designer!!). To use the submit button for more actions, you need to use something like a hidden field, where the value is set according to the action you want to do with your submit button. The submit sends this value back to WD, where you can switch the program code according to the value.
    Otto
    p.s.: and maybe this blog can help: /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view

  • Calling OAF Page from Oracle forms

    Hi All,
    Is it possible to call an Oracle Forms from OAF page?
    I need to call a OAF page EAM material cost screen from oracle form using personalization.
    Please any one put on some lights on this issue.
    Thanks in Advance,
    Ramesh reddy
    Edited by: user642447 on May 13, 2011 4:33 AM

    Ramesh,
    yes, its possible to call oaf page from oracle forms.
    This has been specified step by step in Developer Guide. Refer it for more.
    Regards,
    Gyan

  • Writing SQL queries in BAM Reports

    Hi,
    Is it possible to write SQL queries in BAM Reports.
    thanks

    Depends on the version of BAM u are using
    For version 10.1.3.X u can use enterprise link or External data Source...
    FOr 11g u can use ODI or External Data Source ...
    Depends upon what is ur SQL doing

  • Calling Java Script to open a Map (Like Google Map) from Oracle Forms 10g

    Hello,
    We are on Oracle EBS rel 12, Forms 10g. We have a requirement of calling a Custom Map application (Like Google Maps) from Oracle Forms 10g.
    When the user enters the address like town, city, country etc and clicks on a button there should be a call to this Google Map like application which will pass the co-ordinates (Latittude, Longitude) to the map and shows the place on it. If the user selects a different location on this maps and closes the window the parameters co-ordinates (Latittude, Longitude) should be back in the calling form and this new location should replace the original location.
    I appreciate if I can get some help for the above requirements.
    Thank you.
    GM

    Thank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
    Example:
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
    I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
    Regards
    GM

  • Invalid ID calling report from oracle forms 10 G

    Hi, I have a problem during calling a report object 10g from a FORM, the source code is below the message, an the error message is can't not find PLAN_FUZZY (my report module name)...... WHY ???
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         Rep_status VARCHAR2(20);
    BEGIN
         repid := FIND_REPORT_OBJECT('PLAN_FUZZY');
         V_rep := RUN_REPORT_OBJECT(repid);
    END;

    hey,
    May i know have u attached the report to your form???
    i think the best way is using RUN_OBJECT method
    Run_Product(REPORTS, 'report_path', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, NULL, NULL);
    if your report is at reportxx folder then you can just write report file name.
    Hope it will help you.

  • Need Different Selection screen for different Queries in a Workbook

    Hi,
    I have created a workbook with Multiple tabs in BI 7.0.  Each Tab has different Queries and each query has different Selection screens (Variable Selections).
    When i open the workbook and refresh it, the selection screen is appearing only for one query.  All the queries are refreshed by this single selection screen, though each query has different Variable selections.  What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
    Is it possible to do this?  If anybody has tried this, help me in solving this issue.  Thanks for ur time.
    Regards,
    Murali

    Murali,
    If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
    When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
    This is the case if the queries are all on the same tab, or on different tabs.
    However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
    If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
    If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
    I hope this makes sense!
    Regards
    Steve

  • Filter the content on different queries for the same infoprovider and user

    Hello,
    We are trying to make the following security scenario in BI, and have
    problem with the analysis object concept to filter at query level.
    The idea is to permit to :
    - user A
      - to execute query Q1 and view information about sites 1,2,3
      - to execute query Q2 and view information about sites 4,5,6
    but for example for another user :
    - user B
      - to execute query Q1 and view information about site 1,3
      - to execute query Q2 and view information about site 5,6,7
    Q1 and Q2 are queries from the same infoprovider.
    The idea is to make an automatic generation of analysis objects based
    on the standard program : RSEC_GENERATE_AUTHORIZATIONS.
    During tests, we have faced a problem with the object 0TCTQUERY that we
    thought will permit us to filter at the query level, but unless we add
    the name on the query on a role in the S_RS_COMP authorization object,
    field RSZCOMPID, the query is not granted to the user.
    The fact that we use both authorization objects : one for the query
    definition, and another for the analysis authorization concept
    (S_RS_AUTH, field BIAUTH), has disastrous effect : all values given in
    the analysis objects are for all queries of an indicated infoprovider.
    With that system, it's then not possible to propose dynamically different
    views of the same data (ie from same infoprovider) based on the
    authorization concept unless using the technic of customer-exit variable,
    but with variable you will have a problem with old queries that doesn't
    have a variable and that will permit to see all data given in the new
    authorization objects.
    Is there exists another object to filter at the query level in the
    analysis objects ? If it's not the case, what is possible to do to reach
    our goal with the new authorization concept ?
    Thank you in advance for your help.
    Best regards,
    Gaël.

    The data is protected on infoprovider level and not on the query level,  so when two querys are build from the same Infoprovider then the authorizations are the same,
    To achieve what you want to do,  the querys must be built off different providers.   This can be achieved by placing the infoprovider in 2 differnt multiproviders and building the querys and authorizations seperatly on these.

  • Query to get the difference between 2 totals from 2 different queries

    I wanted to know if it is possible to get the difference between 2 totals from 2 different queries. I would explain with an example:
    1st query  - Select sum(homepass) from table 1
    2nd query – select sum(homepass) from table2
    Is it possible to display the difference like-
    Select sum(homepass) from table 1 - sum(homepass) from table2
    I know the above query would gives syntax error but is there a better way or a trick to get the above task accomplished from a single query.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    tomernitin wrote:
    Try this one also:
    WITH adtn1
    AS
    SELECT 110 val1 FROM dual UNION ALL
    SELECT 100 FROM dual UNION ALL
    SELECT 90  FROM dual UNION ALL
    SELECT 10 FROM dual
    adtn2
    AS
    SELECT 10 val2 FROM dual UNION ALL
    SELECT 20 FROM dual UNION ALL
    SELECT 30  FROM dual UNION ALL
    SELECT 100 FROM dual
    SELECT(Sum(a1.val1)-Sum(a2.val2)) Diff FROM adtn1 a1,adtn2 a2;
    let me know if you still have any doubt.
    Um.... I don't think so. Not with the cartesian join between a1 and 2.

  • Read Only/ Plan Mode Changes for a layout with two different queries

    Hi,
    I have a situvation where a layout opens in a read only mode and when
    the users click on button plan, it changes to plan mode. The catch here however is the queries
    for read mode and plan mode are slightly different, in the read only mode the query has subtotals
    and other calculations that are not a part of the plan mode ( where they input forecasts).
    I know if the read and plan query are the same, we can achieve this through the command
    SET_DATA_ENTRY_MODE. In case they are different, as above, how can i achieve this.
    Thanks
    Rashmi.

    Say you are using two different queries as DP1 & DP2 for Display and Plan mode respectively. You also have one Analysis grid item in Web template which initially points to DP1.
    On PLAN button call command SET_ITEM_PARAMETER to set the data provider of analysis item to DP2.
    OR
    You have only one dataprovider in your web template as DP1 initially pointing to Query 1 which you want to show in Display mode. Then on PLAN button call a command SET_DATA_PROVIDER_PARAMETERS to point the DP1 to 2nd query instead of 1st query.  You can find this command under Commands for data Provider --> Basic data provider commands.
    Edited by: Deepti Maru on Nov 27, 2009 9:52 PM

  • Report that uses two different queries

    I need to make a Report that uses two different queries. It would do one query, then the second, putting the results one after the other on the page.
    Using the wizard, I put in the first query, and it will generate output from this first query.
    I am able to put the second query in the Report, but when I try to use something from the second query, it gives a message about accessing a field below its frequency.
    In the Reports forum, there is a reference to
    tons of samples available in
    builing reports doc 1. http://download.oracle.com/otn/other/general/B10310_01.pdf
    But the link is broken.
    What can you tell me?
    Thanks, Wayne

    What you're trying to accomplish is possible. Now that you've got the second query, add a new repeating frame in the layout editor below the first area. Open the property palette for the new repeating frame and set the source to the second query. Then add fields from the second query.
    Also, remove the fields you have for the second query from the first frame that was created by the wizard; that's what's causing the error about accessing a field below its frequency.

  • Different MOH for Internal and External Calls

    Is it possible to have a different MOH source for internal vs external calls.
    I know that Network MOH is for transfering but can this be used for external MOH source from the PSTN?

    There's really no way to do this easily. The issue is that the call to a PSTN phone would flow through a gateway and if an IP phone put this call on hold, then the Audio Source configured on the IP phone would determine the MoH file/source and the MRGL of the gateway would determine which MoH server it actually came from. As a result, there's really no way that the IP phone placing the call on hold could specify a different audio source for an internal call (to another IP phone) because even if the other phone has a different MRGL (and therefore a different MoH server), the MoH audio source will be the same

  • Dynamically call different functions inside a function

    Hi there,
    I was wondering if it is possible to dynamically define the function that you want to call. Almost like passing the function name that i want to call as a parameter.
    I am calling a function, but do not want to hardcode the function I am calling. I have different functions that all return a boolean value, and i want to call all of them at different times through the same procedure/function.
    Is this possible???
    Thank you in advance!
    Tanja

    Or combine your functions to use function overloading, then you can use the same name...
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace package mypk as
      2    FUNCTION gen_function (param1 IN NUMBER, param2 IN NUMBER) RETURN BOOLEAN;
      3    FUNCTION gen_function (param1 IN VARCHAR2, param2 IN VARCHAR2) RETURN BOOLEAN;
      4    FUNCTION gen_function (param1 IN BOOLEAN, param2 IN BOOLEAN) RETURN BOOLEAN;
      5    PROCEDURE test;
      6* end;
    SQL> /
    Package created.
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace package body mypk as
      2    FUNCTION gen_function (param1 IN NUMBER, param2 IN NUMBER) RETURN BOOLEAN IS
      3    BEGIN
      4      RETURN (param1*2) = param2;
      5    END;
      6    FUNCTION gen_function (param1 IN VARCHAR2, param2 IN VARCHAR2) RETURN BOOLEAN IS
      7    BEGIN
      8      RETURN param1 = param2;
      9    END;
    10    FUNCTION gen_function (param1 IN BOOLEAN, param2 IN BOOLEAN) RETURN BOOLEAN IS
    11    BEGIN
    12      RETURN NOT(param1) = param2;
    13    END;
    14    PROCEDURE test IS
    15    BEGIN
    16      IF gen_function(1,2) THEN
    17        DBMS_OUTPUT.PUT_LINE('Test1: True');
    18      ELSE
    19        DBMS_OUTPUT.PUT_LINE('Test1: False');
    20      END IF;
    21      IF gen_function('Fred','John') THEN
    22        DBMS_OUTPUT.PUT_LINE('Test2: True');
    23      ELSE
    24        DBMS_OUTPUT.PUT_LINE('Test2: False');
    25      END IF;
    26      IF gen_function(TRUE,FALSE) THEN
    27        DBMS_OUTPUT.PUT_LINE('Test3: True');
    28      ELSE
    29        DBMS_OUTPUT.PUT_LINE('Test31: False');
    30      END IF;
    31    END;
    32* end;
    SQL> /
    Package body created.
    SQL> exec mypk.test;
    Test1: True
    Test2: False
    Test3: True
    PL/SQL procedure successfully completed.
    SQL>;)

  • Possible to meet with Customer Service Rep, rather than call?

    We have been overcharged on our bill (ATT Uverse) on so many occasions, and there are so many inaccuracies on the bills submitted, that we need to sit face-to-face with an intelligent customer service representative and go through all the bills for the last 5 months, in order to reach a comprehensive solution.  Calling customer service has not been helpful.  They seem to be looking at different charges and different bills than the ones in front of us, not to mention the incompetency of some of the reps with whom we have been dealing.  I am considering filing a complaint with the Better Business Bureau...however, I want to give it one last try, before filing as many complaints as possible.   Is there a way to meet (not call) with a customer service representative, who can go through the hard copy bills with us?  Would going to their corporate office help?

     
    Send a message to the  ATT Customer Care team.  This group has been known to get things done but give them two to three business days to respond.  Be sure to include a detailed message of your issues along with your name and account number.
    Watch the little blue envelope at the top of this page for a reply. 

Maybe you are looking for

  • Exporting data into text file

    Hi! I use this process in apex to export data from table into txt files with fixed length, so without any delimeter > declare v_file_name VARCHAR2 (2000) := 'test.txt'; id varchar2(9); worker varchar2(30); address varchar2(26); begin OWA_UTIL.mime_he

  • How to make the hours display in the payslip,

    For one wagetype the hours are displayed in payslip, the country grouping is US. how to resolve this? Thanks Karthik

  • I cannot acces the firefox update server on my mac

    When I get a message about a firefox (security) update , like today, I try to access the update server. I can see in the box that my Mac Workbook Pro is trying but even after minutes it still has not made connection. How can I solve this problem? I d

  • How to invoke create method within manage bean

    Hi experts, I'm developing Jdeveloper 11.1.2.2.0 I want to call 'create method' of certain veiwobject programmertically within a manage bean. Pls advice. Thanks. Charith

  • Emails suddenly went "invisible"

    Hi everyone, I have a folder called Personal with several  sub-folders within it. Each of these folders contains hundreds of email since I started my work until now. Starting this week, I had been experiencing strange problem with these folders, almo