Filter second selectOneChoice depending on choice in first selectOneChoice

I have JSP page Report_start.jsp. On this page found 3 selectOneChoice. 1 - Country, 2 - Archive, 3 - Fund.
First falling out list (country) is filled by class FillCountryComboBox, located in file FillCountryComboBox.java.
Second falling out list (archive) is filled by class FillArchiveComboBox, located in file FillArchiveComboBox.java.
Third falling out list (fund) is filled by class FillFundComboBox, located in file FillFundComboBox.java.
Data are found in views qCountry, qArchive, qFund. On event OnChange first selectOneChoice is fixed action "history.go(0)", since filling occurs at renovation of the page Report_start.jsp. Then me and it is necessary to hear, is chose some importance in list. When filling second falling out list it is necessary to take into account choice first, but when filling third falling out list it is necessary to take into account choice second.
The Question - as in class FillArchiveComboBox to hear what importance is chose in list selecOneChoice1 (country)?
I using JDeleloper 10.1.3, ADF BC, ADF Faces

Hi,
this example from Steve Muench has different background, but maybe will help you.
(Cascading Lists in JSF [10.1.3]) http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#62

Similar Messages

  • Code to make second job dependent at first

    Hello experts, how can I write an ABAP code to kick of an event after the first step, and make the second job dependent on the event. thanks a lot...

    Hi christopher,
    1. Simple
      use like below when writing code FOR SECOND JOB
      where ;
      jobname = 1st jobname
      jobcount  =1st job count
    2.
    Data Declaration
      DATA : eventparm LIKE tbtcjob-eventparm.
      eventparm = jobname.
      eventparm+32 = jobcount.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount                          = jobcount_sen
          jobname                           = jobname_sen
          predjob_checkstat                 = ''
          event_id                          = 'SAP_END_OF_JOB'
          event_param                       = eventparm
    regards,
    amit .

  • Dependent Message Choice Issue, Please Help.

    Hi All,
    I am new to OAF.
    I am desiging  dependent message choice where there are 4 message choice boxes
    I have written the code but the issue i Am facing is when i select a value from the first Mesage Choice , processFormRequest Method is not called.If I click on any lob in the page , then only processFormRequest() is called and value is populated in the second drop down.
    So I need to call processFormRequest() after a value is selected in Message Choice..
    Pleas help

    Hi,
    Follow the steps in this link. In this they have used MessageTextInput. You do the firePartialAction in MessageChoice.
    https://blogs.oracle.com/prajkumar/entry/partial_page_rendering_in_oaf
    Then write the following code in processFormRequest and modify as per your requirement.
    if ("update".equals(pageContext.getParameter(EVENT_PARAM)))  //update is the event name of the MessageChoice item
    if (pageContext.getParameter("ApplicationChoice") != null)
    ownerName1 = pageContext.getParameter("ApplicationChoice");
    System.out.println("Application value :" + ownerName1);
    Serializable ownernameParam[] = { ownerName1 };
    am1.invokeMethod("setQueueName", ownernameParam);
    System.out.println("After calling the queueName function");
    //Code in AM
    public void setQueueName(String queuename)
    SeaSoaQMsgidNameVOImpl vo1 = getSeaSoaQMsgidNameVO1();
    vo1.setWhereClause("OWNER = :1");
    vo1.setWhereClauseParam(0,queuename);
    vo1.executeQuery();
    I hope this will help you..
    Thanks and Regards,
    Myvizhi

  • I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first

    I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first phone?

    it's meant to work like that
    so if you receive a message on your iphone you also get it on your ipad or ipod touch
    to avoid it use separate appleID for each device
    or turn off imessage on 1 or both devices in their settings
    but that will not fix the issue that 2 devices using the same appleID will never be able to facetime eachother
    the appleID is a unique handle for 1 user only

  • I bought a second hand ipad 4 4g the first user forgot the apple id and password, how can i restore the ipad and create a new id and password for it?

    i bought a second hand ipad 4 4g the first user forgot the apple id and password, how can i restore the ipad and create a new id and password for it?

    You cannot get around Activation Lock without the oringinal owner disassociating the iPad from their account.
    See the Activation Lock FAQ for what you and they need to know.

  • Second o/p been printed from first page due to page format

    Dear All,
                     I have created a new page format with width 210 mm and height 290 mm and included it a smartform for invoice printing that I have created.The problem is that when i take a printout of the invoice program it prints the first page perfectly,but when I take printout of the next invoice,it starts printing from the same page itself ,hence the second invoice is printed on the first and the second page .Other page formats are been printed correctly.The problem is only with the this page format that i have created.Even if i Change the width and height of the page format from SPAD ,the output remains the same.Please help.
    Thanks in advance,
    Subhabrata Choudhury.

    Hi,
    I am not sure which device type you are using, but it is possible you need to add some commands in the sections below from SPAD:
    SPAD -> Full Admin -> Device Types  -> <Device Type> -> Formats -> <Format> -> End of page
    E.g. In a windows device type like SAPWIN, the command  below is needed:
    formfeed
    \f
    This ensures that there is a formfeed after each page. You can check the standard page formats such as DINA4 to see which commands are required for your device type. Also for some device types, commands are needed in the printer intialization section for your custom page format to tell the printer the length of the page.
    SPAD -> Full Admin -> Device Types  -> <Device Type> -> Formats -> <Format> -> Printer Initialization
    Again you can check the standard page formats like DINA4 or LETTER as a reference.
    Regards,
    Aidan

  • How to populate Second drop down based on the first drop down value

    Hi Experts,
    i have a HTML BSP page. with 2 drop down with SELECT and OPTION tags. i need to populate the second drop down based on the first drop down value.
    i tried HTMLB script they work good as stand alone when i try to embed the HTMLB with HTML it does not work.
    Please can you give me a solution only with ABAP script and HTML.
    please clearly let me know on what event i should implement it. sample code is really appreciated .
    With regards,
    Chella

    You can have event handler for first drop down . Then populate the data for 2nd field when the event triggers on first field.

  • How can I delete everything from my Time Capsule?  Disk Utility only gives me the choices of First Aid and Restore.

    How can I delete everything from my Time Capsule?  Disk Utility only gives me the choices of First Aid and Restore.

    How can I delete everything from my Time Capsule?
    Disk Utility would be used for an internal hard drive on your Mac, or for a drive that was attached directly using USB or FireWire.
    The Time Capsule is a network drive. Disk Utility cannot be used for this type of drive.
    Open Macintosh HD > Applications > Utiltiies > AirPort Utility
    Click Manual Setup
    Click the Disks icon
    Click the Disks tab below the icon
    Click Erase
    The "Quick Erase" option will only take a minute or so. This would be fine if you plan to keep the Time Capsule yourself.
    If you plan to sell the Time Capsule, you would want to use a more secure erase, like "Zero Out", which will likely take 4-6 hours or so since everything on the drive will be replaced with zeros.

  • Dependant Message Choice List

    Hi Gurus,
    Can anyone please suggest How to create dependant message choice list in OAF.
    Basically I am having two message choice list MC1 and MC2 where MC2 values depends on the MC1 value.
    Thanks
    Piyush

    Hi Piyush,
    I assume you have two different view object/instances created for the MC1 and MC2 attached as PickListViewObject with return value and display value. Now you can achieve your requirement like:
    1) Set partial action on MC1.
    2) In PorcessFormRequest handled event of MC1 and set where clause on MC2's PickListViewObject with value selected by MC1 --> Execute view object.
    Note:: On page load you may need to write where clause for MC2's PickListViewObject with the value which returns no rows.!
    Regards,
    Swati

  • Second list depending on first on when-list-changed

    Hello!
    I'm having some trouble with 2 poplists. First poplist (:bloc_portar.lista) is generated ok. Second poplist (:bloc_portar.cnp) depends on the values of the first like this:
    DECLARE
         nume_lista1 varchar2(60) := replace(:bloc_portar.lista, ' ', NULL);
         nume_lista2 varchar2(60);
         rg_query_cnp varchar2(1000) := 'SELECT b.id, b.id FROM vizitatori2 b
         WHERE b.nume=nume_lista2';
         rg_id_cnp recordgroup;
         rg_id2 recordgroup;
         err_cnp NUMBER:= 0;
    BEGIN
    nume_lista2 := substr(nume_lista1, 1, 7);
    message('---' || nume_lista2 || '---');
         rg_id2 := Find_Group ('rg2');
         if not ID_NULL(rg_id2) then
         delete_group(rg_id2);
         end if;
         rg_id_cnp := create_group_from_query('rg2',rg_query_cnp);
         err_cnp := populate_group(rg_id_cnp);
         clear_list('bloc_portar.cnp');
         populate_list('bloc_portar.cnp',rg_id_cnp);
    END;
    nume_lista1 fetches the data selected from the first poplist and nume_lista2 takes the first 7 letters of that string to pass it in the query which should make the group/populate the second list. This code is more of a test and not a final code thats why i used those string functions (and also because the values in first list are concatenated (name+surname).
    I used a message to make sure the value in nume_lista2 is the one that i want for the query to work.
    The problem : its in here 'SELECT b.id, b.id FROM vizitatori2 b WHERE b.nume=nume_lista2';
    I've found out that when i pass the WHERE condition "manually" like this 'SELECT b.id, b.id FROM vizitatori2 b WHERE b.nume=''James'' ';
    the second poplist is populated just fine with the right values. But when i try to make it use the variable nume_lista2 in the condition it says that rg2 (aka the group for the second poplist) "Cannot create Group rg2".
    Hope you can help me,
    Iulian

    But can u enlighten me on a couple of issues pls?Sure :)
    >
    1. How come it doesn't recognise the variable in the query when i make the definition in DECLARE? Shouldn't it be analyzed only later in the main program when i actually use the query ? How does this work?You can do that in declare part too :). I am usually convenient to have a query built just before using it.
    2. Why tripple quotes and concatenate operators ? Is this how variables are passed to queries? I believe i used them before without any extra bording or anything.varchar2 variables are not passed with quotes by default. So, if you do not use the quotes, the resultant query would be something like
    SELECT b.id, b.id FROM vizitatori2 b WHERE b.nume=Jameswhich is not what we expect. So, surround the variable with the quote, which would turn the query to
    SELECT b.id, b.id FROM vizitatori2 b WHERE b.nume='James'HTH.
    -Arun

  • Mandatory filter which value depends on user choice

    I've just start my experience with SAP BO, and I have big problem to solve. Iu2019m using Universe Designer and I need a mandatory filter, which can have one of two values. The value of filter depends on user choice. Filter should have default value. Eg. when user choose "internal view" filter will add expression tabe.column = 'X' to a query, when user choose "external view" filter will add expression table.column = 'Y'. The main problem is that chosen value should be remembered in report. So user cannot be prompted every time to choose a value. Does anyone has any idea how to solve this problem? The best solution would be when one filter could reference to another. Or to use internal report variable, but I think there is no such thing. Thanks for any advice.

    It should be solved by using an @prompt in the mandatory filter.
    eg. table.column = @Prompt('Select internal or external','A',{'internal view','external view'},Mono,Constrained,Persistent)

  • Filter Second Datagrid from First Datagrid

    I'm trying to filter a 2nd datagrid when you click a row from
    the 1st datagrid. I wrote some ASP code that takes a recordset and
    converts it to XML. The XML is working fine when doing this.
    The application is a list of trainers and superusers at a
    hospital. The list of people is the first datagrid and the
    curriculums they can teach is the second. Each trainer can have 1
    or more curriculums that they can teach.
    The first datagrid (the one I want to click on to filter the
    second datagrid) is called "Trainers" and the field I want to use
    as the key to pass to the second is "Trainer_ID." The second
    datagrid is called "Roles" and shares a column called "Trainer_ID"
    that identifies a trainer and a curriculum (role) they can teach.
    I was hoping someone could help me by posting an example of
    the code I could use to do this filter? I'm new to Flex, but
    experienced with ASP and ASP.NET. Love what I'm doing with flex
    though. Here is a link to the application itself:
    Test
    Link for Application
    Here is my code so far:

    Basically, what Amy's example shows, is using the
    filterFunction property of the ArrayCollection to filter the rows.
    filterFunction takes a reference of a function, that's called for
    each row in the ArrayCollection and it returns a boolean deciding
    whether you want to keep this row or not.
    once filter has been applied, you need to call refrehs()
    function to see the changes.
    http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items-in-a-datagrid-in- flex/
    http://blog.flexexamples.com/2008/09/12/using-a-slider-to-filter-items-in-a-datagrid-contr ol-in-flex/
    ATTA

  • IIR Filtering and response .vi: Butterwort​h filter magnitude response depends on sampling rate -why?

    Hi folks,
    I am not expert in filter design, only someone applying them, so please can someone help me with an explanation?
    I need to filter very low-frequent signals using a buttherwoth filter 2. or 3. order as bandpass 0.1 to 10 Hz .
    Very relevant amplitudes are BELOW 1 Hz, often below 0.5 Hz but there will be as well relevant amplitudes above 5 Hz to be observed.
    This is fixed and prescribed for the application.
    However, the sampling rate of the measurement system is not prescribed. It may be between say between 30 and 2000 Hz. This will depend on whether the same data set is used for analysing higher frequencies up to 1000 Hz of the same measurement or this is not done by the user and he chooses a lower sampling rate to reduce the file sizes, especially when measuring for longer periods of several weeks.
    To compare the 2nd and 3rd order's magnitude response of the filter I used the example IIR Filtering and response .vi:
    I was very astonished when I the found that the magnitude response is significantly influenced by the SAMPLING RATE I tell the signal generator in this example vi.
    Can you please tell me why - and especially why the 3rd order filter will be worse for the low frequency parts below 1 Hz of the signal. I was told by people experienced with filters that the 3rd oder will distort less the amplitudes which is not at all true for my relevant frequencies below 1 Hz.  
    In the attached png you see 4 screenshots for 2 or 3 order and sampling rate 300 or 1000 Hz to show you the varying magnitude responses without opening labview.
    THANK YOU for your ANSWERS!!!
    chris
    Solved!
    Go to Solution.
    Attachments:
    butterworth-filter-differences.png ‏285 KB

    Hello Lynn,
    thanks for the answer. You are right that there are few points "behind" the curve in the graph, see png.
    However, this is the filter response which Labview (2009) provides to me directly out of the "IIR Filter for 1 Channel. vi" in the "filter information" output cluster. Where up to now I do not know how to influence it - apart from adjusting the input parameters "IIR filter specifications". OK, I assume I have to gain more knowledge of this. The curve of the magnitude resonse dies not change when I change the number of samples of the input signal of the signal generator, only wehn I change the sampling rate.
    I used directly the example vi from Labview with the name indicated in my first post "IIR Filtering and Response.vi".
    So I assumed that everybody has it in his/her examples shipped with LV and it is not necessary to post it.
    I just adjusted the size of the diagram of magnitude response to see the curves better as you see in the attached vi.
    So I did no changes to the vital parts of signal generation and filter of the example. The screenshots are like they come from the example when using the option "one waveform" where I as user assume that this which is behind is quality-controlled by NI.
    I was also astonished that the filter magnitude response is different to the one I copied out of graphs 1 year ago - but I unfortunately cannot reconstruct which example I used there...
    Thanks for any further comments
    chris
    Attachments:
    IIR Filtering and Response_CH.vi ‏55 KB
    butterworth2nd_order_bandpass_0p1to10Hz_mag_response.PNG ‏18 KB

  • Flowable form not flowing to second page - flowing to top of first page

    The content on my Dynamic flowable form flows to the top of my initial, first page, instead of the second page.
    I have created a form where the subforms are set to flowed, flow direction is either Top to Bottom or Western Text and the "Allow page breaks within content" boxes are checked. Nothing is set to positioned. In my Pagination tab, my Place is set to "Following Previous" and my After is set to "Continue Filling Parent." I have other forms which were created by other people before I got here that have similar functions, and I've gone in and checked them against this form, and I can't see any differences in the settings. I've created a 2nd master page, thinking the content didn't have anywhere to flow to and maybe that was the problem, but that doesn't help.
    I've been playing lightly with Livecycle forms over the last few years and have never had content flow to the top of the same page instead of to a second page. Of course, this is my first time trying to create a form relatively from "scratch," so I'm sure I've done something wrong, but am not sure what. I've attached an imagine of what it looks like at the top of my page after I test to make things expand.
    Any thoughts? Thanks!

    On a flowable form, you don't have a page2 exactly. You keep putting everything on page1 and it automatically flows to the next page and the next page. Getting rid of an extra page requires looking in the hierarchy and delete everything on that page including the subform which you have to delete last. Sometimes it's really stubborn and I don't know enough about subforms to know why that is but maybe someone else will jump in to tell us both. You'll get a warning telling you that you are trying to delete the last subform on the page and just say ok.
    Now, if you already have a page 2 and stuff on it, open a blank, control all, then control C and paste all that stuff onto the blank, then delete everything off page2 and then delete page2. Go to the blank and repeat the copy process for everything there and paste it onto page one. It should flow over several pages depending on how many objects you have. Then you can close the blank and get rid of it. It's just an object holder while you get your original documents extra pages deleted.
    Like I said, I create a blank form, change the Page1 subform to "Flowed" and then save that as a LiveCycle template called "Flowable Layout" or something like that. Then I look at the form I need to make and decide if it needs to flow or not and use a static template for ones that don't and my flowable template for those that do. Knowing ahead of time that you'll need it to flow saves from laying out the form twice. So I just let it flow from top to bottom and set my pieces of layout into positioned subforms. Then it's also easy to show or hide the subforms as needed. I use alot of buttons (visible screen only) to show hidden subforms that aren't needed until someone selects that section. It's all just great fun......

  • How to call second page in Smartform without calling first page

    Hi Gurus,
    I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
    For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
    Thanks in Advance
    Gautam

    Hi,
    The smartform will always start with the first page in the structure by default.  However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
    Regards,
    Nick

