web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

how to get value automatically from textbox to another textbox ?

(0) ShareShare
ReportReport
Posted on by 670

Hello experts 

how to get value automatically from textbox to another textbox ?here i want fetch data to value in description while enter in qa/qc code 

6136.Capture.PNG

  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    "QA/QC Description" could be a FlowField that looks up the Description in the related Table.

    Or, in the OnValidate-Trigger of field "QA/QC Code" you add something like this:

    if "QA/QC Code" <> '' then begin
      QAQCCode.Get("QA/QC Code");
      "QA/QC Description" := QAQCCode.Description;
    end;

  • account payable Profile Picture
    670 on at

    HI Hannes Holst ,

    I did this way this is working fine ,

           field(63103; "LUM QA/QC Code"; Code[10])

           {

               Caption = 'QA/QC Code';

               DataClassification = CustomerContent;

               TableRelation = "LUM QA/QC".Code;

           }

           field(63104; "LUM QA/QC Description"; Text[100])

           {

               Caption = 'QA/QC Description';

               FieldClass = FlowField;

               TableRelation = "LUM QA/QC".Description;

               CalcFormula = lookup ("LUM QA/QC".Description where (Code = field ("LUM QA/QC Code")));

           }

     field("LUM QA/QC Code"; "LUM QA/QC Code")

               {

                   ApplicationArea = All;

                   trigger OnValidate()

                   var

                   begin

                       CurrPage.Update();

                   end;

               }

    3652.Capture.JPG

    But i want also same like this while enter value in QA/QC Description it should be populate to QA/QC Code please advise me how to rectify this 

  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    Your Description-field is a FlowField.
    You must change it to a normal field.

  • account payable Profile Picture
    670 on at

    Let me try that as normal field after i will inform you

  • account payable Profile Picture
    670 on at

    HI Hannes Holst ,

    Tried to add normal field in field class but getting error

    pastedimage1563439716360v1.png

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Sabih,

    Declare both fields as normal fields, and when it is a normal field you will not have calcformulae property set that applies only for flowfields. Then first you add the code in the OnValidate trigger of the QA/QC Code to get the record and populate description, and add similar code in the QA/QC Description field OnValidate to get the QA/QC Code, but remember you will be in the loop if you validate QA/QC Code so you just need to assign it.

  • account payable Profile Picture
    670 on at

    Hi Suresh Kulla ,

    Could you please share me AL code for this that will help for me

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans