Hello,
I'm trying to make my own ListGrid form item on CanvasItem but I'm getting strange error on Console:
Here is the standalone test case:
The error appears when I click on a displayed grid and than press any key. For example arrow to select other record.
It also sometimes show up when mouse is moving around the listgrid and clicking in records.
What's wrong with it?
Or maybe there is other way to get couple components in one CanvasItem?
Best regards
I'm trying to make my own ListGrid form item on CanvasItem but I'm getting strange error on Console:
Code:
18:16:39.781:KUP0:WARN:Log:Call to Super for method: handleKeyUp failed on: [HLayout ID:isc_HLayout_6]: couldn't find a superclass implementation of : HLayout.handleKeyUp Class.getStackTrace(args=>undef, ignoreLevels=>undef, maxLevels=>undef, skipFBugTrace=>undef) Class.invokeSuper(clazz=>null, methodName=>"handleKeyUp", a=>undef, b=>undef, c=>undef, d=>undef, e=>undef, f=>undef, g=>undef, h=>undef) Class.Super(methodName=>"handleKeyUp", args=>Obj{length:2}, nativeArguments=>undef) [o]HLayout.handleKeyUp(event=>Obj, eventInfo=>Array[3]) [c]EventHandler.bubbleEvent(target=>[HLayout ID:isc_HLayout_6], eventType=>"keyUp", eventInfo=>Array[3], targetIsMasked=>undef) [c]EventHandler.handleKeyUp(nativeEvent=>[object KeyboardEvent], scEventProperties=>undef) [c]EventHandler._handleNativeKeyUp(DOMevent=>[object KeyboardEvent]) [c]EventHandler.dispatch(handler=>[c]EventHandler._handleNativeKeyUp(), event=>[object KeyboardEvent]) anonymous(event=>[object KeyboardEvent])
Code:
public class AdditionalUsersItem extends CanvasItem { private HLayout hLayout; private ListGrid listGrid; private DSAdditionalUsers dsAddUsers; private RecordList recordList; public AdditionalUsersItem(String name) { super(name); setWidth("*"); setHeight("*"); setColSpan("*"); setEndRow(true); setStartRow(true); this.setShouldSaveValue(true); this.setTitle(""); setInitHandler(new FormItemInitHandler() { @Override public void onInit(FormItem item) { listGrid = new ListGrid(); listGrid.setShowHeader(false); listGrid.setLeaveScrollbarGap(false); listGrid.setAutoFetchData(false); listGrid.setHeight(26); listGrid.setAutoFitMaxRecords(3); listGrid.setShowEmptyMessage(false); listGrid.setAutoFitData(Autofit.VERTICAL); listGrid.setOverflow(Overflow.VISIBLE); listGrid.setFields( new ListGridField("display") ); addShowValueHandler(new ShowValueHandler() { public void onShowValue(ShowValueEvent event) { recordList = new RecordList(); Record r = new Record(); r.setAttribute("display", "test"); recordList.add(r); listGrid.setData(recordList); } }); hLayout = new HLayout(); hLayout.setAutoHeight(); hLayout.addMember(listGrid); setCanvas(hLayout); } }); }
It also sometimes show up when mouse is moving around the listgrid and clicking in records.
What's wrong with it?
Or maybe there is other way to get couple components in one CanvasItem?
Best regards
Comment