Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:30:32+00:00 2026-06-16T01:30:32+00:00

I have one text file(Notepad) put under resources node in AX 2012 AOT. Now,

  • 0

I have one text file(Notepad) put under resources node in AX 2012 AOT. Now, my task is to open this file with the help of button under any form.

http://msdn.microsoft.com/en-us/library/cc967403.aspx

Above link is helpful when creating temporary file for writing or reading.
Also, there is a form in AX 2012 named “smmDocuments” in which we can put text files of our use and we can open that file easily from there. I have researched and found that there is a class named “DocuAction” in AX 2012 to perform operations with text files.
But I am unable to understand how that thing is working.

///////////////////
I got it working as:

void clicked()
{
    //super();
   str sTempPath,
        sFileName = "notes.txt";
    SysResource::saveToTempFile(SysResource::getResourceNode(resourceStr(flow_for_address_book_txt)), false, "notes.txt");
    sTempPath = WinAPI::getTempPath();
    WinAPI::shellExecute(sTempPath+sFileName);
}

Thanks Jan B.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:30:33+00:00Added an answer on June 16, 2026 at 1:30 am

    You do not describe what actions you want to perform on your file.

    Suppose you want to show the file to your user using the default program, then do:

    void clicked()
    {
        SysResource::saveToTempFile(SysResource::getResourceNode(resourceStr(MyImage), false, "notes.txt");
        WinAPI::shellExecute("notes.txt");
    }
    

    Use a temporary file instead of a hardcoded name.

    You may also display the text in a form control:

    void clicked()
    {
        container con = SysResource::getResourceNodeData(SysResource::getResourceNode(resourceStr(MyImage), false, "notes.txt");
        infoStringControl.text(conpeek(con,1)); //Not sure how to use the container!
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if I have a text file like this : this is line one This
i have a task assigned that i have to create a text file (notepad)
I have one text file with some data. now i have a list of
Hi I have a text file (one word per line) and I want to
I have a text file that has item numbers in it (one per line).
I want to implement this view But I have one question: The text which
Precision loss is one thing, but precision gain??? I have a text file w/
When I open a text file in Notepad, it shows a blank line if
We have one text file which has the following text "\u5b89\u5fbd\u5b5f\u5143" When we read
I have a one line text file (it will always be just one line).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.