Hide form generated from a click event

I'm creating an AddOn that is calling the click event of the freight button on the Sales Order screen. I then capture the Freight Charges form that is displayed, populate it with the required information and close the form. The problem that I have is that this causes the Freight Charges screen to flash. I would like to hide this form so that the user doesn't see this flash. I set the form's visible property to false on the after form load event but this doesn't work. Can anyone offer any suggestions?
Thanks

hi
You can from the screen painter set the form property Visible to False.  Then in code once you have are done with loading events do a
        oForm.Visible = True
Other way is to do a                            
oForm.Freeze(True)
and after you are done executing the events do a
                    oForm.Freeze(False)
But be careful.  If an error occurs you have to trap it and so you can set your form to
                    oForm.Freeze(False)
Otherwise it can stay on the freeze state and well that's how you'll see it

Similar Messages

  • Getting web service results from double click event

    I have an Elixir ILOG Org Chart and I want to add nodes dynamically when a user clicks on the node.  When the click event fires, Can I assign the results of the webservice result to the node as children of that node; similar to what someone would do when calling a function in another language like Java or C#.  For instance I have a method that handles the double click or single click of a user on a node in my Org Chart:
    private function doubleClickHandler(event:OrgChartEvent):void{
         event.item.appendChild(getResults(_id, _idSecond, "") );
    private function webServicehandler_Result(event:ResultEvent):XML{
         return event.result;
    getResults(x,y,z) is the function that calls the web service and returns XML results of all the employees/people that are underneith the object that was double clicked on.  Will this work?

    Use the change event.

  • How to edit task form generated from human task (.jspx)???

    I created simple SOA application with simple Human task (from this tutorial http://redstack.wordpress.com/2010/01/08/human-workflow-in-11g/ but it doesnt matter) in JDeveloper. Then I generated standard form from human task (Human task -> Auto-Generate Task Form).
    The question is, how to make own form? Not the generated default, but with my own logic...That form is jspx, not jsp, and thats the main problem, in this JDeveloper everything is a bit complicated.
    I tried delete whole generated content, and just import my created file.jsp into jspx like below, but without result. How to import jsp into jspx? I dont want to completely rewrite my existing jsp into jspx and copy it over default...
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:wf="http://xmlns.oracle.com/bpel/workflow/workflow-taglib.tld"
    xmlns:wlc="http://xmlns.oracle.com/bpel/workflow/worklist">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    *<jsp:directive.include file="file.jsp"/>*
    </jsp:root>
    Edited by: [email protected] on 8.6.2010 9:47
    Edited by: [email protected] on 8.6.2010 9:47
    Edited by: [email protected] on 8.6.2010 9:48

    Hi,
    Try
    FacesContext context = FacesContext.getCurrentInstance();
    NavigationHandler handler = context.getApplication().getNavigationHandler();
    handler.handleNavigation(context, null, outcome);
    context.renderResponse();Regards,
    ~ Simon

  • Urgent: Forms generated from Designer not loading on 9iAS

    HI,
    I have generated a form using designer 2000, when I try to run
    the form on the web it says that the ofgcall library is missing,
    though the form runs when executed from the form builder.
    other question is.
    when I copy the .fmb file to any other destination, and try to
    run, it refuses to create the .fmx of the file saying cannot
    create the .fmx ( error: frm-30087 ) , I checked the error but
    unable to find the described error, as I am logged into the
    system and Administrator and the directory in which I m working
    is fully accesible and there is sufficient space.
    any please help.
    Sreekant

    Even I faced the same problem. This code works on Windows 95 but gives error "User Defined Exception" when running the same form on Windows NT. May be the API function behined this function call is a primitive one.

  • How do we adjust Revenue Generated from an automatic Event in Oracle Project Billing?

    Hi @All,
    Can someone please help me on below Query.
    Once we generate revenue based on automatic events and revenue has been accepted in GL, How do we adjust this revenue?
    Thanks in advance,
    Satya Kumar Vaddi

    If you wish to adjust the revenue in PA, Enter Manual events to adjust the automatic events; process it as a normal process and interface revenue to GL. If not in PA, Pass the journal entry in GL directly.
    AB

  • How to populate/import data in a XSD file generated from a webservice

    HI All,
      I have an XSD file generated from the webserive using the CRM FM E2C_DOWNLOAD_CRT_SCHEMA.
    I created a Adobe form with the Adobe life cycle designer using the XSD file.
    However Data will have to be entered manually in this adobe form and cannot be pre-populated with data, How do we pre-populate data in the Adobe form generated from XSD file of the above CRM FM.

    This is what you need:
    integer     li_fhandle, li_rcode = 1, li_sfound = 0, li_idx = 0, li_eqpos, i
    string ls_filename = 'C:\app.ini'
    string ls_line, as_key[], as_val[]
    string ls_section = '[General]'
    // OPEN INI FILE
    li_fhandle = FileOpen(ls_filename, LineMode!)
    IF IsNull(li_fhandle) OR li_fhandle < 1 THEN
      // DO NOTHING
    ELSE
      DO WHILE li_rcode > 0
      li_rcode = FileRead(li_fhandle, ls_line)
      IF li_rcode > 0 THEN
      IF POS(ls_section, ls_line) > 0 THEN
      li_sfound = 1
      CONTINUE
      END IF
      IF li_sfound = 0 THEN CONTINUE
      IF POS(ls_line, '[') > 0 AND POS(ls_line, ']') > 0 THEN EXIT
      li_eqpos = POS(ls_line, '=')
      li_idx++
      as_key[li_idx] = MID(ls_line, 1, li_eqpos - 1)
      as_val[li_idx] = MID(ls_line, li_eqpos + 1)
      END IF
      LOOP
    END IF
    FOR i = 1 TO li_idx
      messagebox('Key - Value',as_key[i] + ' = ' + as_val[i])
    NEXT
    // CLOSE INI FILE
    IF li_fhandle > 0 THEN
       FileClose(li_fhandle)
    END IF
    Adapt it to your needs... you probably should make it a function.

  • Forms Generator problems

    I'm trying to use form generator from Designer 6i rel 2.
    I found big problems regenerating a migrated application.
    Layout of most of my blocks is completely changed and I can't reproduce the previous behaviour.
    I found some solutions using relative tabs but may problems are still there.
    The biggest problems I've are on tab canvases :
    1 - I use the same font as before (6.0) but the generated canvases are smaller and fields don't fit in it.
    2 - The height of the tab canvases is smaller then before and form developer tries to reduce it every time I run it giging me a CDG-3484 "error"
    3 - the stacked footer disappeared (sometime totaly somtime partialy).
    Please give me any suggestion or idea.
    TIA
    Tullio

    We noticed the same thing when we started creating Headstart for Designer 6i. Some things we found:
    - We used to always leave page width/height blank to get optimal layout. Now it seems to work better if you specify a value.
    - We found that we get better results when we explicitly specify height and width on all displayed items as well. (We didn't used to ever specify a width on a date column, nor height on any column that we wanted to default to 1.)
    - Designer used to widen the page when an individual item was too wide. Now it narrows the item.
    - Designer has changed its algorithm for determining item width.
    - Designer has added new objects in its object library for Display Only (_DO) objects which affects the layout of these objects particularly.
    Of course, using Headstart we had the luxury of knowning that our object library, template form and preference settings had not changed. If you are using the Designer default object library, template and preferences, I recommend you carefully compare the old versus the new. There may be changes to these underlying objects which would of course affect your generated modules.
    Regards,
    Lauri

  • Mouse click event error in my program

    i'm writing a tic-tac-toe game with GUI
    TicTacToeGUI extends JFrame implements MouseListener
    when i click the mouse for the first time all is fine
    the program works for this click
    but when i click the second time the following errors occur
    same errors generated from each click other than the first one
    what's possibly wrong?
    java.lang.ArrayIndexOutOfBoundsException: -1
    at TicTacToeGUI.mouseClicked(TicTacToeGUI.java:303)
    at java.awt.Component.processMouseEvent(Component.java:5096)
    at java.awt.Component.processEvent(Component.java:4890)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Window.processEvent(Window.java:1074)
    at java.awt.Component.dispatchEventImpl(Component.java:3598)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Window.dispatchEventImpl(Window.java:1585)
    at java.awt.Component.dispatchEvent(Component.java:3439)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    sorry it is all of my own fault.
    i've solved the problem now.
    it was the getNextPlayer() that returns invalid player index.
    thx for ur help in all kind :)

  • HasEventListener and click event problem

    Hi!
    Is it possible that hasEventListener() method has a bug? Whenever I remove event listener(using removeEventListener method) from a click event (which's been added using AS), hasEventListener always returns true. However event listener method gets removed. I've also tried some other events and I got mixed results, some have worked, some haven't.
    Thanks, regards

    Thanks for replying.
    I go to DO_HANDLE_EVENT as you said. There is already written something as below by wizard.
    class  : ZL_BT115QH__DETAILS_IMPL
    method: DO_HANDLE_EVENT
    code: 
    CASE htmlb_event_ex->event_server_name.
    *     Added by wizard
        WHEN 'PAYM'.                                            "#EC NOTEXT
          EH_ONPAYM( htmlb_event    = htmlb_event
                      htmlb_event_ex = htmlb_event_ex ).
    I added button in ZL_BT115QH__MAINWINDOW_IMPL but I try to handle in ZL_BT115QH__DETAILS_IMPL
    I thought this might cause the problem.
    Which DO_HANDLE_EVENT method you mentioned?
    method in  ZL_BT115QH__MAINWINDOW_IMPL or ZL_BT115QH__DETAILS_IMPL ??

  • How do you fire a button click event on apex page from fancybox iframe that was created by page

    I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
    A couple of points:
    I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
    The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
    The click dynamic action on the button is calling the plugin to replace the html in the div.
    The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
    Can anyone help. Here is the fancybox code:
      function customProcessOnReadyState4(){
        for (var i=0;i<11;i++){
          $( "#tabs"+i ).tabs();
          $("#createNewExerciseLink"+i).fancybox({
              ''width''         : ''60%'',
              ''height''        : ''70%'',
              ''autoScale''     : true,
              ''transitionIn''  : 200,
              ''transitionOut'' : 200,
              ''type''          : ''iframe'',
              ''onClosed''         : function() {
                                         window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
    Here are the dynamic actions assigned to the button:
    5 - Execute JavaScript Code
    alert("Starting refresh");
    10 - Execute PL/SQL Code and Return Content [Plug-in]
    begin
      SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
    end;

    user setActionListener...
    <af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
                  <af:inputText value="#{bindings.Email.inputValue}"
                                label="#{bindings.Email.hints.label}"
                                binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                                id="it2">
                    <f:validator binding="#{bindings.Email.validator}"/>
                  </af:inputText>
                  <af:commandButton text="commandButton 2"
                                    binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                    id="cb2" action="passing">
                    <af:setActionListener from="#{bindings.Email.inputValue}"
                                          to="#{processScope.detail}"/>
                  </af:commandButton>next jsf page:
                <af:outputText value="#{processScope.detail}"
                               binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                               id="ot1"/>setPropertyListener also should work
    <af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

  • How to generate barcode on button click event in PDF using adobe livecycle?

    I already created form in PDF file which is validate completely .But , I required generate a barcode of all field of form using custom script on button click event.
    Please give me right way for doing it .
    Thanks in Advance,
    Jaydeep Solanki.

    Hi vijay,
    What project are you doing? Is it Asp.Net project? If so, you'll need to post it in the dedicated ASP.Net Forum
    http://forums.asp.net  for more efficient responses, where you can contact ASP.NET experts.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Click event in Webdynpro abap for interactive form

    Hi ,
    I am using a ZCLI form to be developed using Webynpro abap . I am new to  webynpro abap but I have worked in offlined upload of pdf forms . My problem is I created a wedynpro component and integrated the form .The form is only opening up if the layout choosen is standard layout . if it is a zcli form it is not opening up . I am also not able to capture the click event from the form .
    some immediate help required.
    My requiremnt is to save 2 fileds from  a form in an interactive way to a SAP database using webynpro abap .
    Regards
    Abhil

    Hi Abhil,
    If your layout type is 'ZCI Layout' then you have insert the webdynpro script in the layout. After selecting the ZCI Layout click on enter and then go to layout tab, in this go to Utilities menu->select Insert WebDynpro Script.
    If you do this then in the Hierarchy tab of adobe form you can see the (Variable) ContainerFoundation_JS, it means that you have inserted WebDypro Script in the form.
    Finally activate the form and run the application.
    Thanks,
    Jhansi Miryala

  • Applicaiton form hangs when trying to make C# form visible from menu event

    I have a MDI windows app, running as an addon on Verion 2007A
    The applicaion is written in C# ( VS 2005)
    I am a newbee to C# ( VS too ) as well.
    All I want is to display the MDI container form when a menu is clicked. But the windows form hangs forever, and does not show.
    if I try to show the form within Main method then no issues! The problem happens only off the SBO menu event .
    I cannot have the form loaded all the time. so I need the services of the SBO menu click, so a user can open it whenever he wants.
    Note: I can open any other form off the menu click, but that , provided they are not MDI containers and they are opened with ShowDialog(); If I use Show(); then again hangs.
    I tried opening the MDI form in Main method, ( wich of course works) and hide it when not needed. I could hide the form, but when I issued a command myForm.visible = true;  through the SBO menu event, again hangs!
    my applicaion Main function is as follows. The class AA_SBO_MAIN  holds the SBO application events.
    static void Main()
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Classes.AA_SBO_MAIN oSBOMain = null;
                oSBOMain = new Classes.AA_SBO_MAIN(); 
                 Application.Run();        
    the menu event simply does
                  frmMain fm = new frmMain();
                  fm.Visible = true;

    Hi
    I try doing these few steps and it seems to work!  The code is in Visual Basic though!
    Declare the form variable
    Private mMDI As New frmMDI
    In your menu click event enter a code like this
    If mMDI Is Nothing Then mMDI = New frmMDI
    mMDI.Visible = True
    On your startup function do something like this
    Public Sub New()
           mMDI.Show() : mMDI.Visible = False
    End Sub
    And more important ... in the form class comment all the code inside the Dispose method
    and finally do the following
    Private Sub frmMDI_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
            Me.Hide()
    End Sub
    it seems to work for me . Hope it helps you too!

  • Hide content type from the new menu but show in edit form

    SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document
    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.
    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.
    Any idea how can I hide content type from the new button but show in edit form?

    Hi,
    Whether you use SharePoint online 2013.
    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.
    To accomplish your qequirement, we need to use css code:
    style <style type="text/css">
    ul.ms-cui-menusection-items32 li:nth-child(4) {
    display: none !important;
    </style>
    perhaps your environment is different with mine, you need to make a little change to the code. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Migrating from 6i to 9i for form generating starting with designer

    I try to migrating our forms generating 5-6 years start with designer, but they are finished through form builder.
    When I tried to use migrating assistant wizard, I get
    LMDMANA.CG$WHEN_NEW_FORM_INSTANCE: The String CALL was found. If it is an occurence of the Forms Built-In, It should be replaced with CALL_FORM.
    Here is my LMDMANA.CG$WHEN_NEW_FORM_INSTANCE procedure
    /* CG$WHEN_NEW_FORM_INSTANCE */
    PROCEDURE CG$WHEN_NEW_FORM_INSTANCE IS
    BEGIN
    /* CGLY$INIT_CANVASES */
    /* Call procedure to ensure correct canvases are visible */
    BEGIN
    CGLY$CANVAS_MANAGEMENT;
    END;
    /* CGBS$STARTUP */
    /* Perform start-up processing for Block Synchronisation */
    BEGIN
    /* Set the defaults for the globals */
    :global.cg$query_mode := 'A';
    -- default_value('A', 'GLOBAL.CG$QUERY_MODE');
    /* Set the relations to the default query mode */
    CGBS$.SET_RELATIONS( :GLOBAL.CG$QUERY_MODE );
    /* Set the query mode items */
    CGBS$SET_QUERY_MODE( :GLOBAL.CG$QUERY_MODE );
    END;
    END;
    I posted it through metalink and I was told it must be regenerated through designer, and there is no way to do migration.

    Hi,
    actually you would upgrade the application sources from Forms 6i to Forms9i and then run teh Forms Migration Assistant for the clean up /this at least is my understanding after asking one of our Designer Product Managers).
    Frank

Maybe you are looking for