Symptom
You have embedded an EC in a standard UI as per SAP guidance and noticed that the Inport is fired even if a blank value is being passed as an Outport and this is causing inconsistent behavior.
Environment
- SAP Business ByDesign
- SAP Cloud Applciations Studio
- SAP Cloud for Customer
Cause
This is expected as Outports are allowed to pass a blank value.
Resolution
In case you do not want EventHandlers triggered when the Inport is blank, please consider creating a EventHandler with a Script Operation that prevents execution of other events when the Inport is not filled.
Example, below UI script will only trigger EventHandler "ReadOrCreate" if UUID is filled:
unless($controller.Utils.IsInitial($data.Inport.UUID)
$controller.HandleEvent("ReadOrCreate")
end
See Also
Keywords
PDI, SDK, UI Designer, Read, Create, Embedded Component, AlternativeKey, missing, embed, Event Handler, BOOperation, Key, Parameter , KBA , AP-RC-UIF-DT , UI Framework Designtime , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , Problem
SAP Knowledge Base Article - Public