cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Saving dependent Listbox with metadata

ptc-4478896
1-Newbie

Saving dependent Listbox with metadata

Hello,

I was wondering if someone can help me with my problem.

I want to save a listbox that is linked with buttons.

I already saw almost similar questions but the answers are not useful for this problem.

Also with the files from Richard Jackson i don't get a good script.

http://communities.ptc.com/docs/DOC-1071

Attached is a trimmed version of my sheet. The listbox receives an input from the buttons, which affects what is displayed in the listbox.


I would appreciate any help in solving this issue.

Thanks,

Dylan

3 REPLIES 3

I made also a sheet without metadata but still can't i save the listbox

see attachment

dylan

Hello Dylan,

Try this,

I've changed the radio button so that the last button returns the value to variable 'item'.

The first version has to iterate through the sheet twice , second time after it updated the radio button value - by then the OnLoad flag in the list box has been reset it doesn't catch the saved value

Regards

Andy

RichardJ
19-Tanzanite
(To:ptc-4478896)

Sorry, I don't have time to fix your script right now. I am out of town next week and have too much to do before I leave. The answer to why your script doesn't work is in this other thread though: http://communities.ptc.com/message/177577#177577

The document here: Saving the state of controls.zip has a listbox that saves it's state and takes it's content from an input. I suggest that rather than fixing your script you write a small program in Mathcad that creates the list you want, and then just feed it into this listbox.

Top Tags