Opens different cardpage from listpage for some users

stonystony Member Posts: 122
edited 2012-04-11 in NAV Three Tier
Hallo,

I would like to open for some users from the "Sales Order List" Page ID9305 another card page as the standard card page. Is this even possible?

thanks
stony

Comments

  • stonystony Member Posts: 122
    Hi,
    If I understand correctly, then this is for different company name. But I need it for the same client. For all users should open the default page (which is stored as CardFormId). For a given user should open my created page.

    thanks
    stony
  • deV.chdeV.ch Member Posts: 543
    Yes it's not the exact same solution but it was a guidance to your solution ;) the functionality is the same, you just need to change trigger when your special page should be shown!

    In the example shown, you just need to enclose this code:
    IF ISSERVICETIER THEN BEGIN
        IF NOT Job.GET("No.") THEN
          BaseVersion.RunHyperlinkRTC(0,3032014,3)
        ELSE BEGIN
          JobCard2.SETTABLEVIEW(Rec);
          JobCard2.SETRECORD(Rec);
          JobCard2.RUN;
        END;
        ERROR('');
      END ELSE BEGIN
        JobCard2.SETTABLEVIEW(Rec);
        JobCard2.RUNMODAL;
        JobCard2.GETRECORD(Rec);
        CurrPage.CLOSE;
      END;
    

    with your condition, in your example somithing like:
    If UserSetup."Show Different Page" THEN BEGIN
    .....
    END;
    
  • BeliasBelias Member Posts: 2,998
    You can also create an action with shortcutkey=Return, and code under it. In this way you'll trigger the action on doubleclick or "return" keypress.
    If usersetup."use different page" then
      page.run(myfirstpagenumber,rec)
    else
      page.run(mysecondpagenumber,rec);
    //or similar code, depending on your businness need
    
    be aware that you will have to manage the "New" and "delete" button if needed, too (they both open the card page).

    second solution: you can make 2 lists with 2 different cardpages, and setup the correct permissions on the lists. the drawback is that you have do support/update both lists, instead of one.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • deV.chdeV.ch Member Posts: 543
    @Belias

    Be aware that the Return shortcut key "trick" does not work on all card pages! I posted about this problem some months ago.
  • BeliasBelias Member Posts: 2,998
    deV.ch wrote:
    @Belias

    Be aware that the Return shortcut key "trick" does not work on all card pages! I posted about this problem some months ago.
    I remember something...was it about editability, isn't it?
    oh, found the post:
    http://www.mibuso.com/forum/viewtopic.php?f=32&t=51691
    actually, i think that if stony does not fall in this peculiar situation, the return shortcut is the easiest way to go.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • stonystony Member Posts: 122
    Many Thanks , now it works.

    stony
Sign In or Register to comment.