Skip to Content

CAP composition and SAPUI5 1.79

Hi,

I have entity A with composition with entity B.

When I try to insert the second record of B the UI get stucked:

Screenrecording

To reproduce the problem:

If you press "Create" and press "Back" and press "Create" the problem doesn't appear.

screencast

When you press the "Create" button the url changes to ".../products(...)"

Thanks

Sam

fd6j3.png (61.9 kB)
axz5u.png (111.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 28, 2020 at 02:51 PM

    Solved with the help of SAP support:

    By default when you create a table in the ObjectPage, it is by default configure with createmode = NewPage.

    As such when you click on create the applicaton tries to navigate to a dedicated "Products(...)" page

    You have two options. :

    - Add a dedicated product page and configure the navigation accordingly so that when you click on create you get navigated to the right page

    - Change the tableSettings for this table so that it is defined as creationMode = "Inline"

    To do the latter, in the manifest for the Systems objectPage add the following

    	"settings": {
    		"controlConfiguration": {
    			"products/@com.sap.vocabularies.UI.v1.LineItem": {
    				"tableSettings": {
    					"creationMode": {
    						"name": "Inline"
    					}
    				}
    			}
    		}
    	}
    

    Look at this commit:

    https://github.com/sbarzaghialteaup/cap_test_draft/commit/ff328c6b61b70fc53cc1751786bf9f02d0c33e0c

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.