Add Custom Command to "Data" Group, Instead of "Actions" Group
Aug
31
Written by:
Wednesday, August 31, 2011 1:55 PM
When you add a custom command to a screen, it'll usually be added to the "Actions" group.
To make it appear in the "Data" group instead:
-
Switch to File View
-
Edit the lsml file
-
Locate the CustomCommand screen method

Modify the fragment to match below

-
Save the lsml file, & reload the project designer
-
The command now appears in the "Data" group
Thanks go to Jan Van Der Haegen, for posting this technique on his blog "Hacking LightSwitch".
4 comment(s) so far...
Re: Add Custom Command to "Data" Group, Instead of "Actions" Group
Great post! It's a pity such simple techniques can not be used to create new groups (besides Data and Actions). I described the long way on my blog (wp.me/p1J0PO-1s), but basic LSML edits would really be a nice feature.
By JanVanderHaegen on
Thursday, September 01, 2011 4:37 PM
|
Re: Add Custom Command to "Data" Group, Instead of "Actions" Group
Hi Jan! I'm so glad you posted here, I couldn't remember where I'd seen the technique. So now I can add a credit.
By Yann Duran on
Thursday, September 01, 2011 4:43 PM
|
Re: Add Custom Command to "Data" Group, Instead of "Actions" Group
I was trying to do it several times and failed each time. But I have succeeded to do it by following your process.
By Electrician on
Sunday, October 16, 2011 5:03 PM
|
Re: Add Custom Command to "Data" Group, Instead of "Actions" Group
I'd love to be able to claim it as "my technique", but it wasn't, lol. But I'm REALLY glad that finidng it here on my blog was able to help you though. I hope to be able to post many more helpful pices of information, once I've finished with the book.
By Yann Duran on
Monday, October 17, 2011 7:59 AM
|