Problem while displaying popup message while using inputfile component

Hi
I am using JDEV 11.1.1.2.0, using ADF i developed and application
in my page i have a input file component, from which i am taking a csv file and reading it through valuechangeevent of inputfile component. I have used myfaces.trinidad-UploadedFile to get the selected file and read it using inputstream.
I have put some validation check (validation check is done while reading the file using valuechangeevent of the inputfile component), while reading the file and incase i receive any error (validation mismatch), the reading of file stops ... and before doing that i used to display error message using below method:-
public String ValidationCheck(String attrname, String attrvalue, int rownumber) {
String msg="Validation error found in "+attrname+" with value "+attrvalue+" of row "+rownumber+" in the file. Please correct the file and retry/";
FacesContext ctx = getFacesContext();
FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
ctx.addMessage(null,fm);
return null;
i have used the same method to display message in other places where its showing correctly but fails in inputfile component.
Please help me out how can display messages from inputfile component??
Thanks
Sudeep
Edited by: SKD on Feb 21, 2012 12:02 PM
Edited by: SKD on Feb 21, 2012 4:08 PM
Edited by: SKD on Feb 21, 2012 4:11 PM

It works fine for me (albeit on 11.1.2.1). Here is my complete test case:
FileUploadTest.jspx:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:document title="FileUploadTest.jsf" id="d1">
    <af:form id="f1" usesUpload="true">
      <af:inputFile label="Label 1" id="if1" valueChangeListener="#{TestBean.vcl}"/>
      <af:commandButton text="commandButton 1" id="cb1"/>
    </af:form>
    <af:messages id="m1"/>
  </af:document>
</f:view>TestBean.java:
package view;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.share.logging.ADFLogger;
public class TestBean
  private static final ADFLogger _LOG = ADFLogger.createADFLogger("view.TestBean");
  public TestBean()
  public void vcl(ValueChangeEvent valueChangeEvent)
    _LOG.severe("in the value change event");
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "This is a message", "Message");
    ctx.addMessage(null, fm);
}adfc-config.xml:
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <managed-bean id="__1">
    <managed-bean-name>TestBean</managed-bean-name>
    <managed-bean-class>view.TestBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>
</adfc-config>John

