CRM5.2 UI-Call a dynamic URL on button click

Hi all, 
           My requirement is to call a dynamic url on the click of a button in the overview page. I have added a custom button in  the method  IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS , and the related code in do_handle_event.I have created a custom method for the button event. I have enhanced a custom controller and created an attribute.In the custom method created for the button event, I have written the code for retrieving the parameters to be passed to the url.
In the layout of the view associated with the display view , I have written the following code for calling the URL in a new window.
<%
DATA: lr_cuco_EMA TYPE REF TO ZL_BP_CONT_BPCONT_IMPL,
      lv_url TYPE string,
      lv_url1 type string,
      lv_count type i.
  lr_cuco_EMA ?= controller->get_custom_controller( 'ZBP_CONT/BPCONT' ).
  check lr_cuco_EMA is bound.
  if lr_cuco_EMA->gv_VALUE is not initial.
  if lr_cuco_EMA->gv_COUNT IS NOT INITIAL.
  clear lr_cuco_EMA->gv_COUNT.
  endif.
  LV_URL = lr_cuco_EMA->gv_VALUE.
  Concatenate 'http:/' LV_URL  into LV_URL1.
  Concatenate '"http:/' LV_URL '"' into LV_URL.
    lv_count = lr_cuco_EMA->gv_COUNT mod '2'.
    if lv_count Ne 0.
  lv_url = lv_url1.
endif.
  %>
     <scrpt language="Javascript">
        window.open(<%= lv_url%>).focus();
      </script>
   <%
         lr_cuco_EMA->gv_COUNT = lr_cuco_EMA->gv_COUNT + 1.
         clear lr_cuco_EMA->gv_value.
         clear lv_count.
         clear lv_url.
         clear lv_url1.
         ENDIF.
%>
But here my URl is getting called alternate times.If I do not write the code  by using the variable GV_COUNT the url is getting called only the first time of the button click  and to call the URL again you need to navigate back to the search page and again back to the overview page and click on the button.
Can anyone help me regarding this? I want the URL to be called in a new page on every button click.
Thanks in Advance,
Chandana

Hi Nisha,
The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
function fn_button()
           htmlbSL(this,2,'b_row_selection:onInputProcessing()');
           window.open("new_page",target="BLANK");
Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
Try this out and let us know if it works for you.
Regards,
Saurabh

