cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (4)

Answers (4)

OttoGold
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Rob,

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

-wael

Former Member
0 Kudos

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

Former Member
0 Kudos

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