Working in (Learning) Kinetic Product Configurator.
The equipment I’m attempting to build into the configurator has some repetitive controls. Basically, I have (15) parts that are part of the top level assembly, and the user can configure each one with various drop downs, radio buttons, etc… So, the same controls/options… they just have to choose their options (up to) 15 times depending on how many of these parts they want included in the main assembly.
In the designer (Kinetic/App Studio) I built the controls for the first part.
I then copy/pasted them into the designer and then went back in to edit their IDs so they corresponded with the second part instead of the first.
When I did this, I noticed that the “Dynamic Lists” were still pinned to the original control ID. So, I found if I toggled the Data Source for the Dynamic List from “BAQ” to “Predefined List” and back to “BAQ”, the control ID would update to the new one. Great!
I then started working on the OnChange events (CSharp). What I quickly discovered is that the OnChange events of these copied controls didn’t work. After scrutinizing the C# for awhile, which seemed perfectly fine… I made a set of all new controls, from scratch with different IDs, and the OnChange events WOULD fire.
What I found was the OnChange events on my pasted controls were still tied to the original copied controls! So, if I changed those original controls for the first part, all the change events would fire and work. But changing the value of a pasted control did nothing. It was waiting for the copied control to change.
EpiCare case entered on that one… Copy/Pasting controls (although possible) appears to retain behind the scene connections to the original copied control/events.
So, I then went in and deleted all but my original controls… hoping to wipe the slate clean.
I then started rebuilding the subsequent controls manually one by one. (there are 135 of them, so this is a huge drag when copy/paste seemed like a great tool).
Having my next set of controls ready for my part (2), I wanted to test them before continuing to finish the 135 controls. The problem is, I had used the same names (ID’s) for these controls as I had used for the ones I had previously deleted.
So, it turns out, deleting the control (comboboxes, radio buttons, etc.) does NOT delete the events originally tied to them… which were wrongly tied to different controls and not working properly. So, even though I built these manually, because I used the same names/ID’s, they re-connected themselves to the original (bad) events.
I looked in the events in App Studio and all of the events for those deleted controls are still lingering there. OnChange events, OnInit events, etc.
I suppose the solution here is to rebuild each control manually, AND change my control naming schema and get clean events tied to new controls… No, big problem there. But, there doesn’t seem to be any way to delete the old, BAD, events. I can right-click on them and delete, but if I close the designer and come back in, they come back.
Does anyone know of any way to purge these events which are no longer tied to controls? This just leaves a lot of bloat in the background that I’d like to clean up.
EpiCare case also entered for that, as well… but hoping someone on here may have already come across this issue.