Forum Discussion

Adrian_Lopez_18's avatar
Adrian_Lopez_18
Icon for Nimbostratus rankNimbostratus
Oct 10, 2013

Using IControl. How to get the UI member status color and shape from availability_status and enabled_status properties.

Hi,

 

I am using IControl dll, I got the member's availability_status and enabled_status properties, but I need to get exactly the same we see in the UI, for example a red diamond indicating that is offline and enabled. Is it possible to get that information given those 2 statuses ?

 

Thanks, Adrian

 

4 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    You mean the image data?

     

    You should be able to via a straight https request to the image that the GUI uses... However I'm not sure if the web interface understands anything except the form to login...

     

    I don't recall seeing a call in iControl to get the images... But last time I did something like this, I just whipped up a quick image myself using some painting program.

     

  • No, I mean, the object_status object has 2 properties: AvailabilityStatus and EnabledStatus. What is the relationship between those statuses and the ones we see in the UI.

     

    For example, in the UI I see a green circle with Available/Enabled (hovering with the mouse), However , IControl returns AVAILABILITY_STATUS_GREEN and ENABLED_STATUS_ENABLED.

     

    Is it possible to get from the IControl dll the statuses we see in the UI?

     

    This example is straightforward, however I am not sure what happens if IControl returns AVAILABILITY_STATUS_YELLOW and ENABLED_STATUS_DISABLED, not sure what the UI displays in that case.

     

    In conclusion I want to get the statuses being displayed in the UI...

     

    Thanks, Adrian

     

    • Venu_Aluri_1427's avatar
      Venu_Aluri_1427
      Icon for Nimbostratus rankNimbostratus
      Hi, Are you able to get this information? I also need this information. Please let me know if you figured this out. Thanks, Venu
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    In the API docs I'm pretty sure it mentions what each status looks like. However the combinations do make it a bit trickier. But only a bit. If it's disabled, it's always black or grey (I think it's only GTM that uses grey though possibly). And the status is marked by the shape (e.g. diamond, square, circle)

     

    H