Reg SelectOneChoice and SelectManyShuttle combination

Dear Experts,
I have a scenario, where the shuttle component's leading list will be changing according to the value selection of the selectonechoice. And i need to preserve the trailing list values and need to add it to the trailing list once if the user changes the selection of the value in the selectonechoice. That means, whatever the value selected from the selectone choice, the trailing list of the shuttle component should not chnage.
I have followed frank's blog, http://thepeninsulasedge.com/frank_nimphius/2007/07/15/adf-faces-adf-faces-shuttle-with-pre-selected-values-from-a-selectoncechoice/
i didnt get what i have expected..
Please advise me how to achieve this.
Appreciate your solutions.
Regards,
R N V Prasad.

The shuttle's valueChangeListener event fires when you click >  >>  <  << buttons.
You can collect all the values and append to a list (using vector) whenever the trailing list changes.
In the backing bean
private List shuttleValues = null;
generate accessors.
The below code may not fit for your needs, but you have to do similar stuff.
        RequestContext requestContext = RequestContext.getCurrentInstance();
        shuttleValues = (ArrayList)requestContext.getPageFlowScope().get("rhsList"); //gets existing values
        if (shuttleValues == null){
            shuttleValues = new ArrayList();
        }else{
            Vector vec = new Vector();
            DCIteratorBinding iter= getItrtBindings(iteratorName);
            int startIdx = iter.getRangeSize();
            iter.setRangeSize(-1);
            Row[] rows = iter.getAllRowsInRange();
            if(rows != null && rows.length > 0){
               for(int i=0; i<rows.length; i++){
                   Row r = rows;
vec.add(r.getAttribute(loadAttr));
shuttleValues.addAll(vec); //collecting new values
requestContext.getPageFlowScope().put("rhsList", shuttleValues);
Shuttle's value attribute:
value="#{backingBeanScope.backing_MaintainProf.shuttleValues}"
I have added partialTarget at the end of the valueChangeEvent method:
RequestContext.getCurrentInstance().addPartialTarget(selectOrderShuttle3);

Similar Messages

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • Stock overview based on material and vendor combination

    Hi Gurus,
    I have a scenario, for three materials A , B, C was bought out from 5 vendor,  how to display the stock with material and vendor combination. In client place, the three material (A , B,C) which were bought from same vendor are issued to cost center. Client wants to know the stock based on vendor.
    Thanks in Advance.

    Hi,
    In my opinion you have the following options - basically:
    1) Use different material numbers for the physically same material you procure from different vendors (this is the dummiest solution, not recommended)
    2) MPN (manufacturing part number) - you use different material numbers corresponding to each vendor . But these materials will be lnked:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/ee15c655c811d189900000e8322d00/frameset.htm
    3) Batch management
    option1 - You apply a certain logic to batch numbers and based on batch number you can distinguish from which vendor the stock was procured.
    option2 - You can also use "not speaking" batch number, but here it's more sophisticated to find out from which vendor it was procured
    option3 - You can classify the batch and in one of the characteristics you can store the vendor's number
    option4 - In the batch master (table MCHA) you can find a "vendor" field (MCHA-LIFNR) - using development you can populate this field at the time of GR
    4) Split valuation - you can maintain separate valuation type for each vendor. I think it is recommended only if you want to manage the moving avarage price separately
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/ee0d4d55c811d189900000e8322d00/frameset.htm
    Regards,
    Csaba

  • How to make a jsf parameter form with a selectOneChoice and data control

    I want to make a parameter form with a selectOneChoice and store this value in a backing bean, so I can use as a bind variable in query. I already made it happen without data control
    Can someone show how to do it in adf data control. With the wizard it tries put the value
    in a viewobject but I don't have base or destination viewobject. I can change the pagedef
    so it works to fill the selectOneChoice but then I want to store the selected value in a session beab
    here is solution with the application module and request / session bean, I don't
    think it is the right solution
    thanks edwin
    jsf page
    <af:selectOneChoice label="Desk" value="#{selectDesk.desk}"
    id="DeskID"
    binding="#{selectDesk.deskBinding}"
    autoSubmit="true"
    valueChangeListener="#{selectDesk.deskChangeListener}">
    <f:selectItems value="#{selectDesk.deskSelectItems}"/>
    </af:selectOneChoice>
    Selektdesk backing bean
    public SelectDesk(){
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ValueBinding valueBinding = facesContext.getApplication().createValueBinding("#{userInfo}");
    userInfo = (UserInfo) valueBinding.getValue(facesContext);
    public List<SelectItem> getDeskSelectItems() {
    if ( userInfo.getSelectItems() != null ) {
    selectItems = userInfo.getSelectItems();
    return selectItems;
    if ( getBindings() != null ) {
    userInfo.setBindings( getBindings());
    else {
    setBindings(userInfo.getBindings()) ;
    if ( selectItems == null ) {
    selectItems = new ArrayList<SelectItem>();
    DCBindingContainer bc = getBindings();
    SicmaService sicma = (SicmaService)bc.findDataControl("SicmaServiceDataControl").getDataProvider();
    ViewObject desk = sicma.findViewObject("DeskSelectView1");
    desk.executeQuery();
    RowSet rows = desk.getRowSet();
    while (rows.hasNext()) {
    Row a = rows.next();
    String DskId = a.getAttribute(0).toString();
    String DskOms = a.getAttribute(1).toString();
    selectItems.add( new SelectItem(DskId ,DskOms ));
    rows.closeRowSet();
    userInfo.setSelectItems(selectItems);
    return selectItems;
    faces-config.xml
    <managed-bean>
    <managed-bean-name>selectDesk</managed-bean-name>
    <managed-bean-class>org.tennet.sicma.view.backing.SelectDesk</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>

    The SRDemo has an example of a selectOneRadio bound to a parameter being used to pass to an ExecuteWithParams action (to automatically feed a view object's named bind variable. This is in the SRStaffSearch.jspx page.
    Also, if you check out example # 72 from my blog:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#72
    There is another example of using a selectOneListbox to do the same type of thing.
    The steps involved in creating something like this are to:
    (1) Define your named bind variables on your view object
    (2) Drop the "ExecuteWithParams" action in the operations folder of that view object from the Data Control Palette to your page as a "Parameter Form"
    (3) Drop the specific attribute (nested child of the "ExecuteWithParams" action from step (2) as whatever kind of selectOneXXXX control you want
    (4) Delete the extra field on the form you don't want.

  • How to use AND and OR Combinations for a Rule in Rule Modeler of ERMS

    Hi Experts,
    When we are defining rules in the Rule Policy, we need to create a condition which uses a combinations of AND and OR.
    But the standard Rule Modeler of ERMS is allowing us to create conditions either using all AND or with all OR options.
    Is there anyway that we can define rules in the Rule Modeler using both AND and OR combinations at the same time.
    Regards,
    NIloufer

    A variant is a very specific LabVIEW datatype (really a C++ type object internally) and trying to pass that to a function, which excepts a flat memory pointer there, for sure will crash very quickly.
    As to endianess, yes Unflatten will be able to adjust for endianess, which in this case however is most likely exectly NOT what you want. So make sure that the you select native type for the endianess input on Unflatten from String. LabVIEW internally works with whatever is the native endianess, as will most likely your C++ DLL. The platform independent big endian format does only come into play when you receive data streams over some streaming interface like a network connection. Here it is desirable to use an endian format that is independent from the actual platform that generates and consumes the data stream. LabVIEWs default endianes is big endian here.
    But as long as you pass data directly to native components like DLLs there is no difference in endianess between what LabVIEW uses and what those components use.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix

    I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix issues I had fixed in the single files. I need suggestions on what else can be done if any. Using Acrobat pro XI.

    Out of habit, I tend to combine PDF files in the Page Thumbnails pane by right-click then "Insert Pages" -> "From File". For me, this preserves the tags from both documents, although the tags may have to be moved into the right location (if I recall correctly the tags for the inserted pages get put at the end of the tag structure, regardless of where the pages are inserted), If I first put the tags for the document to be inserted inside a container tag like Section, it makes the process easier. Moving that set of tags to the right place is the only re-fixing that I recall having to do. What behavior are you experiencing?
    a 'C' student

  • If I buy the Mac pro and iMac combine it together would it be faster?

    If I buy the Mac pro and iMac combine it together would it be faster or I just buy the mac pro and Apple Thunderbolt Display (27-inch)?

    If you buy a Mac Pro 2013, use the iMac for casual stuff and use the Mac Pro for media creation work.
    Maxed out iMac with 4-core 32GB RAM and 1TB SSD PCIe is nice.
    Mac Pro with 6-core 64GB dual graphics for $1000 more might run rings around it.
    Why not look them both up on Geekbench.
    Some people really need and like having two systems, maybe laptop (Air) and a more powerful system.

  • Tax code on plant  material and vendor combination

    Hi ,
    I have created Tax code in FTXP and I have maintained conditions in FV11 in combintaion plant,vendor and material combination along with Tax code but while creating PO Tax code is not defaulting automatically.
    Am I doing correctly or I should do anything else
    Regards
    Senthilnambi

    Hi,
    You have to specify the tax code manually, based on the condition record (FV11/FV12) for Plant, Vendor and material, it will populate the tax rates.
    If you want to default the tax code then maintain the same in ME11/ME12 - Purchase Info record.

  • BAPI or FM for Material and ChapterID Combination(J1ID Transaction)

    Dear All,
                    I need BAPI or FM  for Creation of Material and ChapterID combination. I dont need for other options present in J1ID Transaction.
    I cannot use Insert statement  for Material and ChapterID  Creation  as it contains only few fields.
    Please let me know regarding this.
    Regards,
    Anilkumar

    Hello
    The bapi BAPI_INSPECTIONPLAN_CREATE is used for creation. There you can assign several materials through structure MATERIALTASKALLOCATION (BAPI1191_MTK_C). There is no bapi for modifications so you can assign other materials using LSMW or BDC as Gururaj told you or in this special case populate table MAPL directly (better talk to your ABAP to decide it); I did it without issues and I checked and the function CZ_VB_MAPL_POST could update the information you need (talk to your ABAP to validate it).
    Best regards
    Carlos Díaz

  • Invalid username and password combination woes

    Before I do what I think I am supposed to do... I wanted to run this by you guys first to make sure incase someone found a way. I wish i didn't have to do this but...
    I have a Mac on our domain running 10.6.6. It had a seizure of some kind and i was forced to cold boot it. We got it back up and running and to the login screen, but when we tried logging in to it, the login in screen just shook. No matter what AD account i tried logging in with, SHAKE! SHAKE! SHAKE The next thing i decided to do was unbind and rebind the Mac thinking maybe it had something to do with that. NO GOOD. Not only did I get an error that the Mac could not unbind from our domain, but now, no matter what account i use to try and rebind the mac, I get the dreaded: invalid username and password combination error. WHEN I KNOW THAT'S NOT THE CASE!
    Anyone know how to fix this OTHER THAN downgrading to a version of 10.6.x that CAN bind? If that's even a option???
    Thanks!

    Why is that always any Apple support person or Mac users answer? It's a Microsoft problem. How can it be, I have 20 macs connected to the same network. The mac having the problem has been successfully working for 3 months. It started shaking when the user came in and in the troubleshooting process we removed it and are trying to rejoin it backl on to a domain it has been working on for months and 19 other machines are still working on. How is this a microsoft problem? Please enlightne me? If it sounds like I am frustrated, I apologize, but I AM!

  • Tables for production order number for material and Batch combination

    Dear Experts,
    Please suggest the table names for finding the production order for material and batch combination .
    Thanks in advance for your help...
    Best regards
    Nitishj

    Dear
    Please check in  AFPO-CHARG
    AFPO          Order Item Detail -Batch Number -CHARG
    AFFW         Confirmations -- Goods Movements w
    AFRD          Confirmations -- Defaults for Collective Confirmation
    AFRH          Confirmations -- Header Info for Confirmation
    Regards
    JH

  • ASO Time and Periods combined - Dynamic Time Series?

    I am looking to do period-to-date calculations in ASO using the method outlined by Gary Crisci but I have Time and Periods combined into one heirarchy.
    I have seen suggestions that this can be done, but I cannot find any example code for the calculations.
    My MDX skills are not up to the challange yet so I was hoping someone is doing this and could shed some light.
    I am exploring the options of hard-coded alternate heirarchies, but data is stored at the day level and users want
    the same capability they have in BSO.
    Thanks,
    Kenneth

    You can create the calculated members within the existing time dimension, but it get ugly and probably won't perform great. For starters you will have to create a calculated member with a formula for every stored time member you have. Not too bad for 12 months, but if you ahve years and months in same dim or daily model, its not realistic. That is the beauty of View dimension, a single formula goes a long way.
    Other option is to not have alternate roll-ups in time dim - perhaps you can use Attribute dims to simulate the alternate groupings you need.

  • HT4736 what do I do when iphoto doesn't recognize username and password combination?

    what is going on,  I can't email photos from iphoto since it does't recognize user name and password combination?

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • What do i do if my iphoto doesnt recognize my user name and password combination?

    I recently changed my email password, does that have anything to do with iphoto not recognizing username and password combination?

    No, it shouldn't. Where in iPhoto is it asking for your username and password?

  • Unable to validate the email addres and password combination - HELPPPPPPPPPPPPPP

    Only got my Blackberry 1 day ago and already I could throw it through the window.  I've tired and I've tired and still I get this message when I'm trying to download apps unable to validate the email addres and password combination.  I've asked for a new password over and over, even through I know the password I was putting in was correct.  I've deleted my account and re-opened up another and it still does it.  It keeps asking me to 'I agree' with terms and I keep agreeing and it still ask.  I've sent a email to the help desk, and I've not heard anything apart from an auto-response.
    I so want to be able to download the Apps, I want to be able to say 'hey, look what app, I've got' and it won't let me. 
    I SO NEED SOMEONES HELPPPPPPPPPPPPPPPPPP

    be very careful with capital letters and numbers on the BlackBerry.  I had trouble with that when I first got mine..
    Nurse-Berry
    Follow NurseBerry08 on Twitter

Maybe you are looking for

  • Materialzed view rewrite

    Hi http://download.oracle.com/docs/cd/B28359_01/server.111/b28313/qradv.htm#CHDFIAGB In the following section Materialized View Delta Joins A materialized view delta join is a join that appears in the materialized view but not the query. All delta jo

  • Creating a link to a file on a Windows server?

    I am trying to create a link to a file located on a Windows server that I can email to users and they can click on the link and it will open the actual file. Here is what I have done so far: smb://server/sharedfolder/document.doc The user can click o

  • How can I change default font in Illustrator CC?

    I've found instructions for CS2-CS4, but not CC. Thanks!

  • I want to type a website and go to it but my online pages won't let me do it anymore

    I use to be able to type in a website and go directly to it. I think when I updated something I lost that capability. Now the only way I get to another website is by running a search engine and clicking on it. This is really a waste of time. I want t

  • Elements 13 can't validate serial number. Grrrrrrrrrrrr!

    Hi. I recently bought Elements 13. Upon installation it requested I validate my serial number. But the program would not go online to do so. The message keeps repeating "please go online to validate your serial number". I have registered it on my ado