Skip to main content
10-Marble
October 23, 2023
Question

Persisting Combobox value on AffectedItemData Link

  • October 23, 2023
  • 1 reply
  • 794 views

Not sure what I am doing wrong here but stumped on how to get the value to persist. 

I dont see the value in any of the method parameters (meaning if I select "No" in the drop down then nothing shows up in any of the method parametes aka BinaryLink, MethodContext, etc.) 

Not sure how this customization is supposed to work and the limited kb for this on ptc windchill help is not very helpful. 

Here is my github code. 

WCComboBox 

 

also I was trying to follow along to this :

https://support.ptc.com/help/windchill/r12.1.2.0/en/index.html#page/Windchill_Help_Center/customization/WCCG_BusLogicCust_ChangeMgmt_EditAttrChangeRelTable_Step3.html# 

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
October 23, 2023

Hi @NT_10748259 

Every information is stored in a NmCommandBean object

in a processor, where is method doOperation or preProcess method contains that object

HelesicPetr_0-1698043185349.png

OOTB doOperation is in EditChangeItemFormProcessor.class

here is example how the information from wizard is stored in the NmCommandBean

example attribute KLR

HelesicPetr_1-1698043285424.png

in the object from the processor code>

HelesicPetr_2-1698043315001.png

 

Your combo box is in the comboBoxParameter

example how to get comboBox

Map var10 = var1.getComboBox();

 

PetrH