CRM 7.0 WebUI:  Dropdown for second field is based on first field value

Hi,
I created an all-custom search/result component, now having one challenge - requirement is - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, where user can pick one.  I searched this forum and SAP docs, so far I haven't found a solution. Has anyone done this? or have you seen any SAP standard screens having this kind of function?
Thanks.
Steven

Hi Steven,
You will rarely see a result list component in change mode.
Anyhow, to fulfill your requirement, you have to trigger a round trip for the first field when a value is selected.
You can do this by specifying a dummy event in GET_P method.
The GET_V method of the second field will trigger for this round trip and you can trigger the values.
Regards,
Masood Imrani S.

Similar Messages

  • CRM 7.0 WebUI:  Second field searchhelp based on first field value

    Hi,
    I created an all-custom search/result component, all other things are working correctly, except one - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, user can pick one.  I searched this forum and SAP docs, so far I haven't found a solution.  Has anyone done this?  or have you seen any SAP standard screens having this kind of function?
    Thanks.
    Steven
    Edited by: Steven Lee on Apr 23, 2010 11:11 AM
    Edited by: Steven Lee on Apr 23, 2010 11:11 AM

    Hi Steven,
    1. Declare a Global Drop Down table as an attribute in your implementation class.
    2. Create an Event when you select a drop down value for the first field.
    3. In this event handler, build the global drop down table.
    4. In the get_v method of your second field, fill the returning parameter of dropdown values from the values in your global dropdown table you just filled in the Event Handler method.
    I have used this successfully. I hope it works for you too.
    Please let me know if you have questions.
    Thanks
    Vishal

  • Making a DFF field mandatory based on another field

    Hello All,
    We have a requirement where in we need to make a DFF field mandatory based on another field.
    example:
    DFF has two fields :
    Filed1 : values 'Email', 'Fax'
    Filed2
    If 'Email' is selected in 'Field1' then Field2 should become mandatory.
    Any inputs on this will be really helpful.
    Thanks & Regards,
    Satya.

    hi kumar3a,
    recently, i spent considerable amount of time wracking my brain on a similar problem. the nearest i came to a solution was when i used a forms personalisation. mind you, forms personalisation will not work directly on the DFF window, so it has to be approached in a roundabout sort of way.
    i got this information from an Oracle Support personnel - MOS Note 1078348.1.
    i would start with the flexfield segment as "not required", and then using Forms Personalization, i would make it "required". i would try to figure out how to establish a condition where the previous 'required' flexfield segment's value is checked to see if this 'not required' segment needs to be made 'required'. in theory, this should solve the issue. i gave up on it because the forms personalisation would need to cover WHEN-VALIDATE trigger event, and we had close to 100 validations going on through other preexisting forms personalisations, which rendered it near impossible to employ this method.
    best regards.

  • How to find field name based on screen field name

    Hi all,
    I need to find field name at run time based on screen field name for doing some check.
    Eg, if i have P_CUST on screeen which refers to KUNNR . Then i should be able to find KUNNR based on screen name ie P_CUST during run time.
    Thanks in advance.
    Thanks and Regards,
    Taranam

    Hi
    ex:
    PARAMETERS :
      p_carrid LIKE spfli-carrid,
      p_connid LIKE spfli-connid.
    DATA:
      T_DYNPRO TYPE
      STANDARD TABLE
            OF DYNPREAD
          WITH HEADER LINE,
      W_PROG LIKE D020S-PROG,
      W_DYNP LIKE D020S-DNUM.
    CLEAR: FIELD_VALUE, T_DYNPRO.
      FIELD_VALUE-FIELDNAME = 'P_CARRID'.
      APPEND FIELD_VALUE TO T_DYNPRO.
    w_prog = sy-repid.
    w_dynp = sy-dynnr.
    ***TO READ VALUES on screen
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME                   = W_PROG
                DYNUMB                   = W_DYNP
                TRANSLATE_TO_UPPER       = 'X'
           TABLES
                DYNPFIELDS               =  T_DYNPRO.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • UDF for Splitting the nodes based on the field length

    HI All,
    Target records Record1 to Record4 must be created based on the length of the source field length i.e, if the source field length is only 90 then only 3 records must be created.maximum length of the source field is 120.The source and the target structure are as shown
    Source                                  Target
    Record                                Record(30)
          Field(120)    ------------->          Field1(10)
                                                     Field2(10)
                                                     Field3(10)
    After mapping:-
            Source         ----------->        Target
    Record                                Record1(0 to30)
          Field(120)    ------------->          Field1(0 to 10)
                                                     Field2(10 to 20)
                                                     Field3(20 to 30)
                                               Record2(30 to 60)
                            ------------->          Field1(30 to 40)
                                                     Field2(40 to 50)
                                                     Field3(50 to 60)
                                               Record3(60 to 90)
                            ------------->          Field1(60 to 70)
                                                     Field2(70 to 80)
                                                     Field3( 80 to 90)
                                               Record3(90 to 120)
                            ------------->          Field1(90 to 100)
                                                     Field2(100 to 110)
                                                     Field3(110 to 120)
    Can any one provide me the code to get this done.
    Thanks ,
    Vikram

    You need no UDF. You can use the substring function, but you should check the length of the string to prevent mapping errors due to the substring function.

  • Making fields required based on other field input

    I am creating a form in adobe acrobat pro that employees need to fill in to show the clients they have worked for in a week. The form has 10 lines for them to fill in the date, client name, address etc for 10 clients. I want to make the client name and address fields required only if the date has been filled in in the first column. I can't make every row required fields as they may not have 10 clients that they have worked for. I have a send button set up so that all required fields are completed before the form can be sent. Can someone help me with the script I would need. I have worked out how to make the fields required if a check box is ticked but can't find any scripting for fields to be required if text has been entered in a specific field.

    You can use the custom validation script of the date fields. Let's say you
    want to make Name1 and Address1 required if Date1 is not empty.
    Use this code to do it:
    this.getField("Name1").required = event.value!="";
    this.getField("Address1").required = event.value!="";

  • Setting fields mandatory based on other fields

    Hi,
    In my adobe form there are 4 input fields(F1,F2,F3 and F4) and one field(F5) which is input optional. But if any field (F1, F2,F3 or F4) gets changed, the fifth field F5 has to be mandatory. I guess some java scrip is required but I dont have any idea on the same.
    Please help.

    we have a similar situation where a field must be filled in if a value is chosen in our dropdown box.
    you can throw a popup message stating that the field must be filled...
    JavaScript
    xfa.host.messageBox("This is a message", 3, 1);
    FormCalc
    xfa.host.messageBox("This is a message", 3, 1)
    A valid integer representing the value of the button pressed by the user:
    u2022 1 (OK)
    u2022 2 (Cancel)
    u2022 3 (No)
    u2022 4 (Yes)
    Or what we did is just checked all the values after the SUBMIT and issued error messages in a message area letting the user know what they missed.

  • Report field link based on another field value...

    Hi.
    Got another Q. I have a report with two columns A & B. Column B value is a link. Is it possible to show column B as a link only when column A <> value, and when A = value B shows just text N/A
    Thnks.
    Mike

    Yes, it's possible. One way (probably not the only way) is to use a case or decode in your select statement. If A<>value, then have case/decode generate the link, otherwise have it generate the text.
    Then, in your report attributes for that column, just leave it as a regular column. I.E., don't use the built-in column link feature. That feature makes all entries in that column into a link.

  • How to make Multi Select Picklist Field Required Based on another field

    Hi,
    I want to make one filed which is Multi select Required(mandatory) based on certain value in another filed.
    I tried putting IIf([<FieldNAme>]> 1000 AND [<FiledNAme1>] IS NULL,"Invalid",[<FieldNAme>]) in the Field validatation as but it is not working.
    Please suggest any workaround available.
    Warm Regards
    Pramod
    Edited by: user11361975 on Jun 3, 2011 5:03 AM

    I guess FieldName1 is the multiselect picklist you are referring to?
    Where did you get the ITAG from? I don't see any multiselect picklists available in Expression Builder. I doubt whether you can set validations on multi select picklists at all.
    If anyone has achieved this please let me know as well.
    Regards,
    Udaya

  • Make one field required based on another field

    I am trying to set a form up, so that when a check box is marked, then the corresponding date field is required.  I set the script language to Javascript and entered this script: 
    if 
    (this.rawValue == "1") (PROPOSALDATE.mandatory = "error")
    However, I get an error message stating "syntax error near toekn '!' on line 1, column 20."  There is no ! in this script, so I don't know what it is talking about.  What am I doing wrong?

    Hi,
    The script that executes if the statement is true should be inside curly brackets. So the following in the click event of the checkbox should work:
    if (this.rawValue == "1")
         PROPOSALDATE.mandatory = "error";
    else
         PROPOSALDATE.mandatory = "disabled";
    The above is Javascript.
    Hope that helps,
    Niall
    Assure Dynamics

  • Changing the font color for the complete row based on the Keyfigure Values

    Hi Experts,
    Can any one help me to find a solution for this?.
    I have a requirement, in which the Font color for the complete Row needs to be set to RED in Bex Report, when the corresponding Row Keyfigure is more than a particular value.
    Ex: Notification-Material-Customer-Def Qty-delivered Qty
          1000000 - XXXXX- AAAAAA-10-1000
    in the above example, when the Defect qty increses more than 10, then the complete Row Including the characterstics, Notification, Material, and customer Should be Highlighted in Red. This has to happen automatically once the Query is refreshed.
    Please let me know if you have any suggestion here?.
    Regard,
    Muruganand.K

    Hi,
    Step 1: Click the Format Menu in Excel(BEX Analyzer)
    Step 2: Click the Style submenu
    Step 3: there will be number of SAPBEX formats available. Each of these relates to another cell of BEx (Header, Cell Data,
                Result  Row, Hierarchies, etc.). Also, they depend on data types.
    Step 4: Select SAPBEXchatext
    Step 5: Click Modify. This displays all the standard formatting option as shown below.
    Step 6: Select Font, Color (Background/ Font).
    Step 7: Click OK on both the screens. The entire BEx output result row Font and color is modified.
    Hope it helps........
    Regards,
    Suman

  • Which shortcut can I use to move the highlight in a dialog box to the first field in the dialog box?

    I am working with FrameMaker 10. There used to be a keyboard shortcut  for moving the highlight to the first field in a dialog box. Without  this command I do not know how to move the highlight to the field I want  to modify. I assume the highlight is on a random field when my script  enters the dialog box.

    In iPhoto
    You need to switch Photo Stream on from System Preferences > iCloud not from iPhoto.
    See instructions here >  iCloud - Learn how to set up iCloud on all your devices.

  • Issue in creating a dropdown for Industry sector field

    Hello Gurus,
    Am trying to create a dropdown for Indusry field. 3 dropdown should come up for Industry sector field namely primary,secondary and tertiary.Corresponding to the value selected in primary,data should come up in Secondary and corresponding to value selected in secondary ,data should up in tertiary.Am only able to fetch the value at first instance but corresponding values are not coming up secondary and tertiary.I have followed the procedure that had to be followed in order to make a field as dropdown.Can anyone Please help.
    In get_v , i have added this code.
    DATA:  lt_ddlb  TYPE          bsp_wd_dropdown_table,
               wa_ddlb  LIKE LINE OF  lt_ddlb.
    DATA:
              lr_entity1         TYPE REF TO if_bol_bo_property_access,
              lv_index           TYPE sytabix,
              lr_collection      TYPE REF TO cl_bsp_wd_collection_wrapper,
              lv_high_ind_sector TYPE string,
              lv_istype          TYPE string.
        CLEAR: wa_ddlb, lt_ddlb
        lr_collection = me->GET_COLLECTION_WRAPPER( ).
       lv_index =   lr_collection->get_current_index( ).
      IF lv_index = 1.
    lr_entity1 ?=  lr_collection->find( iv_index = lv_index ).
            lv_high_ind_sector = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTOR' ).
          lv_istype = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTORKEYSYSTEM ' ).
          CLEAR: lv_high_ind_sector.
    ELSE.
          lv_index = lv_index - 1.
          lr_entity1 ?=  lr_collection->find( iv_index = lv_index ).
          lv_high_ind_sector = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTOR' ).
          lv_istype = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTORKEYSYSTEM ' ).
        ENDIF.
        SELECT aspras aind_sector atext INTO CORRESPONDING FIELDS OF TABLE GT_IND_SECTOR FROM tb038b AS a INNER JOIN tb038a AS b ON  bistype = a~istype
    AND bind_sector = aind_sector
    AND b~istype = lv_istype*
    AND b~father_sec = lv_high_ind_sector.
      Loop at GT_IND_SECTOR into wa_ind_sector.
          wa_ddlb-key   =  wa_ind_sector-ind_sector.
          wa_ddlb-value =  wa_ind_sector-text.
          Append wa_ddlb to lt_ddlb.
        endloop.
        IF lt_ddlb IS NOT INITIAL.
          INSERT INITIAL LINE INTO lt_ddlb INDEX 1.
        ENDIF.
        IF GR_DDLB_INDUSTRY_SEC IS NOT BOUND.
          CREATE OBJECT GR_DDLB_INDUSTRY_SEC
            EXPORTING
              iv_source_type = 'T'.
    IF sy-subrc = 0.
            GR_DDLB_INDUSTRY_SEC->set_selection_table( it_selection_table = lt_ddlb ).
    ENDIF.
    ENDIF.
    rv_valuehelp_descriptor =  GR_DDLB_INDUSTRY_SEC.

    Hello,
    Not sure I understood your requirement 100%, but kindly check the following thread where a question on How-to make dropdown list values dependent has already been answered:
    How to link the first Drop down values witht the second Drop down Values
    Regards,
    Nicolas Busson.
    PS: also it would be good to know your CRM version... because I thought this thread was posted in the WebClient forum, but it's not.

  • How can we process the CRM Order again for second time in debugging mode

    Hi,
    Can anybody please tell me how can we process the CRM ORDER for second time.  that I want to process in debugging mode.
    Thanks,
    bsv

    Hi bsv,
    Are you trying to reprocess a BDOC for debugging purpose?
    If the BDOC is not with a final status, you will be able to reprocess it using the reprocess button in the smw01 search result list.
    And you may put /h on the popup when you click on the 'reprocess' button.
    If it is allowed to make some changes in the CRM ORDER for testin purpose, it would be easier to perform debugging.
    A more 'careless' way is to deactivate the outbound or inbound queue in transaction smqs or smqr, then in smq1 or smq2 to locate the interested queue, and click on button 'debug LUW'.
    Hongyan

  • Different dropdowns for different fields in custom infotype

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

Maybe you are looking for