Discovered a RoleCentre PageType problem?
boywonder
Member Posts: 179
Having a really strange problem here...HELP!!!
Not sure if it's me going mad or whether this is a bug/feature...
In a Page (PageType::RoleCentre) I have simply added new Actions and added code to the OnAction triggers to run a Page with some different filters set (simply code for filtergroup,setfilter,page.run).
The Page RunObject property is <Undefined> as I want the code to be used only....but I am receiving the following error...
The Object Metadata does not exist. Identification fields and values: Object Type='Page',Object ID='0'
If I put a Page RunObject in then the error goes away but that doesn't solve my problem because I want to filter on a field being >= 'WORKDATE' which can't be done via properties only C/AL code.
I've tried recompiling the page that my code refers to as I've had this type of error before but this hasn't helped at all....
Have I discovered a bug with the RoleCentre page type or did I do something really stupid :shock:
Not sure if it's me going mad or whether this is a bug/feature...
In a Page (PageType::RoleCentre) I have simply added new Actions and added code to the OnAction triggers to run a Page with some different filters set (simply code for filtergroup,setfilter,page.run).
The Page RunObject property is <Undefined> as I want the code to be used only....but I am receiving the following error...
The Object Metadata does not exist. Identification fields and values: Object Type='Page',Object ID='0'
If I put a Page RunObject in then the error goes away but that doesn't solve my problem because I want to filter on a field being >= 'WORKDATE' which can't be done via properties only C/AL code.
I've tried recompiling the page that my code refers to as I've had this type of error before but this hasn't helped at all....
Have I discovered a bug with the RoleCentre page type or did I do something really stupid :shock:
0
Comments
-
Anybody, please?0
-
lookupformID is set correctly to the page I want and using "Page.run(0,myTable)" doesn't work either :?
(tried runmodal as well just in case - same problem) - I think this is a bug / limitation?0 -
must be a 'feature' then :roll:0
-
It Happens to me as well ](*,)
Is there a solution, please?
Thanks in advance0 -
Its not a bug. Thats the way it works.
No trigger code is allowed on pages of type Role Center
If you notice in NAV 2013 you cannot write any code in Role Center Page.
Anyways. In this solution you will end up losing one page object. Create a new page with base table integer(or any table). On OpenPageTrigger write your code
.
.
.
PAGE.RUN(PAGE::"Customer Card");
CurrPage.CLOSE;
Set this new page in Action RunObject on your RoleCenter Page.0 -
Thank you very much!!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions