SBX - Search With Button

SBX - Forum Post Title

The page could not be edit

Dynamics 365 Business Central Forum

Ruining asked a question on 9 Aug 2018 5:50 AM
My Badges

Question Status

Verified

Hi everyone,

I have create an action to open a new page in sales order. The new page type is standardialog. Howeve, even I set editable to true everywhere. The page is still no editable. I also want to know how to trigger an action or procedure after click the ok button for this standardialog. Thank you guys so much.

table 50139 TRCshipmentAutomaion
{
DataClassification = ToBeClassified;

fields
{
field(50000; NO; Integer)
{
AutoIncrement = true;
Editable=true;
}

field(50001; OderNoStart; Code[30])
{
TableRelation = "Sales Header"."No.";

}
field(50002; OrderNoEnd; Code[30])
{
TableRelation = "Sales Header"."No.";
}
field(50003; AutoPack; Option)
{
OptionMembers = "Yes","No";
}
}

keys
{
key(PK; NO)
{
Clustered = true;
}
}

var
myInt: Integer;

trigger OnInsert()
begin

end;

trigger OnModify()
begin

end;

trigger OnDelete()
begin

end;

trigger OnRename()
begin

end;
}

page 50133 TRCShipmentAutomation
{
PageType = StandardDialog;
SourceTable = TRCshipmentAutomaion;
Editable=true;
layout
{
area(content)
{
group(Detail)
{
field(OderNoStart; OderNoStart)
{
ApplicationArea = All;
Lookup = true;
}
field(OrderNoEnd; OrderNoEnd)
{
ApplicationArea = All;
Lookup = true;
}
field(AutoPack; AutoPack)
{
DrillDown = true;
ApplicationArea = All;
}
}
}
}

actions
{
area(processing)
{
action(ActionName)
{
trigger OnAction()
begin

end;
}
}
}
}
Reply
Suggested Answer

Hi, 

Did you try changing the page type to Card?

Reply
Ruining responded on 19 Aug 2018 8:55 PM
My Badges

Yes, I did. I try change the page type to card as well. Only  changing to List and link to another page could be edited. I'm not sure is that related to the page which I add action on? Thank you for replying.

Reply
Ruining responded on 21 Aug 2018 6:19 AM
My Badges
Verified Answer

Remove the source table and use Temp veriable to display could solve the problem in my case.

Reply
Ruining responded on 21 Aug 2018 6:19 AM
My Badges
Verified Answer

Remove the source table and use Temp veriable to display could solve the problem in my case.

Reply
Suggested Answer

Hi, 

Did you try changing the page type to Card?

Reply

SBX - Two Col Forum

SBX - Migrated JS