Stream: cds hooks
Topic: error card
Kevin Shekleton (Jan 28 2018 at 16:16):
Has anyone tested the new (experimental) error
cards? I know @Grahame Grieve hasn't had a chance to yet. I'm curious if anyone else has (or will :grinning:)
Grahame Grieve (Jan 28 2018 at 16:17):
I deployed a server that will almost certainly return one of the order-review hook because it has stringent data reqirements, but I didn't do any client testing yet
Paul Curcio (Jan 28 2018 at 16:25):
@Kevin Shekleton Our lame "blood pressure" hook can't get BP data from the sandbox, so I can legitimately switch that one to "error" in that case. Not a great example but happy to switch it over to test it out. Seems to work locally at least - getting a black border in the sandbox
Kevin Shekleton (Jan 28 2018 at 16:27):
Thanks @Paul Curcio, you're seeing the expected styling on the error cards. I'm more interested too in if CDS Services find value in having the ability to return a card not providing CDS to the end user but rather providing some error text. If so, we can formalize the notion of an error card in the specification.
Nikolai Schwertner (Jan 28 2018 at 19:56):
I tested the error card and got the "black" styling
Kevin Shekleton (Jan 28 2018 at 20:12):
Thanks @Nikolai Schwertner! If you have any functional use cases where you would use it, please let us know!
Last updated: Apr 12 2022 at 19:14 UTC