Maybe you are looking for

  • Can I add charter marks after iMovie and iDVD

    a few years ago I transfered old 16mm to my DV camcorder and then into iMovie and iDVD. I was looking at one of them for a family reunion and on one of the DVD's I somehow forgot to put in the last 3 chapter stops. Is there an easy way of redoing the

  • Signature panel 'hangs' when viewing a signed document

    Hello and Merry Christmas to everyone, I am facing a problem when viewing a document ( https://drive.google.com/file/d/0B1wk9toh5e7AekxUcGM0RVc4Z2c/edit?usp=sharing ) with Adobe Reader. The signature panel appears to be frozen (not initialized), and

  • Class Not Found: com.bea.wlevs.adapters.jms.api.OutboundMessageConverter in Outbound JMS Converter

    OEP 12.1.3 Following the instructions in 4 Adapters (12c Release 1 (12.1.3)) I have created a custom message converter bean for my Outbound JMS Adapter (I had to add the JAR file com.bea.wlevs.adapters.jms_12.1.3.0_0.jar from OEP_HOME\oep\modules to

  • Mighty mouse and windows 7

    hi i have a mighty mouse and i had it working on a sony vaio laptop with windows 7 installed , i had to remove it for mac computer, have tried reinstalling it on the sony again but it will not be recognized can anyone help please

  • I can't activate my one-to-one account in Safari or any other browser. Help.

    I can't activate my Apple one-to-one account that I purchased with my computer. I want to reserve a time to bring my computers into my local Apple Store for Personal Setup/file transfer (my old G4 Powerbook can't communicate with the OS Lion MacBookP