I've got a NAV 2015 RU7 Installation.
I have a custom page "Students" that shows a list of students and Invoice No. This data is stored in a custom table as well.
I've created a new Page Action in the Posted Invoices List Page. In the properties I've set RunObject "Page Students" and RunPageLink "Invoice No.=FIELD(No.)"
When I use this new page action, first I get an error message that says "The record that you tried to open is not available. The page will close or show the next record". However, when I accept this error message, the correct records are displayed in the "Students" Page.
So the page action works correctly, but shows this annoying error message. Any ideas on how to fix this?
*This post is locked for comments
Nice catch! Indeed the page type was card. This was actually a page upgraded from a Nav 5 form, and the upgraded page type was set as card. Chaging to List fixed the error.
Thank you!
Could you tell us what is the Page Type, if it is not list can you change it to LIST and check
Yes, but maybe this wasnt fixed in Page Action RecordLinks. Not sure anyway, If someone could test this in their installation:
It's just call a Page from a PageAction using RunObject and RunPageLink properties. The RunPageLink must not use the primary key of the target table.
But you said you have installed CU7 so which means CU5 fixes are included in it?
Doing it by code works, but maybe there is a bug when doing this with Page Action properties??
Or please write code under action by setting filter on Invoice No. and run the page
Thanks for the answer. As I said in my original post, the records are being displayed after the error message, so the end result is correct, I only don't understand why it's showing the error message.
I haven't got any other filter, just "Invoice No."=No. in the Record link property.
Could this be somehow related to NAV 2015 Cumulative Update 5 ?
363897
|
"The record that you tried to open is not available. The page will close or show the next record." error message if any Get statement fails in the OnInsert trigger.
|
Hi,
If you are having any other filter apart from the Primary key, please check whether the filter is yielding any record. This issue normally only if there are no records available for the currently applied filter.
The primary key is: "Resource No.",Student.
However in this case, I need to filter just by a third field which is "Invoice No."
what is the primary key of Students table?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156