Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Grid fails to render when the Columns field contains just numbers #244

Closed
TimonGeisbauer opened this issue Sep 30, 2022 · 0 comments
Closed
Assignees
Labels
Area: Core Javascript The issue is related to the central Javascript code Change: Minor Needs less than 64 lines change Status: Confirmed The issue is a bug and has been confirmed and an action will be taken Status: Fixed in dev A fix is ported to the dev branch Type: Bug The issue documents broken, incorrect, or confusing behavior.

Comments

@TimonGeisbauer
Copy link

TimonGeisbauer commented Sep 30, 2022

The Grid will not render if you define a Column with a Field like "any number/s".
It will print the following error msg to the console: "TypeError: this.colDef.field.indexOf is not a function"

use ::BBjGridExWidget/BBjGridExWidget.bbj::BBjGridExWidget
use ::BBjGridExWidget/GxColumns.bbj::GxColumn
use com.basiscomponents.db.ResultSet

sysgui! = BBjAPI().openSysGui("X0")
wnd! = sysgui!.addWindow(0,0,800,600,"GridExSample")
wnd!.setCallback(BBjAPI.ON_CLOSE,"byebye")

wnd!.setCallback(BBjAPI.ON_CLOSE,"byebye")
grid! = new BBjGridExWidget(wnd!,9876,0,0,wnd!.getWidth(),wnd!.getHeight())

c! = new GxColumn("1")
grid!.addColumn(c!)
c! = new GxColumn("2")
grid!.addColumn(c!)
c! = new GxColumn("3")
grid!.addColumn(c!)
c! = new GxColumn("4")
grid!.addColumn(c!)
c! = new GxColumn("5")
grid!.addColumn(c!)
c! = new GxColumn("6")
grid!.addColumn(c!)
c! = new GxColumn("7")
grid!.addColumn(c!)
c! = new GxColumn("8")
grid!.addColumn(c!)

grid!.setData(new ResultSet())

process_events

byebye:
bye
@hyyan hyyan added Type: Bug The issue documents broken, incorrect, or confusing behavior. Area: Core Javascript The issue is related to the central Javascript code Status: Confirmed The issue is a bug and has been confirmed and an action will be taken Change: Minor Needs less than 64 lines change Status: WIP Work in progress labels Oct 25, 2022
@hyyan hyyan closed this as completed in e8d43a3 Oct 25, 2022
@hyyan hyyan added Status: Fixed in dev A fix is ported to the dev branch and removed Status: WIP Work in progress labels Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Javascript The issue is related to the central Javascript code Change: Minor Needs less than 64 lines change Status: Confirmed The issue is a bug and has been confirmed and an action will be taken Status: Fixed in dev A fix is ported to the dev branch Type: Bug The issue documents broken, incorrect, or confusing behavior.
Projects
None yet
Development

No branches or pull requests

2 participants