Custom component Search and Result view using value node :pls help

Hi Experts,
I am creating a Custom component with Search and Result view using value nodes.
This is the code I wrote in the Search button event handler method.
The data which gets in lv_search I need to put in lv_col .
Can somebody guide me for this.
Points will be awarded .
METHOD eh_onsearch.
  DATA : lv_current TYPE REF TO if_bol_bo_property_access,
         lv_search  TYPE zcrm_orgstruct_search,     "Search value node structure
         lv_result  TYPE zcrm_orgstruct_result,         "Result value node structure
         lv_col     TYPE REF TO if_bol_bo_col.
  lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
  CALL METHOD lv_current->get_properties
    IMPORTING
      es_attributes = lv_search.
  me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
  op_toresultview( ).
ENDMETHOD.
Regards,
Lakshmi

Hi Lakshmi,
Could you please share with us how it was solved.
"CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search."
Did you get any values in lv_search ?
Because while using value nodes for search view (which inherits from advance search controller  class), the above method does not return any search values entered in the fields.
Please let me know how did you solve it.
Thanks & Regards
Vidhya

Similar Messages

  • Best approach to add Z custom field to IC Agent Inbox search and results view

    Hi Experts,
    We are having a requirement to add a Z custom field to IC Agent Inbox search and results view. I got multiple forums and ideas, but looking for the best approach for handling this. I am sure, you experts, would have already done this.
    Thanks in advance.
    Regards
    Siva

    Hi Sivakumar,
    AET is the best way by far to create a custom field in this area. It is easy and simple.
    Also, field once added in one business object it can be used at different objects as well.
    There is also a demo available for AET on sdn.
    Please let me know if any more help is required.
    Thanks,
    Bhushan

  • Adding Z field in Opportunity search and result view BT111S_OPPT/Search

    Hi,
    I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
    We have Z field in ultimately residing in BUT000.
    Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
    Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
    I am confused with regard to the approach we need to use to get this field in search and result.
    I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
    During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
    BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
    is this correct? or am I doing something wrong?
    Why can't I see the fields in configuration?
    So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
    Any advice?
    Many thanks in advance for your help
    Rakesh

    Hi Rakesh,
    Please follow below steps:
    1. Append your custom field to structure associated with your search/result structure.
    2. After you append this field to structure, this field would be available in context node.
    3.  Check if the field is reflected in available fields in configuration.
    4. If field is not present in configuration then please follow steps stated by me in:
    Re: New Column can not be added in chtmlb:configTable
    5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
    If not then please go through below forum :
    Re: BADI for Claims search in trade promotion management
    Let me know if this helps.
    Regards,
    Bhushan

  • About checkbox and calculation with that value..pls help me ...

    Hi, in my applet there are three checkboxes about food shape which is wanted to be selected by the user. The user will choose one of them and by his/her choice p and r values are set and i think its done by itemStateChange method. In this method using by if the p and r values are differently set because of users different 3 choice. But because the method is closed using }after writing it and before starting actionperformed method. In action performed method if button is pressed the calculation is done (if i would afford to write it in a true way). My question arises with usage of p and r values which is set in other first method and call it in next method and use it in calculation and making the calculation work. May be it is very easy to do it but not for me being at first step of programming. Thank u for all of ur interest. My codes are below:
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.text.*;
    public class kenan extends Applet implements ActionListener, ItemListener {
    DecimalFormat df=new DecimalFormat("0.####");
    double p, r;
    Panel satir1 = new Panel();
    Label l1 = new Label("Asagidaki kutulara gerekli degerleri girip 'hesapla' butonuna basınız", Label.CENTER);
    Panel satir2 = new Panel();
    CheckboxGroup sekil = new CheckboxGroup();
    Checkbox levha = new Checkbox("Levha", false, sekil);
    Checkbox silindir = new Checkbox("Silindir", false, sekil);
    Checkbox kure = new Checkbox("Kure", false, sekil);
    Panel satir3 = new Panel();
    Label yogunluk = new Label("Yogunluk");
    TextField y = new TextField();
    Label kalinlik = new Label("Kalinlik");
    TextField dx = new TextField();
    Label iletim = new Label("Iletim katsayisi");
    TextField k = new TextField();
    Label tasinim = new Label("Tasinim katsayisi");
    TextField h = new TextField();
    Label ilksicaklik = new Label("Baslangic sicakligi");
    TextField tilk = new TextField();
    Label cevresicaklik = new Label("Cevre sicakligi");
    TextField tcevre = new TextField();
    Panel satir4 = new Panel();
    Button hesapla = new Button("Hesapla");
    Panel satir5 = new Panel();
    Label sure = new Label("Donma icin gecmesi gereken sure");
    Label tdonma = new Label("t");
    public void init(){
    GridLayout appletLayout = new GridLayout(5, 1, 5, 5);
    setLayout(appletLayout);
    FlowLayout layout1 = new FlowLayout(FlowLayout.LEFT, 5, 5);
    satir1.setLayout(layout1);
    satir1.add(l1);
    add(satir1);
    FlowLayout layout2 = new FlowLayout(FlowLayout.LEFT, 5, 5);
    satir2.setLayout(layout2);
    satir2.add(levha);
    satir2.add(silindir);
    satir2.add(kure);
    add(satir2);
    GridLayout layout3 = new GridLayout(3, 2, 5, 5);
    satir3.setLayout(layout3);
    satir3.add(yogunluk);
    satir3.add(y);
    satir3.add(kalinlik);
    satir3.add(dx);
    satir3.add(iletim);
    satir3.add(k);
    satir3.add(tasinim);
    satir3.add(h);
    satir3.add(ilksicaklik);
    satir3.add(tilk);
    satir3.add(cevresicaklik);
    satir3.add(tcevre);
    add(satir3);
    FlowLayout layout4 = new FlowLayout(FlowLayout.CENTER, 5, 5);
    satir4.setLayout(layout4);
    satir4.add(hesapla);
    add(satir4);
    FlowLayout layout5 = new FlowLayout(FlowLayout.CENTER, 5, 5);
    satir5.setLayout(layout5);
    satir5.add(sure);
    satir5.add(tdonma);
    add(satir5);
    setBackground(Color.lightGray);
    hesapla.addActionListener(this);
    levha.addItemListener(this);
    silindir.addItemListener(this);
    kure.addItemListener(this);
    public void itemStateChanged(ItemEvent event)
    String command = (String) event.getItem();
    if (command =="levha")
    {double p = 1/2;
    double r = 1/8;
    if (command =="Silindir")
    {double p = 1/4;
    double r = 1/16;
    else
    {double p = 1/6;
    double r = 1/24;}
    public void actionPerformed(ActionEvent event)
    {if (event.getSource()==hesapla)
    {double q,d,ti,tc,ki,hc;
    q = Double.valueOf(y.getText()).doubleValue();
    d = Double.valueOf(dx.getText()).doubleValue();
    ti = Double.valueOf(tilk.getText()).doubleValue();
    tc = Double.valueOf(tcevre.getText()).doubleValue();
    hc = Double.valueOf(h.getText()).doubleValue();
    ki = Double.valueOf(k.getText()).doubleValue();
    double buzE = 333707.99;
    double x = r*(Math.pow(d,2));
    double tsure = (q*buzE/(ti-tc))*((p*d/hc)+(x/ki));
    tdonma.setText(String.valueOf(df.format(tsure)));
    }

    First thing to fix is in itemStateChanged, use "equals" instead of "=="
    if (command.equals("levha"))
    else if (command.equals(...))
    Second thing is:
    double r = 1/2;is really telling Java the following:
    int tempR = 0; //integer division of 1/2;
    double r = (double) tempR = 0;Use:
    double r = ((double) 1)/2; // or just use 1.0/2.0;-------------
    Third thing is that your declarations of r and p in itemStateChanged hide the declaration of r and p in your kenan class. Just say:
    r = ((double) 1)/2; // or "r = 1.0/2.0;"-------------
    Try those three things, see what happens, and post the results.

  • After upgradataion ,In testing phase- after search ,in result view we are getting some unwanted data ' +++++" should be added in Name .how to remove it.can you please help.

    Hi Team,
    After upgradataion ,In testing phase- after search ,in result view we are getting some unwanted data ' +++++" should be added in Name .how to remove it.can you please help.
    I want to remove ++++ in that column.

    Hi Kalpana,
    Please provide additional information for community users to relate this issue. Info like versions (old & new), the object which has this problem or component/view name will be useful to get the answers.
    Regards,
    Shobhit

  • Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time

    Hi team,
    Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time.
    How to add this in search result screen.configuration is it possible? or any changes in development.
    Compnent - BT116S_SRVO
    Thanks
    Kalpana

    Hi Kalpana
    Please reread my comment. I said to try and populate "Requested End" Date.
    Make sure the date profile assigned to the transaction includes this Date Type.
    If you can populate this either manually or programmatically the solution should be quite forward.
    If you cannot do this, only then should you look at making any significant sort of enhancement.
    Regards
    Arden

  • I do not like inbox search and want to use google but i cannot find any way to remove inbox--in fact when i search for it to remove you would think it is not there--but it is and i cant get it off. anyone know how?

    Question
    i do not like inbox search and want to use google but i cannot find any way to remove inbox--in fact when i search for it to remove you would think it is not there--but it is and i cant get it off. anyone know how? edit
    Details

    What you should see on a restart is a black screen followed by a screen with the Apple (at which point you let go of the two buttons). There is no progress bar, just the Apple. The Apple will stay there for 15 seconds or so, then the "Slide to Unlock" screen will redisplay.
    But, I don't think the reset will fix it for you. I just tested it, and it comes back on with the zoom still on. The only way to get it to zoom out is the tapping with the 3 fingers.
    I said to double-tap....MY BAD! You need to triple-tap with three fingers!
    Try that and see if it will display the zoom menu for you, or if it will zoom back out.
    Cheers,
    GB

  • Create URL,Telephone number as paramater Account Search and result based on parameter of telephone number ?

    Hi Experts,
    create URL,Telephone number as paramater Account Search and result based on parameter of telephone number ?..
    Previous my thread was locked...Now i want to say thanks to KALYANI L and Richa Dameja,..Now This code i have followed now its working fine..Thanks Great help to Kalyani L..and Richa Dameja.. i have implemented the DO_INIT_CONTEXT.....Now getting result...
    As suggest Kalyani L i have implemented DO_INTI_CONTEXT method,Now its working fine....
    Thanks For support.
    Thanks
    kalpana
    Message was edited by: Andrei Vishnevsky
    Disussion is locked.
    Reason: Re: create URL,Telephone number as paramater Account Search and result based on parameter of telephone number ?

    Hello Kalpana,
    I've already locked your previous discussion and thought that I gave pretty clear warning.
    First of all "do my job" posts are not welcomed on SCN.
    Second point: you're incorrect in choosing SCN space with such questions. Here is a little which is related to IC in your task.
    Third point is that if somebody has an answer to your exact question then he will give you it if he wants. There is no reason to post-post-post messages asking for help or hurry. Your "urgent requirement" is not the reason either.
    Fourth one is: according to The SCN Rules of Engagement you need to do the search before posting. Almost all of your questions regarding this topic has an answer already.
    Locking the discussion again. If you continue to post such questions I will need to report this situation to SAP CRM space editors and global moderators.

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • How to fill or bind data using Value Node in Tree Node

    Hi Gurus,
    Can anybody help me on how to fill data or bind data using Value Node in Tree Node View. I know how to create Tree Node but not able to show value on the UI in Tree View.
    Can u please let if anybody has done it?
    Thanks in advance.
    Madhusudan

    continued...
    TRY.
              lv_child = me->node_factory->get_proxy(
                        iv_bo = lv_value_node
                        iv_parent_proxy = me
                        iv_proxy_type = 'ZL_CLASS_CN02' ).
              lv_child->is_leaf = 'X'.
              APPEND lv_child TO rt_children.
            CATCH cx_sy_move_cast_error cx_sy_ref_is_initial.
          ENDTRY.
      In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to build table and refresh in do-prepare_output of IMPL class.In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to buid table and refresh in do-prepare_output of IMPL class.
    ztyped_context->resultlist->build_table( ).
      IF ztyped_context->resultlist->node_tab IS INITIAL.
        ztyped_context->resultlist->refresh( ).
      ENDIF.
    Also the EH_ONEXPAND has to be implemented and event handled in DO_HANDLE_EVENT. But this expand event has to be delegated to context node directly as CL_BSP_WD_CONTEXT_NODE_TREE will already have the implementation.
    ztyped_context->resultlist->expand_node( lv_event->row_key ).
    Where in result list is the node ZL_CLASS_CN00.
    After typing the whole content , i found this blog :). There are few things i have written more that in the blog.  /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Regards,
    Karthik

  • HT5699 i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    http://www.apple.com/support/itunes/

  • I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid

    I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid of this.

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • HT1937 I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    I have an iphone bought in the UK but I'm in Europe and can not use it I need help please help me thanks

    wiliiam rrichard wrote:
    Because My iphone is Locked on the United Kingdom
    No it is not.  iPhones, like all cell phones are not locked to countries.  They are locked to carriers.
    Only the carrier to whom the device is locked can unlock it.  Contact the carrier.

  • HT1473 Is drag to drop songs or videos still present in itunes. When i updated itunes i couldn't drag and drop any song or videos pls help.

    Is drag to drop songs or videos still present in itunes. When i updated itunes i couldn't drag and drop any song or videos pls help.

    It could be an indication or a damaged or dying hard drive.  I would recommend doing a disk diagnostic on the iPod's HD using the instructions given by turingtest2 in this older thread.  He also covers what the resulting numbers indicate.
    https://discussions.apple.com/thread/3784647?start=0&tstart=0
    If necessary, post the resultings numbers and we can verify what the next steps to take.
    B-rock

  • I updated GarageBand on ipad2 tonight and I lost my project. Pls help.

    I have no idea .. At first, after updated I lost only one project file. Then I deleted it and reinstall. Now, I lost all of my project.. TT
    Btw, Im using ipad2 os5
    Pls help, they re really important for me
    Thank you so much

    @Blueberry - Except when Apple says delete an app that isn't updating correctly... I'd rather be angry and a poorly implemented cloud backup solution.  If you don't have anything useful to provide - don't.
    KnotVarut, I'm in the same boat as you.  I've lost months of work and I see no way to restore from a backup because, guess what, my latest backup occcured "automatically" last night and there is no (apparent) history of previous backups.

Maybe you are looking for

  • How do you install Drive No. 3?

    2002 quicksilver G4, I have 3 drives and the latest addition (1TB seagate) seems to cause it to freeze up when multitasking or downloading from iTunes. after replacing the logic board and the CPU it appears that this drive has been causing the proble

  • Mpeg2 with audio

    Hi, I am compressing some video for a DV66 Mpeg player, it uses a compact flash card to display looping video, I was wondering if compressor could make an mpeg 2 file with the audio imbedded in it. On the pc you can do that with pinnacle but I am usi

  • Need to select number in varchar

    Hi I have a strring like (RAZOR_LADIES_TRPLE_100/CS) ...i want to select only 100 from it ..can we do that using locate function in 11g...i am unable to write proper syntax ..Any help will be deeply appreciated Regards Debo

  • Price Agreement:-

    Hello Gurus, What are price agreement in Pricing? what is the purpose of Price Agreements.... When I read several document on it; it say that ir can group condition records and condition type as per the customer expected price..... Can't this be done

  • Font panel is resized

    Some weird thing has happened where my imovie font panel is resized. I can still get the full system font panel, but the imovie font panel is chopped in half. Screenshot is here:http://bayimg.com/naPjpAABD