a month ago
Hello community !
I have an MDK application which on the home page has a Card Collection:
When you click on one of the cards, navigation to a details page is activated:
But when I get to this screen, I see everything empty:
How can I access the object I select? Is there a way to send the object ID between views and access specific information about a particular object? In the detail view I am using "Key Value Item" type controls.
Navigation is simple, I don't know if I need to configure something extra here:
Thanks for your help !
Hi @emorales
Remove _Type": "ButtonTable.Type.Button" from the page definition and give it a try. I am able to build the page, sharing screenshot below.
I am sharing the updated version of the page file below for your reference.
{
"Controls": [
{
"FilterFeedbackBar": {
"ShowAllFilters": false,
"_Type": "Control.Type.FilterFeedbackBar"
},
"_Type": "Control.Type.SectionedTable",
"_Name": "SectionedTable0",
"Sections": [
{
"Separators": {
"TopSectionSeparator": false,
"BottomSectionSeparator": true,
"HeaderSeparator": true,
"FooterSeparator": true,
"ControlSeparator": true
},
"KeyAndValues": [
{
"Value": "{TITULO}",
"DataSubscriptions": [],
"_Name": "KeyValueItem0",
"KeyName": "Título",
"Visible": true
}
],
"MaxItemCount": 1,
"_Type": "Section.Type.KeyValue",
"_Name": "SectionKeyValue0",
"Visible": true,
"EmptySection": {
"FooterVisible": false
},
"Layout": {
"NumberOfColumns": 2
}
},
{
"Separators": {
"TopSectionSeparator": false,
"BottomSectionSeparator": true,
"HeaderSeparator": true,
"FooterSeparator": true,
"ControlSeparator": true
},
"KeyAndValues": [
{
"Value": "{CUERPO}",
"_Name": "KeyValueItem1",
"KeyName": "Noticia",
"Visible": true
}
],
"MaxItemCount": 1,
"_Type": "Section.Type.KeyValue",
"_Name": "SectionKeyValue1",
"Visible": true,
"EmptySection": {
"FooterVisible": false
},
"Layout": {
"NumberOfColumns": 2
}
},
{
"Separators": {
"TopSectionSeparator": false,
"BottomSectionSeparator": true,
"HeaderSeparator": true,
"FooterSeparator": true,
"ControlSeparator": true
},
"Layout": {
"LayoutType": "Vertical",
"HorizontalAlignment": "Leading"
},
"_Type": "Section.Type.ButtonTable",
"_Name": "SectionButtonTable0",
"Visible": true,
"EmptySection": {
"FooterVisible": false
},
"Buttons": [
{
"Styles": {
"Button": "MainButton"
},
"_Name": "ButtonTableTypeButton0",
"Title": "No me gusta",
"Alignment": "Center",
"ButtonType": "Text",
"Semantic": "Tint",
"Image": "sap-icon://heart-2",
"ImagePosition": "Leading",
"FullWidth": true,
"Visible": true,
"Enabled": true
}
]
}
]
}
],
"DesignTimeTarget": {
"Service": "/BTP6S/Services/obfuscated-mdk-btp6s.service",
"EntitySet": "NOTICIA"
},
"_Type": "Page",
"_Name": "Noticias_Detail",
"Caption": "Noticia",
"PrefersLargeCaption": true
}
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.