Change content of a list in data card

I would like to change all the content of a list when the user choose a option in a data card (categories and sub-categories). I want to use the EPDM API because the content's list is in a xml file and can be updated by an other program. So I can get the value of the option (categories) and i use this value to find in my xml file which sub-categories corespond and i can retrieve this in an array.

With the EcmdType.EdmCmd_CardListSrc i can just change my list when the card is loaded (I think, not quiet sure). So i try with the EdmCmdType.EdmCmd_CardInput. But i don't know how to change the content list. With SetVar i can just change the value of the list. I use vb.net

Sorry for my english

Pat

EPDM 2011

SolidworksSolidworks Pdm enterprise Pdm