Cancel
Showing results for 
Search instead for 
Did you mean: 

Getrowno issue

Valued Contributor
Valued Contributor

Dear community members,

I'm trying to get the row number in a tablefile.

I activated both column and row indexes as shown in the picture.

temporaneo.PNG

I created a buffer user defined attribute called "init", which should print the row number where the name "buffer" is located. Case sensitive not activated.

I used the following code

is
	
do
	variable:=tablefile.getrowNo(self.~.name);
        print variable;
end;

Variable is a global variable of type "integer";  

The output is -1. It should be one.

What should I change?

4 REPLIES

Re: Getrowno issue

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor
The proposed scenario seems to work when I try to recreate it.

Have you possibly added spaces in the Rowindex?

If not: could you upload your model?

Re: Getrowno issue

Valued Contributor
Valued Contributor

Here is the model

Re: Getrowno issue

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor
Your method refers to the TableFile "tablefile", whereas the data is in the TableFile "LevelingData".

Sincerely,

Re: Getrowno issue

Valued Contributor
Valued Contributor
Many thanks