Population of a dropdown based on another dropdown selection

Hi,
I'm trying to develop a form in which a secondary dropdown is populated based on a selection from a primary dropdown.
The idea behind this is as follows
The first dropdown is bound to a database.
From this dropdown a user would select a project.
This selection would form part of a 'WHERE' clause in a SQL query that would select a list of users involved in the project.
This list of users would then be used to populate the second dropdown.
By selecting a user from the second dropdown the database would be queried again and the result used to populate the rest of the form.
I've seen examples where a single dropdown is used to populate a form but I've been unable to find any code examples in which the result of one dropdown is used to populate a second.
Can anyone help? Many thanks in advance.

You can get pretty close out of the box using some configuration manager applet voodoo
1)First off create a Table that will contain the options for your list. Create the columns e.g. label and id and then also create a column called dSecurityGroup
2)Add a view based on the table you just created, choose the Security tab and select "Use standard document security"
3)Add some values to your view - make sure that you populate the dSecurityGroup column with real values of security groups
4)Once it is all published, have a look at the checkin and search screens. You should find that UCM will evaluate the options in the same way it would documents - based on the dSecurityGroup value you applied to the row - e.g. you will see an option on the search screen if you have at least R permissions, you will see an option on a checkin screen if you have at least RW permission
Try it out :-)

