Skip to Content
avatar image
Former Member

Display First Name and Last Name from Search Help box on form

Hello,

I have a button on my form which displays the SAP Search Help for a user.

This is passing me the PERNR but I also want to retrieve the First and Last Name at the same time.

This code displays the number.

var fieldName = "HRBP_PERNR";

                    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051128130428.257427.256785 - ValueHelp.xfo
                    ;

                    // 'this' means relative to this node, instead of relative to form node
                    var theNodeName = this.resolveNode("parent." + fieldName).somExpression; 
                    ContainerFoundation_JS.SendMessageToContainer(event.target,
                                                                  "valueSelect", 
                                                                  xfa.resolveNode(theNodeName).dataNode.somExpression.replace(/(xfa.*?\.)(datasets.*?\.)(data.*?\.)/, ""), 
                                                                  xfa.resolveNode(theNodeName).rawValue, 
                                                                  event.target.mouseX,
	                                                          event.target.mouseY);
                    // END OF DO NOT MODIFY

Please help?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Mar 09, 2009 at 01:08 PM

    Hey Rob,

    Is this search help something that you have developed? Can you explain a little more to how the funcitonality works? Is this triggering an operation in your BAdI?

    Cheers,

    Kevin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2009 at 06:24 AM

    hi Rob,

    Soory but i too dont have solution, but require your help.

    Can you please tell me how your search help is working.

    Thanks,

    Nikhil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 11, 2010 at 09:48 PM

    Hi Rob,

    Could you tell me how you resolved your issue? I'm trying to do the same.

    -wael

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12, 2010 at 09:01 AM

    Guys, the best solution is to create all this in backend (that means load the data into internal table, pass this one into the form interface/ context) and display it in form using the drop down or some custom-developed-object.

    Regards, Otto

    Add comment
    10|10000 characters needed characters exceeded