Sorting a column using a formula

I am currently working on a database where a user can create a report document. This document has a dialog list which draws its values from a view(which is populated by only one document). To do this I use the @dbcolumn command. This works fine for the form, but when I try to create a view which will be sorted so that the documents appear in the same order as the options in the dialog list my formula does not work.

The formula I use to sort the column is as follows

data := @DbColumn(“”;“”;“(property/RptType)”;2);

value :=“ReportTitle”;

For(i:=0; value<>data[i]; i:=i+1; count = i);

@return(count)

I am wondering if I am allowed to use the @Dbcolumn command in a view / any problems you may see with me code.

Subject: Sorting a column using a formula

No, you can’t use @DbColumn in a view. The sort order values need to be stored in the documents (prefered) or hard-coded into the view.