How to startup a report in a popup after committing a form (solution)

How to startup a report in a popup window after succesfull submission of a form</p>
In Portal Applications you can create forms in which e.g. users can enter
order-entries. When a user submits his order, it's a good practice to show his
filled-in order-form, containing the delivery address, items, descriptions,
prices etc etc.</p>
In this solution the order-report is started up in a popup window after
succesfully completing the order-entry form.</p>
Once you've created the form and report, you have to take two extra steps
(the abbrevation mos represents MyOrderSystem and offcourse you should replace
that by the schema- and applicationname you use).</p>
1  Create a package to startup the report</p>
<font face="Courier">create package MOS.MOS_POPUP_ORDER 
as 
 procedure show ( order_id varchar2, backurl varchar2 );
end; </font></p>
<font face="Courier">create package body MOS.MOS_POPUP_ORDER 
as 
 procedure show ( order_id varchar2 , backurl varchar2 ) 
 is 
  l_url varchar2(2000);
begin 
 if order_id is not null 
 then
-- URL to startup the report. Surf to the Develop tab while managing the
-- portal-report and click on Show the call interface.
  l_url := 'http://www.mydomain.com/pls/portal30/' 
        &#0124; &#0124; 'MOS.MOS_ORDER_REP.show?'
        &#0124; &#0124;
'p_arg_names=_show_header&;p_arg_values=YES&;'
        &#0124; &#0124; 'p_arg_names=order_id&;p_arg_values=' 
        &#0124; &#0124; order_id;
-- Display the popup window and startup the report.
  htp.p('<SCRIPT> var MyWindow = window.open(&quot;'
        &#0124; &#0124; l_url
        &#0124; &#0124;
'&quot;,&quot;MyOrderWindow&quot;,&quot;toolbar=no,location=yes,directories=no,'
        &#0124; &#0124;
'status=no,menubar=yes,scrollbars=yes,resizable=yes,'
        &#0124; &#0124;
'height=400,width=600,left=150,top=150&quot;);'
        &#0124; &#0124;
'MyWindow.focus();</SCRIPT>');
-- Now you have two options:
-- 1. When you have your form in a Portal Page, you want to return to the page.
-- 2. When you have your form in a full window, you only have to return to that
--    window.
-- The coding is as followed:
-- 1. Copy this URL from the navigator pointing to the page.
  l_url := 'http://www.mydomain.com/pls/portal30/'
        &#0124; &#0124;
'!portal30.wwpob_page_util.redirect?'
        &#0124; &#0124;
'_pageid=123&;_mode=3&;_tabstring=&;_portletmode=&;_cache=1';
-- 2. Parameter backurl contains automatically the correct url to return
--    to the form in full browser mode.
  l_url := backurl;
