Get number of rows in parameter table

Get number of rows in parameter table

acacil
Participant Participant
98 Views
4 Replies
Message 1 of 5

Get number of rows in parameter table

acacil
Participant
Participant

Hi,

How can I get the number of rows (i.e. the number of parameters) in a parameter table?

thank you

0 Likes
Accepted solutions (1)
99 Views
4 Replies
Replies (4)
Message 2 of 5

Paula_LG
Enthusiast
Enthusiast

Hi,

 

You can use Model.parameters.names().length, for example.

 

I hope it helps!

Message 3 of 5

acacil
Participant
Participant

hey thanks for answering. however, something's off:

 

acacil_0-1746774026223.png

acacil_1-1746774069598.png

 

0 Likes
Message 4 of 5

Paula_LG
Enthusiast
Enthusiast
Accepted solution

Do you have more than one parameter table? If so, you need to specify the name on the command.

 

In your case, it would be Model.parameters.names("Nodes").length.

0 Likes
Message 5 of 5

acacil
Participant
Participant

that was it! thank you

0 Likes