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.
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;
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
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
Comments
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
In the example shown, you just need to enclose this code:
with your condition, in your example somithing like:
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.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Be aware that the Return shortcut key "trick" does not work on all card pages! I posted about this problem some months ago.
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.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
stony