Other OutSystems sites...
OutSystems Website
About Agility Blog
OutSystems Network
Login
Signup
Forums
Academy
Forge
Ideas
Forums
›
Technology & Integration
›
Problem with Record List
Problem with Record List
Paulo Torres
Rank: #160
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #5
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #160
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Testes.oml
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 :)
Paulo Ramos
Rank: #5
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #160
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #5
Posted on 2012-05-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Testes (local).oml
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.
Paulo Torres
Rank: #160
Posted on 2012-05-14
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #35
Posted on 2012-05-14
thumbs_up_ico
1
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #239
Posted on 2012-10-18
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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?
Quick Reply
Notify me by email when someone answers to my post
attachment
Choose File
No file chosen
Submit
Login to reply
Something on your mind?
Login to Start a Discussion
Top Forums Posters
Gonçalo Martins
Davide Marquês
Ricardo Silva
Statler & Waldorf
Charles Colaço
Richard Pearson
Fábio Silva
Justin James
Robert Chanphakeo
Kilian Hekhuis
See leaderboard
Online Training
On-demand video lessons to help you learn at your own pace.
Learn More