cancel
Showing results for 
Search instead for 
Did you mean: 

CAP composition and SAPUI5 1.79

SamueleBarzaghi
Participant

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

vansyckel
Advisor
Advisor
0 Kudos

Hi sbarzaghi,

I was able to reproduce. However, the CAP app responds as expected, and I cannot further assist with the Fiori Elements part. The best way forward could be creating a BCP issue for component CA-UI5-FE.

Best,
Sebastian

Accepted Solutions (1)

Accepted Solutions (1)

SamueleBarzaghi
Participant

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

jhodel18
Active Contributor
0 Kudos

awesome! thanks for sharing the solution!

Answers (0)