How to know when I'm doing a createInsert?

how to know when I'm doing a createInsert, this to hide a button when you run this action, I am using a task flow.
my version of jdeveloper is 12c

hi,
  So you are using the createInsert as a method call in task flow. That is your form/table will be come new rows and you want to disable some button.
Your task flow might be as below
      CreateInsert---->Page.
To do so
1.) Take properties of your method call and bind the Method property to a method in a bean (bean registered in the task flow with scope view or any higher scope)
2) Call the create insert operation programmatically in that method.
3) And in that method after the createinsert ,set a boolean variable in pageFlowScope.
4)Put this variable in the disable property or visible propery of the button you wabt to hide/diable.
eg:
    public void doCreateInserOperation(){
        try {
           // Programatically invoke CreateInsert
            DCBindingContainer bindings = (DCBindingContainer)getBindingContainer();
            bindings.getOperationBinding("CreateInsert").execute();
        //Set a variable in page Flow Scope 
        AdfFacesContext.getCurrentInstance().getPageFlowScope().put("disableButton", true)
        } catch (Exception e) {
            e.printStackTrace();
    public BindingContainer getBindingContainer() {
        FacesContext facesContext = getFacesContext();
        Application app = facesContext.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = facesContext.getELContext();
        ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings}", Object.class);
        return (BindingContainer)valueExp.getValue(elContext);
you can access this variable in EL expression as #{pageFlowScope.disableButton}. So when your page render it will be in CreateInsert mode and the button will be disabled/hidden.
I hope this will help you.
With regards,
Gijith.

Similar Messages

  • How to know when a topic does not exist

    I have an app that is created with Visual Studio 6, which
    does not have native support for HTML help (upgrading VS is
    currently not an option). I have an HTML help that I would like to
    call from my app. I need to call the html help with a context id
    number. Since there is no html help calls in this version of VS, I
    am calling hh.exe directly using ShellExecute ("hh.exe -mapid
    <id> <chm file>"). I dont know of any other way. The
    problem I am having is that there are times when my app and the
    help may be out of sync. It is possible that my app will call the
    help with an id that does not exist in the help. In WinHelp, the
    user would get a message indicating that the topic did not exist.
    Unfortunately, hh.exe does not return any messages. This makes the
    users think something is wrong with the app.
    Am I doing this the right way? Is there a way to find out if
    a topic exists and notify the user if it does not?
    Thanks in advance for you help.
    LA

    Hi LAYALA,
    We also develop with Visual Studio 6. You can override the
    WinHelp calls and redirect to HtmlHelp. Our app was originally
    developed using WinHelp. We made the change to HTMLHelp several
    years back and my developer claims it only took one line of code,
    though he's never told me what that line is. If nobody enters into
    this forum, I'll ask him tomorrow. I'm on Paciifc time so it will
    be quite a few hours from now.
    John

  • How to know when the JComboBox popup is about to show or hide?

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

  • I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    Mail and Address book

  • How to know when the PRICE AFTER DISCOUNT changed and get the value

    Hi,
    Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
    which seems to be inaccessible.
    Any idea how to know when exactly this value changed and do actions accordinly ?
    Also I always get 0.00 if I try to get the value of it
    This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
        catch (Exception ex)
            SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
         catch (Exception ex)
             SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

    just idea, maybe it will works
    Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field.

  • How i know when a EXECUTE_QUERY retrieved last record

    Hi...
    How i know when the EXECUTE QUERY retrieved the last record in a block ....?
    Exist a trigger after trigger POST-QUERY?
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

    Kevin, sorry
    But the :system.last_record not change the value during the execution of EXECUTE_QUERY.
    Only useful when the data was retrieved into blocks...not during..
    Other mode?
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

  • How to know when invoke bytecode implements?

    I've got a classfile - it has few invokeinterface bytecodes inside - their count is defined dynamically - when class is running.
    And I've got a program, which runs this class.
    The aim of this program - to gather statistics of invokeinterface calling frequency.
    How to know when invokeinterface bytecode implements?
    (In that moment I plan to update several digits)
    Have You got an advise for me?
    Thanks.

    You must use the debugging interface, or get a code profiler. Do a search on all forums for profiler, you'll get tons of information.

  • HT2173 How to know when a hard drive has failed ?

    How to know when a hard drive has failed ?

    Machine doesn't boot.  You experience strange crashes.  Gets wrong results.  Your harddrive is five or more years old.  Time to consider repacing it.   You do have backup?
    You may want to run these "standard" fixes if the problem persists.
    1) Check the amount of free space on your harddrive.  You should have a several gigs free.
    2) You should run disk utility
         a) verify the disk
         b) update your permissions.
    3) Try a safe boot.
        Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
          is being checked.
        http://support.apple.com/kb/ht1455
    4) You may want to run applejack to clean up your machine.
         http://applejack.sourceforge.net/
    a lot more ways to fix your Mac.
    http://www.thexlab.com/faqs/faqs.html
    verify & repair your startup drive
    To verify & repair you file system on the startup drive, you will need to run disk utility from you installation DVD.
    This article  will tell you how to get to disk utility.  Once in a disk utility, you can go and attempt to recover the disk.
    http://support.apple.com/kb/TS1417
    To repair your startup drive, you will need to run disk utility from your startup DVD.
    Mac OS X 10.4: About the utilities available on the Mac OS X 10.4 Install DVD
    http://support.apple.com/kb/HT2055
    How to run disk utility from your startup DVD.
    Insert your  startup DVD  into your reader.  Power down your machine.  Hold down to the c key.  Power on your machine.  This will bootup your startup DVD.
    This will bring you to a panel asking you for your language.  Pick your language.
    You you come to the Install Mac OS panel.  Do not install.
    Click on Utilities menu item.  This will give you a pulldown list of utilities.
    Click on the disk utility.
    You are now in disk utility.  Pick your disk.  Click on repair it should be on the lower right of the panel.
    Once the repair completes successfully, you should update your permissions.
    Verify a disk
    As an alternative, you can verify that the filesystem on the disk is correct. You will not be able to repair the file system.
    I suggest that you use disk utility to verify that your startup disk is OK. 
    Macintosh-HD -> Applications -> Utilities -> Disk Utility 
    Start up disk utility.  On the left pane view, you will see a list of all your disks.  
    Click on your startup disk.
    Click on the First Aid  Tab.
    Click on verify.  
    Hopefully your disk will verify.  If not, you have to boot from your installation DVD and run Disk Utility from there to attempt to repair your file-system.

  • My Iphnoe 4 was stolen, what can i do?, how to know when it's block by IMEI

    I'm travelling across argentina, and a couple of days ago some one stolen my Iphone in my room in KAIXO CENTRAL HOSTEL, (never go there!!!, there is an YHA hostel close to this, and there are security, I learn of my mistakes, later...).
    I want to know when my Iphone it's blocked, any know how to confirm that the phone it's blocked??? , I call to apple support and send all the stuff to block my phone, at least i don't want who some one use it or see my personal data, photo, music...
    when the Iphone it's blocked by IMEI, this device can do anything???
    Thanks in advance.

    If the carrier has blocked the IMEI, all that means is that the iPhone will not be able to connect to the cell network. That does not prevent someone from accessing the data or trying to hack the iPhone to work around the block. If you set a passcode on the screen lock, that makes it more difficult for someone to use the iPhone without erasing your information, but it's not impossible.
    In any case, there's nothing you can do about it now, not unless you set up Find My iPhone and it can locate the iPhone in which case you can let the police know the reported location and, if you wish, wipe the iPhone (note though that if you wipe it, you will get no further location information). Change all passwords to online services you had set up or used from the iPhone.
    Regards.

  • How to know when DND in progress?

    How do I know when a DND is in progress can't seem to find any where to call isDragInprogress() or something similar. My problem is that my JPanel flickers when it is dragged over because of the constant call to validate() so I want to disable the validate() method when drag is in progress?

    How about implementing your custom painting correctly instead? You're doing custom painting, right? And you overrode paint() instead of paintComponent() I bet...
    You wouldn't have to deal with validate() etc. when implementing DND for the UI to remain stable, otherwise.

  • How do know when your ipod battery is bad

    how do you know when your ipod battery is bad

    Does it hold a charge? Can your device be charged? Does it have a good battery life?
    If you answered no to any of these questions, your battery is bad.

  • How to know when a session has gone by closing browser or leaving site.

    Hi! I'm doing an application that uses the session API. This application must run in every java-enabled web-server. I want to know if there is a way to know when a session has gone. I mean, you can know this if, for example, you call the isNew method. But for example, if you close the browser, the session is gone, but obviously, I can't call the isNew method from anywhere, so... how can I know when the session is killed by closing de browser or if the user leaves the site. You can use the onUnload of JavaScript, but I don't want to call a new window when this happens.
    Hope you can help me!

    You probably can't tell. But then you don't want to do that logic anyway... I was just at your site, and I was signed on, then somebody came in and asked me something so I had to look at another site, then I pressed the back button and now I'm at your site again, but you signed me out? What's with that?

  • How to know when the process to be killed

    I want to run 4 .exe programs under win98 in sequence, how should i know when does the .exe program end?

    If you ran the .exe file using the Process class, there is a method called waitFor() which
    will cause the current thread to wait for the process to finish
    eg
    public void execute() {
    Runtime runtime = System.getRuntime();
    System.out.println("Start minesweeper");
    Process process = runtime.exec("winmine.exe");
    process.waitFor();
    System.out.println("Finished");
    }

  • How to Know When New Upgrade Comes Out

    I have an iTouch second gen with 2.1.1. I have the same video output problem that many others have reported. Someone made the statement something like- oh well lets just hope the problem is corrected in the next update. So what I want to know is, when is the next update? How do you know when it is available and what is addressed in it? Does it cost anything to get an update? Thanks.

    Itunes will notify you of an update (if you have it set to auto-check for updates). I'm also sure this forum will be buzzing minutes after a release
    it's free, and it's never known when it's coming out, until it does.
    Message was edited by: biikman

  • How to know when Windows support files are updated?  (BC 4)

    I have MacBook Pro Retina w/Lion (of course), installed Win 7 Pro 64-bit, using Boot Camp procedures and files that were issued June 14.  My BootCamp Assistant says it's 4.0.4.
    My question is:  how do I know when the Windows Support files (drivers) are updated by Apple?  I would have expected an update by now, but I just went into Boot Camp Assistant on Lion, re-downloaded the drivers, and I *think* they are all dated June 14th still.  (looked in WindowsSupport folder which is where it said it downloaded them)
    There doesn't seem to be a reasonable way to get notified if there are new drivers or not.
    My expectation was that I could run *something* either on the Windows or OS X side, and it would *tell me* that drivers needed updating, or at least say "you are running version X".
    It can't be that I have to re-download the drivers and check the dates on all the files every time I'm curious if there's updates available.  Can it?
    The files seem to be on some mysterious Apple server and the only thing I can do to that server is ask to download the support files.  No query, no "is an update available", ... ???
    It's not even clear to me that the Windows Support files have a version number. 

    When the next revsion of OS X you can run Boot Camp Assistant again, or of course once 10.8 though might want to just sit tight, you would likely see reports in forums and elsewhere.
    Apple Software Update for Windows use to but no longer.
    The easiest way to see device driver version, chipset and more is with AIDA64
    http://www.aida64.com/product/aida64-extreme-edition/overview

