new to AL and not sure if this is the right place to post but,
page 50110 DataTypeCard
{
PageType = Card;
ApplicationArea = All;
UsageCategory = Documents;
Caption = 'Date Type Card';
layout
{
area(Content)
{
group(GroupName)
{
}
}
}
actions
{
area(Processing)
{
action(ActionName)
{
ApplicationArea = All;
trigger OnOpenPage()
var
myInt: Integer;
begin
Message('The value of %1 is %2', 'YesOrNo', YesOrNo);
Message('The value of %1 is %2', 'Amount', Amount);
Message('The value of %1 is %2', 'When Was It', "When Was It");
Message('The value of %1 is %2', 'What Time', "What Time");
Message('The value of %1 is %2', 'Description', Description);
Message('The value of %1 is %2', 'Code Number', "Code Number");
Message('The value of %1 is %2', 'Ch', Ch);
Message('The value of %1 is %2', 'Color', Color);
end;
trigger OnAction()
var
myInt: Integer;
begin
end;
}
}
}
var
LoopNo: Integer;
YesOrNo: Boolean;
Amount: Decimal;
"When Was It": Date;
"What Time Was IT": Time;
description: Text[30];
"Code Number": Code[10];
ch: Char;
color: Option Red,Orange,Yellow,Green,Blue,Violet;
It say OnOpenPage is not a valid trigger and i cant get any other trigger to come up in intellisense, as well as typing them manually continues to say they're not valid triggers.
here is the error.
"Documents\AL\ALProject2\Date Type Card.Page.al(27,25): error AL0162: 'OnOpenPage' is not a valid trigger"
Ive tried reinstalling the AL extension, renaming the file, and a few more things i can't remember, this makes 0 sense as these as this is a valid trigger and every other page extension trigger does not work. Please help before I jump out a window.
0
Answers
here's what shows up as available outside layout elements:
This is what's available in an action
OnOpenPage is not a valid trigger in an action
RIS Plus, LLC
Thank you so much, really appreciate the detailed response, doing this course from Microsoft and it's not exactly the best at teaching specifics, again really appreciate your help!
https://learn.microsoft.com/en-us/training/modules/intro-basics-al-programming/9-exercise
https://youtu.be/04T2pAnXjGQ
There's a playlist with more than 20 hours of content
https://www.youtube.com/embed/videoseries?list=PL1FESh9FqyhQxkZXYYp1X1tTpXf3-9iSR
The videos are out of order in the playlist, there's a part 1 and part 2 for doing development in AL. I don't know who the dude in the first video is, kind of annoying how someone else's face is on 20 hours of dev training that I recorded
RIS Plus, LLC