Skip to main content
5-Regular Member
August 8, 2022
Question

Web.link creating parameter and counting notes

  • August 8, 2022
  • 1 reply
  • 1348 views

Hi all,

 

so I'm new to Web.link and trying to figure out how it works. is there a way to create a code that makes a parameter then have it count how many PTC_NOTE_TEXT there are and associate that with the parameter?

 

1 reply

15-Moonstone
August 10, 2022

1. use pfcParameterOwner.CreateParam()

2. call pfcModelItemOwner.ListItems() with ModelItemType.ITEM_DTL_NOTE 

3. count notes with ModelItems.getarraysize ()

4. set value of parameter Parameter.SetValue ()