create a new checkbox field in the jobAssembly / Subassemblies window, I want to create a BPM so that it does not allow adding matter if the check is True but I have not been able to since the ttJobAsmbl table is not taking the value that is in the database and the condition is always false, I am using a BPM with the GetNewJobMtl method.
In the database, the approved_esmb_c field has a value of 1 (true), but it is not validated in the BPM.
I did tests and the code works when adding materials to the parent Assembly, when I add a new subassemblies inside the parent assembly it allows me to add materials so this check is true
is that it prevents adding materials if the check is approved, the idea is that many subassemblies can be made within the same parent assembly in the job and that when a subassembly has the approved check, materials cannot be included.
Friend, if you create a new subassembly and add a material in that subassembly, the method it calls is the same GetNewJobMtl I don’t understand why it doesn’t work if it’s the same from
Bien, pero en ese ejemplo estas anadando el material en nivel 0 o en el subensamble? Lo que queiro ver es el valor cuando estas anadando el material en el subensamble.
that’s the problem that when I go to level 1 which is a subassembly and add material, the code doesn’t work. does nothing. it only works on the main Assembly. How could it be put into operation in the new subassemblies
Can you show me the messagebox with the value of the checkbox when you are adding a material to subassembly 2? I would like to see this picture, but with the message box in front of it showing the value of the checkbox.
EpiCheckBox checkBox = (EpiCheckBox)csm.GetNativeControlReference(“f69b6575-a461-4c07-a660-bbabb7da63f5” /INSERT YOUR GUID HERE INSTEAD OF MINE/);
bool checkBoxValue = checkBox.Checked;