Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Add Multiple Fields" adding extra stuff to the tooltip #611

Open
mjmatthiesen opened this issue Sep 18, 2024 · 3 comments
Open

"Add Multiple Fields" adding extra stuff to the tooltip #611

mjmatthiesen opened this issue Sep 18, 2024 · 3 comments

Comments

@mjmatthiesen
Copy link

This is the same issue as present in #583. It looks to be resolved for using description as a tooltip, but not for tooltip or generic tooltips.

I can't reopen the issue, so I am refiling.

this issue is present via add multiple fields or also the page creation wizard.

table 76831 example
{
    Caption = 'example';
    DataClassification = CustomerContent;

    fields
    {
        field(1; "has description"; Integer)
        {
            Caption = 'has description';
            Description = 'this is the tooltip via description';
        }
        field(2; "has tooltip"; Integer)
        {
            Caption = 'has tooltip';
            ToolTip = 'this is the tooltip property';
        }
        field(3; "has neither"; Integer)
        {
            Caption = 'has neither';
        }
    }
    keys
    {
        key(PK; "has description"){Clustered = true;}
    }
}

results in

page 76832 example
{
    Caption = 'example';
    PageType = Card;
    SourceTable = example;
    ApplicationArea = All;

    layout
    {
        area(Content)
        {
            group(General)
            {
                Caption = 'General';

                field("has description"; Rec."has description")
                {
                    ToolTip = 'this is the tooltip via description';
                }
                field("has tooltip"; Rec."has tooltip")
                {
                    ToolTip = 'Specifies the value of the has tooltip field.', Comment = '%';
                }
                field("has neither"; Rec."has neither")
                {
                    ToolTip = 'Specifies the value of the has neither field.', Comment = '%';
                }
            }
        }
    }
}
@pri-kise
Copy link

We have this issue, too.
And I see several PR where developers forget to delete this nonsense comment.

@JohnnyUndercover
Copy link

Seems like this is caused by a wrong default setting:

"alOutline.pageFieldToolTipComment": "%%Caption.Comment%"

if you change it to an empty string you will no longer get the "Comment = '%' part for your tooltips.

"alOutline.pageFieldToolTipComment": ""

@pri-kise
Copy link

Thanks this helped.
Alternatively setting it back to %Caption.Comment% is working, too.

I don't know the reason why the additional % was added here:
https://github.com/anzwdev/al-code-outline/pull/577/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants