Options

Action in RoleCenter runs CardPage?

Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
edited 2011-05-05 in NAV Three Tier
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():
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...

Answers

  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Cant we set Item Card page in RunObject property?
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    No we can't. this is the error system gives.
    ~Rik~
    It works as expected... More or Less...
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Is there any reason why you dont want to show Item List?
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    Is there any reason why you dont want to show Item List?
    This is only an example I made to show you what I want to do.
    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...
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    In RTC, i have not seen any card page opening directly without list page..

    For this MS has created new list pages from 9300
  • Options
    deV.chdeV.ch Member Posts: 543
    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.
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    In RTC, i have not seen any card page opening directly without list page..

    For this MS has created new list pages from 9300
    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.
    I think I'll do as new standards comand, I'll create a list. :D
    Thx for help!
    ~Rik~
    It works as expected... More or Less...
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    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.
    Yes is the ActivityButtons. it's nice your solution, thx for sharing. I'll think if use your solution or simply create a list :D.
    ~Rik~
    It works as expected... More or Less...
  • Options
    BeliasBelias Member Posts: 2,998
    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.
    Hah! Cool! :thumbsup:
    You, little trickster! :wink: Thank you, I think i'll use this, soon or after :mrgreen:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    deV.chdeV.ch Member Posts: 543
    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...
  • Options
    BeliasBelias Member Posts: 2,998
    deV.ch wrote:
    there's (almost) always a workaround
    you can say it twice! :mrgreen:
    ...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 :mrgreen: )
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    deV.chdeV.ch Member Posts: 543
    hmm how should the user know it's the object table?
Sign In or Register to comment.