cancel
Showing results for 
Search instead for 
Did you mean: 

Fast way to Sum up values from an existing column(freshly entered ones too)

Former Member
0 Kudos

Hi

I'm talking from the weight column in the matrix in the Orderform.

Imho there are three possibilities to achieve this:

1. Those Select $[...]

2. More or less directly by iterating through the column objects (.specific)

3. Iterating through the DBDatasource.

I went with 2 but the performance is just annoying when formated searches comes in to play.

I don't know where to find documentation about those Select $[...] Queries so I couldn't test. Does anybody know a source?

I can somehow feel that Iterating through DBDatasources wouldn't be very fast but i am not 100% sure.

How has it to be done? Maybe somebody can point me in the right direction.

Thanks Phil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Phil,

You have information about formatted searches in the marketplace, under Service&SupportKnowledge&ServicesKnowledge BaseCustomizingFormatted Search. There are 2 interesting documents here.

From one of them:

"To retrieve data from the active window a special query should be created. The SAP Business One system provides 2 different syntaxes for the query:

· $[Tablename.Fieldname]

Tablename – indicates the table, which the active window relates to.

Fieldname – the field from the active window.

· $[$Field Index. Field Column. Number/Currency/Date.0]

This syntax uses the field’s index instead of the specific document table."

By the way, I think you are not going to be able to calculate a Sum, becouse you cant refer to an specific row within the matrix. You can refer to the first row, or to the actual row. But not specify the row number.

Hope helps,

Ibai Peñ

Former Member
0 Kudos

Thanks Ibai

So Group - functions like Sum(xyz) would be a great enhancement in those Select $[...] - Queries.

Phil

Answers (0)