Similar Messages

  • How to call a dynamic URL on 'button press' event, in MVC-based BSP

    Hi,
    My requirement is as below:
    On selecting a row in table view, and pressing a button, I need to open a browser.
    The Browser URL depends on the row selected.
    The key field from table view, is added at the end of the URL string.
    Shortly, I can say that, I am getting a value on row selection & want to pass it to button event.
    In Views Section, there are 2 tags- (1)table view & (2)button.
    Right now, I have put the code for getting the key field, in DO_HANDLE_DATA method.
    In Button's OnClientClick method, I have called the Javascript to open the browser.
    If I now write the code to concatenate the key field value to form the dynamic URL in 'OnClick' method,
    it will be called only after the browser is opened.
    (as OnClick event is executed only after OnClientClick event is executed)
    Could anyone please tell me what event (and in which tag) can be used to solve this.
    Is there any event which is triggered, as soon as the row is selected, &  before the button press event is triggered ?
    Would really appreciate responses made to this query.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How to call web service on a button click in Web UI

    Hi Experts,
    I have a requirement to call/consume external web service on a button click in CRM web UI. Can someone help me with the code sample for invoking web service from crm web ui?
    Thanks in advance.
    Cheers,
    Sumit Mittal

    Consuming external web service directly without xi system in between.
    u2022     SE80
    u2022     Create Enterprise Service-> Choose object type as u201CService Consumeru201D
    u2022     Select URL HTTP destination in the next step
    u2022     Give the WSDL url in the url point
    u2022     Give any package name or store it in the local object.
    u2022     Corresponding proxies and data types will be generated inside the enterprise service tag
    Code sample for invoking the service via report.
    u2022     Create an object of the client proxy type here itu2019s io_clientproxy.
    u2022     Declare input and output parameters as per the structure of the service input/output parameters.
    u2022     Fill in input parameters what your service expect and call the object methods for relevant task.
    REPORT  ZWEBSERVICE_CREATNUPDATE.
    DATA: io_clientproxy TYPE REF TO zzco_user_data_service .
    DATA: output_crnup TYPE zzcreate_or_update_user_data1,
          input_crnup TYPE zzcreate_or_update_user_data_1.
    DATA :
           ls_param_crnup_in TYPE zzcreate_or_update_user_data, " CU input
           ls_param_crnup TYPE zzcreate_or_update_user_data_r, "CU Response
           ls_return_crnup  TYPE zzcrm_user, " CU Response
           ls_arg0 TYPE zzcrm_user.
    ls_arg0-first_name = 'shashank'.
    ls_arg0-last_name = 'testw/ouserid'.
    ls_arg0-org_name = 'Test_Org'.
    "ls_arg0-USER_ID = '369713'.
    ls_param_crnup_in-arg0 = ls_arg0.
    input_crnup-parameters = ls_param_crnup_in.
    TRY.
        CREATE OBJECT io_clientproxy
          EXPORTING
            logical_port_name = 'LP4'.
      CATCH cx_ai_system_fault .
    ENDTRY.
    TRY.
        CALL METHOD io_clientproxy->create_or_update_user_data
          EXPORTING
            input  = input_crnup
          IMPORTING
            output = output_crnup.
      CATCH cx_ai_system_fault .
      CATCH cx_ai_application_fault .
    ENDTRY.
    ls_param_crnup = output_crnup-parameters.
    ls_return_crnup = ls_param_crnup-return.
    IF ls_return_crnup IS INITIAL.
      WRITE : 'User creation failed'.
    ELSE.
      WRITE :  'Process Status : ',ls_return_crnup-process_status,
               /'User Id : ',ls_return_crnup-user_id,
                       /'First Name :',ls_return_crnup-first_name,
               /'Last Name :',ls_return_crnup-last_name,
               /'Org Name : ',ls_return_crnup-org_name.
    ENDIF.

  • Dynamic action on button click

    Hi:
    I need some help.
    I am trying to create a dynamic action on the click of a specific button.
    I have set the Event to 'click" and the Selection Type to "DOM Object", but I do not know how to reference the button. I am using a standard template button and #BUTTON_ATTRIBUTES# is not included in the template - I am not sure how to include it in order to be able to specify an id for the button.
    Can someone give me some guidance on the steps I msut take to implement a dynamic action on the click of a button.
    Thanks.
    Bruce

    Bruce,
    edit your button template and add #BUTTON_ATTRIBUTES# to the button-tag of your button
    e.g.
    <button value="#LABEL#" onclick="#LINK#" class="button-gray" type="button" #BUTTON_ATTRIBUTES#>
    <span>#LABEL#</span>
    </button>
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Trouble with opening url on button click

    I have a project that has a button that needs to go to a url
    when i click it and it doesnt. I read the topic posted in the forum
    with the same problem...and i had already tried that....it still
    doesnt work...it work well when i preview it but when i publish
    it...it doesnt work..the url takes to a page containing a pdf
    file...the project is about 10 min long and has a size of 97MB...i
    built on a mac with a windows virtual machine...i guess that should
    not be a problem.

    Hi ksugra and welcome to our community
    The fact you built the project on a Mac running a Windows
    Virtual Machine should not factor in. From Captivate's view, it was
    running in Windows.
    What happens when you click the link? Nothing, or does a
    browser window open and attempt to display the contents but it's
    blank?
    I know you said it doesn't work when published. But where are
    you running the published file from? Your local PC or from a web
    site or a network drive?
    And lastly, you said you “read the topic posted in the
    forum with the same problem...and i had already tried that....it
    still doesnt work...”. Without a link to see which of the
    many “other topics“ you may be referring to here, it's
    impossible to know what was attempted.
    Cheers... Rick

  • HOW TO CALL APPROVAL WORK FLOW ON BUTTON CLICK EVENT OF VISUAL WEB PART?

    Hiall,
    I created an OOB an approval work flow I want to start that approval work flow through visual web  part button click event
    In work flow Settings I selected to manually start .Is this possible ? if possible please guide me how to do this
    Thanking you,
    Arun  kumar

    Hi,
    If you have an instance of SPListItem, and know the workflow association name, you can start it. First you need to find workflow assocation instance and tell SPSite.SPWorkflowManager to start your workflow.
    See this for more information:
    http://blog.mmasood.com/2012/06/programatically-start-workflow.html
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • Calling a Dynamic URL in a BSP

    Hi all,
    We are calling a BW Web Report from a BSP application . Presently we have hardcoded the BW Web Report but when we move from Devlopement to Quality and subsequently to Production we would need to pass the respective URL’s.
    One way of achieving the above, is to write Case statements specific to Development, Quality and Production System -IDs, Is there any other way in which we pass the  URL’s dynamically to the BSP.
    Thanx in advance.

    to dynamically construct BW web report url you can do the following
    call the following FM
    CALL FUNCTION 'TH_GET_VIRT_HOST_DATA'
       EXPORTING
         protocol             = 1 " 1 for http 2 for https
         virt_idx             = 0
      LOCAL                = 1
      IMPORTING
        hostname             = server
        port                 = port
      EXCEPTIONS
        not_found            = 1
        internal_error       = 2
        OTHERS               = 3 .
    now you can use something like below.
    concatenate `http://` server `:` port
    `/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&INFOCUBE=<cubename>&QUERY=<queryname>` into bwurl.
    Hope this is clear. If not do get back.
    please note that if you are using webdispatcher then you may have to follow a different approach.
    Regards
    Raja

  • Insufficient privileges error while calling the seeded page on button click

    hi all
    I am working on Customers Online module.
    I have added a normal button on a standard page through personalization .
    The destination for the button is set to call the seeded Create organization page
    destination="OA.jsp?OAFunc=XXIIMC_NG_ORG_CREATE&amp;OAHP=IMC_NG_MAIN_MENU&amp;OASF=IMC_NG_ORG_CREATE"
    System Admin --> functions --> XXIIMC_NG_ORG_CREATE is a copy of standard function IMC_NG_ORG_CREATE.
    It calls the page "OA.jsp?page=/oracle/apps/imc/ocong/party/organization/webui/ImcCreateOrg&HzPuiAddressEvent=CREATE"
    When i click on the button i get the error *"You have insufficient privileges for the current operation. Please contact your System Administrator"*
    1. The profiles *"FND Function Validation Level"* and *"FND Validation Level"* are set to NONE
    2. Bounced apache also.
    3. The responsibility Customers Online Superuser is assigned to my user.
    We are doing R12 upgrade. The similar functionality is working fine in 11i.
    Please let me know what could be the reason of this error and how to correct it.

    Hi,
    Grant is not given to the create organization page. Ask your DBA for this issue.
    Thanks,
    Kumar

  • How to Redirect to a URL on Button Click

    Hi all,
    I am new to Apex and have a following Requirement
    On the page I have a Field P3_CASE_ID and a Button P3_SUBMIT.
    When I click the Submit Button, It should Open a new window
    https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=
    Above String should be Concatneted with value from P3_CASE_ID.
    Say if I enter P3_CASE_ID as 123456 then a new window should be opened with following URL
    https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=123456
    How to do it...?
    I tried following in Optional URL Redirect for the button.
    javascript:popupURL('
    https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=&P3_CASE_ID.');
    But the P3_CASE_ID is not appended to the URL.
    Thanks and Regards
    Kesav
    Message was edited by:
    user619016

    Here is some code I think you will find helpful.
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html

  • Call Report output via a Button click

    Hello,
    I am using a button placed on a SCREEN.
    WHen i click on the button i am doing some process using on user command.
    I want the output on a report (as a list output) based ob my write statments
    I tried with  leave to list processing , set screen 0..etc stuff but thats not calling my report output.
    Can any one suggest?
    Thanks
    Ricky

    hmmm... sounds to me like you're looking for something like
    * Print report
      NEW-PAGE PRINT ON NEW-SECTION PARAMETERS Z_L_PRI_PARAMS NO DIALOG.
      FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
      LOOP AT Z_T_ITAB INTO Z_L_ITAB.
        WRITE: / SY-VLINE(01), Z_L_ITAB-EBELN,
                 SY-VLINE(01), Z_L_ITAB-EBELP,
                 SY-VLINE(01), Z_L_ITAB-AEDAT,
                 SY-VLINE(01), Z_L_ITAB-OID_EXTBOL.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      COMMIT WORK AND WAIT.
    Lookup NEW-PAGE

  • Phase event InitMethod() is calling 4 times on Back button click???

    Hi Everyone,
    My Jdev version is 11.1.2.3.0.
    I have developed one ADF application with 3 pages.
    First page has a button to move to second and third pages. In the same way second and third pages have the Back buttons to first page. Everything is working very fine.
    But the first page has phase event InitMethod which executes when the page loads. At the starting of the Initmethod i kept the some code to return back if any event takes place that is also working fine.
    But When i press Back button in second or third page then the InitMethod of First page is being called for four times.
    What can be the reason?
    How could i control this behaviour?
    Please let me know....
    Thanks...............

    Hi Jovito,
    I also think the same that it's not possible. Now my issue is how to get my requirement.
    FYI..
    To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
    Inspection characterstics screen we don't have any FM or API to do the same.
    So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
    Please advice if there is any suggestion.

  • Call another form with a button click (Oracle 10g)

    I have two forms. (One called Main Form and 2nd Called Notification summary)
    I want to call Main Form from notification summary. I have a unique column which is both in Main form and notification summary.
    I want to pass that unique column from notification summary to main form so that specific detail open in main form.
    Please suggest solution.
    Edited by: 871590 on Jul 11, 2011 4:29 PM

    Starting with a question: why do you need an own (main) form, if you need to call that form in another context, it's fine. If you will use this functionality only once, consider a second canvas (content or stacked, whatever fits better) or a second window within your form (notification).
    If its only on value you need to pass use a data parameter or a global variable; the first would be preferable to me.
    If there are more values in your column you may use global record group or (preferable to me) some kind of "temporary" table. It may be a global temporary table as provided by the oracle db or you are doing this with a normal permanent table. For the latter you will have slight higher amount of programming for organisational purposes.

  • How to call elem. Search help on Button click event in WD appilcation

    Hello All,
    i have requirement to call elem. search help on button click event in WD application. currently i am calling FM  F4IF_START_VALUE_REQUEST but getting the short dump as below,
    The following error text was processed in the system X31 : Screen output without connection to user.
    The error occurred on the application server saps_X31_31 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSDH4
    Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
    Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
    Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
    Form: F4PROZ_LOOP of program SAPLSDSD
    Form: F4PROZ of program SAPLSDSD
    Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
    Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    is there any way to achieve the required behaviour.
    please let me know.
    Regards,
    Chandra

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • Dynamic actions on button and dynamic column name

    Hi!ynam
    I want to create a dynamic action on button click in my tabular form.
    I have a select list with values of my column names (P7_X_COLUMN) and a text field where users input values for update (P7_X_UVALUE).
    My idea is that when they click the button, they update selected column to desired value in all rows.
    However, I get the following error:
    ORA-06550: line 5, column 5: PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored (Go to error)
    It seems to me that I have not referenced the column name correctly, I thought it was the same as referencing values. How do I do that?
    This is my code:
    begin
    update "#OWNER#"."IZV_SLOG_DET"
    set :P7_X_COLUMN=:P7_X_UVALUE;
    end;
    Regards,
    Ivan

    I got it to work, but the query is too big. Can anyone help me with how to get it to work?
    I tried breaking it into more varchar2 strings, but i always get the same error:
    Error processing row.
    ORA-01461: can bind a LONG value only for insert into a LONG column
    declare  
    l_table_name varchar2(30) := 'IZV_SLOG_DET_POM'; 
    l_sql_stmt varchar2(32762);
    begin
    l_sql_stmt := 'update ' || l_table_name || ' set ' || :P7_X_COLUMN || ' =''' || :P7_X_UVALUE|| '''' ||
    'where'||
    'nvl(MSR_PRD_ID,1) = nvl(nvl(''' || :P7_X_MSR_PRD_ID || '''' || ',MSR_PRD_ID),1) and' ||
    'nvl(SRC_STM_ID,1) = nvl(nvl(''' || :P7_X_SRC_STM_ID || '''' || ',SRC_STM_ID),1) and' ||
    'nvl(OZNAKA_KOMITENTA,1) = nvl(nvl(''' || :P7_X_OZNAKA_KOMITENTA || '''' || ',OZNAKA_KOMITENTA),1) and' ||
    'nvl(RSP,1) = nvl(nvl(''' || :P7_X_RSP || '''' || ',RSP),1) and' ||
    'nvl(OZNAKA_RETKA,1) = nvl(nvl(''' || :P7_X_OZNAKA_RETKA || '''' || ',OZNAKA_RETKA),1) and' ||
    'nvl(OZNAKA_IZVJESCA,1) = nvl(nvl(''' || :P7_X_OZNAKA_IZVJESCA || '''' || ',OZNAKA_IZVJESCA),1) and' ||
    'nvl(MBR_KOMITENTA,1) = nvl(nvl(''' || :P7_X_MBR_KOMITENTA || '''' || ',MBR_KOMITENTA),1) and' ||
    'nvl(KOMITENT_NEREZ,1) = nvl(nvl(''' || :P7_X_KOMITENT_NEREZ || '''' || ',KOMITENT_NEREZ),1) and' ||
    'nvl(ZUPANIJA,1) = nvl(nvl(''' || :P7_X_ZUPANIJA || '''' || ',ZUPANIJA),1) and' ||
    'nvl(DRZAVA,1) = nvl(nvl(''' || :P7_X_DRZAVA || '''' || ',DRZAVA),1) and' ||
    'nvl(SEKTOR_NEREZIDENTA,1) = nvl(nvl(''' || :P7_X_SEKTOR_NEREZIDENTA || '''' || ',SEKTOR_NEREZIDENTA),1) and' ||
    'nvl(VRSTA_POVEZANOSTI,1) = nvl(nvl(''' || :P7_X_VRSTA_POVEZANOSTI || '''' || ',VRSTA_POVEZANOSTI),1) and' ||
    'nvl(INSTRUMENT,1) = nvl(nvl(''' || :P7_X_INSTRUMENT || '''' || ',INSTRUMENT),1) and' ||
    'nvl(VALUTA,1) = nvl(nvl(''' || :P7_X_VALUTA || '''' || ',VALUTA),1) and' ||
    'nvl(OTKAZNI_ROK,1) = nvl(nvl(''' || :P7_X_OTKAZNI_ROK || '''' || ',OTKAZNI_ROK),1) and' ||
    'nvl(IZVORNO_DOSPIJECE,1) = nvl(nvl(''' || :P7_X_IZVORNO_DOSPIJECE || '''' || ',IZVORNO_DOSPIJECE),1) and' ||
    'nvl(VRSTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VRSTA_INDEKSACIJE || '''' || ',VRSTA_INDEKSACIJE),1) and' ||
    'nvl(VALUTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VALUTA_INDEKSACIJE || '''' || ',VALUTA_INDEKSACIJE),1) and' ||
    'nvl(PORTFELJ,1) = nvl(nvl(''' || :P7_X_PORTFELJ || '''' || ',PORTFELJ),1) and' ||
    'nvl(UTRZIVOST_KREDITA,1) = nvl(nvl(''' || :P7_X_UTRZIVOST_KREDITA || '''' || ',UTRZIVOST_KREDITA),1) and' ||
    'nvl(ZNACAJKE_KAPITALA,1) = nvl(nvl(''' || :P7_X_ZNACAJKE_KAPITALA || '''' || ',ZNACAJKE_KAPITALA),1) and' ||
    'nvl(RIZICNA_SKUPINA,1) = nvl(nvl(''' || :P7_X_RIZICNA_SKUPINA || '''' || ',RIZICNA_SKUPINA),1) and' ||
    'nvl(UGRADJENI_DERIVAT,1) = nvl(nvl(''' || :P7_X_UGRADJENI_DERIVAT || '''' || ',UGRADJENI_DERIVAT),1) and' ||
    'nvl(ODNOSNA_VARIJABLA,1) = nvl(nvl(''' || :P7_X_ODNOSNA_VARIJABLA || '''' || ',ODNOSNA_VARIJABLA),1) and' ||
    'nvl(PREDZNAK,1) = nvl(nvl(''' || :P7_X_PREDZNAK || '''' || ',PREDZNAK),1) and' ||
    'nvl(VRSTA_IZNOSA,1) = nvl(nvl(''' || :P7_X_VRSTA_IZNOSA || '''' || ',VRSTA_IZNOSA),1) and' ||
    'nvl(KOMITENT_PBR,1) = nvl(nvl(''' || :P7_X_KOMITENT_PBR || '''' || ',KOMITENT_PBR),1) and' ||
    'nvl(UDJELI_POVEZ_C,1) = nvl(nvl(''' || :P7_X_UDJELI_POVEZ_C || '''' || ',UDJELI_POVEZ_C),1) and' ||
    'nvl(AR_ID,1) = nvl(nvl(''' || :P7_X_AR_ID || '''' || ',AR_ID),1) and' ||
    'nvl(AU_ID,1) = nvl(nvl(''' || :P7_X_AU_ID || '''' || ',AU_ID),1) and' ||
    'nvl(AR_BUSS_ID,1) = nvl(nvl(''' || :P7_X_AR_BUSS_ID || '''' || ',AR_BUSS_ID),1) and' ||
    'nvl(MTI_CCY_TP_ID,1) = nvl(nvl(''' || :P7_X_MTI_CCY_TP_ID || '''' || ',MTI_CCY_TP_ID),1) and' ||
    'nvl(REG_NO,1) = nvl(nvl(''' || :P7_X_REG_NO || '''' || ',REG_NO),1) and' ||
    'nvl(REG_SFX,1) = nvl(nvl(''' || :P7_X_REG_SFX || '''' || ',REG_SFX),1) and' ||
    'nvl(JMBG_ID_NO,1) = nvl(nvl(''' || :P7_X_JMBG_ID_NO || '''' || ',JMBG_ID_NO),1) and' ||
    'nvl(IP_ID,1) = nvl(nvl(''' || :P7_X_IP_ID || '''' || ',IP_ID),1) and' ||
    'nvl(TAX_ID_NO,1) = nvl(nvl(''' || :P7_X_TAX_ID_NO || '''' || ',TAX_ID_NO),1) and' ||
    'nvl(INSTRUMENT_OLD,1) = nvl(nvl(''' || :P7_X_INSTRUMENT_OLD || '''' || ',INSTRUMENT_OLD),1) and' ||
    'nvl(PREDZNAK_OLD,1) = nvl(nvl(''' || :P7_X_PREDZNAK_OLD || '''' || ',PREDZNAK_OLD),1) and' ||
    'nvl(NAPOMENA,1) = nvl(nvl(''' || :P7_X_NAPOMENA || '''' || ',NAPOMENA),1) and' ||
    'nvl(NOVI_POSAO_F,1) = nvl(nvl(''' || :P7_X_NOVI_POSAO_F || '''' || ',NOVI_POSAO_F),1) and' ||
    'nvl(LISTA_SUMARNA,1) = nvl(nvl(''' || :P7_X_LISTA_SUMARNA || '''' || ',LISTA_SUMARNA),1) and' ||
    'nvl(LISTA_REKAP,1) = nvl(nvl(''' || :P7_X_LISTA_REKAP || '''' || ',LISTA_REKAP),1) and' ||
    'nvl(DZS_IDY_CL_ID,1) = nvl(nvl(''' || :P7_X_DZS_IDY_CL_ID || '''' || ',DZS_IDY_CL_ID),1) and' ||
    'nvl(HNB_IP_CL_ID,1) = nvl(nvl(''' || :P7_X_HNB_IP_CL_ID || '''' || ',HNB_IP_CL_ID),1) and' ||
    'nvl(NO_DYS_OO,1) = nvl(nvl(''' || :P7_X_NO_DYS_OO || '''' || ',NO_DYS_OO),1) and' ||
    'nvl(POSTOTAK1,1) = nvl(nvl(''' || :P7_X_POSTOTAK1 || '''' || ',POSTOTAK1),1) and' ||
    'nvl(POSTOTAK2,1) = nvl(nvl(''' || :P7_X_POSTOTAK2 || '''' || ',POSTOTAK2),1) and' ||
    'nvl(POSTOTAK3,1) = nvl(nvl(''' || :P7_X_POSTOTAK3 || '''' || ',POSTOTAK3),1) and' ||
    'nvl(BNK_ID,1) = nvl(nvl(''' || :P7_X_BNK_ID || '''' || ',BNK_ID),1) and'||
    'nvl(ID,1) = nvl(nvl(''' || :P7_X_ID || '''' || ',ID),1) and' ||
    'nvl(ID_RETKA,1) = nvl(nvl(''' || :P7_X_ID_RETKA || '''' || ',ID_RETKA),1) and' ||
    'nvl(DATUM_STANJA,1) = nvl(nvl(''' || :P7_X_DATUM_STANJA || '''' || ',DATUM_STANJA),1) and' ||
    'nvl(IZNOS,1) = nvl(nvl(''' || :P7_X_IZNOS || '''' || ',IZNOS),1) and' ||
    'nvl(IZNOS_ACTUAL,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL || '''' || ',IZNOS_ACTUAL),1) and' ||
    'nvl(ACT_AR_BAL_KN,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN || '''' || ',ACT_AR_BAL_KN),1) and' ||
    'nvl(ACT_AR_BAL,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL|| '''' || ',ACT_AR_BAL),1) and' ||
    'nvl(IZNOS_ACTUAL_OLD,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL_OLD || '''' || ',IZNOS_ACTUAL_OLD),1) and' ||
    'nvl(ACT_AR_BAL_KN_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN_OLD || '''' || ',ACT_AR_BAL_KN_OLD),1) and' ||
    'nvl(ACT_AR_BAL_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_OLD || '''' || ',ACT_AR_BAL_OLD),1) and' ||
    'nvl(EXG_RT_CRD_RSK_F,1) = nvl(nvl(''' || :P7_X_EXG_RT_CRD_RSK_F || '''' || ',EXG_RT_CRD_RSK_F),1) ';
    execute immediate l_sql_stmt; 
    end;

  • Open a report from button click/javascript

    Hi,
    Does anyone know if there is a way to call a report from a button click? Or through javascript? I set the report to Display Results > Link - within the dashboard and then did a view source on it and found the function that calls the report from the hyperlink.
    This is the code:
    return DashboardReportLink('saw.dll?PortalGo&amp;_scid=v-x8QJloqTY&amp;PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&amp;Page=Historical&amp;NavFromViewID=d\x253adashboard\x257ep\x253acp4tq3p9brn77o6o\x257er\x253a8a2g9nltmkrtra9n&amp;Path=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/Archive\x2520Reporting/Run\x2520Historical\x2520Report&amp;Action=PromptStart&amp;Options=frdc', 'd:dashboard~p:cp4tq3p9brn77o6o~r:8a2g9nltmkrtra9n','Dashboard&amp;PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&amp;Page=Historical', false)
    I added this function to the end of my javascript but when i click the button it just opens a blank page with
    http://la820119:9704/analytics/saw.dll?PortalGo
    as the url.
    Any help would be appreciated

    Hi,
    So i have been trying out a few things and the following url works to open the default view of the request:
    window.location='saw.dll?Go&Path=/shared/Plan Setup Audit Tool /Archive Reporting/Run Historical Report&Options=dfr';
    I just replaced 'Dashboard' in the code provided with the 'Go' and it started to work :)
    What i need to do though is have this work for the session variables set up on the dashboard. I have 7 prompts which a user can use to filter a request. Each is assigned to a session variable that is used to call a stored procedure. Originally i thought that by setting the variables and then calling the report from the url that the session variable values i set would be used in the request. What seems to be happening is that the variables get set and then, on calling the url, they are reset to the defaults and the report is run.
    Any help in solving this would be very much appreciated
    Una

Maybe you are looking for