Action in RoleCenter runs CardPage?
Troubles_In_Paradise
Member Posts: 588
Hi guys!
I would have a question for you. I created a new ActionGroup in my RoleCenter and here I placed a custom action.
With this action I've to launch a page but its type is not "List".
Because of this I can't use the RunObject property, so I decide to launch the page via code.
this is the simple code I wrote, in trigger OnAction():
I'm wondering if anybody knows how to solve this problem.
Thx in advance!
I would have a question for you. I created a new ActionGroup in my RoleCenter and here I placed a custom action.
With this action I've to launch a page but its type is not "List".
Because of this I can't use the RunObject property, so I decide to launch the page via code.
this is the simple code I wrote, in trigger OnAction():
Item.GET(1000); PAGE.RUNMODAL(PAGE::"Item Card",Item);but seems not to work, in fact it gives me the following error:
I'm wondering if anybody knows how to solve this problem.
Thx in advance!
~Rik~
It works as expected... More or Less...
It works as expected... More or Less...
0
Answers
-
Cant we set Item Card page in RunObject property?0
-
No we can't. this is the error system gives.
~Rik~
It works as expected... More or Less...0 -
Is there any reason why you dont want to show Item List?0
-
This is only an example I made to show you what I want to do.mohana_cse06 wrote:Is there any reason why you dont want to show Item List?
For my customer I've to launch a custom cardpage that has not list (for now).
:-k if there no way to solve this I think I'll create a list.~Rik~
It works as expected... More or Less...0 -
In RTC, i have not seen any card page opening directly without list page..
For this MS has created new list pages from 93000 -
In which container is the action group? ActivityButtons? if so, it's not possible to start a page of another type then list, even by code.
What i did is, i created a helper page of type List which has Table Object as SourceTable and i set a filter in the action on the object No. , the page then runs the page which it finds with findfirst.0 -
You're right Mohana, but you must know that I'm upgrading from 4.0 to Nav2009R2 this customer and in the old version there was a card with no list.mohana_cse06 wrote:In RTC, i have not seen any card page opening directly without list page..
For this MS has created new list pages from 9300
I think I'll do as new standards comand, I'll create a list.
Thx for help!~Rik~
It works as expected... More or Less...0 -
Yes is the ActivityButtons. it's nice your solution, thx for sharing. I'll think if use your solution or simply create a listdeV.ch wrote:In which container is the action group? ActivityButtons? if so, it's not possible to start a page of another type then list, even by code.
What i did is, i created a helper page of type List which has Table Object as SourceTable and i set a filter in the action on the object No. , the page then runs the page which it finds with findfirst.
. ~Rik~
It works as expected... More or Less...0 -
Hah! Cool! :thumbsup:deV.ch wrote:In which container is the action group? ActivityButtons? if so, it's not possible to start a page of another type then list, even by code.
What i did is, i created a helper page of type List which has Table Object as SourceTable and i set a filter in the action on the object No. , the page then runs the page which it finds with findfirst.
You, little trickster!
Thank you, I think i'll use this, soon or after
0 -
there's (almost) always a workaround

and as of most workarounds this one's has a doneside too: if you click the action and the card / navigation / matrix or whatever is shown up, and you close the page, then when you want to open it again you need to select another action first. This is because the helper page is already shown in the rolecenter area in the main window.
But i think most people can life with that...0 -
you can say it twice!deV.ch wrote:there's (almost) always a workaround
...I guess that some users feels strange with table object opened in front of their eyes...but hey, there's always the "back" button in rtc! (that's almost forgotten by anyone
) 0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 329 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
