65
Views
6
Comments
[SortRecordList] Issue Report
Question
sortrecordlist
Service icon
Forge asset by SortRecordList Team

Hi,

Our developer found a issue about SortRecordList.
The issue is that a result of a List ForEach is incorrect when a List that sorted by SortRecordList Action is accessed by chosen row index.

The procedures for reproduce:
1. Sort a List by SortRecordList Action.
2. Access to a List by choose row index. ex) GetEntityAggregate.List[3].Entity
3. Execute ForEach Action to a List.

Our developer suggest the following fix method:
To execute iteration of dummy after executed SortRecordList Action.

===================================================================

        recordList.Sort(comparer);

        //Dummy ForEach
        try
        {
            recordList.StartIteration();
            if (!recordList.Eof)
                recordList.Advance();
        }finally
        {
            recordList.EndIteration();
        }
===================================================================

Could you fix this issue, please?
We are using the OutSystems version of 9.1.402.0.

Best regards,
Hisako

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Hisako ,

Could you please share the espace or similar code in a test espace so that i can have a look on it.



Regards

-PJ-

2018-09-14 07-18-59
BlueMeme

Hi Pramod-San,

Thank you for your reply.
I would like to attach a sample program.

Best regards,
Hisako

SortRecordListSample.zip
2018-06-05 16-54-03
Maria da Graça Peixoto

Hi Hisako ,


Could you please say what is the error. It  seems is working well but i'm in platform 10. 

Best regards 

Graça

2018-09-14 07-18-59
BlueMeme

Hi Graça-San,

I should apologize you.
Since the program files I attached were customized version depends on our expectation, so I suppose you cannot reproduce the issue.
So I wish you would try to use the latest component of SortRecordList at Forge if you possible.

Best regards,
Hisako Ito (BlueMeme)

2018-09-14 07-18-59
BlueMeme

Hi,

How have things been after that?
If you need more information, please let me know.

Thanks,
Hisako

2019-12-12 04-42-41
Hisako

Hi,

Any update on this?
Our customer want to know any update regarding this issue.
Could you please inform us about this thread?

Best regards,
Hisako

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.