How to get value in custom field(Part OF BOL) in search result view.

Hi All,
I am new to CRM WEBUI and i am facing issue in populating value in one field of search result view.
Current requirement is .
On product f4 , we get search help and search result view.
one custom field need to be added in search result view ( for eg any description field).
This description field is already  available in one of z relation  maintained in PRODUCT root object.
Solution tried so Far:
1. We enhance one Standard Product structure and add that description field .
2. Add new  field( description) in result view context node as attribute by using bol attribute.
3. Customize search result view and display that description field in result.
By doing above three steps, field is available in  search result view.
but issue is we are not able to get values.
1st Approach: write code in getter and setter method . Pass the relation name and get the property of description  field
in setter method, set the property.
Issue : we were not able to sort the values on this description field. so scrap this 1st approach
2nd Approach: In Event EH_Onsearch Help, we try to use collection wrapper to get current value of description
by using relation name .
We use component controller to set the value of description since  searchresult view-conext node->result node is bound to one comp controller node.
but this solution also does not work..
Please advice us  what approach we should use to get value in description field  and sorting should also work.
Thanks in Advance.

Hi Girish,
1. We enhance one Standard Product structure and add that description field .
2. Add new  field( description) in result view context node as attribute by using bol attribute.
3. Customize search result view and display that description field in result.
By doing above three steps, field is available in  search result view.
but issue is we are not able to get values.
1st Approach: write code in getter and setter method . Pass the relation name and get the property of description  field  and by using this approach we are able to get value but sorting was not working so we disable the sorting as it was not required by business.
if u need sorting on that field.
then u should go for value node approach and write code for getting value in get set method
and for sorting also , need to write code.
This is my understanding on this .
Please reward if this solution is helpful

