question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Use of getbundleindexentries

Hi I have an issue in using this function. I have a simple table which Use Bundle.

1740727270938.png


I tried to you the following code to find the row number where Type has a value of 1.

var test = getbundleindexentries(Table("GlobalTable1"),"Type",1);
return test;

But I get -1 which means it failed to do so. Is there something that I missed?

Thanks for your input.

David

FlexSim 25.0.2
getbundleindexentries
1740727270938.png (6.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered David Chan commented

Is the column indexed?

1740730851224.png


1740730851224.png (9.4 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

David Chan avatar image David Chan commented ·

@Felix Möhlmann Thanks. I did not.

Can I use FlexScript to index the column?

David

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann David Chan commented ·

Yes, with Table.addIndex().

0 Likes 0 ·