Announcements
Video1: https://www.youtube.com/watch?v=PdegfBxifl8
Video2: https://www.youtube.com/watch?v=mF-vlbnRte0
Video3: https://www.youtube.com/watch?v=VYw9oTv9t3o
Video4: https://www.youtube.com/watch?v=eNJKd0IYmZk
Video5: https://www.youtube.com/watch?v=kIJKk9J8FvI
I am using the same code provided in the last video for the products lookup. When I click on the add line action, the application works fine except for the products lookup. The data appears in the products lookup and displays correctly in the app, but I am unable to select any product. Can anyone help me identify what I might be doing wrong or if there is something else that I need to check or add? Thanks
Below is the code (.js file) that I am using for the products lookup.
function main(metadataservice, dataService, cacheservice, $q) {
let workspaceInitialization = function (appMetadata) {
metadataservice.configureLookup(
"Add-line",
"SalesLine_ItemId",
{
lookupPage: "All-products",
valueField: "Identification_DisplayProductNumber",
displayField: "Identification_DisplayProductNumber",
showLookupPage: true
}
);
metadataservice.hideNavigation(
"All-customers",
"All-products"
);
};
let pageInitialization = function (pageMetadata, context) {
};
let actionInitialization = function (taskMetadata, context, taskData) {
};
return {
appInit: workspaceInitialization,
pageInit: pageInitialization,
taskInit: actionInitialization
};
}
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator