Skip to content

Commit 7e1d0b7

Browse files
authored
Merge pull request #32 from abap2UI5-renamed/create-pull-request/patch
2 parents 2f4ea75 + 1b1d792 commit 7e1d0b7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/01/03/z2ui6_cl_app_app_js.clas.abap

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,9 @@ CLASS z2ui6_cl_app_app_js IMPLEMENTATION.
804804
` }` && |\n| &&
805805
` const aTokens = oEvent.getSource().getTokens();` && |\n| &&
806806
` this.setProperty("rangeData", oEvent.getSource().getRangeData().map((oRangeData, iIndex) => {` && |\n| &&
807-
` oRangeData.tokenText = aTokens[iIndex].getText();` && |\n| &&
807+
` const oToken = aTokens[iIndex];` && |\n| &&
808+
` oRangeData.tokenText = oToken.getText();` && |\n| &&
809+
` oRangeData.tokenLongKey = oToken.data("longKey");` && |\n| &&
808810
` return oRangeData;` && |\n| &&
809811
` }));` && |\n| &&
810812
` this.fireChange();` && |\n| &&
@@ -818,13 +820,16 @@ CLASS z2ui6_cl_app_app_js IMPLEMENTATION.
818820
` const sKeyNameNew = aEntry[0].toLowerCase();` && |\n| &&
819821
` oRangeDataNew[(sKeyNameNew === "keyfield" ? "keyField" : sKeyNameNew)] = aEntry[1];` && |\n| &&
820822
` });` && |\n| &&
821-
` return oRangeDataNew;` && |\n| &&
822-
` }));` && |\n| &&
823823
|\n|.
824824
result = result &&
825+
` return oRangeDataNew;` && |\n| &&
826+
` }));` && |\n| &&
825827
` //we need to set token text explicitly, as setRangeData does no recalculation` && |\n| &&
826828
` input.getTokens().forEach((token, index) => {` && |\n| &&
827-
` const sTokenText = aRangeData[index].TOKENTEXT;` && |\n| &&
829+
` const oRangeData = aRangeData[index];` && |\n| &&
830+
` token.data("longKey", oRangeData.TOKENLONGKEY);` && |\n| &&
831+
` token.data("range", null);` && |\n| &&
832+
` const sTokenText = oRangeData.TOKENTEXT;` && |\n| &&
828833
` if (sTokenText) {` && |\n| &&
829834
` token.setText(sTokenText);` && |\n| &&
830835
` }` && |\n| &&

0 commit comments

Comments
 (0)