cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Creation Dialog in LineItem (odata v4)

christopher_ket
Explorer
0 Kudos

Hello,

I want to "upgrade" a LineItem based on CAP with a dialog/ form appearing while creating a new record. I tried the v2 approach described in the link below without success. The v4 approach (also below) is badly described. Is there an example of how to implement a dialog box with v4?

https://sapui5.hana.ondemand.com/sdk/#/topic/ceb9284b16f64f30865ce999dbd56064

After clicking the create button I get this pop up for entering a UUID:

What I want is one like this:

The problem seems to be that the NewAction property is missing. How can add this property?

It should look like this.

Source: https://sapui5.hana.ondemand.com/sdk/#/topic/993e99eae4414b73bc7afef9518c79bf

Regards

Christopher

0 Kudos

Were you able to ever figure this out?

sreejithmohanm
Employee
Employee
0 Kudos

Hi Christopher and others,

Any of you have a success with this yet?

Thanks and regards,
Sreejith

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor
0 Kudos

Hi Christopher,

the issue with the question regarding the GUID can be avoided by adding this annotation:

annotate SalesOrderService.SalesOrder with {
  ID @Core.Computed;
}

can't help directly with the other issues.

Best regards
Gregor

christopher_ket
Explorer
0 Kudos

Hey,

this suppressed the small creation dialog and navigates to the object page. A full creation dialog is not appearing.

Thank you.

Regards

Answers (0)