Trying to change the text of the command button.

Hi.,
Am using jdeveloper 11.1.1.6.,
I have dragged and dropped a command button in my jsff page.
When there is no record in my VO which dragged and dropped as a af:form the button will act as a create insert so that the text of the button should also be create Insert. If there is record the button should act as a update so that the text should also be update. I have used the follwoing code to change the text accordingly.
    public void settext(ActionEvent actionEvent) {
        // Add event code here...
        BindingContainer bc = getBindings();
        DCIteratorBinding dcIter =
            (DCIteratorBinding)bc.get("EssEeoDemInfView1Iterator");
        int e = (int)dcIter.getEstimatedRowCount();
        System.out.println (e);
        if ((e == 0)) {
            myButton.setText("CreateInsert");    // Null pointer exception occurs
        } else {
            myButton.setText("Update");  //null pointer exception occurs
    }Can any one pls help me?

Hi Timo!
This was the thing which i have did.
I have dragged and dropped a command button to my jsff page.
When i press the button a popup will show which ask the confirmation from the user.
This is the code which i have written in my managed bean.
    public String delete_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("Delete");
        Object result = operationBinding.execute();
        Commit();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        return null;
    public void deleteItem(DialogEvent dialogEvent)
        if (dialogEvent.getOutcome() != DialogEvent.Outcome.yes)
            delete_action();
          return;
      }I have used the EL Expression in my another button which will change it property according to the values in my row.
