Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Usage data in the form

Posted on by 560

Hi

I have created a field in the form, whenever I give data in that form it should be stored directly to the usage form.

dynamicsaxlk.wordpress.com/.../how-to-save-syslastvalues-on-the-form

I have tried the above link, but here we are hardcoding the values of the string-edit field, but don't need it to be hardcode and I also tried valuestr() for that but it doesn't seem to help me.

Please advise.

Regards,

AXTechie 2120

*This post is locked for comments

  • Verified answer
    AXTechie2120 Profile Picture
    AXTechie2120 560 on at
    RE: Usage data in the form

    Thank you Martin,

    I got it right.

    Sorry for my wrong understanding in my previous post which you have added reference, I totally went wrong with this,Since  i am new to AX.

    Regards,

    AX Techie

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Usage data in the form

    This seems to be related to your thread StringEdit control in form, therefore I'm adding a link here for reference.

    Note that there you wanted to avoid storing data in database (which makes little sense, in my opinion) and usage data doesn't meet that, because it's also stored in database.

    Anyway, you misunderstood the blog post. It uses a hard-coded just for initialization, otherwise the value is take from a control called xctrl. Look again at the implementation of close():

    public void close()
    {
        super();
        x = xctrl.text();
        xSysLastValue::saveLast(element);
    }

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans