Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Caio Santana Magalhães
MVP
104
Views
4
Comments
[Bug] EditableTable appending empty record to the list
Question
OutSystems Widgets
Hello, forum!
I think I've encountered a bug regarding EditableTables. I've noticed it always appends an empty record to the end of the list.
Example:
When I add 2 items to
MyEditableTable
and then access
MyEditableTable.List
, I find it actually contains 3 records, the last one being a record with null values.
This has been pretty annoying since I cannot safely assign the list to other entities.
Could you please confirm this issue?
Service Studio version: 9.0.1.55
George Jeffcock
Hi Caio
I can confirm your findings.
Example1:
10 rows from database displayed and you do nothing but press a button to a empty action the following will occur
CurrentRowNumber = 10
Length = 11
List Element 11 will contain a 'null' version of the row
So can you trust CurrentRowNumber. No you can not as the following highlights
10 rows from database displayed and start to add a new row but dont complete, press a button to a empty action the following will occur
CurrentRowNumber = 11
Length = 12
List Element 11 will contain your un-commited row
List Element 12 will contain a 'null' version of the row
So the widget saves a lot of time but you must be wary of what is returned is not necessarily what has been commited to the database. I'm sure someone will offer their workarounds to achieve what you want to acheive but I am thankful for this great widget all the same
Cheers
George
Caio Santana Magalhães
MVP
George,
I've requested a ticket reporting the issue. I've attached a screenshot showing the problem in the debug watch.
Debug Screenshot.png
2 replies
Last reply 03 Jun 2016
Show thread
Hide thread
George Jeffcock
up to you Caio,
but I would be inclined to say it works as advertised...we just had to learn how it worked. If you need what is actually on the database you can not trust what's is on a webpage period..
Caio Santana Magalhães
MVP
George Jeffcock
wrote:
up to you Caio,
but I would be inclined to say it works as advertised...we just had to learn how it worked. If you need what is actually on the database you can not trust what's is on a webpage period..
Hello George,
Regardless of whether the data comes from the database or if it's a hand-built list in the preparation of a WebScreen, I strongly believe that a RecordList with Length = 2 that actually contains 3 records (the last one being null) is an unexpected behavior.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...