Skip to Content
author's profile photo Former Member
Former Member

Adding new field in search help result view

Dear Experts,

I want to include one more field in search help result. The field shoud give description.

How can i do this in UI result view?

If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.

Thanks and regards

Pankaj Kumar

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04:57 PM

    Hello Pankaj,

    Can you give some more clarity on your requirement ??

    What is the object you are trying to enhance ?? Ideally Descriptions should be present by default in the serach result object. I guess you dont have to code anything extra for this ..

    Regards,

    Nag

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Pankaj,

      Its not that difficult.

      There are two ways

      1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.

      2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.

      You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.

      if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.

      Hope this helps you.

      Thanks & Regards.

      You can check PRODUCTDESCRIPTION attribute of BTAdminI node of BT115QIT_SLSQ/Items view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.

      Edited by: suchita P on Sep 20, 2008 2:22 AM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.