Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Basically I'm trying to make (for now) just a services viewer app!

I have some success with:

 public override Groups GetAdditionalComputerDetails()

{

Groups container = new Groups(); // Group of "Group" types.

Group mainGroup = new Group("Services"); // Group of "SimpleItem" / "CommandItem" / "PageItem" with the title Simple Plugin.


ServiceController[] services = ServiceController.GetServices();

foreach (ServiceController service in services)

{

SimpleItem thisitem = new SimpleItem(service.DisplayName.ToString() + ":", service.Status.ToString());

mainGroup.Items.Add(thisitem);

}

container.Add(mainGroup); // Adding the mainGroup Group to Groups container.

return container; // Returning our Groups container to Mobile PC Monitor.

}
However, this obviously fills the plugin section when viewing. I really cant work how to get a sub page! I have;

title (Services)

-

[*]service 1

[*]service 2

[*]etc...
I want;

title (Servers)

-

one page (View/change services)

-

[*]service 1

[*]service 2

[*]etc...

If anyone can help me understand, would be brilliant!

Thanks,

Ollie

Hi Ollie,

If you download the .NET client plugin example from http://www.mobilepcm.../netplugins.zip

And see in the ComputerDetails.cs file, you will find a good example on creating mulitple pages and also commands to be executed.

If you still have questions after, just let me know. :)

  • Administrators

Hello,

I've created an example based on your code to see how creating dinamic pages can be done by using a List's index. On more complex plugins you can see that I've used a number to contain multiple ids that fit my needs (check my StoreGrid plugin).

If you have any questions please let me know!

Good Luck :lol: ,

Paul.

ServiceViewPlugin.zip

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.