Axapta 如何重置next更改的数据行位置?

Axapta 如何重置next更改的数据行位置?,axapta,Axapta,我想在选定的数据行上执行while循环,而不需要一次又一次地选择它们。所以我只想把行设置回起始位置。代码应该如下所示: Table table; select * from table where …; while(table) { info(table.stringColumn); next table; } somehow reset table position //start from first selected row while(table) { info

我想在选定的数据行上执行while循环,而不需要一次又一次地选择它们。所以我只想把行设置回起始位置。代码应该如下所示:

Table table;
select * from table where …;
while(table)
{
    info(table.stringColumn);
    next table;
}
somehow reset table position 
//start from first selected row
while(table)
{
    info(table.stringColumn);
    next table;
}

我该怎么做?

我会使用
QueryRun
及其方法
reset

但是,如果您不想在检索完数据库后再次从数据库中获取数据,您可以将所有检索到的记录存储在
RecordLinkList
中,联机详细信息:

如果您需要带有
QueryRun
RecordLinkList
的代码示例,请告诉我,我会将其添加到答案中


p.S.如果您只对示例中的stringColumn感兴趣,只需将其值存储在容器或a中,然后在需要时进行检查。

我会使用
QueryRun
及其方法
重置

但是,如果您不想在检索完数据库后再次从数据库中获取数据,您可以将所有检索到的记录存储在
RecordLinkList
中,联机详细信息:

如果您需要带有
QueryRun
RecordLinkList
的代码示例,请告诉我,我会将其添加到答案中

p.S.如果您只对示例中的stringColumn感兴趣,只需将其值存储在容器或中,然后在需要时进行检查