-- Now return to the original window.
  htp.p('<SCRIPT>self.location.href=&quot;'
       &#0124; &#0124; l_url
       &#0124; &#0124; '&quot;</SCRIPT>');</font></p>
<font face="Courier"> end if;
end;</font></p>
2  Modify the form</p>
In the &quot;on succesful submission of a form&quot; part you enter this
PLSQL. Note that the order is identified by the column ORDER_ID and the CALL
procedure needs two parameters: the url for starting up the report and the
parameter name for the back-url. </p>
<font face="Courier">declare
 l_order_id integer;
begin
 l_order_id := p_session.get_value_as_NUMBER(
 p_block_name => 'DEFAULT',
 p_attribute_name => 'A_ORDER_ID');
 call('mos.mos_popup_order.show?order_id='&#0124; &#012 4;l_order_id,'backurl');
end;</font></p>
 </p>
null

Excellent tip! Thank you for that!
One question - where you have hardcoded the URL to navigate to the report and back again, I'd like to be able to do this without the hardcoding. The domain of my development environment is different from the domain of my production environment, and I don't want to have to remember to change the URL when I handover code. How could I do this?

Similar Messages

  • How to automatically startup a report in a new window after committing a form

    I have a form on a portal-page. The user enters values in the form and presses the INSERT button.
    After doing so, I want to show a report in a NEW window querying some values the user entered in the form.
    I was hoping to be able to use the After Processing Form PLSQL-section as follows:
    declare
    l_id integer;
    l_url varchar2(2000);
    begin
    l_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID');
    l_url := 'APP_OWNER.MY_REPORT.show?'
    &#0124; &#0124; 'p_arg_names=id&p_arg_values='
    &#0124; &#0124; to_char(l_id);
    htp.p('<a href="' &#0124; &#0124; l_url &#0124; &#0124;' target="_blank"></a>');
    end;
    But I see only "Inserted one record" and no report is started.
    I've tried to use the after-form-processing part, but it seems I can only startup reports in the same window with GO and CALL.
    Also the ID-variable can not be read from that part.
    A second solution I tried was to put this PLSQL in the PLSQL-handler-section of the button, but for some reason all double quotes " are automatically changed into single quotes ' causing several Java-script errors. Perhaps a bug?
    Does anyone have a solution for this functionality?
    Thanks,
    Jan Willem Vermeer

    Hi,
    There are 2 scenarios I can think of:
    1. The value of ORD_ID is not known until the insert processing completed.
    2. The value of ORD_ID is known and can be retrieved without a roundtrip to the server.
    The 2nd scenario is being simpliest and could be done from Javascript w/out any server involvement, all you need is the getField() function (or any other function to get the field value) described here : http://technet.oracle.com:89/ubb/Forum81/HTML/000073.html
    Javascript piece goes something like this:
    myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=" + getField(this.form,"ORD_ID"),
    "myWindowName","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
    The first scenario is more complicated.
    During the "accept cycle", when your PLSQL insert/update etc. event handlers are
    fired all the processing output will happen into the current window.
    Neither owa_util.redirect_url() nor wwa_app_module.set_target() will help.
    Both of them will do a redirect only in the current browser window,
    actually, wwa_app_module.set_target() internally calls owa_util.redirect_url().
    What you need is:
    1. Get the field value, and either: 1. store it somewhere in a package variable,
    or: 2. do this all at once in "before displaying the page"
    2. After the form processing is completed (but not in the onSuccess!!! code),
    open a new browser window w/Javascript specifying the same url you were passing to
    set_target().
    Here is my example, place following code into "before displaying the page" additional PLSQL block:
    declare
    l_id integer;
    begin
    l_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ORD_ID');
    if l_id is not null then
    htp.p('{SCRIPT} var myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=' &#0124; &#0124; l_id &#0124; &#0124; '",
    "mySubWindow","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
    myWindow.focus();
    {SCRIPT}');
    end if;
    end;
    To do: you will need to add more logic to decide when to open a new window,
    whatever is appropriate for your application,
    rather than just 'is null' check I did.
    Hope this will help.
    Thanks,
    Dmitry

  • How to print a report which is consist a paper parameter form

    Hi !
    I have created a report file with paper parameter form and also create a form. Now , when I try to run this form it display
    REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    After click on submit the query button window dispaly a message run successfuly,But it does not print the report's data, it prints only paper parameter contents.
    i.e. REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    I used the following codes
    PROCEDURE RUN_REPORT1(vc_reportoj Varchar2, vc_reportserver varchar2, vc_runformat varchar2,report_otherparam VARCHAR2, pvar varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Reportrequest */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    vfilename varchar2(255);
    vport varchar2(50);
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportoj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,name_in(':parameter.path') ||'\'||NAME_IN('CTL_REPORTS.REPORT_NAME'));
         if pvar = 'FILE' then
              vfilename := CLIENT_GET_FILE_NAME('c:\',null, 'All Files (*.*)|*.*|',SAVE_FILE);
              if vfilename IS NOT NULL THEN     
              SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, FILE);
                   SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESNAME, vfilename||'.rtf');
                   SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,vc_reportserver);
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new ='') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old ='' and c_new ='') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    end loop;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := 'http://127.0.0.1:8889/reports/rwservlet'||'?_hidden_server='||vc_reportserver|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'pfaction='||hidden_action||''||report_otherparam);
    -- run Reports
                   vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id);
                   vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT ('http://127.0.0.1:8889/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||'&_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    ELSE
         RETURN;
    end if;
    This is the part of the procedure.

    See Viewing Pages in Printer Friendly Mode and Selecting a Printer Friendly Template for an Application
    Thanks,
    Vikram

  • How to create  a report in business explorer?

    Hi All,
        how to create a report in business explorer after creating the information spaces   then how to operate the exploration view sets please if anyone knows can you explain me step by step...
    Thanks...

    what exactly you want to do tell me
    1.in business explorer
    or you want to create a webi
    or you want to see the data in business explorer

  • How to don't remove global temp table after package complete.

    how to don't remove global temp table after package complete.

    any solution ?
    see this example
    http://sqlage.blogspot.in/2014/04/ssis-how-to-create-use-temp-table-in.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • Drill down report is showing popup even though it's disable in column properties

    Hello,
    I am facing an functionality issue where I have crated Summary to drill down report. Summary is chart and drill down is table view and I am using OBIEE Action link  here.
    Now I have disabled the Popup in column properties so when user click the bar on the graph they will directly navigate to detail report. But strangely after disabling the Popup, when i click on bar the drilldown report is coming as popup link.
    does anyone has any idea how to handle this issue??

    It would seem to be a issue with either the hardware of the printer or the replacement cartridge. If it is the cartridge, it should be covered under warranty (if it is HP genuine) since you just purchased it. At this time I think that your best move would be to contact HP's Technical Support to see about further options for you.
    The only other option would be to try another new replacement cartridge to rule in or out the cartridge being at fault.
    If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here.
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • How to create a report based on a DataSet programatically

    I'm working on a CR 2008 Add-in.
    Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
    I have a dataset in memory, and want to create a new report in cr2008.
    The new report is a blank report (with no connection information).
    If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
    The report has no tables.
    So I must programmatically define the table definition in my blank report.
    I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
    internal class NewReportWorker : Worker
          public NewReportWorker(string reportFileName)
             : base(reportFileName)
    public override void Process()
             DatabaseController databaseController = ClientDoc.DatabaseController;
             Table table = new Table();
             string tabelName = "Table140";
             table.Name = tabelName;
             table.Alias = tabelName;
             table.QualifiedName = tabelName;
             table.Description = tabelName;
             var fields = new Fields();
             var dbField = new DBField();
             var fieldName = "ID";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             dbField = new DBField();
             fieldName = "IDLEGITIMATIEBEWIJS";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             // More code for more tables to add.
             table.DataFields = fields;
             //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
             //   new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
             //info.Attributes.Add("Databse DLL", "xxx.dll");
             //table.ConnectionInfo = info;
             // Here an error occurs.
             databaseController.AddTable(table, null);
             ReportDoc.SetDataSource( [MyFilledDataSet] );
             //object path = @"d:\logfiles\";
             //ClientDoc.SaveAs("test.rpt", ref path, 0);
    The object ClientDoc referes to a ISCDReportClientDocument in a base class:
       internal abstract class Worker
          private ReportDocument _ReportDoc;
          private ISCDReportClientDocument _ClientDoc;
          private string _ReportFileName;
          public Worker(string reportFileName)
             _ReportFileName = reportFileName;
             _ReportDoc = new ReportDocument();
             // Load the report from file path passed by the designer.
             _ReportDoc.Load(reportFileName);
             // Create a RAS Document through In-Proc RAS through the RPTDoc.
             _ClientDoc = _ReportDoc.ReportClientDocument;
          public string ReportFileName
             get
                return _ReportFileName;
          public ReportDocument ReportDoc
             get
                return _ReportDoc;
          public ISCDReportClientDocument ClientDoc
             get
                return _ClientDoc;
    But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
    What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?

    Hi,
    Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
    //=========================================================================
    +           * the following two string values can be modified to reflect your system+
    +          ************************************************************************************************/+
    +          string mdb_path = "C:
    program files
    crystal decisions
    crystal reports 9
    samples
    en
    databases
    xtreme.mdb";    // path to xtreme.mdb file+
    +          string xsd_path = "C:
    Crystal
    rasnet
    ras9_csharp_win_datasetreport
    customer.xsd";  // path to customer schema file+
    +          // Dataset+
    +          OleDbConnection m_connection;                         // ado.net connection+
    +          OleDbDataAdapter m_adapter;                              // ado.net adapter+
    +          System.Data.DataSet m_dataset;                         // ado.net dataset+
    +          // CR variables+
    +          ReportClientDocument m_crReportDocument;          // report client document+
    +          Field m_crFieldCustomer;+
    +          Field m_crFieldCountry;+
    +          void CreateData()+
    +          {+
    +               // Create OLEDB connection+
    +               m_connection = new OleDbConnection();+
    +               m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
    +               // Create Data Adapter+
    +               m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
    +               // create dataset and fill+
    +               m_dataset = new System.Data.DataSet();+
    +               m_adapter.Fill(m_dataset, "Customer");+
    +               // create a schema file+
    +               m_dataset.WriteXmlSchema(xsd_path);+
    +          }+
    +          // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
    +          // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
    +          void AddDataSourceUsingDataSet(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               // add a datasource+
    +               DataSetConverter.AddDataSource(rcDoc, data);+
    +          }+
    +          // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
    +          // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
    +          // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
    +          // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
    +          // above.+
    +          void AddDataSourceUsingSchemaFile(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               string schema_file_name,          // xml schema file location+
    +               string table_name,                    // table to be added+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               PropertyBag crLogonInfo;               // logon info+
    +               PropertyBag crAttributes;               // logon attributes+
    +               ConnectionInfo crConnectionInfo;     // connection info+
    +               CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
    +               // database table+
    +               // create logon property+
    +               crLogonInfo = new PropertyBag();+
    +               crLogonInfo["XML File Path"] = schema_file_name;+
    +               // create logon attributes+
    +               crAttributes = new PropertyBag();+
    +               crAttributes["Database DLL"] = "crdb_adoplus.dll";+
    +               crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
    +               crAttributes["QE_ServerDescription"] = "NewDataSet";+
    +               crAttributes["QE_SQLDB"] = true;+
    +               crAttributes["QE_LogonProperties"] = crLogonInfo;+
    +               // create connection info+
    +               crConnectionInfo = new ConnectionInfo();+
    +               crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
    +               crConnectionInfo.Attributes = crAttributes;+
    +               // create a table+
    +               crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
    +               crTable.ConnectionInfo = crConnectionInfo;+
    +               crTable.Name = table_name;+
    +               crTable.Alias = table_name;+
    +               // add a table+
    +               rcDoc.DatabaseController.AddTable(crTable, null);+
    +               // pass dataset+
    +               rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
    +          }+
    +          void CreateReport()+
    +          {+
    +               int iField;+
    +               // create ado.net dataset+
    +               CreateData();+
    +               // create report client document+
    +               m_crReportDocument = new ReportClientDocument();+
    +               m_crReportDocument.ReportAppServer = "127.0.0.1";+
    +               // new report document+
    +               m_crReportDocument.New();+
    +               // add a datasource using a schema file+
    +               // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
    +               // for more information, refer to comments on these methods.+
    +               AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
    +                              +
    +               // get Customer Name and Country fields+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               // add Customer Name and Country fields+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
    +               // view report+
    +               crystalReportViewer1.ReportSource = m_crReportDocument;+
    +          }+
    +          public Form1()+
    +          {+
    +               //+
    +               // Required for Windows Form Designer support+
    +               //+
    +               InitializeComponent();+
    +               // Create Report+
    +               CreateReport();+
    +               //+
    +               // TODO: Add any constructor code after InitializeComponent call+
    +               //+
    +          }+//=========================================================================

  • How to print a report in half of the A4 page

    Hi,
    Please help me, how to print a report in the half page of the A4 size paper.
    Thanks,

    Hi
    If you are using the command MEW-PAGE PRINT ON
    then we can give this layout options
    like
    NEW-PAGE PRINT ON
    DESTINATION <printer name>
    immediately 'X'
    KEEP IN SPOOL 'X'
    LAYOUT 'X_65_132'  (OR X_65_255)
    RECEIVER SY-UNAME
    NO-DISPLAY.
    OTHERWISE WHEN YOU SELECT THE PRINTER
    IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
    you will have this facility to select LANGSCAPE/PORTRAIT
    use that and print
    Reward points for useful Answers
    Regards
    Anji

  • How can I rename buttons in dialog popup ?

    Hello.
    I want rename buttons "OK", "Cancel" with my names in popups.
    I create new values in domen WDR_POPUP_BUTTON_KIND
    Next enhance interface IF_WD_WINDOW with new attributes:
    CO_BUTTON_CP type WDR_POPUP_BUTTON_KIND
    But i have problem in CL_WDR_INTERNAL_WINDOW->IF_WD_WINDOW~SET_BUTTON_KIND:
      case me->buttons-button_kind.
        when co_buttons_abortretryignore.
          wa_button-button      = co_button_abort.
          wa_button-button_text = cl_wdr_texts=>get_text( '201' ).
          wa_button-tooltip     = cl_wdr_texts=>get_text( '201' ).
          wa_button-is_enabled  = abap_true.
    This code show only predefined type of buttons can use. 
    How can I rename buttons in dialog popup ?

    When you subscribe to button event  you can rename the button
    * Popup
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
        window_name          = 'W_POPUP'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        button_kind          = if_wd_window=>co_buttons_ok
        message_type         = if_wd_window=>co_msg_type_none
        default_button       = if_wd_window=>co_button_ok
      DATA:  l_api TYPE REF TO if_wd_view_controller.
      l_api = wd_this->wd_get_api( ).
    " subscribe to button event
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_ok
                   BUTTON_TEXT       = u2018Approveu2019 " renaming the button text
                   action_name       = 'ON_OK_POPUP'
                   action_view       = l_api
                   is_default_button = abap_true ).
      lo_window->open( ).
    Radhika

  • How to read device report for HP Deskjet 1510

    Hi HP,
    I can see from the software provided with this printer there is this option to print the device reports.
    Please assist on how to read this report because it consist of unknown coding and stuff. 
    I would appreciate if your side can help me on this coz I assume that we can track our usage through this report.
    If this is not the purpose, perhaps you may suggest any other way to get an understandable usage reports? 
    Regards,
    Nadiya
    This question was solved.
    View Solution.

    Hello Nadiya,
    Welcome to the forums
    I understand you are looking for a usage report. The printer will print a test page and you can see the page count on that page, along with the printer information, such as your serial number, etc. If there is anything else you may mean by "usage" please let me know and I will do my best to help.
    Click this link: Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems
    In the guide, look under "Solution six: Print and evaluate a test page and troubleshoot defects" and print a test page.
    Take care,
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to create a report of users in ucm about their roles and permission

    Hi All ,
    I need to create a report and it should contain all the users in ucm as well as their roles and permissions. Basically the report would be for the admin who can see all the users in a single report and can know about the roles and access of each and every users.
    How to create such report ?? I have tried from web layuot editor but the default report template i.e stdUserReport in user datasource does not contain more than three fields..Is there any method to get such kind of report???
    Please suggest!!

    There was an example component to demonstrate this kind of function. Under Stellent in version 7.5
    I do not know if they hand it out anymore but it is not on the standard samples page for Oracle. You may want to open a Support SR to ask for it. It should still be around in their servers if they can get permission to hand it out as a sample again.
    Sample CustomReports component to demonstrate how to create customized reports
    CustomReportsBundle.zip
    Date:     October 30, 2006
    Sample Version:     version=2006_10_20 (build 1)
    Product and Version:     Content Server
    Sample Status:     This is a Stellent Sample. Stellent Samples are free and include non-supported add-ons, utilities, tutorials or programming examples. It may require additional configuration or security auditing for maximum effect. It is not supported by Stellent without a consulting engagement.

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • How to register custom report under Custom Development Application

    Hi 2 all
    How to register custom report under the Custom Development application in R12 vision DB, and also confirm location/folder of Custom Development application in R12.
    Thanks
    Zulqarnain

    Hi,
    You may or may not need to "register" the workflow - it depends on the changes that you made and which Item Type you modified. Some applications are essentially hard-coded to use a specific item type and process, some hard-coded to use an item type but you can configure the process to use, and some allow you to specify which item type and which process to use.
    Without knowing exactly what you have done, though, there is no specific advice that anyone can give you here on what you need to do, apart from to ensure that you have saved the new definition to the database.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to get these reports in SAP

    How to retrieve this report in SAP. Are these available as standard or need custom development.
    1. Vendor Delivery Performance Report- Showing Goods Receipt Qty (from Inbound Delivery or Direct GR through MIGO) Vs. Po Qty
    2. Vendor Delivery Performance Report- Showing Goods Receipt Delivery Date (from Inbound Delivery or Direct GR through MIGO) Vs. P) Delivery Date
    Both these above report should display vendor #, PO #, Line Item #, Material, Panned Delivery Date and Qty, Actual Delivery Date and Qty
    3. For Outbound STO Process- Displaying the incomplete pick qty. Display only the Open Qty for Open STOs with Partial Deliveries

    Hi,
    1. Vendor Delivery Performance Report- Showing Goods Receipt Qty (from Inbound Delivery or Direct GR through MIGO) Vs. Po Qty
    2. Vendor Delivery Performance Report- Showing Goods Receipt Delivery Date (from Inbound Delivery or Direct GR through MIGO) Vs. P) Delivery Date
    Ans: - Use ME80FN - General Analysis (Here in Output Screen, select option "PO History" by clicking on the button at extreme right)
    3. For Outbound STO Process- Displaying the incomplete pick qty. Display only the Open Qty for Open STOs with Partial Deliveries
    Ans: - Refer VL06O - Outbound Delivery Monitor
    here click on "List of Outbound Deliveries" button
    here on selection screen, enter Total gds mvt stat. as "B" i.e. Partially processed and Delivery Type "N" and execute the report.

Maybe you are looking for

  • Cannot select multiple messages in a sequence diagram

    In sequence diagrams, deleting multiple messages is tedious because multiple messages cannot be selected by using a selection rectangle. 1) If the rectangle contains a single message, its object is also highlighted. So when multiple messages are sele

  • All my programs open when I power on how do I stop?

    When I power on my MacBook Pro all of my programs open, ie photoshop, word, excel, email, calendar etc. somewhere I have selected some setting but can't find where.

  • Modal JDialog messing parent layout

    Hello! Why does a modal JDialog mess up the parent frame layout? Actually only one panel inside it and a few components but still. When setVisible(true) is called on the dialog, the parent layout gets screwed. And when the dialog is closed it stays s

  • Playback is not working!

    One of my movies (28 mins) suddenly stopped working properly. It was working fine before, but now I can't playback at all. When I press the > button, I get a couple of frames of playback and then the whole computer 'hangs' with the little coloured ba

  • Linking to extermal video server

    I am running Sun ONE Web Server 6.1SP6 B05/07/2006 12:33 on a Solaris 10 box. I just moved all the web data from one server to another. I am running a video server (Helix) on a Solaris 9 box. When I try to play a REAL video from a web page on the new