Configurator Rule Question

I would like to set the parent quantity of an included part to a numerical value entered in the configurator. Is this possible?

If I follow what you are asking correctly, in the Configurator Rules Entry you can set an action for each mtl, like this:

JobMtl.QtyPer = ((Inputs.P01_Rdo_TuningOptions.Value == "1") ? (System.Convert.ToDecimal(Inputs.P01_cmb_NumbBay.Value)) : (System.Convert.ToDecimal(Inputs.P01_cmb_NumbBay.Value) * 2);
//OR
JobAsmbl.QtyPer = System.Convert.ToDecimal(Inputs.P01_cmb_NumbBay.Value);
2 Likes

I feel like I should also remind you that if you have users who are getting details in quote it is slightly different with where you would just replace JobMtl.QtyPer with QuoteMtl.QtyPer. So it would be something similar to the code below:

if (Context.Entity == "QuoteMtl")
{ QuoteMtl.QtyPer = System.Convert.ToDecimal(Inputs.P01_cmb_NumbBay.Value);}
else if (Context.Entity == "JobMtl")
{ JobMtl.QtyPer = System.Convert.ToDecimal(Inputs.P01_cmb_NumbBay.Value);}