Dropdown and data provider. I want to add an item to my dropdown

Hi,
here my problem. I've a downdrop. It is binded to a data provider. It works fine, all the db rows are displayed.
Now I want to add an item to my downdrop, programmatically. This because, I need to put a new selection named "ALL" into the dropdown.
This item should be the first in the dropdown list selections.
I cant' work with an option array, because it is already binded to a data provider, so how can I add an item to my dropdown programmatically?
Thank you

No problem... you're helping me!!
Well, about the data provider I just find the following code, but nothing about the "option" method. If you need I can provide you also the session bean code.
  private void _init() throws Exception {
        pers_categorieDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.pers_categorieRowSet}"));
        private DropDown dropDownPersCat = new DropDown();
    public DropDown getDropDownPersCat() {
        return dropDownPersCat;
    public void setDropDownPersCat(DropDown dd) {
        this.dropDownPersCat = dd;
    private CachedRowSetDataProvider pers_categorieDataProvider = new CachedRowSetDataProvider();
    public CachedRowSetDataProvider getPers_categorieDataProvider() {
        return pers_categorieDataProvider;
    public void setPers_categorieDataProvider(CachedRowSetDataProvider crsdp) {
        this.pers_categorieDataProvider = crsdp;
    private LongConverter dropDownPersCatConverter = new LongConverter();
    public LongConverter getDropDownPersCatConverter() {
        return dropDownPersCatConverter;
    public void setDropDownPersCatConverter(LongConverter lc) {
        this.dropDownPersCatConverter = lc;
      public Indirizzario() {
      public void init() {
        // Perform initializations inherited from our superclass
        super.init();
        // Perform application initialization that must complete
        // *before* managed components are initialized
        // TODO - add your own initialiation code here
        // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
        // Initialize automatically managed components
        // *Note* - this logic should NOT be modified
        try {
            _init();
        } catch (Exception e) {
            log("Indirizzario Initialization Failure", e);
            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        // TODO - add your own initialization code here
     * <p>Callback method that is called after the component tree has been
     * restored, but before any event processing takes place.  This method
     * will <strong>only</strong> be called on a postback request that
     * is processing a form submit.  Customize this method to allocate
     * resources that will be required in your event handlers.</p>
    public void preprocess() {
     * <p>Callback method that is called just before rendering takes place.
     * This method will <strong>only</strong> be called for the page that
     * will actually be rendered (and not, for example, on a page that
     * handled a postback and then navigated to a different page).  Customize
     * this method to allocate resources that will be required for rendering
     * this page.</p>
    public void prerender() {
     * <p>Callback method that is called after rendering is completed for
     * this request, if <code>init()</code> was called (regardless of whether
     * or not this was the page that was actually rendered).  Customize this
     * method to release resources acquired in the <code>init()</code>,
     * <code>preprocess()</code>, or <code>prerender()</code> methods (or
     * acquired during execution of an event handler).</p>
    public void destroy() {
        pers_categorieDataProvider.close();
     * <p>Return a reference to the scoped data bean.</p>
    protected SessionBean1 getSessionBean1() {
        return (SessionBean1)getBean("SessionBean1");
     * <p>Return a reference to the scoped data bean.</p>
    protected RequestBean1 getRequestBean1() {
        return (RequestBean1)getBean("RequestBean1");
     * <p>Return a reference to the scoped data bean.</p>
    protected ApplicationBean1 getApplicationBean1() {
        return (ApplicationBean1)getBean("ApplicationBean1");
}

Similar Messages

  • My husband plugged my iPhone into his computer, created an account and now when I want to add apps it asks for his password not mine.  How do I get my account back?  Tried plugging it into his computer again.  No prompt to change account back to mine.

    My husband plugged my iPhone into his computer, created an account and now when I want to add apps it asks for his password not mine.  How do I get my account back?  Tried plugging it into his computer again.  No prompt to change account back to mine.

    Hi Trishw,
    At the top of the iTunes Store window, you will see who is logged into iTunes. I'm guessing from your description, that it is your husband. If it is, click on the name to display the dropdown, log him out and sign yourself back in:\
    Cheers,
    GB

  • Model provider class and data provider class

    please explain Model provider class and data provider class?

    Hi,
    both MPC and DPC get generated as runtime artifacts.
    MPC - This is used to define model. you can use the method Define to create entity, properties etc using code based implementation. you rarely use MPC extension class.
    DPC - used to code your CRUDQ methods as well as function import methods. you write all your logic in redefined methods of DPC extension class.
    Refer Generated ABAP Classes and Service Registration - SAP NetWeaver Gateway - SAP Library for more information.
    you can also refer my blog Let’s code CRUDQ and Function Import operations in OData service! which will provide you clear idea on how to redefine various CRUDQ methods in DPC extension class.
    Regards,
    Chandra

  • Want to add an item at top of Pagelayout

    Hi,
    I want to add an item on top of PageLayout(programatically).I have tried it by making pageLayout bean but it adds the item at bottom.Please help me out.
    Thnx

    Hi,
    If you will add the controls programatically then these will be added at the end of the page, there is one workaround for this.
    Create a region and required controls in it as per your need, after using personalization create one stack layout, and set the path of your newly created region to "Extends" Property.
    again do personalizatio reorder your stack Layout to come at the top.
    I hope it will help.
    Regards,
    Reetesh Sharma

  • Firefox 4.0 is clunky with big ugly buttons. It looks bulky and busy. How do I keep 4.0 but with the look of the previous version? I have the default look and I don't want to add any backgrounds or any themes.

    How do I streamline all the 4.0 features, but without adding any skins, themes or backgrounds? Basically I want to keep the default of the previous Firefox version as this new 4.0 is ugly and bulky and it does not make for smooth navigation. I don't want to add any customizations that will slow down my computer so I want it like the previous version. I would rather try to correct this than go back to a previous version. Thanks.

    Thanks for the article. I've done some of the suggestions but it is still not the same....Does anyone else miss the status bar? Even with installing the add on for it, it did not work for me. Overall, the article suggestions made a definite improvement. What was Mozilla thinking with this version? But thanks for pointing me to that article!

  • Want to add an item to the Mail tool bar?

    In Mail I often find a need to toggle "Quote the text of the original message."  Each time I do this means a trip into Mail "preferences."  Is there some way to add this item to the Mail tool bar?
    Thanks,
    JimH

    In Mail I often find a need to toggle "Quote the text of the original message."  Each time I do this means a trip into Mail "preferences."  Is there some way to add this item to the Mail tool bar?
    Thanks,
    JimH

  • MSS - Object and data provider

    Hi,
    had questions regarding the view groups in the OADP. first, the employee selection for Personnel change request is based on view group MSS_PCR_SELECT. This view group has views which in turn have root , navigation and target selections. due to which the manager logging in can see/navigate through the employees based on their org units etc.
       Now for approving time ( direct link "approve timesheet data") , we used the standard view group MSS_LCA_EE. The views assigned here do not have a naviagtion object , due to which the manager is able to see all the employees listed at once, we created a custom view group based on the std one , added a navation object so that the manager can click on the org units (just like for selecting employees for PCR) and based on that the employees are displayed and then their time can be approved. Somehow this does not seem to work. It displays the whole list of employees. IT seems its just not taking that navigation object. Anyone tried achieving the same functionality ??
    We are on ERP 2005 , MSS BP 1.0.

    Hi Mark -
    I am trying to do something similar and not having much luck..  I am trying to change the main Team Viewer on the employee General Information change.  My client has a requirement where they do not want to use the manager (012) as the MSS user.  The have lower level supervisors identified that link S to S (using 002).  I created new eval paths for the root and navigation/target objects.  I test them via transaction PPST and they return expected results.  I created new rules and associated the eval paths, created new view, org view, etc.  Then I went to the Employee Search (Team Viewer) iVew and changed the parameter to switch out my new org grp view.   It does not work.  In MSS, I get the message "no employees found."
    The parameters (OADP) objects I switched out were:
    View Grp = MSS_TMV_EE
    View = MSS_TMV_EE_ORG1
    I am also on ERP 2005 , MSS BP 1.0
    If you got your issue fixed and can share anything that will help my issue I would greatly appreciate it.
    Regards,
    Karen

  • Dropdown and Date Fields does not show up properly using https

    I am running my portal on NW04 SP20 and i am using NWDS SP20. When run my WD application using http://<portal host>:<port>/irj -> My WebDynpro iview. I see my all UI elements working properly. Branding changes effected in all UI elements. When i run using https://<prdportal>/irj -> my Webdynpro iview, dropdown values shows in plain text. It looks like my branding is not effected for UI elements data. I see branding changes in UI element, not UI element data. Same for date ( calendar ) box also.
    Thanks in advance
    Ramana.

    Try note 1035587, hope it works.
    Lucas Garcí

  • MSS Object and data provider Important

    Dear All,
             I have a requirement of changing the list of data that is displaying on the general information of the Manager iview.
    The manager should look the Org unit till depth 3. But we have a standard rule for setting it till org unit 2(MSS_TMV_RULE3).
    So i copied the standard and changed the rule with the depth till 3.  and attached that to the object selection MSS_TMV_EE_ORG1. But it is not working do i need to do some other customizing change in that.
    Please help me to solve this issue.....
    Thanks
    Yogesh

    hi
    if you have made a new view , the new view should be mentioned in the ivew property  in the eportal .
    This should help.
    Regards
    sameer.

  • I am unable to change location for editing photos.  I tried the advanced drop down menu in iPhoto and have 2 locations for editing-iphoto and aperture.  I want to add photoshop.  Can anyone help? Thanks.

    i cannot change editing location from aperture to photoshop in iphoto.  i followed directions to advanced tab in iphoto and have 2 choices for editing photos-iphoto and aperture.  any suggestions on how to change the sites?  thanks.

    Not sure why you would have Aperture there as it's not an editor.
    To change, just select Aperture again, and this will give you the dialogue to change the choice.
    Regards
    TD

  • ComboBox and data provider

    hi,
    i need to populate a combo box with values form an
    ArrayColection that contains objects, how can i sepecify the field
    of each object in the array that should be displayed in the combo
    box ??
    cheers,
    jaimon

    Using the labelField property of the ComboBox.
    For further information please refer to the language
    reference, this contains all the properties of all the Flex
    components and how they are used.
    http://livedocs.macromedia.com/flex/2/langref/index.html

  • Customizing Settings for the Object and Data Provider

    Dear All,
    I am trying to create a view for my manager to view ONLY their direct report employees (relationship A002).
    Anyone knows what is the organization view that i need to use or which evaluation path that i an use?
    Thanks.
    Regards,
    Bryan

    Hi Bryan,
    Please use this function module to given the list of direct reporting employee for the org level HRWPC_GET_DIREPS_OF_LEVEL_1 the format is O-S-P.
    This will list the employees who are direct reporting to the manager.
    Thanks & Regards,
    Ganesh R K

  • Oracle apex how the region title i want to add one items

    hi :
    i have one page .this is page have 1)search region 2) report
    in search region have the one select list contains the datas like a,b,c,d,e,f etc..
    if i selectd the a and click query button in the report region page title ..i want add like REPORT ON a ..if i selected b and click the query it should display the REPORT ON b ....like this i want out put pls ..tell me how will do as soon as possible...

    Sure it is possible. See this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    There you have a select list and if you click on the button after choosing a value, you will
    get a report on it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Buyer got the money back from Paypal and buyer don't want to send the item back

    Hi everybody, I sold a laptop on Dec 2014 via eBay. After three months, there are some issues with the laptop so buyer had to send it to the manufacture for repair (Still under Lenovo warranty). After that, buyer had to send the laptop to manufacture again due to motherboard problem (Lenovo agree to fix it for free because it's still under warranty). Buyer complained that the computer is not as described. (I listed the item as like new because it's open box item, I also mentioned open box in the eBay description, I also refunded $100 when the buyer received the laptop, he said there are some scratches on the case, and he accepted the offer, I still have our conversation via eBay message) By the time I sold it, the laptop still under warranty for approximate 2 and a half year. Regarding to eBay policy, buyer cannot file a claim after 30 days, so he decided to file a complain via PayPal. I don't sell much on eBay so after I sold the laptop, I don't check my PayPal email anymore, once day when I check my email, I realized the case has been opened for approximate 19 days, which mean I was late to respond to the case 4 days. PayPal decided to refund to the buyer. I contacted PayPal several time, they said they couldn't do anything because I didn't respond to their email. I contacted Buyer and he told me that he will consider my email as harassment. I sent him another email a couple weeks ago and he didn't respond to my email. As a result, I still have to pay for eBay fee (approximate $50), and I lost the laptop $1300 value. Even he send the laptop back to me at this time, the laptop will not have the same value as before, but I still not receive the laptop anyway. It like 8 months from now. I filed a complain to ic3.gov but I still not hear anything from them. Does anyone have the same experience with me? Do you have any suggest? I have moved from WA to Texas, I don't know if I can file a case in Texas since the original issue happened when I was in WA.  Any response is appreciated, Thank you very much.

    1. Fwd your complaints to Apple, not this forum
    2. http://www.apple.com/feedback/iphone.html
    3. Have a good day!

  • Fbl3n  heading we need to adde opening balance  and date

    Hi guru's
    My requirement is adding fields opening balance and date in fbl3n (g/l account line item display)
    please guide  me.

    Hi,
    Use Business Transaction Events(Tcode FIBF) to populate custom fields in FBL*N transactions.
    Regards,
    Madhu

Maybe you are looking for