Symptom
You have a Custom OWL View for your Custom BO where you access the view directly from frontend.
You have tried to change the Default Query, but even after creating a new Query Set and set it as Default Query, system still use another Query Set.
Environment
- SAP Cloud Applications Studio
- SAP Cloud for Customer
- SAP SAP Business ByDesign
Reproducing the Issue
- Navigate to the custom OWL view
- Click on button "Show Advance Filter"
- Put values on the fields for the specific new query set that you want to create
- Click on button "Save Query"
- Give it a Query Name and set it as Default query
- Change View
- Go back to Custom OWL view and you see that system uses another query as default
- Click on button "Show Advance Filter"
- Click on button "Organize Queries", see all query set maintained for this table of instances. You can see your newly created query set and even set as default as well
Cause
For a custom screen, you are able to to perform some kind of validations, actions and default set values for fields, property and behaviors.
There is a configuration on UI Designer that allows a default query or default query set for a OWL view to be changed. Depending on how you create the table, query or even the view, this option could might be set to a fixed value. UI Designer configuration will overwrite any kind of change performed by Change Transactions (from adaptation mode) or in the runtime, because it has a higher configuration priority.
Resolution
- Login to SDK
- Open the solution that contains the OWL screen
- Open OWL in UI Designer
- Go to tab "Controller"
- Expand folder "Inport"
- Open Inport "Inport"
- Go to tab "Properties".
- Check the property "DefaultSet". It is probably set as "Default set". You have two options:
- -> DefaultSet = This triggers the OWL to use default configuration for the table.
- -> None = This will leave OWL configuration as it was opened or requested to open. Adaptations on the Default Query set will now be possible via frontend.
Keywords
UI; OWL; Custom; Query; DefaultSet; Default Query; Table; List Pane , KBA , AP-RC-UIF-RT , UI Framework Runtime , AP-RC-UIF-DT , UI Framework Designtime , Problem
SAP Knowledge Base Article - Public