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 split a message in the infolog between the main group and the bottom part

(0) ShareShare
ReportReport
Posted on by 1,457

Here is what I can see how infoLog is working. then below it I will show what I need to do.

The main area of the infolog shows the message in one long line.

When the user clicks on it, the same message, this time wrapped into multiple lines, will be shown in the bottom group of the infoLog.

If the screenshot is not included in this post, here is what is in the main group:

The customer has exceeded their credit limit.

The customer may need to take action on their account before you can .........

(the rest of the message cannot not be seen unless the window is dragged to be wider or the user click on the message so that it can wrap in the bottom group.

So the bottom group will show:

The customer may need to take action on their account before you can

complete this order!

Credit limit: $a

Current order: $b

Balance: $c

I added linebreaks when building the message and then use StrFmtLB when adding to infolog.

What I am tasked with, is to split the message. So the main group area of the infolog will display one part of the message and without the user clicking on the message, the second part of the message will automatically display in the bottom group.

Main group must show (as you can see the 2nd line that is too long, must automatically wrap):

The customer has exceeded their credit limit.

The customer may need to take action on their account before you can

complete this order!

The bottom group must only show:

Credit limit: $a

Current order: $b

Balance: $c

Nowhere can I find an example on how to display 2 different messages in the info log: one in the main group and the other one in the bottom group. Also how do I tell the main group to apply the line break "\n" that I have put in the message so that the too long message can wrap in the main group area.

*This post is locked for comments

I have the same question (0)
  • Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    If possible, can you provide the screenshot of the infolog as it helps us to help you better.

  • Retha Profile Picture
    1,457 on at

    InfoLog2.jpg

    Above is how infoLog is currently working.

    Below is what I need to do with the message:

    InfoLog2.jpg

  • Verified answer
    István Orosz Profile Picture
    2,137 on at

    Hi,

    May setprefix() function is what you need?

    Regards,

    István

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Your requirements are not in line with how AX works.

    The bottom part of the infolog is just displaying the highlighted line of the top part.

    The top part is not/will not do wrapping of text for you out of the box.

    You may try to customize \Forms\SysInfoLogBrowser, which is the form behind the infolog, to try to adjust the string / text control.

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    As far I know, this may not be possible as infolog messages are provided in the top group and when selected it will be displayed at the bottom(by applying required formatting).
    When we write nextLine to the message it will be displayed like shown below. Another way is to write multiple info messages.

    InfoMessages.jpg

  • Retha Profile Picture
    1,457 on at

    Thank you all. You have confirmed what I have suspected.  I have forwarded your suggestions to my boss.

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