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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to copy the value from real text box to string text box

(0) ShareShare
ReportReport
Posted on by

i've a form with 2 text box(realEdit,StringEdit),2 field

how to copy the value from real text box to string text box
and string text can edit value and update on field

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi

    For example:

    public void textChange()
    {
    super();
    StringEdit.text(RealEdit.valueStr());
    }

  • dynamics developer Profile Picture
    2 on at

    Are your control linked to a datasource? If yes the value will be updated once the form is closed
     for copying you can use StringEdit.text(any2str(RealEdit.realValue())

  • Suggested answer
    Mrdude Profile Picture
    285 on at

    first you need to make AUTODECLARATION TRUE in both filed properties

    then override modified method

    and write below code after ret = super();

    for set real to string use

    StringEdit.text(RealEdit.valueStr());


    and for set stringedit to realedit

    RealEdit.realValue(str2num(StringEdit.valueStr()));


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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans