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
Paulo Torres
Champion
3
Views
8
Comments
Problem with Record List
Question
Hello everyone.
I have a problem with Recor List.
I put in a Record List (Structure) many records for after present in the screen, but in the screen
repeats
the last
record
the number of
how many
times
I have
records.
For example:
In the structure:
100 | 2000 | 2000
101 | 1000 | 1000
In the screen:
101 | 1000 | 1000
101 | 1000 | 1000
I used ListAppend and ListInsert and anyone worked as i want.
Help me please :)
Best Regards, Paulo Torres
Paulo Ramos
Staff
Hi Paulo,
As I understand, you should have a local variable (RecordList) containing the data, and you use it in the TableRecords's Source Record List property.
Examine the expressions inside the TableRecord. They should be similar to this:
TableRecordName
.List.
Current
.xx.yy.
It's possible that you are using another object (possibly the original list) instead of the TableRecord, in those expressions. This may casuse the behavior you're describing, as the list 'Current' property will return always the same data (because it's not being iterated).
Paulo Torres
Champion
Hello Paulo.
Yes i have a local variable, is expressions in tablerecord, for example: TableRecords2.List.Current.SomatoriosContas.TotalFicheiro.
I attached my espace.
Thank you :)
Testes.oml
4 replies
Last reply 14 May 2012
Show thread
Hide thread
Paulo Ramos
Staff
Hi,
Try using a Record (local record variable with definition SomatoriosContas) to configure and add the new items (instead of using RL.current). You should pass it to your ListInsert action.
Also, consider using ListAppend instead of ListInsert (are you sure you need the latter?).
Let us know how it goes.
Paulo Torres
Champion
I use ListAppend... The ListInsert it's only test but not worked.
I put local record variable with definition SomatoriosContas but not worked, make the same thing.
Any
suggestions
??
Best Regards, Paulo Torres
Paulo Ramos
Staff
Hi Paulo,
See attached a sample. It's in 6.0, so you may have to install ServiceStudio 6.0 (you can have both SS5 and SS6 installed).
Since I don't have your 5.x server references (ex: EnterpriseManager) nor data to test, I've removed all the stuff I didn't need for the test. See the comments in the
VerificacaodeTotais
web action. Also note the new local variable
Rec_Somatorios
.
Final table record output contains 2 rows (
"
Account 1
",
"
Account 2
"
) - which are being added to the GetAccountsMothers query just for simulating results.
Testes (local).oml
Paulo Torres
Champion
wrote
:
Hi Paulo,
See attached a sample. It's in 6.0, so you may have to install ServiceStudio 6.0 (you can have both SS5 and SS6 installed).
Since I don't have your 5.x server references (ex: EnterpriseManager) nor data to test, I've removed all the stuff I didn't need for the test. See the comments in the
VerificacaodeTotais
web action. Also note the new local variable
Rec_Somatorios
.
Final table record output contains 2 rows (
"
Account 1
",
"
Account 2
"
) - which are being added to the GetAccountsMothers query just for simulating results.
Thanks =)
I'll
try and
give you feedback...
One more time, Thank you so much!
Hugs, Paulo Torres
João Rosado
Staff
Hi Paulo,
Your problem is that you
cannot
do a ListInsert to a list using the same list.Current
And you are doing that in the ListInsert on VerificacaodeTotais method.
Use a local variable to assign the new values to insert.
Regards,
João Rosado
Antonio Xeira
I had exactly the same problem and solved it the same way. "
Use a local variable to assign the new values to insert."
Not obvious when we are writing the code, thought.
Maybe OS should give us a warning or error?
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...