Quintiq file version 2.0 #parent: #root Method UpdatePISPIPValues ( structured[ProductInStockingPointInPeriodPlanning] pispip, Real newvalue, String focusedattribute ) id:Method_FormPlanning_UpdatePISPIPValues { #keys: '[137862.1.334542570]' Body: [* // Update values of PISPIP attributes based on values entered isSupply := focusedattribute = attribute( ProductInStockingPointInPeriod, DisplaySupplyQuantity ).Name(); if( isSupply ) { //Smart plan with user qty /* User [Real] instead of ApplicationMacroPlanner.FormatStringToReal MatrixEditor will do the format internaly to match the server locale and it only allow Real for cell bind to Real attribute */ totalsupplyuser := newvalue; MacroPlan.RunSmartPlanFromPlanningMatrix( pispip, totalsupplyuser, ScenarioManager ); } *] }