Skip to content

Commit

Permalink
aded row index
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Jun 25, 2018
1 parent 44c0770 commit 6e669e8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions BBjGridExWidget.bbj
Expand Up @@ -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$="<html><body><div id='eventTransporterDiv' onClick='gw_postEvent(event);'></div><div id=""grid"" style=""height: 100%"" class=""ag-theme-balham""></div></body></html>"
htmlview! = #getCanvas().addHtmlView(101,0,0,#getCanvas().getWidth(),#getCanvas().getHeight(),"")
htmlview!.setCallback(BBjAPI.ON_PAGE_LOADED,#this!,"onLoad")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6e669e8

Please sign in to comment.