- This topic has 1 reply, 2 voices, and was last updated 3 months, 1 week ago by Tim D..
-
AuthorPosts
-
14 August 2026 at 4:09 am #8990AWArthur W.
Hi
I have configured an Anything data source in the Insight Works Graphical Scheduler based on the standard Business Central User Task table, table 1170.
The User Tasks are displayed correctly in the scheduler using the following configuration:
- Table: 1170, User Task
- Document No. Field: ID, field 1
- Starting Date-Time: Start DateTime, field 11
- Ending Date-Time: Due DateTime, field 9
- Capacity: User Task Group Assigned To
- Show In: IWX Sched. Misc Flat
However, when I click a task in the graphical calendar, I receive the following error:
You tried to invoke the Page object with the ID 0 from the object IWX Scheduler Navigation. An object with that ID does not exist in the current application compiled with emit version 28014.
I cannot find a setting in Graphical Scheduler Views or Anything Configuration where I can specify the page that should open. There is no visible Page ID, drill-down page, details page, or navigation-page field.
My questions are:
- Can a target page be configured for records shown through an Anything data source?
- How can I link User Task records to the standard User Task page?
- Is opening records from an Anything view supported, or does this require an AL customization?
- Could the Page ID 0 error indicate a product limitation or bug?
Thanks in advance,
Arthur
14 August 2026 at 1:43 pm #10882TDTim D.Insight WorksGood Question Arthur, thank you. The error occurs because Business Central does not have a default page configured for table 1170 “User Task” that Graphical Scheduler can resolve when you click the record.
When Graphical Scheduler asks Business Central to open the selected record, Business Central attempts to determine an appropriate page. In simplified terms, it will try the available card/list/drill-down page mappings for that table. For User Task, that process ultimately returns Page ID 0, which produces the error you are seeing. There is currently no Page ID or navigation-page setting in the Anything Configuration or Graphical Scheduler Views setup to override this.
To support opening these records, a small AL extension can provide the appropriate page mapping by subscribing to events in Business Central codeunit 700 “Page Management”. For example, the extension could map table 1170 to the standard User Task Card and/or User Task List pages:
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Page Management", 'OnBeforeGetConditionalCardPageID', '', true, true)] local procedure HandleOnBeforeGetConditionalCardPageID(RecRef: RecordRef; var CardPageID: Integer; var IsHandled: Boolean) begin if RecRef.Number = Database::"User Task" then begin CardPageID := Page::"User Task Card"; IsHandled := true; end; end; [EventSubscriber(ObjectType::Codeunit, Codeunit::"Page Management", 'OnBeforeGetConditionalListPageID', '', true, true)] local procedure HandleOnBeforeGetConditionalListPageID(RecRef: RecordRef; var PageID: Integer; var IsHandled: Boolean) begin if RecRef.IsTemporary then exit; if RecRef.Number = Database::"User Task" then begin PageID := Page::"User Task List"; IsHandled := true; end; end;Other
Page Managementevents can also be used depending on the desired navigation behaviour, includingOnAfterGetPageIDandOnBeforeGetDefaultLookupPageID.So, to answer your questions:
- Can the target page be configured in Anything Configuration?
No. There is currently no target Page ID setting for an Anything data source, however you can subscribe to base Business Central events to supply a page. This is only necessary when the table itself is missing a lookup page, or drilldown page (as is the case for this specific record). - Can User Tasks be linked to the standard User Task page?
Yes, but because Business Central does not resolve the required page automatically for this table, an AL extension needs to provide the page mapping. - Is opening Anything records supported?
Yes. Anything records can be opened when Business Central can determine the appropriate page for the underlying table. Tables without a usable default page mapping require an AL customization such as the example above. Using a lookup page or drilldown page defined on the table should cause it to automatically work, but when you’re in the position of not controlling the table (such as this specific case since the table is base BC, and base BC is missing those attributes on that table), then you can use those integration events in BC’s Page Management Codeunit to hint to BC how to get the page. - Is the Page ID 0 error a Graphical Scheduler bug?
In this case, it is the result of Business Central returning no page for the selected table rather than a problem with how the Anything data is displayed. The navigation could potentially be handled more gracefully by Graphical Scheduler, but a page mapping is still required to open this particular record type.
If it helps there is also a complete end to end example with a custom table that also uses one of those events for conditional card page available here: https://dev.azure.com/InsightWorks/External%20Examples/_git/Graphical%20Scheduler%20Examples?path=/Custom%20Table%20With%20Anything%20Provider/ExampleCustomerNotes.Codeunit.al
-
AuthorPosts
- Sign in below to reply.