How to refresh values in second messagechoice based on first messagechoice?

Hi All,
We had a requirement where we need to populate values into second messagechoice item based on the value selected in the first messagechoice item.
We need to take the value (first messagechoice) as output parameter and need to pass as input parameter to the second messagechoice VO.
Can any please help me how to achieve the above.
Regards,
Sundeep

Hi Sumit,
Thanks for the reponse. I will go for the one you suggested.
Can you please go through my new thread if you have time which is a very urgent requirement for me.
Thread subject: "How to change VO's dynamically for a item for each row in advanced table?"
Regards,
Sundeep.

Similar Messages

  • How to get value in Second Drop Down based on selection made in first dropd

    Hi All,
    I have a table with first two columns as dropdown.
    The values in first drop down are fixed. However the value in second dropdown should be populated based on selection made in first .
    e.g
    First Column had different departments say IT, SALES, HR.
    Based on department selected I have to populate employee of that department.
    For first dropdown I have taken Drop down by index.
    What should I select for second drop down and achieve desired functionality? Please guide.
    Regards,
    Madhvika

    Hi
    Use drop down by key for fixed values IT, SALES, HR. create on_select action for that drop down.
    in on_select method code like this..
      DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
      DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
      DATA ls_segment1 TYPE wd_this->Element_segment1.
      data lt_segment1 type wd_this->elements_segment1.
      DATA lv_segment TYPE wd_this->Element_segment1-segment.
      data lr_column type ref to cl_wd_table_column.
    navigate from <CONTEXT> to <SEGMENT1> via lead selection
      lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
    get element via lead selection
      lo_el_segment1 = lo_nd_segment1->get_element( ).
      lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
      lo_el_segment1->get_static_attributes(
        IMPORTING
          static_attributes = ls_segment1 ).
    now ls_segment1 contains your first drop down selection value.
      DATA : lv_dropdown type string .
      lv_dropdown =  ls_segment1-segment.
      if lv_dropdown = 'IT'.
    // here fill your second drop down based on IT value.
    endif.
    Hope it solves.
    Cheers,
    Kris.

  • How to modify values of a textbox based on a checkbox

    Where can I find a guide to creating custom JavaScipt calculation code for Adobe Acrobat fillable forms?
    I have a fillable form that will base a textbox value on the following:
    value = 0.00;
    if checkbox1 is checked, then:
      value = value + 3.60;
    end if
    if checkbox2 is checked, then:
      value = value + 0.90;
    end if
    if textbox4 has any number in it, then:
      value = value * the number in textbox4;
    end if
    if value is NaN, then:
      value = 0.00;
    end if
    if value is 0.00, then:
      make textbox blank (clear the textbox)
    end if
    how do I do this in "custom calculation script" JavaScript?
    I tried to implement it, but the code gave an error when I tried to add to event.value a second time:
    event.value = 0;
    event.value = event.value + 3.60; // works
    event.value = event.value + 0.90; // doesn't work
    I don't understand. Why would it work on one but not the other?

    "event.value" is a string. I suggest you work with another variable (a
    number) and at the very end apply the value of that variable to event.value.
    A good place to start learning about calculations is here:
    http://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

  • How to refresh value in selection screen field

    Hi Experts,
    I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
    Thanks.

    Hi,
    That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
    cheers
    Janis

  • Displaying second parameter based on first parameter

    Dear Developers,
    In the parameter form or reports, I want to pass value selected
    in the first parameter to the second parameter
    ie. based on the first parameter selected, I would like the
    query written in the second parameter for
    displaying list to display only those values that are associated
    with the first parameter.
    How can I do this?
    I do not want to call report from form with preselected
    parameters.
    Awaiting speedy reply
    Gaurav

    You can't do this in Reports. You need to do it in Forms

  • Second LOV based on First LOV in Oracle APEX tabular Form

    Hi,
    I had created a tabular form in which I am having two LOV's. This form is based on a query.
    I had created a javascript function which internally calls AJAX and populates the second LOV based on the value selected in first LOV when onchange.
    But the issue is, when the user recalls this APEX page to view the details or edit the details, the second LOV shows all the values instead of showing only the values related to first LOV.
    In the second LOV query I am trying to write the below query.
    select function_name fn
    ,function_code_id fci
    from catering_function_codes
    where function_type_id = NVL(#FUNCTION_TYPE_ID#,function_type_id)
    order by to_number(function_code_id)
    in which #FUNCTION_TYPE_ID# is the value of first LOV. But I am getting the below error.
    report error:
    ORA-20001: Error fetching column value: ORA-06550: line 1, column 187:
    PL/SQL: ORA-00911: invalid character
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    How can you refer to the Second LOV the value of First LOV in a report based tabular form?
    Kindly let me know if you do not understand the issue.
    Please help me in this issue.
    Thank you
    Regards
    Dev

    Hi Roel,
    Thank you for the quick reply.
    I used the query as given by you. This time it is not giving any error but showing all the values in the second LOV irrespective of what ever value is present in the first LOV
    This is an apex tabular form which is generated by apex based on a query. The controls will be dynamically generated by APEX for each row. How can we hard code the control name to :P99_FUNCTION_TYPE_ID?
    Please help me in this issue. Thank you
    Regards
    Dev

  • Loading second dropdown based on first dropdown Jdev 11.5

    Hi All,
    I have a requirement of loading the second dropdown on selecting first dropdown.
    Ex:- conside i have state dropdown, when i select and state it should load city(dropdown) of the states.
    I tried using valuchange listerner with partial trigger it didnt work. Any help would be of great help.
    Please let me know.
    Thanks,
    Nitin
    Edited by: 811407 on 21-Dec-2011 02:59
    Edited by: 811407 on 21-Dec-2011 02:59

    http://www.youtube.com/watch?v=nXwL2_RP7AQ.
    you eg: goes here.
    http://www.youtube.com/watch?v=94PrwXWDEjI
    http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html

  • How to refresh data in SelectOneChoice component based on backing bean

    Hello.
    I am using JD Studio Edition Version 11.1.1.5.0 on Weblogic 11.1.1.5
    I have page fragment with SelectOneCoice based on backing bean (used as filter)
    <af:selectOneChoice label="#{projectBundle['label.toolbar.spinbox.period']}"
                                        valueChangeListener="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.onPeriodValueChangeListener}"
                                        binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.soc2}"
                                        id="soc2" value="#{pageFlowScope.ContentMainView.period}" autoSubmit="true">
                      <f:selectItems value="#{pageFlowScope.YearsListBean.yearItems}"
                                     binding="#{backingBeanScope.backing_jsf_fragments_project_ContentMainView.si2}" id="si2"/>
    </af:selectOneChoice>
    there is backing bean which reads data from database and creates list + add null value
    package sk.web.view.bean;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.Row;
    import sk.web.view.common.utils.ADFUtils;
    * Class is supposed to provide list of years for the af:SelectOneChoice component.
    public class YearsListBean {
        private static final String PERIOD_ITERATOR_NAME = "PeriodView1Iterator"; //auto generated id
        private List<SelectItem> yearItems;
        public YearsListBean() {
            super();
            yearItems = new ArrayList<SelectItem>();
            addYearsToList();
        public void addYearsToList() {
            DCIteratorBinding iter = null;
            iter = ADFUtils.findIterator(PERIOD_ITERATOR_NAME);
            Row[] rows = iter.getAllRowsInRange();
            addYearItemToList("", "");       
            for(int i = 0; i < rows.length; i++){
                Row row = rows[i];
                log.info("row[" + Integer.toString(i) +"]: " + rows[i].getAttribute("Year").toString());
                addYearItemToList( rows[i].getAttribute("Year").toString(), rows[i].getAttribute("Year").toString());
        public void clearYears() {
            log.info("Called.");
            getYearItems().clear();
       private void addYearItemToList(String strInYearLabel, String strInYearValue) {
            SelectItem tObjItem = new SelectItem();
            // Setup object
            tObjItem.setLabel(strInYearLabel);
            tObjItem.setValue(strInYearValue);
            // Add it ro list
            yearItems.add(tObjItem);   
        public List<SelectItem> getYearItems() {       
            // Get Output
            return yearItems;
    When I insert new record into DB table I want to show new value into filter. How to achieve this?
    I tryied get current instance of YearsListBean
         YearsListBean yearsList = (YearsListBean)FacesUtils.getManagedBean("pageFlowScope.YearsListBean");
    then clear and fill it again
         yearsList.clearYears();
         yearsList.addYearsToList();
    at the end I refresh view adding partial target
    AdfFacesContext.getCurrentInstance().addPartialTarget(getSoc1());
    But this procedure doesn't work. Please help me find working method.
    Thanks in advance.

    Why don't you use a model driven list in the first place? Your list gets it's data from a vo do this would be the preferred solution.
    Check out my sample http://wp.me/pcBZk-vM
    Which shows an similar use case.
    Timo

  • How to display value of an item based on another item

    Hi,
    In a page I've to display name for the corresponding id displayed in id item.Can I write a query based on id and display name as soon as I enter into that item.if so are there any properties I need to set ?I'm looking for just post_text_item functionality in forms?
    Thanks,
    Mahender

    Hi,
    I've created sample table with id,first_name and last_name to test:
    I've created AJAX script in application process area with name GET_NAME
    declare
    v_name varchar2(150);
    begin
    select first_name||'-'||last_name into v_name from names
    where id = :P53_id;
    htp.prn(v_name);
    exception when others then htp.prn('An error occurred retrieving name'||sqlerrm);
    end;
    CREATED JAVA SCRIPT IN html headers section of the page p53:
    <script type="text/javascript">
    function get_name(){
    var id = document.getElementById('P53_id').value;
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_NAME’,0);
    get.add('P53_id',id);
    var gReturn = get.get();
    document.getElementById('P53_name').value = gReturn;
    </script>
    put the following in HTML Form Element Attributes of p53_id :
    onchange="get_name(this,'P53_id)"
    It's not working ?
    Can anyone help
    Thanks
    Edited by: user518071 on Aug 14, 2009 8:14 AM
    Edited by: user518071 on Aug 14, 2009 11:04 AM
    Edited by: user518071 on Aug 15, 2009 5:02 AM

  • How to get value from a metric based on date, without effecting other colum

    Hi
    I have 2 metrics say Revenue and Total Revenue and Date Dim
    For a selected date in the prompt, Revenue should be shown for that date, where as Total Revenue should be shown for the past 15 days, based on the date in the prompt.
    How can I achieve this?
    Cheers
    Edited by: OBIAS on Feb 28, 2013 4:57 PM

    Set a presentation variable in the Date Dim prompt, P_DATE.
    Within the request, edit the formula for Revenue to be...
    FILTER("Revenue" USING ("Date" = @{P_DATE}))
    And set the formula for Total Revenue to be something like...
    FILTER("Total Revenue" USING ("Date" between TimestampAdd(SQL_TSI_DAY, -15, @{P_DATE}) and @{P_DATE}))
    JB

  • How to populate values in F4 help based on another F4 help in a TMG

    Hello All,
    I have created a TMG for a table. Have added that to customization also. Now, in that table I have 2 fields say carrid and connid. In the F4 help of carrid, all carrids will be displayed. Now if the user selects one carrid, the next field connid should show only those connids related to carrid. How this can be achieved in a TMG. If in a module pool, we can write POV or etc. But in TMG, how can we ?
    Rgds,
    Renjith

    See the table maintaince has events ,you can write the code under events.
    Reward Points if it is helpful
    Thanks
    Seshu

  • How to restrict values in one prompt based on value from another prompt

    Hi
           I have a requirement as follows. I have two fields (objects)
    program code
    contract number
    one program code can have several contract numbers.
    I need to provide prompts on Program code and contract number. when user selects one program from the prompt on program code then contract field should only show contract numbers belonging the program user selected.
    Please let me know how to bring this functionality in Webi report.
    Thanks in advance.

    Hi
    if ur requirement is in query level its impossible.(i mean whn u click on programcode then u have to display in contract at query level)
    if you want to display at report level then  
    The two objects Program and contract have a mapping then place a program object in query filter and use operator equal to and select prompt and run the query then it will ask you to select program .whn on choosing it you will  get filtered contract numbers for that program in report level  . There no need to use prompt for contract numbers object .
    Hope this helps u
    Thanks
    sunil
    Edited by: K.sunil on Nov 7, 2011 9:30 AM

  • How to merge values in a row, based on distinct values in another column

    I have a table like
    updatedby updateddate text
    John 01-May-2009 Approval record 1 added
    John 01-May-2009 Approval record 2 added
    David 02-May-2009 Approval record 1 removed
    I need the values of text column to be concatenated and displayed for unique records of (updatedby updateddate). The output is something like
    updatedby updateddate text
    John 01-May-2009 Approval record 1 added, Approval record 2 added
    David 02-May-2009 Approval record 1 removed
    I had planned to do it using PLSQL. Is there a way to get this done by SQl?.. Kindly suggest

    Prior to 10g:
    with t as (
               select 'John' updatedby,to_date('01-May-2009','dd-mon-yyyy') updateddate,'Approval record 1 added' text from dual union all
               select 'John',to_date('01-May-2009','dd-mon-yyyy'),'Approval record 2 added' from dual union all
               select 'David',to_date('02-May-2009','dd-mon-yyyy'),'Approval record 1 removed' from dual
    select  updatedby,
            updateddate,
            ltrim(sys_connect_by_path(text,','),',') text
      from  (
             select  t.*,
                     row_number() over(partition by updatedby,updateddate order by text) rn,
                     count(*) over(partition by updatedby,updateddate) cnt
               from  t
      where rn = cnt
      start with rn = 1
      connect by updatedby = prior updatedby
             and updateddate = prior updateddate
             and rn = prior rn + 1
      order by updateddate,
               updatedby
    UPDAT UPDATEDDA TEXT
    John  01-MAY-09 Approval record 1 added,Approval record 2 added
    David 02-MAY-09 Approval record 1 removed
    SQL> 10g and up:
    with t as (
               select 'John' updatedby,to_date('01-May-2009','dd-mon-yyyy') updateddate,'Approval record 1 added' text from dual union all
               select 'John',to_date('01-May-2009','dd-mon-yyyy'),'Approval record 2 added' from dual union all
               select 'David',to_date('02-May-2009','dd-mon-yyyy'),'Approval record 1 removed' from dual
    select  updatedby,
            updateddate,
            ltrim(sys_connect_by_path(text,','),',') text
      from  (
             select  t.*,
                     row_number() over(partition by updatedby,updateddate order by text) rn
               from  t
      where connect_by_isleaf = 1
      start with rn = 1
      connect by updatedby = prior updatedby
             and updateddate = prior updateddate
             and rn = prior rn + 1
      order by updatedby,
               updateddate
    with t as (
               select 'John' updatedby,to_date('01-May-2009','dd-mon-yyyy') updateddate,'Approval record 1 added' text from dual union all
               select 'John',to_date('01-May-2009','dd-mon-yyyy'),'Approval record 2 added' from dual union all
               select 'David',to_date('02-May-2009','dd-mon-yyyy'),'Approval record 1 removed' from dual
    select  updatedby,
            updateddate,
            ltrim(sys_connect_by_path(text,','),',') text
      from  (
             select  t.*,
                     row_number() over(partition by updatedby,updateddate order by text) rn
               from  t
      where connect_by_isleaf = 1
      start with rn = 1
      connect by updatedby = prior updatedby
             and updateddate = prior updateddate
             and rn = prior rn + 1
      order by updateddate,
               updatedby
    UPDAT UPDATEDDA TEXT
    John  01-MAY-09 Approval record 1 added,Approval record 2 added
    David 02-MAY-09 Approval record 1 removed
    SQL> SY.

  • Get values in dropdown field based on f4 help in another field

    Hi Experts,
    How to Get values in dropdown field based on another field which is F4 Help. If I select one value in f4 help field(ex: 1) I need to get values in dropdown field (ex:a, b, c),If I select another value in f4 help (ex:2) I need to populate different values (ex: d). Can any one please provide sample code that can help more.
    Thanks,
    Ashok.
    Moderation: Kindly search and find the solution, before you post.

    Dear Ashok,
    You can take help from this program in SAP named BCALV_EDIT_08.
    Thanks.
    With regards.

  • How to refresh MessageChoice in advanced table on LOV change?

    I have an advanced table for data entry. One column has Employee Name, which is an LOV. Another column is a MessageChoice, listing eligible elements for that person. Everything works fine when the page is first loaded. This is the code I'm using in processRequest to set up the MessageChoice: The MessageChoice is set up using a PicklistViewDefinition (not instance) as each row has to have different selections.
    OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("TimeEntryTbl");
    OAMessageChoiceBean elePoplist = (OAMessageChoiceBean)table.findChildRecursive("ElementSelect");
    elePoplist.setListVOBoundContainerColumn(0, table, "EmployeeGroupName");
    elePoplist.setListVOBoundContainerColumn(1, table, "PeriodEndDate");
    elePoplist.setListVOBoundContainerColumn(2, table, "AssignmentId");
    elePoplist.setPickListCacheEnabled(false);
    The problem is when a new row is added, initially the poplist will be empty, which is expected. After choosing a value from the Employee LOV, the AssignmentId (which is a FormValue) will be populated. At this point, I need the Poplist to refresh to get the correct list of elements. I'm not sure how to make the poplist refresh. In ProcessFormRequest, I have:
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    System.out.print("lovsource=" + lovInputSourceId);
    And it prints the correct lov source. The dev guide says you can invoke an AM method there... but what should the AM do? I'm not sure how to refresh a poplist for a specific row when it is defined in an advanced table with Bound container columns, using a picklist view definition.

    I looked through that thread, but nothing in there seemed to really directly address my problem. The solutions in there seemed to be to make view instances instead of using the bound container columns.
    But, to answer my own question, I think I found the solution, which so far seems to be working ok...
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("PersonSelect".equals(lovInputSourceId))
    pageContext.setForwardURLToCurrentPage(null, // no parameters to pass
    true, // retain the AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Which basically just refreshes the page so all the MessageChoice fields are re-populated based on the latest information in the row. No need to automatically re-execute any VOs and let's OAF do it's own thing to maintain them.

Maybe you are looking for

  • Thunderbird won't launch after upgrading to Lion

    The subject line metions Thunderbird, but this is really a Lion problem.  I just bought a new MacBook Pro (with Lion).  I had been using an OLD MacBook Pro Core2Duo with Snow Leopard.  I used Migration Assistant to transfer everything to the new MacB

  • Hard drive size for macbook pro

    I have filled my hard drive storage and I would like to increase the storage size.  What is the maximum size of drive I can go up to?  I believe today that I have a 320 GB storage device.

  • Buy MACBOOK now or wait for newer ?

    I'm a student in college right now in need of a laptop and stuff. I'm not really looking for power as much as I'm looking for efficiency. My dilemma arises when I can buy a macbook with like -$100 or -$200 if your in college and stuff + a $300 iPod t

  • Generating XSD from Database

    I need to auto-generate an XSD file from a database. I'm told there are free tools out there to do this but haven't had any luck finding any. Any ideas? I don't want to have to write this by hand.

  • Music Stops When In Message App

    Has anyone else noticed that music/videos/spotify stop while in the message app and then restart when you go out since ios8 - so annoying - is there a way around this?