Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?

Former Member
Not what you were looking for? View more on this topic or Ask a question