Similar Messages

  • How to fill values  to custom fields created by EEWB

    Hi All,
    I am working in CRM 5.0,We have extended the BP transaction with two new fields using EEWB transaction.
    ZZABC
    ZZDEF
    Here goes my problem , i wanted to update data to the new fields using FM.
    I tried using BUPA_CENTRAL_CHANGE,where i found the structure of the  custom fields .But the FM is working for standard fields but not for Custom fields.
    Following are the FM generated  in EEWB.
    ZZG05_BUPA_EVENT_DINP2
    ZZG05_BUPA_EVENT_DLVE1
    ZZG05_BUPA_EVENT_DSAVB
    ZZG05_BUPA_EVENT_ISDST
    ZZG05_BUPA_EVENT_ISSTA
    ZZG05_BUPA_EVENT_XCHNG
    ZZG05_BUPA_PAI_ZG050100
    ZZG05_BUPA_PAI_ZG050101
    ZZG05_BUPA_PBO_ZG050100
    ZZG05_BUPA_PBO_ZG050101
    I have tried using the above FM.But didnt work.
    Can you please help me how to proceed  just to fill values using FM.
    Your suggestions  will be highly rewarded.
    Thanks,
    Gayathri.

    Hi Shiva,
    Thanks for your response.
    I have specified the FM that are generated while creating the fields, where i dnt find any update or delete.
    Further can u explain "you can play with screen config in the AREA MENU code BUPT".
    My requirement is to upload data to those fields through pgm for one time.
    Thanks,
    Gayathri.

  • How to get content of custom fields that were created via the EEWB for CIC?

    Hi
    Can anyone tell me how to get the content of custom fields that were created via the EEWB for CIC? This is required at a time when the data has not been written to the database.
    I would like to know how to read this data in the CRM_APPOINTMENT_MERGE method of CRM_APPOINTMENT_BADI.
    Thanks

    Hi Michael,
    I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
    Do you know the set of steps to achieve the same.
    Any help would be appreciated.
    Thanks,
    Chamu

  • How to get value of a Field if field name given in a String ?

    Hello,
    I've a String variable which contains a value such as X.Y.Z. The last one (Z) is a primitive type, others (X and Y) are my own classes.
    class C1
    C2 X;
    class C2
    C3 Y;
    class C3
    int Z;
    C1 var = new C1();
    When I encounter X.Y.Z in the String, I want to replace it with its value of var.X.Y.Z. How can I do ?
    thanks in advance....

    Thanks,
    But, X.Y.Z is a Field name not known during compilation, just know at runtime.
    The following working codes return the Field names(including sub-Fields in sub-classes) and their values in a Map:
    void getFieldValues(Object object, StringBuffer fieldName, Map oMap)
    throws java.lang.IllegalAccessException
      Field[] fields = object.getClass().getDeclaredFields();
      String  tmpString;
         for (int i = 0; i < fields.length; i++)
           if (!fields.getType().isPrimitive()) { tmpString = fieldName.toString();
    fieldName.append(fields[i].getName() + ".");
    getFieldValues(fields[i].get(object),fieldName,oMap);
    fieldName = new StringBuffer(tmpString);
    else oMap.put(fieldName.toString() + fields[i].getName(), fields[i].get(object));

  • 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 get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • How to get POF object's field value from query result

    hi,all:
    I want to get field value from the query result, my code is below
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
    Contact c=(Contact)iter.next();
    System.out.println ("firstame####=" + c.getFirstName());
    * but I get error*
    Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
    tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
    at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
    at com.oracle.handson.QueryExample.query(QueryExample.java:86)
    at com.oracle.handson.QueryExample.main(QueryExample.java:43)
    who can tell me how to get POF object's field value from query result

    Hi,
    If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        Map.Entry entry = iter.next();
        Contact c=(Contact)entry.getValue();
        System.out.println ("firstame####=" + c.getFirstName());
    }JK

  • SDK: adding new value in custom fields

    Hello,
    I wanted to add new value in custom field of the resource table... I used this code (taken from SDK example) :
    //Create and fill request for CustomData Service
    SaveCustomDataRequest request = new SaveCustomDataRequest();
    List<CustomValue> customData = new ArrayList<CustomValue>();
    CustomValue attribute = new CustomValue();
    //Field name
    attribute.setName("NOTIFICATION_NUMBER");
    //value received from ERP
    attribute.setValue(notification);
    customData.add(attribute);
    request.setCustomData(customData);
    //table name
    request.setObjectAlias("RESRCE");
    request.setRef(handle);
    customDataService.saveCustomData(request);
    But get a validation error, complaining about no ModifiedDateTime providen... How can I initialize this date or avoid the validation ?
    I also tried using the ResourceDOService, using the setCustomData method, but same error...
    Thanks

    I'm using ME 5.2.2.2, sdk 5.0.1.8, for the moment locally on my laptop for development.
    There is no stack trace, I can just see the error when debugging :
    com.sap.me.frame.domain.RequiredValueValidationException: class com.sap.me.domain.model.CustomFieldDOmodifiedDateTime
    The resource exist, I do a read request before to check if the custom field has value or not. Anyway, it's a collaboration plug-in, executed when we change the resource status, so I got the resource handle as input ;o)
    I can confirm there are some resource with custom value in other fields with date = null. It occurs when I'm saving the data in the GUI (so entering data's manually in custom field, do a save => fields are not initialized)
    Regards

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

  • How to get value from a checkbox in a jsp page?

    hi there
    i have a form in a jsp which contains a <input type='checkbox' name='xx'>
    when i submit the form, how can i get the value for this checkbox? i could use request object to get parameter. i tried the following and could not get any value:
    request.getParameter("xx");
    is there any to get it? thanks.

    "checkbox" can have multiple values b/c you can check more than 1 checkbox and they can have same name.
    Example
    <input type="checkbox" name="number" value="1">one
    <input type="checkbox" name="number" value="2">two
    <input type="checkbox" name="number" value="3">three
    To get values of "number" field:
    String [] numberValues = request.getParameterValues("number");
    where numberValues[0] is the 1st value checked, numberValues[1] is 2nd value checkted and so on.....
    If you have no checkbox checked then you might get a "null pointer exception", so make sure you check to see if it's null first before accessing your numberValues array.
    If you just have 1 checkbox; then you can just call request.getParameterValue("number") and that will return your value.

  • How to get username from customer email id.

    Hi experts,
    How to get username from customer email id.I am using transaction XD02.
    I would be thankful for your kind replies .
    Regards,
    Sachin Hada

    Hi sachin,
    Re: Email id field
    Regards,
    Sravanthi

  • How to get value of a textfield which has been set as Renderd false.

    Hi all
    how to get value of a TEXTFIELD which has been set as Renderd false.
    i am getting the value of this textfield from an lov but dont want to show it to the user.
    getting error as:
    attribute xxxx required for view object yyyyy.
    pls help
    naveen

    You can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
    FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
    example
    OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
    Or you can read it fro the VO associated with this form value.

  • Get value of two fields into one field

    Hellou,
    i need little help with javascript again
    Currently i'm using code below to get value from one field to other:
    getField("Text35").value = getField("Text1").valueAsString;
    Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
    Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
    I hope that u understood what i want
    Thanks for helping me!

    getField("Text35").value = getField("Text1").valueAsString + " " +
    getField("Text2").valueAsString;

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • Show value in "customer" field of FAGLB03

    Hi Experts,
    we have a requirement to Show value in "customer" field of FAGLB03 for all sales related transactions.
    Your support is appreciated.
    Thanks

    solution has been implemented using badi FAGL_ITEMS_CH_DATA

Maybe you are looking for

  • Why do my Outlook subscribed calendars not show up on my PC iCloud calendar?

    Why don't my Outlook subscribed calendars (holidays, LHMUG meetings) show up on my PC iCloud calendar? They are on Outlook, but don't carry over?

  • The request to execute code in the sandbox failed

    I have developed a webpart for a client which is hosted on O365. While saving the webpart properties I am Getting the error"Web Part Error: The request to execute code in the sandbox failed." The same web part works on a different O365 site perfectly

  • Mt iPads photo stream is using space on my iPad

    The photo stream is taking up about 400 MB on my iPad, however there are no photos on the iPad it's self or in the photo stream. I have tried turning off my iPad all the way and turning it back on, I have tried turning off photo stream in the iCloud

  • Update File Naming For Better Support of Unique File Names

    The below feature requests are designed to allow lightroom to generate unique filenames for images from any number of cameras that all conform to the same naming convention and can be sorted chronologically by name both inside and outside of lightroo

  • BC4J UIX Application deploy

    Hi, I'm using JDeveloper 9.0.3 and I deployed a BC4J UIX Application on Oracle9iAS 9.0.3 J2EE Containers (Standalone) on NT. When I'm accessing to the application module page, I have the following error JBO-33001: Cannot find the configuration file M