External search


With the help of the external search, an overview can be opened in which a business object is searched for on the basis of the URL parameters.

For this purpose, a new external search must be configured (see Dynamische Aufzählungen).

The structure of the URL is as follows:

#Aufbau
{Basis URL}#open={NAME}&{Parameter1}={Wert}&{Parameter2}={Wert2}
 
#Beispiel
https://scm.mycompany.de/#open=BC&barcode=12345789


If, for example, a shipment is found by means of the barcode, the following settings must be made:

  1. Create a new value:

    images/download/attachments/85264964/image2018-5-28_13_8_39-version-1-modificationdate-1635494238975-api-v2.png
  2. Select the view to open:

    images/download/attachments/85264964/image2018-5-28_13_9_7-version-1-modificationdate-1635494238972-api-v2.png
  3. Select the business object to search for:

    images/download/attachments/85264964/image2018-5-28_13_9_27-version-1-modificationdate-1635494238969-api-v2.png
  4. Create a search:

    images/download/attachments/85264964/image2018-5-28_13_10_9-version-1-modificationdate-1635494238966-api-v2.png


    1. Join the shipment line item:

      images/download/attachments/85264964/image2018-5-28_13_11_28-version-1-modificationdate-1635494238963-api-v2.png



      1. Edit the join created.

        images/download/attachments/85264964/image2018-5-28_13_13_34-version-1-modificationdate-1635494238960-api-v2.png



      2. It is important to assign the Join Alias (1) and remove the Optional option (3). The Join Type (2) should be set to 'Inner' and 'Shipment line item' as the Data Object (4).

        images/download/attachments/85264964/image2018-5-28_13_18_59-version-1-modificationdate-1635494238956-api-v2.png


        After the On (1) condition is configured (field projection to shipmentId of shipment position sli) (2) is checked for the shipment id (3), the join must be added to the barcode.

    2. Join the barcode. Click on (1) and add Attribute join (2).

      Here the Join alias (1) must be assigned. The Join type (2) is set to 'Inner' here. Optional (3) must not be set. The Attribute owner path (4) must be 'sli'. This specifies that the 'Barcode attribute' (5) does not belong to the shipment, but to a shipment line item (sli).

      1. images/download/attachments/85264964/image2018-5-28_13_24_51-version-1-modificationdate-1635494238947-api-v2.png
    3. To be able to use a URL parameter in the search, a search condition must be defined. Click on (1) to select a field restriction (2).

      images/download/attachments/85264964/image2018-5-28_13_29_33-version-1-modificationdate-1635494238933-api-v2.png


      All values from the URL are available in the storage with their name. In our example #open=BC&barcode=12345789 the name barcode.
      The Field constraint (1) is now 'bc.value.barcode' which is compared via the value resolver Variable (2).

      images/download/attachments/85264964/image2018-5-28_13_32_37-version-1-modificationdate-1635494238927-api-v2.png