Notifier Multi-line messages

1,117 views
Skip to first unread message

Andweeb

unread,
Jul 12, 2015, 9:09:41 PM7/12/15
to mitappinv...@googlegroups.com
Hello, I just converted my app inventor 1 project to app inventor 2. The tool worked excellent, so thanks. 

However I found that in app inventor 2 the "\n" switch is ignored in Notifier message text. It just displays a space instead of creating a new line. I used notifier in ai1 to display a quick How-To guide but now in ai2 it's all mooshed into one giant paragraph. 

the "\n" switch worked fine in notifier for ai1, why doesn't it work in ai2 now? 

Andrew

SteveJG

unread,
Jul 12, 2015, 9:18:56 PM7/12/15
to mitappinv...@googlegroups.com
The \n control character also works in AI2 to skip a line.   Not sure what you are doing, \n\n will start a new 'paragraph.'

Regards,
Steve

Andweeb

unread,
Jul 12, 2015, 10:26:36 PM7/12/15
to mitappinv...@googlegroups.com
Hi Steve, perhaps you didn't read my post completely. I'm sure the \n works in text. I am talking about a notifier message. \n does not work in notifier messages in ai2. It used to in the old ai. Please address. 

SteveJG

unread,
Jul 12, 2015, 11:26:01 PM7/12/15
to mitappinv...@googlegroups.com
This works



but it might not work in the Notifier with the buttons.  Show your blocks and someone might look at your issue at MIT.


Andweeb

unread,
Jul 12, 2015, 11:30:44 PM7/12/15
to mitappinv...@googlegroups.com
(attached) this is what I have and I can 100% verify it does not work in ai2. I havn't tried an Alert because I do not want an alert, I want a message. So am I out of luck?  
notify.JPG

Andweeb

unread,
Jul 13, 2015, 12:12:07 AM7/13/15
to mitappinv...@googlegroups.com
FYI I tried the alert dialog and the \n seems to work, however my list is so big it scrolls off the screen and there's no button to close it so it's not practical for me.

So my issue, more specifically:

The \n switch does not work with Notifier.ShowMessageDialog in ai2, where it previusly worked in ai1. 

It would be good to have the devs look into this. 

Toni Schuh

unread,
Jul 13, 2015, 12:37:29 AM7/13/15
to mitappinv...@googlegroups.com
You can use html in notifier.
Instead of /n use a <br> to start a new line.

Andweeb

unread,
Jul 13, 2015, 1:38:49 AM7/13/15
to mitappinv...@googlegroups.com
Oh my goodness. I could kiss you. Thank you good sir it works perfectly. You have no idea how many workarounds I tried. THANK YOU. 
Reply all
Reply to author
Forward
0 new messages