"Radzmar, the "This.Node" you are questioning gives the ability to select all text on re-enter (undocumented feature I discovered) "
To be honest, "This.Node" it's nothing else than nonsense. This code returns just "undefined". In result xfa.host.openList(this.Node) returns null, because "undefined" can't be resolved. The same story for xfa.host.openList("$"). It can't work.
What you need is just xfa.host.openList(this); in the enter and change event ot the drop down list. It doesn't matter if it's a static or dynamic XFA form, it works the same way in both.
And for the change event you can minimize the code to this:
var aFields = [PPN1, PCP1, PBA1, PCPS1, PPZC1],
aData = [
["", [null, null, null, null, null]],
["Dizz Bizznis Ltd.", ["5555551212", "Deezy Dealz (999) 555-1213", "420 Deeplaya Street", "Indahood, CA", "90420"]],
["Co Core Inc.", ["5558008135", "Jenny Tulls", "uite 69 - 17550 Durtea Way", "Las Vegas, NV", "69690"]]
],
cSel = xfa.event.newText;
aData.forEach (function (dataArray) {
// If selected text matches the first item on the nested array …
if (dataArray[0] == cSel) {
// … copy all related data into the fields.
aFields.forEach(function (oField, oIndex) {oField.rawValue = dataArray[1][oIndex];});
}
});
xfa.host.openList(this);