UI Builder and Content Picker
k
Hi, I've got a 13.0.3 site with UI Builder. I've configured the Document Type "Event" and the DataType "Event Picker" (Content Picker). I've also created a POCO named EventBooking (Id (Guid), Name (string), EventId (int), DateCreated (DateTime)). I've configured UI Builder like as in the attached screenshot. If I go to the configured Booking-section and click 'Create Event booking', I can select a member as expected, but when I click 'Add' Event and select an Event I get this error notification (twice): Request error: The URL returned a 404 (not found): /umbraco/backoffice/umbracoapi/entity/GetByIds If I inspect in the browser developer tools I can see these in console: POST https://localhost:44360/umbraco/backoffice/umbracoapi/entity/GetByIds?type=Document 404 (Not Found) Possibly unhandled rejection: {"errorMsg":"Failed to retrieve entity data for ids 0,umb://document/f276c666524b4c6ebd58817914a8c071","data":"","status":404,"xhrStatus":"complete"} POST https://localhost:44360/umbraco/backoffice/umbracoapi/entity/GetUrlsByIds?type=Document&culture= 404 (Not Found) https://cdn.discordapp.com/attachments/1195276696446849024/1195276696677519460/image.png?ex=65b3672b&is=65a0f22b&hm=7e1df0a3f7c871090e72f5b3b90f5d70d5a5d42328e2de36eedcdf83a11a7f8a&
j
I noticed a difference in your setup to how I have things running on a site - the .SetDataType in my case is chained directly on the field:
Copy code
csharp
.AddField(x => x.Name).SetDataType("Textstring (50 chars)")
And you have it on fieldConfig. Don't know if that does the difference?
j
In that case I'd log an issue on the UI Builder issue tracker - some of the property editors sometimes require some context that may not be available in UI Builder
k
Yeah, thanks anyways 🙂
Seems like simply changing memberId and eventId to string in db+poco did the trick. Not entirely sure where the UdiToIntContentPickerValueMapper from the demo project kicks in and it works fine without it so i removed it.
(The AddSection part works fine. It's the second part (Content App) that throws an error)
Ah, cloned the Umbraco.UIBuilder.Demo project, upgraded to v13 and I get the same errors. I'll post an issue on Github
@Matt Brailsford (HQ) Do you want me to report it here instead? -> https://github.com/umbraco/Umbraco.UIBuilder.Issues
s
I think that's your best bet, HQ people don't actively monitor here. 👍
p
@Kenneth Solberg will you report the bug ? I have the same errors after upgrading today. Standard .AddCollection works but contextApps does not.
k
@Patrik Lithner yeah, i'll do it now
p
Excellent, thanks 🙂
k
p
👍
25 Views