Similar Messages

  • Problem in Displaying JOptionpane Message Dialog (JRE 1.5.0_04 or later)

    Hi! All,
    I am getting a deadlock kind a situation while displaying JOptionpane message dialog. It's very rare to simulate also. I am also posting the Thread dump which i have taken programmatically, when this situation arises.
    For your Information, I am using JRE 1.5.0_04 or later version on Windows XP.
    We searched on Java.sun.com site, & we got that two bugs are related to our problem, but there are arises in JRE 1.4.2 or before version & have been fixed at JRE 1.5 .
    Follwing are the bugs ID in Sun Bugs Database: 4978089, 4828019.
    Can anyone suggest me which is the stable JRE 1.5 version to avoid this problem. Also can anyone suggest me the workaround of this problem. I want to fix this in our application ASAP.
    following is My Thread Dump :
    Thread[Finalizer,8,system]
         java.lang.Object.wait(Native Method)
         java.lang.ref.ReferenceQueue.remove(Unknown Source)
         java.lang.ref.ReferenceQueue.remove(Unknown Source)
         java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    Thread[Java2D Disposer,10,javawsApplicationThreadGroup]
         java.lang.Object.wait(Native Method)
         java.lang.ref.ReferenceQueue.remove(Unknown Source)
         java.lang.ref.ReferenceQueue.remove(Unknown Source)
         sun.java2d.Disposer.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[JCIL_Sess(813251)_EvtThd(24880015),5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.CallAppearanceTable$EventAdapter.OnCallEstablished(CallAppearanceTable.java:982)
         in.co.netsol.telecom.ctios.events.EventSinkAdapter.OnEvent(EventSinkAdapter.java:142)
         com.cisco.cti.ctios.cil.EventPublisher.PostEvent(EventPublisher.java:175)
         com.cisco.cti.ctios.cil.EventPublisher.FireEvent(EventPublisher.java:142)
         com.cisco.cti.ctios.cil.CtiOsSession.FireEvent(CtiOsSession.java:1849)
         com.cisco.cti.ctios.cil.Call.FireEvent(Call.java:254)
         com.cisco.cti.ctios.cil.Call.OnCallEstablishedEvent(Call.java:1136)
         com.cisco.cti.ctios.cil.Call.OnEvent(Call.java:943)
         com.cisco.cti.ctios.cil.CtiOsSession.OnEvent(CtiOsSession.java:2107)
         com.cisco.cti.ctios.cil.CilServiceEvent.ReceiverThread(CilServiceEvent.java:256)
         com.cisco.cti.ctios.cil.CilServiceEvent$1.run(CilServiceEvent.java:173)
    Thread[pool-1-thread-5,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.MakeAgentReadyCommand$EventAdapter$1.run(MakeAgentReadyCommand.java:190)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[DestroyJavaVM,5,main]
    Thread[AWT-Shutdown,5,javawsApplicationThreadGroup]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         sun.awt.AWTAutoShutdown.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[JCIL_Conn(18096534)_Watchdog,5,main]
         java.lang.Object.wait(Native Method)
         com.cisco.cti.ctios.util.UnNamedEvent.WaitForSingleObject(UnNamedEvent.java:147)
         com.cisco.cti.ctios.cil.CilConnection.WatchdogThread(CilConnection.java:527)
         com.cisco.cti.ctios.cil.CilConnection$1.run(CilConnection.java:1071)
    Thread[AWT-EventQueue-0,6,main]
         java.awt.Container.getComponents_NoClientCode(Unknown Source)
         java.awt.Container.getComponents(Unknown Source)
         javax.swing.JToolBar.getComponentAtIndex(Unknown Source)
         javax.swing.plaf.basic.BasicToolBarUI.navigateFocusedComp(Unknown Source)
         javax.swing.plaf.basic.BasicToolBarUI$Actions.actionPerformed(Unknown Source)
         javax.swing.SwingUtilities.notifyAction(Unknown Source)
         javax.swing.JComponent.processKeyBinding(Unknown Source)
         javax.swing.JComponent.processKeyBindings(Unknown Source)
         javax.swing.SwingUtilities.processKeyBindings(Unknown Source)
         javax.swing.UIManager$2.postProcessKeyEvent(Unknown Source)
         java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         java.awt.Component.dispatchEventImpl(Unknown Source)
         java.awt.Container.dispatchEventImpl(Unknown Source)
         java.awt.Window.dispatchEventImpl(Unknown Source)
         java.awt.Component.dispatchEvent(Unknown Source)
         java.awt.EventQueue.dispatchEvent(Unknown Source)
         java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         java.awt.EventDispatchThread.run(Unknown Source)
    Thread[AWT-Windows,6,main]
         sun.awt.windows.WToolkit.eventLoop(Native Method)
         sun.awt.windows.WToolkit.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[Timer-0,5,javawsApplicationThreadGroup]
         java.lang.Thread.dumpThreads(Native Method)
         java.lang.Thread.getAllStackTraces(Unknown Source)
         in.co.netsol.telecom.log.ThreadDumpLoggingTask.getStackTraces(ThreadDumpLoggingTask.java:47)
         in.co.netsol.telecom.log.ThreadDumpLoggingTask.run(ThreadDumpLoggingTask.java:36)
         java.util.TimerThread.mainLoop(Unknown Source)
         java.util.TimerThread.run(Unknown Source)
    Thread[JCIL_Conn(18096534)_Rcvr,5,main]
         java.net.SocketInputStream.socketRead0(Native Method)
         java.net.SocketInputStream.read(Unknown Source)
         com.cisco.cti.ctios.cil.NetPort.ReceiveData(NetPort.java:405)
         com.cisco.cti.ctios.cil.NetPort.ReceiveData(NetPort.java:363)
         com.cisco.cti.ctios.cil.CilPacket.ReadFromPort(CilPacket.java:649)
         com.cisco.cti.ctios.cil.CilConnection.ReadPacket(CilConnection.java:670)
         com.cisco.cti.ctios.cil.Connection.ReceiverThread(Connection.java:398)
         com.cisco.cti.ctios.cil.Connection$1.run(Connection.java:472)
    Thread[pool-1-thread-2,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.SupervisorAssistCommand$EventAdapter$1.run(SupervisorAssistCommand.java:152)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[pool-1-thread-1,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.ConferenceCallCommand$EventAdapter$1.run(ConferenceCallCommand.java:144)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[JCIL_Svc(5450181)_TxQThd(3083604),5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         com.cisco.cti.ctios.util.QueueThread.GetQItem(QueueThread.java:152)
         com.cisco.cti.ctios.util.QueueThread.run(QueueThread.java:259)
    Thread[pool-2-thread-1,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.Dialog.show(Unknown Source)
         javax.swing.JOptionPane.showOptionDialog(Unknown Source)
         javax.swing.JOptionPane.showMessageDialog(Unknown Source)
         javax.swing.JOptionPane.showMessageDialog(Unknown Source)
         in.co.netsol.telecom.desktop.DesktopMainPanel$3.run(DesktopMainPanel.java:1871)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[Signal Dispatcher,9,system]
    Thread[Reference Handler,10,system]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    Thread[TimerQueue,5,javawsApplicationThreadGroup]
         java.lang.Object.wait(Native Method)
         javax.swing.TimerQueue.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[pool-1-thread-4,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.MakeAgentNotReadyCommand$EventAdapter$1.run(MakeAgentNotReadyCommand.java:146)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[pool-1-thread-6,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.TransferCallCommand$EventAdapter$1.run(TransferCallCommand.java:136)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[traceMsgQueueThread,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thread[pool-1-thread-3,5,main]
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Unknown Source)
         java.awt.EventQueue.invokeAndWait(Unknown Source)
         javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
         in.co.netsol.telecom.desktop.command.EmergencyCommand$EventAdapter$1.run(EmergencyCommand.java:146)
         java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         java.lang.Thread.run(Unknown Source)
    Thanks & Regards,
    Pradeep Gupta

    Update to the latest version 1.5.0_06 available from:
    http://java.sun.com/j2se/1.5.0/download.jsp
    It is advisable to remove previous version(s) installations unless required otherwise for a specfic application.

  • Problem in displaying Alv grid output  using oops........

    hi,
    i have two problems in displaying ALV grid output Using Oops.
    1) How to modify the fieldcatalog after we getting a field catalog using general FM.
    2) initialy it is displaying 13 fields but there are 63 fields .
       eventhough we chage the layout to 63 fields it is displaying only 13 fields , these 13 fields may be different based on our selection but count  of displayed fileds are same . how can display 63 fields at a time .

    Hi,
    You can chnage using below code:
    loop at gt_fieldcat.
    if <gt_fieldcat-field_name> = 'FIELDNAME'.
    endif.
    modify gt_fieldcat.
    clear gt_fieldcat.
    endloop.
    Make sure that all the field should not have no_out = 'X' and tech = 'X'.
    Thanks,
    Sriram Ponna.

  • How to display Popup message in ABAP Web Dynpro

    Hi All,
    Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
    Thanks & Regards,
    IA Kumar.

    Agree with the two firend on my head :).
    you can find a demo from:   SWDP_TEST&#65288;package&#65289;-->   WDR_TEST_POPUPS also.
    I have a lazy idea, two step:
    1. create a popup function module;
    2.call the function module;
    function module:--Begin--
    FUNCTION ZFUNM_CONFIRM .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(P_API) TYPE REF TO  IF_WD_VIEW_CONTROLLER
    *"     REFERENCE(P_CMP_API) TYPE REF TO  IF_WD_COMPONENT
      DATA:
        L_WINDOW_MANAGER      TYPE REF TO IF_WD_WINDOW_MANAGER,
        L_CMP_API             TYPE REF TO IF_WD_COMPONENT,
        L_API_MAIN            TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_POPUP               TYPE REF TO IF_WD_WINDOW,
        L_TEXT                TYPE STRING_TABLE.
       wd_this               type ref to IF_MAIN,
       wd_comp_controller    TYPE REF TO IG_COMPONENTCONTROLLER.
       l_api_main = wd_this->wd_get_api( ).
    l_cmp_api = wd_comp_controller->wd_get_api( ).
      L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
      APPEND 'POPUP text' TO L_TEXT.
      L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
                  TEXT                   =  L_TEXT
                  BUTTON_KIND            = 4
                  MESSAGE_TYPE           = 1
                  CLOSE_BUTTON           = ''
                  WINDOW_TITLE           = 'messagebox Title'
                 WINDOW_LEFT_POSITION   = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
                 WINDOW_TOP_POSITION    = L_CONF_CONTEXT-WINDOW_TOP_POSITION
                 WINDOW_POSITION        = L_CONF_CONTEXT-WINDOW_POSITION
                 WINDOW_WIDTH           = L_CONF_CONTEXT-WINDOW_WIDTH
                 WINDOW_HEIGHT          = L_CONF_CONTEXT-WINDOW_HEIGHT
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_YES
              ACTION_NAME        = 'YES'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_TRUE ).
      L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
              BUTTON             = IF_WD_WINDOW=>CO_BUTTON_NO
              ACTION_NAME        = 'NO'
              ACTION_VIEW        = P_API
              IS_DEFAULT_BUTTON  = ABAP_FALSE ).
      L_POPUP->OPEN( ).
    ENDFUNCTION.
    function module:--End--
    call the function module  Begin----
    METHOD ONACTIONDELETE .
      DATA:
        L_API                               TYPE REF TO IF_WD_VIEW_CONTROLLER,
        L_CMP_API                           TYPE REF TO IF_WD_COMPONENT,
        NODE_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_NODE,
        ELEM_ZTAB_PROJ                      TYPE REF TO IF_WD_CONTEXT_ELEMENT,
        STRU_ZTAB_PROJ                      TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
        SELECTED_ELEM                       TYPE  WDR_CONTEXT_ELEMENT_SET .
      navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
      L_API = WD_THIS->WD_GET_API( ).
      L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
      CALL FUNCTION 'ZFUNM_CONFIRM'
        EXPORTING
          P_API     = L_API
          P_CMP_API = L_CMP_API.
      IF WD_THIS->A_DEL = ''.
        EXIT.
      ENDIF.
      NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
      IF ( NODE_ZTAB_PROJ IS INITIAL ).
        EXIT.
      ENDIF.
      ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
      ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
        IMPORTING
          STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
      DELETE FROM ZTAB_PROJ
      WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
        AND PROJID  = STRU_ZTAB_PROJ-PROJID.
      WD_THIS->ONACTIONSELECT(
        WDEVENT = WDEVENT                        " Ref to cl_Wd_Custom_Event
    LOOP AT selected_elem .
    ENDLOOP.
      ELEM_ZTAB_PROJ
      @TODO handle not set lead selection
      alternative access  via index
      Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
      @TODO handle non existant child
      if ( Elem_Ztab_Proj is initial ).
      endif.
      get all declared attributes
    ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
       IMPORTING
         STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
    ENDMETHOD.
    call the function module  End----

  • Uploading Files Using InputFile Component -- Sometimes not working

    Hello,
    This is the 2nd time I make a post about it!
    Because I have more than 1 application using upload, and everything is correct! But it doesn't work as it should!
    You can check the original post here: Uploading Files Using InputFile Component - Sometimes not working
    I need a solution please!
    The only thing we can conclude is that it could be a bug from oracle !!! (???) But I talked with other people and they say that it works fine for them.
    There is one important thing: when we put a form to "Uses Upload = true" it seems that the page doesn't work very normal. For exemple: if you use a table in a form that uses upload the table get's "crazy".
    Thanks,
    JP

    I have now access to METALINK!
    I can find some problems and patches about inputFile but not mine! I will check better later!
    I think the problem is caused because of my framework!

  • Display a message while processing

    Hi,
    I am processing a lot of files and it take some time to do it. I want to display a message when a file is processing. And one message when the process of all files is finished.
    LOOP AT LT_FILES.
      CONCATENATE 'File processing: ' LT_FILES-NAME INTO LV_MSG
      MESSAGE LV_MSG TYPE 'S'.
      PERFORM F_PROCESS_FILE USING LT_FILES-NAME.
    ENDLOOP.
    MESSAGE 'The files are been processed' TYPE 'S'.
    But it doesn't show anything while the files are been processing, just at the end the last message appears. Someone knows how can I do this? Like parallel tasks or something like threads?
    Regards,
    Isaac Melendez

    Hi,
    Try using the FM  
    Increase the percentage for each loop        
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
                  EXPORTING
                    PERCENTAGE = 50
                    TEXT       = text-025.

  • Urgent: Issue while displaying the PDF Reports Using XDO Common region

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

  • Prb display error message while creating PR at ME51n in ME_PROCESS_REQ_CUST

    Hi All,
    I have this requirement to check the cost center availability in PR screen (ME51n).
    If cost center in the Account assignment tab is not empty, display error message  and not able to create the PR.
    With my code below, it doesn't triggered the error message and PR created.
    Could anyone help?
    METHOD if_ex_me_process_req_cust~process_account.
    DATA: w_account_ref TYPE exkn.
    w_account_ref = im_account_ref->get_data( )
    IF w_account_ref-kostl IS NOT INITIAL.
      MESSAGE e303(ME) WITH text-001 w_account_ref-kostl text-002.
    ENDIF.
    ENDMETHOD.
    Thank you.
    SW

    Hi,
    You have to use definition MMPUR_MESSAGE 'E'  ME 303   text-001 w_account_ref-kostl text-002.
    This will throw the error during check and save instead of message e303(me) .
    Hope it helps.
    Sujay
    Edited by: Sujay Venkateswaran Krishnakumar on Oct 5, 2010 2:54 PM

  • Display popup message on SRM portal

    Hi,
    I need to display a popup message on the SRM portal while doing a PO confirmation. Can you please guide me how to do it?
    Do I need to modify the templates or can it be done using a BADI?
    Thanks in advance.

    Hi,
    Try using CHANGE badi.
    See these related threads also for more pointers:
    Error in pop up (dialog box)
    Customized Pop-up window in Shopping Cart
    POPUP window in shopping cart during Order
    BR,
    Disha.

  • Re:Problem in displaying the output by using filters

    hi to all,
    when using filters in ALV i am getting a problem of displaying the <b>full contents of a particular field while going for F4 option</b>.
    even i using <b>ls_fieldcat-outputlen = field length</b> it is not coming .
    please help me in this issue.
    thanks
    sun
    Message was edited by: sun deep

    Hello,
    set ST_FIELDCAT-OUTPUTLEN to the actual lenght of the field.
    regards,
    Naimesh

  • Problem with displaying warning message in exit EXIT_SAPMM06E_012

    Hi,
    I need in EXIT_SAPMM06E_012 exit display warning message.
    I've created klass Y0108MM_Z1 and message 000 in it.
    When i display as error message -> message e000(Y0108MM_Z1).
    everything is fine.
    but when use message w000(Y0108MM_Z1) it doesn't apear.
    Please help it is very important for me.
    Regards,
    Greg.
    Message was edited by:
            Grzegorz Skibinski

    Hi,
    I think message will appear.
    For testing please do from the main screen press Alt+F12 > options> options tab --> check " dialog box at warning message " and test your scenrio.
    Here warning message appear in a dialog box.

  • Display popup messages

    hi,
    i am using adf11g,jdeveloper 11g.in form i drag and drop one vo.
    in that form,for one attribute which is used as LOV,i have written valuechangelistener method.
    in that method i wrote some code for validaiton.when validaiton occur i am able to show popup messages regarding particular error.
    when any validaiton occur,popup message is coming,but my data is partially submitting to form after showing that error message.
    it should not submitted to form in case of any error.
    please give me the solution.
    IN JSFF page
    <af:panelFormLayout id="pfl8" fieldWidth="100" labelWidth="150"
    binding="#{GLPolicyBean.bindFormEvent}">
    <af:inputListOfValues id="GlstpAcDesc"
    popupTitle="Search and Select: #{bindings.GlstpAcDesc.hints.label}"
    value="#{bindings.GlstpAcDesc.inputValue}"
    label="#{bindings.GlstpAcDesc.hints.label}"
    model="#{bindings.GlstpAcDesc.listOfValuesModel}"
    required="#{bindings.GlstpAcDesc.hints.mandatory}"
    columns="#{bindings.GlstpAcDesc.hints.displayWidth}"
    shortDesc="#{bindings.GlstpAcDesc.hints.tooltip}"
    autoSubmit="true"
    partialTriggers="GlstpGlCode"
    valueChangeListener="#{GLPolicyBean.glACDescChanged}">
    <f:validator binding="#{bindings.GlstpAcDesc.validator}"/>
    </af:inputListOfValues>
    </af:panelFormLayout>
    in glpolicybean.java
    public void glACDescChanged(ValueChangeEvent valueChangeEvent) throws TransactionException{
    // Add event code here...
    System.out.println("account desc new value----------->"+valueChangeEvent.getNewValue().toString());
    String accDesc=valueChangeEvent.getNewValue().toString();
    System.out.println("account description1----------->"+accDesc);
    System.out.println("account desc old value----------->"+valueChangeEvent.getOldValue());
    ADFUtils.setBoundAttributeValue("GlstpGlSubcd", "");
    XBSystemMastersServiceImpl systemImpl=(XBSystemMastersServiceImpl)ADFUtils.getDCBindingContainer().getDataControl().getDataProvider();
    ViewObjectImpl glPolicyAddVO=systemImpl.getGLPolicyAddVO1();
    try {
    for (Row row : glPolicyAddVO.getAllRowsInRange()) {
    String accDesc1 = (String)row.getAttribute("GlstpAcDesc");
    System.out.println("account description1----------->"+accDesc1);
    if (accDesc.equals(accDesc1)) {
    throw new TransactionException("A/C Desc already entered for this setup");
    }catch (TransactionException e) {
    JsfUtils.addContextMessage(JsfUtils.getStringFromBundle("A/C Desc already entered for this setup"),FacesMessage.SEVERITY_WARN); }
    thanks in advance,
    Edited by: sravanthi on Dec 14, 2011 6:12 AM

    Hi,
    Try using validator.
    See
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_inputListOfValues.html

  • 5800 Keeps Displaying Popup "Message: number"

    Hi,
    I've had a 5800 for nearly a year now, and love it. However, for the past 2 days, its been doing something weird, and I'm not sure why. Randomly, and for no reason at all, it will get a popup message on the screen which says 'Message: 0771xxxxx' (my mobile number). Anyone know why? I've not asked it to display, or request my number from Vodafone or anything, this just randomly pops up!
    Any suggestions on how to stop this?
    Cheers
    Ben

    does ure country have something like .. STOP or STOP ALL and send to a specific gateway? .. if so, try tat, u can disable any notification msgs from ure telco.
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

  • Display a popup message while a loop is running

    Can somebody give me some good ideas on how I could create a popup that will appear when a loop is running and then disappear when the loop is finished. I would also like to show a status bar in the popup.

    Hi,
    I'd make a sub vi with a case in it. The case has three 'states': Show
    Window, Hide Window and NOP (no operation). The sub vi must be a dialog, but
    Show window when opend must be off.
    The Show Window and Hide Window case should have vi property nodes (no
    reference wired, to use it's own reference) with the 'show panel' property
    set to true and false. The NOP case is empty.
    Wire an enumerated to the case, and wire it's control to the connector pane.
    Also wire a status control to the connector pane.
    Put the sub vi before the while loop, with the Show Window option. The sub
    vi will show (perhaps you also want to initialise the status indicator in
    the Show Window case).
    In the loop, put the sub vi with the status control wired to the actual
    value, and NOP to
    the window control.
    When done (after the while loop, but be carefull about race conditions, )
    put the sub vi with Hide Window wired to it. (Put the enumerated inside the
    while loop and wire it through the while loop to the sub vi to prevent
    this.)
    Regards,
    Wiebe.
    "Terry S" wrote in message
    news:[email protected]..
    > Can somebody give me some good ideas on how I could create a popup
    > that will appear when a loop is running and then disappear when the
    > loop is finished. I would also like to show a status bar in the
    > popup.

  • Display a message while loading using EMBED tag

    Hi
    I am using an Embed tag to pull a pdf from the backend. the pdf files are huge so it takes time to load and I want a loading message to be displayed till the form is completely loaded, so i am using onload attribute of Embed tag, but i dont think its firing because i still see the "loading" message even after the page has loaded...
    Can any one help me plzzz...

    Hi,
    Try using the FM  
    Increase the percentage for each loop        
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
                  EXPORTING
                    PERCENTAGE = 50
                    TEXT       = text-025.

Maybe you are looking for

  • GPU Lockup, system crashes and reboot on Radeon op...

    Hi, I've been using the Radeon open-source driver for a while (2 weeks) on an AM1 platform. And once in a while the screen just becomes erratic (or filled with crazy lines), then just reboot itself. I've extracted the relevant journalctl output (the

  • How do I show iCloud in dock?

    Is there a way to display iCloud icon in the dock, without having to open Settings first?

  • How to work with two blocks in one form

    i need help,i moved the control from block(abc) to another block(xyz) using go_block('xyz') and then i insert record to block(abc) but the record is not inserted to the table . i used previous_block but it is not working how to use it.

  • SAP HR --TABLE KCDRS

    Can anyone tell me what transaction is used to update the table KCDRS? This is really urgent..

  • This may not be the best forum for you!

    This forum does not get a lot of traffic and I think many SDN members do not follow posts here. Although the title includes the word connectivity, most connectivity questions appear either in the [Portal Content Development|SAP Enterprise Portal : Ad