Skip to Content
0
Dec 06, 2022 at 09:31 PM

How to create an entry form using "Form Entry Object Page"?

2320 Views Last edit Dec 06, 2022 at 09:33 PM 2 rev

Hi experts,

In Business Application Studio, there is a Fiori application template called "Form Entry Object Page".

The title sounds like we can create a form for creating a new record.

image.png

I tried to generate a form entry object page based on an existing CAP project (link to git repo).

As a result, manifest.json was filled with the following routing configuration.

"routing": {
	"routes": [{
		"pattern": "Travel({key}):?query:",
		"name": "TravelObjectPage",
		"target": "TravelObjectPage"
	}, {
		"pattern": "Travel({key})/to_Booking({key2}):?query:",
		"name": "BookingObjectPage",
		"target": "BookingObjectPage"
	}],

The first route requires Travel entity's key, meaning that the entity has to be already exist before showing on the object page. If I enter the hash "#Travel(1)", then it opens with data and edit capability but this is not what I intend.

image.png

So my question is, if "Form Entry Object Page" can be used for data creation scenario and if yes, how we can configure the app to behave that way.

Best regards,

Mio Yasutake

Attachments

image.png (242.6 kB)
image.png (66.0 kB)