#{bindings.EssEeoDemInfView1Iterator.estimatedRowCount gt 0 ? 'Update':'Create Insert'}For this button i have used the following code in my managed bean.
    public String update() {
         BindingContainer bc = getBindings();
        DCIteratorBinding dcIter =
            (DCIteratorBinding)bc.get("EssEeoDemInfView1Iterator");
        int e = (int)dcIter.getEstimatedRowCount();
        if ((e == 0)) {
              CreateInsert();
        } else {
               Commit();
        return null;
    }When i initially delete the record the button has not been changed to createinsert it remains as update. When i press the update am getting NULL pointer exception in CreateInsert() and Commit();

Similar Messages

  • Is there a way of just changing the text to the main menu..but not the submenus?

    Is there a way of just changing the text to the main
    menu..but not the submenus?
    Also i have looked at in the browser and when i glide over
    the menu catergories or click on them they dont show the
    submenu...what can i do to solve this?

    Does the example described at
    http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
    work for you?
    What are you doing that's different from the example?
    When you say you just want to change the text of the main
    menu without changing the submenus, do you mean you want to do so
    dynamically, at some later stage after the page has loaded?
    If so, you could try retrieving the main menu elements you
    want to update from the DOM and updating them from your script's
    event handler for whatever event it is that you want to update them
    in response to. This presumes the widget will detect this and
    update appropriately, which I can't say for sure since I haven't
    actually tried it.
    Hope that helps!
    Rob

  • After upgrading the new operating system, it seems some useful features no longer work such as when typing a message the text anticipates the next word and when trying to delete individual messages from a contact, you can no longer tap and hold to select

    After upgrading the new operating system on my Droid Razr M it seems some useful features no longer work such as when typing a message the text anticipates the next word and when trying to delete individual messages from a contact, you can no longer tap and hold to select multiple message you have to delete them individually or the entire thread. Is there a way to get these back?

    Well, that's kind of embarrassing. And I honestly thought I paid attention to that... It works perfectly now, thank you so much!
    As expected, cdm-git also works fine since DMs only work in the root mode as of now.
    Just for the record, both type commands output "/usr/bin/startx" and pacman -Q gives "systemd 215-4".
    Last edited by looki (2014-08-23 13:04:49)

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Is there any way to change the font size of the text in the Finder Sidebar?

    This may sound like a bit of a dorky question but here goes nothing...
    I am rather near-sighted and in need of new glasses but I am stuck in a holding pattern until I can get a referral to see my eye doctor. Anyway... I have found myself using the Zoom features far more often and increasing the font size in the Finder for the Item Names & Info.
    The problem that I am facing now, is that the font size of the text in the sidebar is FAR SMALLER than the font size of the text of the actual file names & info.
    +*IS THERE ANY WAY TO INCREASE THE FONT SIZE OF THE TEXT IN THE SIDEBAR??*+
    So far I have looked in:
    *The Finder Preferences
    *The Desktop Preference Pane
    *The Appearance Preference Pane
    *The Seeing Tab of the Universal Access Preference Pane
    And to add to my frustration I have also searched the Mac OS X Help AND all of the posts in this thread (back to 1/1/09) that had the word "sidebar" mentioned in them!!
    +*DOES ANYBODY HAVE ANY OTHER IDEAS?? OR IS THIS ONE AREA THAT I AM OUT OF LUCK BECAUSE APPLE DIDN'T FORESEE THIS ISSUE??*+
    Usually, Apple is really very good about foreseeing any possible trouble (ESPECIALLY when it comes to the area of Accessibility for people w/ disabilities!!)
    I do hope that SOMEBODY can help me on this one!!
    Also, I noticed that the size of the text that is on the Toolbar is also the same ITSY BITSY font size as the text on the sidebar, but I am guessing that there is next to nothing that can be done about that!!
    Thanks a Million!!
    +~Kathryn A.+
    P.S. Here is the link to a screenshot that I took that will illustrate my problem more clearly...
    Icon View Screenshot: http://screencast.com/t/gzDONwN3

    Hi! The only way I know of is changing the screen resolution. Tom

  • HoW to ChaNGE the text in the mobile application to be in MulTi-CoLoR text

    _*  Do anyone can tell me how to change the text in the mobile application to be in multi-color text, to make it more interesting and increase readability?
    Is it using the Graphic's paint() method? or any better suggestion?
    Please give the short example if can?
    Please help... "_"
    Hearing from u all soon...@_@
    thanks....

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • How do I change the size of the tools and the text for the menus in Photoshop?  I need a magnifying glass in order to make out what they are.

    How do I change the size of the tools and the text for the menus in Photoshop?  I need a magnifying glass in order to make out what they are.

    Okay, I've figured it out, so I'm going to answer my own question in hopes that it may help anyone else that would like to actually be able to see what they're doing when using Photoshop CC 2014 on a high resolution screen.
    1.  Open Photoshop.
    2.  Select Preferences from the Edit Menu, then select General.
    3.  Change the HUD Color Picker to Hue Strip (Medium).
    4.  Select Interface from the Preferences menu on the left side of the dialog box.
    5.  Change the UI Font Size to Large in the Text area of the Preferences dialog box.
    6.  Select Experimental Features from the Preferences menu on the left side of the dialog box.
    7.  Select Scale UI 200% for high-density displays (Windows only).
    8.  Click on OK, then Exit/Quit Photoshop.
    9.  Open Photoshop and everything should be readable.

  • How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.

    How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.

    Hi Sara!
    Yes this sounds interesting. Can I update to that from the PDF Export I have just renewed? How much would that cost?
    Thanks for your quick answer.
    Best Regards
    Per-Olof Egli                                         Logga Egli C.I.S
    Managing Director
    Egli C.I.S. Consulting
    Lapphundsgränd 43
    SE-128 62 SKÖNDAL
    Sweden/Швеция
    Phone:         +46 708 23 03 53
    <http://www.eglicisconsulting.se/> www.eglicisconsulting.se
    <mailto:[email protected]> [email protected]
    Skype: eglipo
    Från: Sara.Forsberg 
    Skickat: den 10 september 2014 22:11
    Till: P-o Egli
    Ämne:  How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg>  n Adobe ExportPDF - View the full discussion <https://forums.adobe.com/message/6718870#6718870>

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to change area text in the area pages of ESS

    Hi ,
    i need to change the text of the areas(like employee search,personnel information..etc) in ESS.
    i am working on EP6.0& ECC 5.0.
    Can anyone help me..
    Thanks,.
    Karthik

    Hi karthik
    SPRO->IMG->cross-application components->Homepage framework ->Areas -> Define Areas ->Double click on Define Areas (Add Entries)
    double click on area which u want to add information
    EMPLOYEE_PERSINFO-> double click on it
    under Area Description (summary)
    u can change text from
    Manage your addresses, bank information, and information about family members and dependents.
    to
    Here you can change the address and personnel
    information of the employee.
    regards,
    kaushal

  • How to change the text in the image..

    Hi there,
    Í'm new to Adobe Illustrator and I would like to know how I can change the text in the image.
    I would like to keep the design exactly the same way(colour, font) but just different words.
    This design is unlocked by the way.
    Thanks in advance!

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • Changing the text and the order of columns in ALV for WebDynpro

    Hello experts, im using ALV in WebDynpro, and i have this code:
    lr_column   = lo_value->if_salv_wd_column_settings~get_column( 'ZNC_MONTO_LIQ' ).
    lr_column_header = lr_column->get_header( )
    lr_column_header->set_text( 'IMPORTE' ).
    but this code, doesn't change the title of the column.
    the same happens when i put the visibility in "none" or when i change the position of the column
    Anyone can tell why this is happening?
    Thanks!

    You can't set the text of the generated header directly.  You have to first delete the standard header and create a new one.  You can then override the header text.
    l_column = l_table->if_salv_wd_column_settings~get_column( 'CREATED_AT' ).
      l_column->delete_header( ).
      l_header = l_column->create_header( ).
      l_header->set_text( `Created At` ).

  • How to copy and paste the text in Russian - 'command+c' erases it

    How to copy and paste the text in Russian - 'command+c' erases it

    I want to publish a book with Blurb. They don't have Russian fonts, so I have to type the text in Russian in Notes in my iPad, send it to my e-mail box, and then open the e-mail box in Mac, and copy and paste the text into the book template of Blurbs. I don't know how to make a Russian keyboard in Mac to be able to type quickly. I asked about it  in the Apple store, and they showed me how to find a Russian keyboard in the net, but it takes much time to type using a screen keyboard, and the texts also cannot be copied and pasted, when they are in Russian. They are erased when I press 'command+C", and all I have is a single letter 'c' instead. No problems with texts in English. Maybe Russian is not supported for copying and pasting?:(

  • I have a iPad mini, I recently acquired a $15 iTunes card to get apps and music. I have forgotten my security questions and I cannot buy anything HELP (I tried to reset them in the Password and Security tab but the text under the questions does not show)

    I recently acquired a $15 iTunes card to get apps and music. I have forgotten my security questions and I cannot buy anything HELP (I tried to reset them in the Password and Security tab but the text under the questions does not show)

    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699?viewlocale=en_US&locale=en_US
    Try the link above. Try to find a phone number for your country, call and ask for account security.

Maybe you are looking for