Maybe you are looking for

  • Rentals and video out :(

    Hi all, I just rented my first iTunes Movie (Stardust). I was hoping to play it on my TV with the iPod Universal Dock and the Apple's component A/V cable. Guess what? Yup, rentals can only be watched on the tiny iPod screen. Now that I think about, t

  • Utl_inaddr.get_host_name

    Hi, The following query can run on 9i successfully, but it gave error on 8i that wrong number of argument call. How should we run the following query on 8.1.7? Or what its replacement? select utl_inaddr.get_host_name(sys_context('USERENV','IP_ADDRESS

  • I am new to Java, can any one pls tell me what exactly is "Build Path".

    Hi Techies... i am new to Java, can any one pls tell me what exactly is "Build Path". thanx in adv. Regards Nitin.V Edited by: Nitin.V on Feb 12, 2008 11:08 PM Edited by: Nitin.V on Feb 12, 2008 11:09 PM

  • Smartforms: add a space before address information

    Hi All, In my smartform I have created a window with a border (option "Line With" - tab: "Output Options". Under this object I have created an address form type "Organizationa Address(1) and I have set "Use Street(S) as "Additional Address Specificat

  • Module column of v$session

    Hi: Is this the right column to see what's the name of the program a user is running? Why most of them are blanks? Can I assign a value to this column? What should I do if I want this column to show the name of self-developed applications? Thanks. MM