Similar Messages

  • Auto populating a column prompt based on another column prompt

    Hi,
    Is it possible to auto-populate a column prompt, using the value of another column prompt?
    My situation is described as below.
    I have created a new dashboard prompt. This contains 2 column prompts, for example say col1 and col2. Both are multi-select prompts.
    col1 values - a,b,c,d.....
    col2 values - 5,2,8,7.....
    col1 and col2 values are picked from different tables. Also we have a mapping table which maps col1 and col2. Say a-5, b-10, c-1, d-3 etc...
    My requirement is, if a user selects values "a,d" for col1 prompt, col2 prompt must be automatically populated by values "5,3".
    Is this possible? If so, please help.
    Thanks,
    kc.

    If the actual filter criteria is only col1 the instead of displaying the values in the second prompt, make a separate report and only choose only the 2nd col in that report and make col1 as prompted and select appropriate title for that report.Place the report above the actual report in dashboard. So it will display only those records which are chosen in col1 from the prompt.

  • How to Populate a listbox based on another listbox selection. Please help!

    Hi Experts,
         I have a requirement where I have two listboxs(dropdown list) in a selection screen. I have to populate the second listbox based on the selected item from the first listbox. How to do this?
    I have created a listbox in a selection screen using
    Parameters: p_soldto as listbox visible length 30 user-command chg,
                p_shipto as listbox visible length 30.
    Then I have tried to look at the value of item selected  from first listbox in AT SELECTION-SCREEN OUTPUT, But I am not getting any value of p_soldto.
    I think I am doing something wrong. I think I have to use some event handling like on selection of an item from listbox. But I don't see any such event handing in ABAP.
    Please give me some code example.
    Please help!
    Thanks
    Gopal

    HI,
    Check this program, it is using a list box and filling values into it at initilization event.
    <b>REPORT ztest2.
    TYPE-POOLS : vrm.
    tables: bkpf.
    DATA : values TYPE vrm_values.
    DATA : wa LIKE LINE OF values.
    PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: dd type bkpf-BSTAT user-command abc.
    select-options: a for bkpf-bukrs MODIF ID buk.
    select-options: b for bkpf-belnr MODIF ID SEL.
    at selection-screen output.
      If list_box = 2.
        loop at screen.
          if screen-group1 = 'SEL'.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    INITIALIZATION.
      wa-key = '1'.
      wa-text = 'Orange'.
      APPEND wa TO values.
      wa-key = '2'.
      wa-text = 'Red'.
      APPEND wa TO values.
      wa-key = '3'.
      wa-text = 'Blue'.
      APPEND wa TO values.
      wa-key = '4'.
      wa-text = 'Gray'.
      APPEND wa TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'LIST_BOX'
                values          = values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.</b>
    Regards,

  • Setting prompt value based on another prompt selection

    I have 3 prompts. The first one contains 'Y' and 'N'. The other 2 are for start-date and end-date so the report runs for this date range. I would like the start-date to be set to, say, '01/01/2009' if the user selects 'N' in the first prompt. If the user selects 'Y', the start-date will be set to, say, '02/01/2010'. These values are not dynamic though.
    Please let me know how I can do this.
    Thanks,
    Bhusan

    Sandeep,
    Here is what I did.
    1. The first prompt has 'Y' and 'N' that comes from a database table. So did not have to create these.
    2. The second prompt - Used the following SQL for Show - select (case '@{LegacyVal}{N}' when 'N' then '01/01/2009' when 'Y' then '02/01/2010' end) from SubectArea."Registration Date". I kept "All Choices" checked. In the default to, I selected "All Choices".
    Now when I test this and select any value from the first prompt, the second one does not change. It keeps the All Choices value always. What am I doing wrong here? I went through the earlier posts and tried to follow the steps, but looks like I am not doing the right way.
    Thanks,
    Bhusan

  • How to load one filter values based on another filter selection

    Hi,
    I have a Query/Report that contains the following filters
    Product Family
    Product Line
    Product
    all the above InfoObjects are independent, now i need a functionality where in if i select a Product Family then all the Product Line belonging to that Product Family should get loaded in the filter selection, same way when a Product Line is selected the all the Products under that Product Line should get loaded ni Products filter.
    Please let me know how this functionality can be achived.
    Thanks
    Akila. R

    Hi Akila,
    I am assuming you query runs on a cube that loads data from the source system. In that case cube will contain only valid cobminations of Product Family & Product Line.
    In order to make sure that if a cetain Product Family is chosen you want to see only the relevant Product Line as available in the cube do the following:
    Go to Query Designer Filter
    Pick Product Family > Properties> Advanced. Under the Tab Filter Value Selection during Query Execution choose 'Only Values in InfoProvider'
    Do the same setting for Product Line as well.
    Hope this helps.
    Regards,
    Amrita
    Edited by: Amrita Goswami on Jun 23, 2009 7:26 AM

  • F4 Help based on a previous selection

    Hello,
    Could someone let me know if it is possible to set the F4 help based on another variable selection in WAD?
    To be more clear:
    I have two variables.
    Based on the value the user selects for the first variable, the F4 help for the second variable is to be populated.
    Note: Both the variables are created on two different Info Objects.
    Thanks in advance.
    Kirit

    Hello Suvarna,
    Thank you for your reply.
    But I doubt that if I do the way you suggested, it would be the variable that would be called instead of the F4 help of that particular variable.
    The variable I have in my selection screen is having a  F4 help by default . I need to restrict the values in that F4 help based on the value selected by the user for the first variable.
    I will have to restrict the default F4 help and then assign my custom F4 help to that variable.
    Regards,
    Kirit

  • Ref2 on JE not populated for Credit Memos not based on another document

    Version: (2007A)
    Description of requirements: (Please provide a detailed description)
    When the Setting in System Initialization\Document Settings \General tab\
    Document Remarks Include is set to BP Reference Number, the Ref2 field on the Journal Entry for the document is populated with the BP Reference from the document. This is true for all documents, regardless of whether or not the document is based on another document, EXCEPT for AR and AP Credit Memos. In the case of Credit Memos, if the Credit Memo isnu2019t based on another document, the BP Reference isnu2019t written to the Ref2 field on itu2019s Journal Entry.  Our customers have complained that this makes it very difficult for them to do their reconciliations as the Ref2 is blank on the reconciliations screen for these Credit Memos.  If the Ref2 field were populated in the same manner as other documents, the Ref2 Field would contain the same BP Reference as the invoice(s) it should be reconciled with.  We have been asked to request that this functionality be added in a future patch, as it would greatly simplify the customeru2019s reconciliation and save them a great deal of time and effort.
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    It is very difficult to reconcile our Credit Memos with the correct documents, as there is no reference available on the screen to connect them to the other documents. This requires a great deal of time researching which Credit Memo(s) should be reconciled with which Invoice(s). 
    Examples: (Please describe a typical example, how the functionality should work.)
    When a Credit Memo (Purchase or Sales) not based on another document is created, the Ref2 field on the Journal Entry should be updated with BP Reference entered by the user on the Credit Memo.
    Current Workaround: (Please describe the workarounds you are using at the moment)
    None. Hours wasted trying to reconcile correctly.
    Proposed solution: (Please suggest how the new functionality should work)
    When a Credit Memo (Purchase or Sales) not based on another document is created, the Ref2 field on the Journal Entry should be updated with BP Reference entered by the user on the Credit Memo.
    Regards,
    Sally Weinrauch
    Coastal Range Systems

    hi,
    so change  field status group with trx <b>OB41</b>
    A.

  • ADF BC selectOneChoice- populating an LOV based on another LOV

    scenario:
    country:country_id, country_nme ViewObj: CityVO
    city: city_id, country_id, country_nme ViewObj:CountryVO
    cc: cc_id, country_id(FK), city_id(FK) ViewObj:CCVO
    i have got two combo boxes(selectOneChoice) displaying
    coutntry LOV which i created by selecting
    base data source:CCVO, list datasource:countryVO
    mapped attribute:country_id, display attrib:country_nme
    similarly,city LOV which i created by selecting
    base data source:CCVO, list datasource:cityVO
    mapped attribute:city_id, display attrib:city_nme
    objective:
    now i need to populate the city LOV based on the country selected.
    i added valueChangeListener on countryLOV so that it will get the country_id and execute view criteria on cityVO
    problem:
    problem is that i can not get country_id value! i explored methods on the selectOneChoice variable accessor and ValueChangeListerner component but no luck!
    as i am displaying the country_nme so i have to use DCIteratorBinding to actually reach to the country_id value.
    this seems to be a tedious way! plus if country selected again it gives nullPointerException on 3rd line:
    DCBindingContainer dcBc = (DCBindingContainer)getBindings();       
    DCIteratorBinding  iter = dcBc.findIteratorBinding("CountryVO1Iterator");    
    Row row = iter.getRowAtRangeIndex(vce.getNewValue().toString()); //[error-prone] first time returns the database row of the selected country record.gives exception on 2nd time
    Q1. is there any direct way of getting country_id, based on the display name?
    Q2. is there any way to refresh the iterator? iter.release(), iter.clear() did not help
    Regards,
    Rabs

    Hi
    This is not possible in Discoverer 4i. The concept of Cacading lists of values was only introduced in Discoverer 10g R2 (10.1.2).
    Now there's a good reason to upgrade :-)
    Best wishes
    Michael

  • Is it possible to schedule a Webi report based on another input, i.e. expose a time in which a process was finished.

    These are Webi, user created reports.
    Is it possible to schedule a Webi report based on another input, i.e. expose a time in which a process was finished (this can be obtained via a SQL call, service call, etc).
    The issue is that if a user schedules a report for 9PM but a process to move data, etc has not completed then that forces the user to keep re-freshing the report hoping that the process has been complete.
    Ideally, in the selection UI add to the dropdown for 'when' the option 'Use Process X completion Time' (since it is a daily report).
    Then starting around 9PM check to see if that 'time" value is populated then refresh (run) the report. Or it could just be a flag that the process has finished.
    User's in the webi environment are asking for this, and moving their reprots to BO is not an option. That's why they have the custom webi enviroment.
    Thank you.

    There is no very good way to create a working event based on a file as the file will need to be deleted as soon as the event is triggered. However there are work around which can be done for this. Here is a link which is discussing about the process.. http://scn.sap.com/thread/1677109
    Once you have created a file based even in CMC > Events> System Events and made a work around program to delete the file once the event is trigged all you would need to do in webi is in launchpad just schedule > Events > select the file based event from all available system events. Here is a screenshot how to make a report run based on a event..

  • Event for dropdown selection

    Hi.
    I am working on CRM 2007 icwebclient. My requirement is for BP creation either individual or organisation depending on ROLE select mandatory fields are changed.
    If role 'Prospect' is selected then few fields are mandatory or if 'sold-to-party' is selected more fields are madatory..
    Now which event is working behind this dropdown selection. where i have to write my code. How to set fields 'mandatory' at design time. soon reply would be appreciate.

    Hello,
    as this really seems to be a big Issue for people. Thought as developers you might explore my hints on your own.
    For switching the configuration:
    Implement the P-Getter for the attribute on the context node with the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'my_event'.
      endcase
    This will trigger a roundtrip. We do not need to handle the event.
    In your view controller implementation class redefine the method DO_CONFIG_DETERMINATION:
    METHOD do_config_determination.
    * Switch configuration that is used based on field value.
      DATA:
        lv_value         TYPE              char2,
        lv_object_type      TYPE              bsp_dlc_object_type       VALUE '<DEFAULT>',
        lv_object_subtype   TYPE              BSP_DLC_OBJECT_SUB_TYPE   value '<DEFAULT>',
        lr_node        TYPE REF TO       if_bol_bo_property_access.
      CALL METHOD super->do_config_determination
        EXPORTING
          iv_first_time = abap_false.
      lr_node = typed_context->some_node->collection_wrapper->get_current( ).
      CHECK lr_node IS BOUND.
      lr_node->get_property_as_value(
        EXPORTING
          iv_attr_name = 'SOME_ATTRIBUTE'
        IMPORTING
          ev_result    = lv_value ).
      lv_object_type = 'MY_UI_OBJECT_TYPE'.
      CASE lv_value .
        WHEN 'SOME_VALUE1'.
          lv_object_subtype = 'JIMBOB'.
        WHEN 'SOME_VALUE2'.
          lv_object_subtype = 'BUBBA'.
      ENDCASE.
      me->set_config_keys( iv_object_type          = lv_object_type
                           iv_object_sub_type      = lv_object_subtype
                           iv_propagate_2_children = abap_true ).
    ENDMETHOD.
    Just paste the above coding into the method.
    What it does:
    1. Get the value you want to check from one of the context nodes.
    2. Switch the UI Object type (Yes you have to define it in customizing)
    3. Switch the UI Sub Object type on base of the field value. (Yes you have to define your own sub object type, this is done via a class that is assigned to your UI Object type in customizing)
    For the other solution: As mentioned I have not tried it myself.
    The variable on the view controller I am talking about is CONFIGURATION_DESCR of interface IF_BSP_DLC_CONFIGURATION. It has got a method GET_CONFIG_DATA that will give you the XML stream and a method SET_CONFIG_DATA. Putting the changed XML back.
    If you had done a were used list for at least one of these methods you would have seen how SAP uses them.
    One example: CL_BSP_WD_OVW_VIEWSET->DO_INIT_CONFIG() however this will not help you on your problem.
    I know there is a method that will decode the XML stream in the single fields with their properties and there is also a counter part to it. I am afraid that many people will use it to bypass the configurations. This will make it very hard to debug the coding. Thus I will not name the class/method here!
    For the sake of maintainability please stick to the first method.
    I have seen people getting the XML and then hardcoding another part into it. Then someone changed the config and an error occurs. You try to find out why, but the original developer is no longer there and has not documented anything...
    cheers Carsten

  • Dropdown Selection : Populate Tableview

    Hi all,
               We have a requirement, in which we have to make a component which is divided into 2 sections.
    Section 1: Tableview is populated based on user login
      (done)
    Section 2: Dropdown which has 2 values
                    i. My opportunities
    on selecting this, a tableview should be populated displaying all oppts which are owned by the log in user
                   ii. Reportee Names
    on selecting this, it displays all the people reporting to the login user, and on selecting any of them should again display opportunities of that user.
      If anyone has worked upon populating tableview in a component depending upon dropdown values, please help.
         Posting Example code would be of greater help.
    thanks in advance,
    Rohit
    Edited by: Rohit Khetarpal on Oct 17, 2008 8:08 AM

    Solved by triggering event on dropdown selection
       IF iv_property =  if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'DDLB_CLICK'.
       ENDIF.
    and handling in do handle event.

  • Filter EPM Property values based on another property in same dimension

    Hi,
    I need to restrict property values of a Dimension based on selected value of another property of the same dimension.
    For example, in Material Dimension, I have properties Planner and LOB
    Material
    Planner
    LOB
    100
    ABC
    LOB1
    200
    ABC
    LOB1
    300
    XYZ
    LOB2
    The Planner will select a Planner Name, based on which the corresponding list of materials should be shown along with LOB.
    I have tried EPMDimensionPropertyValues but it doesnt allow to restrict the IDs based on another filter condition.
    Please help.

    Thanks everyone for the response.
    As mentioned in the post, the requirement is a bit twisted.
    Let me rephrase the requirement:
    I need to have two dropdowns ( which should act as filters to the template).
    MATERIAL diemnsion has a property PLANNER.
    I need to have the first drop down as list of all PLANNERS ( I could do this easily by EPMDimensionPropertyValues).
    For the next dropdown, I need to show only those MATERIALS which has PLANNER1 ( lets say, PLANNER1 was selected in the first dropdown).
    I am facing issues for the second dropdown, as I cannot have a condition to show the Property (ID) values in EPMDimensionPropertyValues
    Also note that MATERIAL is not present in the report ( this is because we need a different aggreagation for material in the report) so we cannot use EPMDiemnsionOverride.
    Please help.

  • From dropdown selection to multiline output

    I'm trying to create pdf -form with Adobe XPro where I'll have several Ship-To addresses. What I would like to have is that the user could select the correct Ship-To party from the dropdown.
    Since the pdf-form dropdowns are only single lines the dropdown selection could only show the name of the company (e.g. COMPANY A) and by selecting the wanted company, this would trigger the whole (multiline) address to pop-up as described below (on another text field is ok if needed)  
    COMPANY A
    Streetaddress 1
    ZIP-1234 City A
    Does anybody have an easy solution for this?

    I have created one sample form for you, please look at attachment.
    The PDF form does exactly what you want.

  • Restriction of f4 help of a bex variable based on another variable input

    Hi,
    Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input.
    eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables eg: pur. group based on selected company code.
    Regards
    Kasi

    Hi,
    Try using replacement path option in bex with replace variable with variable selction.
    Thanks.

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

