Posted 8 August 2017, 1:40 am ESTI receive an error for ambiguous method call as the .add() method of ArrayList and GridRowColCollection match. Any help would be appreciated.
Ambiguous method call
Posted by: ron_velis on 8 August 2017, 1:40 am EST
Replied 8 August 2017, 1:40 am ESTHi Ron
Can you give a little more information about where you're seeing this and under what conditions? I just did a quick check and I don't seem to have any issues here using the add method of an arrayList, but I'm not totally sure what else you might be doing in code. This is just a guess, but if you're trying to manually populate the grid rather than set an itemsSoruce then you might find the Unbound sample helpful.
Replied 8 August 2017, 1:40 am ESTI found a workaround for this issue, but the bug still remains that "FlexGridName".getColumns.add("ColumnName") returns an error in Android Studio reported as an ambiguous method call that conflicts with the ArrayList class .add() method. The ambiguous method call issue has been documented online with other methods not relating to Xuni, but I would suggest reviewing for a frame of reference. The workaround for anyone else facing this issue is to use the "FlexGridName".getColumns.add("Column #", "ColumnName") which sets the exact column placement on the grid.