From 6e669e8ecabdd6ed385fc72b954dbb32e285aa14 Mon Sep 17 00:00:00 2001 From: Stephan Wald Date: Mon, 25 Jun 2018 14:26:17 +0200 Subject: [PATCH] aded row index --- BBjGridExWidget.bbj | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index 587cbcb9..2f07ef53 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -374,7 +374,9 @@ class public BBjGridExWidget extends BBjWidget declare BBjHtmlView htmlview! if (f_init!) then - dummy$=stbl("!OPTIONS","JAVAFX_HTMLVIEW=true") + dummy$=stbl("!OPTIONS","JXBROWSER_HTMLVIEW=TRUE",ERR=*NEXT) + dummy$=stbl("!OPTIONS","JAVAFX_HTMLVIEW=TRUE",ERR=*NEXT) + html$="
" htmlview! = #getCanvas().addHtmlView(101,0,0,#getCanvas().getWidth(),#getCanvas().getHeight(),"") htmlview!.setCallback(BBjAPI.ON_PAGE_LOADED,#this!,"onLoad") @@ -1528,7 +1530,13 @@ class public BBjGridExWidget extends BBjWidget gson! = new Gson() if (#RS! <> null()) then - data$=#RS!.toJson() + + if com.basiscomponents.VersionInfo.getComponentsBuildTimeMillis() > 1529907740051 then + data$=#RS!.toJson(BBjAPI.TRUE,"__ROW_INDEX") + else + data$=#RS!.toJson(BBjAPI.TRUE) + fi + cdef!= #getAgGridColumnDefinition(0) else if (#TREE! <> null()) then @@ -1624,6 +1632,11 @@ class public BBjGridExWidget extends BBjWidget FI FI + if com.basiscomponents.VersionInfo.getComponentsBuildTimeMillis() > 1529907740051 then + rem this probably needs to be removed again, just showing for demonstration purpose + cd!.setFieldValue("__ROW_INDEX","") + fi + cdef! = new JsonArray() first=1