Maybe you are looking for

  • K8NGM2-FID problems: no usb and high cpu usage - HELP!

    hi folks, i've setup K8NGM2-FID inside an htpc with a clean install of mce 2005 (onboard video). For the past couple of days I've noticed a few things: 1) if the pc goes into standby (S3) and then wakes up, sometimes task manager shows a cpu usage of

  • 10g standard edition, create a manual standby without ORA-279 and ORA-308.

    Hi, I have a 10 g database 10g r2 on linux rhel 5.2. I've create a standby database from an rman backup on another server (same name, same path....). every 10 minutes , i switch log on primary database and rsync them to the stanby path on stanby serv

  • SOAP Parsing Error: Server was unable to process request

    Hia, We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Asynchronous Scenario). (ECC -> PI -> Legacy CRM) System is getting connected and able to send asynchronous messages to legacy system. But getting following error while sending synchronous er

  • Need help with classpath configuration for external jar files

    We have coded our own JAAS login module, and it uses classes located in jar files, and these jar files were not created using SAP dev studio, e.g. they were provided by a third party vendor as a set of tools. So, how do we deploy these jar files so t

  • I am unable to access my yahoo mail account

    I am unable to access my yahoo mail account on my iphone 4S, i hve tried to add it but keep getting the message "server unavailable try back later"  Can someone help me with this