BC: PageExtension - placing the standard field from standard group to custom group

DamjanDamjan Member Posts: 94
Hi All,

How to properly move standard field to custom group?

I am designing page as pageextension of standard page "Create Interaction". I know how to display custom fields on a page, but I just don't understand how to move standard field from standard group to new custom group that I placed on the page.

placing the field: "Cost (LCY)" on the pageextension of standard page "Create Interaction" is not accepted, since it is already placed on the standard page "Create Interaction".

3osypfsf2rgv.png

Best Answer

  • SanderDkSanderDk Member Posts: 497
    Answer ✓
    You can move "Cost (LCY" with code like:
    pageextension 50000 "XXX" extends "XXXX"
    {
        layout
        {
            movefirst(General;"Balance (LCY)")
        }
    }
    
    or you can create the field, and set a different name like:
    pageextension 50000 "XXX" extends "XXXX"
    {
        layout
        {
            addfirst(General)
            {
                field("PREFIX-Balance (LCY)"; Rec."Balance (LCY)")
                {
                    ApplicationArea = All;
                }
            }
        }
    }
    

    Both ways have Pros and Cons,
    Moving base app fields:
    Pros:
    - Do not add more load to page
    - Field is not display multiple time
    - Page look cleaner
    Cons:
    - If MS remove the field from the page, your extension will break

    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.

Answers

  • SanderDkSanderDk Member Posts: 497
    Answer ✓
    You can move "Cost (LCY" with code like:
    pageextension 50000 "XXX" extends "XXXX"
    {
        layout
        {
            movefirst(General;"Balance (LCY)")
        }
    }
    
    or you can create the field, and set a different name like:
    pageextension 50000 "XXX" extends "XXXX"
    {
        layout
        {
            addfirst(General)
            {
                field("PREFIX-Balance (LCY)"; Rec."Balance (LCY)")
                {
                    ApplicationArea = All;
                }
            }
        }
    }
    

    Both ways have Pros and Cons,
    Moving base app fields:
    Pros:
    - Do not add more load to page
    - Field is not display multiple time
    - Page look cleaner
    Cons:
    - If MS remove the field from the page, your extension will break

    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • DamjanDamjan Member Posts: 94
    I'll use second approach. Tnx
Sign In or Register to comment.