Item Value not used

Customer IdCust First NameCust Last NameCust Street Address1Cust Street Address2Cust CityCust StateCust Postal CodeCust EmailPhone Number1Phone Number2UrlCredit LimitTags
1JohnDulles45020 Aviation Drive SterlingVA20166john.dulles@email.com703-555-2143703-555-8967http://www.johndulles.com1000 
2WilliamHartsfield6000 North Terminal Parkway AtlantaGA30320 404-555-3285  1000REPEAT CUSTOMER
3EdwardLogan1 Harborside Drive East BostonMA02128 617-555-3295  1000REPEAT CUSTOMER
4FrankOHare10000 West OHare ChicagoIL60666 773-555-7693  1000 
5FiorelloLaGuardiaHangar CenterThird FloorFlushingNY11371 212-555-3923  1000 
6AlbertLambert10701 Lambert International Blvd. St. LouisMO63145 314-555-4022  1000 
7EugeneBradleySchoephoester Road Windsor LocksCT06096 860-555-1835  1001REPEAT CUSTOMER
SQL Query:
SELECT *
  FROM DEMO_CUSTOMERS
 WHERE :P4_CUSTOMER_ID IS NULL
    OR CUSTOMER_ID = :P4_CUSTOMER_ID

Notes

When choosing a Customer Id from the Select List and clicking the Search Button, the Report will be refreshed through a Dynamic Action.

BUT: The chosen Customer Id is not used as Filter, although it is used in the SQL Query.

Switching on DEBUG and clicking the Search Button shows, that the Report is actually refreshed and it also shows the executed SQL Query, where we can see a reference of P4_CUSTOMER_ID.

What the Debug Output doesn't show, is a value for P4_CUSTOMER_ID, because it is NULL.

Checking the Session State of P4_CUSTOMER_ID through click on "Session" in the Developer Toolbar confirms that the value isn't set.

The Solution to this problem is specifying P4_CUSTOMER_ID in "Page Items to Submit" in the Report.

After doing that, you can see the session state is changed when clicking the search button.