cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Asset Manager 2010 - Notification Creation

0 Kudos
467

Hello,

I'm trying to add logic to create a Notification on the functional location - measuring points section after the User hits "Take a Reading" button and the entered reading value exceeds upper limit range. Then after the user hits "Continue" button, I'm trying to display the Notification Creation related UI, so that the user can create a notification directly here. So, I'm trying to re-use the same rule here (NotificationCreateChangeSetNav.js) which is used during Notification Add on the NotificationListView.page but I'm running into the issue when the User hits the "Next" button on the NotificationCreateUpdate.page, which is attached here sam-notificationcreationerror.png. I've debugged this issue and looks like all the values are getting populated into NotificationCreate.action as expected but it is going into the Failure Method. Not sure why, can any of you please let me know what could be the possible issue here?

Thanks in advance.

muhammad_rafay
Product and Topic Expert
Product and Topic Expert
0 Kudos

It seems like you are trying to create an entity that doesn't exist in OData Model. Is this a new entity set? The error is coming out of OData Service so something is definitely missing there

0 Kudos

No Muhammad, I'm not creating a new entity set. I'm using the same rule "NotificationCreateChangeSetNav.js" in my custom place (Functional location - measuring points section area as mentioned in my issue) which was used on the "NotificationsListView.page" to create a Notification. I've not yet done a sync, its all offline and local. As soon as I hit the Next button on the "NotificationCreateUpdate.page", it errors out with the previously attached error.

prashanthi_vangala2
Product and Topic Expert
Product and Topic Expert
0 Kudos

try to debug the property rules on Notificationcreate.action and see if any of the rules are running into errors because of missing context.

0 Kudos

@Prashanthi - I've already debugged the NotificationCreate.action and looks like all the property rules are getting values as expected. I also see another error in the debugger console - "Cannot get action result for a context which isn't associated with a UI element". Not sure what exactly this error is, can you please let me know if I'm missing something here? Thanks.

Accepted Solutions (0)

Answers (0)