Pseudo-Algorithm for SelectPrimary

  1. Get and check the input arguments.

  2. Get the picklist business component from the Quote business component with the PickList Field input argument.

  3. Set the search specification using either the Primary Row Id or Primary ID Field input argument.

  4. Pick the first row if an active row exists;

    Else clear the picklist.

  5. Write and refresh the business component.