Message 1 of 13
How to delete rows in DropdownCommandInput

Not applicable
05-24-2016
10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. It need delete rows in DropDownCommandInput if button delete is pressed. I try this code
dropDownCommandInput=adsk.core.DropDownCommandInput.cast(inputs.itemById(piecesListId)) if dropDownCommandInput: for item in dropDownCommandInput.listItems: item.deleteMe
I try delete all rows and add new rows, but only new rows are added.How delete all rows in DropDownCommandInput?