Jump to content

Get Pop-up Field Options from PIO


Recommended Posts

Anybody have an approach for getting the options from a pop-up field in a Plug In Object? vs.PopupGetChoices doesn't appear to work with hidden parametric records from everything I've been throwing at it. Tried both field name and localized field names and I always get 0 for the number of values and None for the list returned when used on a PIO Record. Works fine on standard record definitions in the resource browser. This command didn't exist before v2023 so there has to be an alternate approach I'm overlooking... I hope?

Link to comment

Here's how I get the items that are in a popup. i also use this flow to clear out popups and repopulate them with new values. 

 

popupItems = []
ok, parmid = vs.vsoPrmName2WidgetID('', 'Product')
popupCnt = vs.vsoWidgetPopupGetCnt(parmid)
for i in range(popupCnt):
  popupItems.append(vs.vsoWidgetPopupGet(parmid, i))

vs.AlrtDialog(str(popupItems))

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...