3 weeks 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 !
Yes, I have confirmed there appears to be a bug related to the context / binding on the Card Collection. You can work around it using a rule to set the action binding based on the selected card in the short term and I will open an internal issue to work on a solution.
Here is an example rule that gets the card binding and calls setActionBinding() to correctly set the default binding object before navigating to the next page.
/**
* Describe this function...
* @Param {IClientAPI} context
*/
export default function CardToDetail(context) {
let selectedCard = context.getParent().binding;
context.getPageProxy().setActionBinding(selectedCard);
context.getPageProxy().executeAction({
"Name": '/SCN_00033/Actions/GenericNavigation.action',
"Properties": {
"PageToOpen": "/SCN_00033/Pages/SampleServiceV4_SalesOrderItems/SalesOrderItems_Detail.page"
}
});
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.