A list with a green/red arrow

Hello
I would like to query an external table and then fill a list of "Areas of Application" with a green UP ARROW or red arrow down
According to the State in the external table.

Something like that

Application SERVER 1 < red arrow down >
Application SERVER 2 < green arrow to the top >
Application SERVER 3 < green arrow to the top >

As a bonus I want to force a refresh of the page every 30 seconds so that the page appears near real-time current status.

Can someone give me some clues as to how I could pull this off?

Thank you

Steve

Hi Steve,.

One way to do it is:

(1) download your up & down arrow in shared components images > Images. You can either attach the images to a specific application or not depending on whether these images would be used for multiple applications. Whatever way you go, make a note of what you chose for below.

(2) specify a query for your report of areas of Application as follows:

select domain_name,
       case when domain_status = 'UP' then 'Domain is up'
            else 'Domain is down'
            end status_image
from my_domains

If you have attached your images to a specific application, use APP_IMAGES. Substitute the WORKSPACE_IMAGES if you do not attach the images to a specific application.

For the update, there are a number of ways to do this - some better than others. One way is to specify a META tag in your page (deprecated by W3C) header:


Where the content is defined as the number of seconds between refreshes. Also Google 'automatically refresh page' and you should see a number of alternatives.

Hope this helps,
John

If you find this information useful, please do not forget to mark the 'useful' or 'correct' post so that others benefit as well.

Tags: Database

Similar Questions

  • What is Labview function block (- 1 gain figure with a red arrow on the top)

    Hi all

    I stumbled upon this code, which has a function with-1 figure with a red arrow on the top of gain?

    What is this function and where can I find it?

    Thank you

    Decrement, ptbypt

  • Mysterious app with red arrow circling after 2.2 update

    After the 2.2 update, my DroidX came with a rectangle empty on the homescreen.

    It has a red arrow goes round in a circle on the lower right of the rectangle.

    I can 'touch' the rectangle and nothing happens... the arrow keeps spinning.

    I can press on & hold and a border is displayed, as well as a trash can for me to remove it...

    ... But I don't want because it may be important.

    I powered it off... no change.

    I pulled the battery... no change.

    Suggestions would be appreciated.

    -tony

    It is your date and time widget, try syncing up during startup. It was a different animation before. I noticed that the VERY first time I booted Froyo, which never went away. I through it in the trash, added again, and it works fine now.

    D

  • Windows 8 - icons of the CS6 Office showing as white icons with the green arrow

    After I loaded standard CS6 64-bit on my DELL XPS 8, the Office file windows icons appear as an icon of white box with a green arrow instead of icons Adobe. All other icons appear correctly. I have Illustrator CS5 on my hard drive and before I loaded CS6 CS5 icons displayed correctly. Thank you in advance for helping me with this problem.

    Hi Adam,.

    I figured this out. I opened the default programs - Illustrator was missing a file type to associate with the program (why it showed the white icon with green bar). I assigned to the Illustrator file with the program Illustrator type. Turn it back on. Solved the problem... Yes!

  • Cut video - I don't get a red "arrow" for garnish

    I am admittedly a newbie with application, and I just want to cut a video clip. I worked with Corel Video Studio, so I'm somewhat familiar with video editing.

    I watched several video tutorials on how to do this in the APP, and they all show the user at a given time, hovering over the pliers to cut. The arrow of the mouse turns into a red arrow, who is then dragged to the desired location, where it is removed. However, when I hover over the clip I want to be ready, I don't get a red arrow - just an arrow of left/right split that is not red. It is aggravating - I do the same thing they do, but I do not understand what they are getting. So I'm stuck right now, waiting for someone to help, and if all goes well dumb down of their directions for me so I can better understand what to do, point by point.

    Thanks for any help.

    Found.

    The clip that I wanted removed was so long as she continued to beyond the window, in that I was looking for. I had to drag the rear horizontal scroll bar to see the beginning of the clip. I didn't see the before - just start where he started in the visible window. Once I went to the very beginning, I saw the red arrow. I hate the things.

  • Firefox has just improved today on 26/06/2013 to version 22 and Selenium IDE 2.0 lost all colors - no indicators thought green, red or yellow uninstall FF

    Firefox has just upgraded today (June 26, 2013) to the version 22 and lost any selenium not color - no green, red or yellow progress indicator and what double clicking on a test case, it is used to turn "BOLD" until you knew it you were editing, or running... text is more "BOLD".
    Need to know if anyone else has this problem, where can I get confirmation to report, (most other forums seem to be dead) and any other suggestions for getting help. IM using Ubuntu 12.04 and think to uninstall Firefox 22 and redownloading an older version of 21, but I'm not find specific package to update info for Ubuntu uninstall procedures either Manager.

    Thanks for the tip... more active responses from the programmer Samit Badle found here, where I'm also following... :
    http://code.Google.com/p/selenium/issues/detail?ID=5841

  • Creating a smart list with "remarks".

    Hello everyone, I want to create a smart list with titles that have added only remarks. Howevre there is no option as "remarks" are "true." Anyone with any suggestions?

    Thank you!

    All of the rules:

    Remarks is not < empty >

    Playlist is music

    TT2

  • How can I know if Migration Wizard works... I have the gray wheel on the new mac and it is after a msg error saying there was an error with iCloud (in red)

    How can I know if Migration Wizard works... I have the gray wheel on the new mac and it's after a msg error saying there was an error with iCloud (in red). What is happening with a MacBook Pro refurbished, I just got today. Thanks for any help.

    The guarantee gives the right to the free phone support for the first 90 days of ownership.

  • Satellite A100: What is a small gray rectangle with a small red circle icon in the taskbar

    Hello

    I recently bought a new laptop Toshiba A100 and have noticed an icon in the system tray is not no matter what description nor can I get rid of him.
    I tried to change the setting of this icon to hide, but it seems to reappear minutes later.

    It looks like a small gray rectangle with a small red circle in the lower right corner with a cross on it goes diagonally through the top left corner to the lower right.

    Anyone got any ideas?

    Thank you
    Colin

    You probably mean the disabled touchpad?
    You can disable and enable the function FN + F9

  • How to add the red arrow for photo

    How can I insert a red arrow pointing to a certain person in a photo?

    There are many tools that can do this. Use it on a Mac at the moment is Skitch.

    TT2

  • How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    original title: change of e-mail

    How to convert Outlook Express to Outlook without losing files or existing e-mails and taking my contact list with me?

    Hi KennethPickering,

    You can refer the following Microsoft Knowledge Base article and check.

     

    How upgrade from Outlook Express to Outlook

    http://support.Microsoft.com/kb/287073

    Let us know if it helps.

  • My Windows Vista computer displays a black screen with only a white arrow to the mouse cursor.

    I have a black screen with only a white arrow to the mouse cursor.  I tried to start in safe mode, safe mode with networking, and safe mode in the command prompt. Each time, I just get a black screen with a white arrow cursor.  How can I get my screen back?

    original title: black screen

    Hello

    Remember to make changes to the computer before the show?

    Try the following methods and check the status of the issue.

    Method 1:

    Disconnect an external device connected to the computer with the exception of the keyboard and mouse and check if it helps.

    Method 2:

    If you have the Windows Vista disc, the computer by using the startup disk and perform the Startup Repair. See the following links:

    What are the system recovery options in Windows Vista?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    Make repairs to the system from the Windows recovery environment.

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-system-repairs-from-the-Windows-recovery-environment-from-Windows-Vista-inside-out

    Method 3:

    If the method above does not solve the problem, then try to perform a restore of the system from the Windows Recovery Console. You can see the link provided in method 2.

  • Populating drop-down list with SQL

    I have a database and I want to fill the drop-down list with a 'Group By' request to show the various categories without showing many of the same.  Here's the code I'm having difficult with:

    DropDown {
                    id: filterSelect
                    visible: true
                    enabled: {if (purchaseValue != false){false}}
                    bottomPadding: 20
                    title: qsTr("Category:") + Retranslate.onLanguageChanged
                    horizontalAlignment: HorizontalAlignment.Center
                    options: Option {
                        id: allOption
                        text: qsTr("All") + Retranslate.onLanguageChanged
                        selected: true
                    }
                    onSelectedOptionChanged: {
                        if(filterSelect.selectedOption == allOption){
                        _app.refreshObjects()
                        }
                        else{
                        dataSource.query = "select * from items where categoryfield LIKE '%"+ filterSelect.selectedOption.text+"%'"}
                    }
                    attachedObjects: [
                        ComponentDefinition {
                            id: optionFactory
                            Option {
    
                            }
                        }
                    ]
                    onCreationCompleted: {
    //                    "select categoryfield from items group by categoryfield"
                        var newOption = optionFactory.createObject()
                        newOption.text = 'Text to add' // or a variable fetched from data source
                        //newOption.otherfields = ...
                        filterSelect.add(newOption);
                    }
                }
    

    I have a data source that fills the listview, I want to use the same database to populate the drop-down list.  How should I go about this?  I tried to configure a different DataSource {} just for the dropdown menu, but I couldn't make it work.  In bold text, I am not clear as where I incorporate my SQL query against the newOption.text =

    TL; DR I try to use a SQL query to fill my menu drop-down using the same PB that is used for the listview.

    Any help will be appreciated and thanked!

    A friend by the name of Roger Leblanc http://appworld.blackberry.com/webstore/vendor/70290/?lang=en&countrycode=CA helped me and created a small code example to explain how it works.

    import bb.cascades 1.2
    import bb.data 1.0
    
    Page {
        Container {
            DropDown {
                id: dropdown
            }
            ListView {
                id: myListView
                dataModel: dataModel
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.categoryfield
                        }
                    } // end of ListItemComponent
                ]
            } // end of ListView
        }
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel
            },
            DataSource {
                id: dataSource
    
                // Load the data from an SQL database, based on a specific query
                source: "asset:///pinguin.db"
                query: "select categoryfield from items group by categoryfield"
    
                onDataLoaded: {
                    // After the data is loaded, insert it into the data model
                    // This will populate the ListView. You don't want to show
                    // categoryfield in ListView, I just wanted to show the difference
                    // between populating a ListView and a DropDown
                    dataModel.insertList(data);
    
                    // Now, this will populate the DropDown by iterating through every
                    // data from the query and adding it one by one to the DropDown
                    // using the optionFactory Component Definition to add dynamically
                    // new Options to the DropDown
                    for (var i = 0; i < data.length; ++i)
                    {
                        // Create new Option
                        var newOption = optionFactory.createObject()
    
                        // Set the Option text to categoryfield
                        newOption.text = data[i].categoryfield
    
                        // Add the Option to DropDown
                        dropdown.add(newOption);
                    }
                }
            },
            ComponentDefinition {
                id: optionFactory
                Option {}
            }
    // end of DataSource
        ]
    
        onCreationCompleted: {
            // After the root Page is created, direct the data source to start
            // loading data
            dataSource.load();
        }
    }
    
  • Icon blackBerry Smartphones square with the Green corners

    No idea what it is? A small overview of squares with the right and top left corners green color, normally appears during navigation. Beside network signal strengh high counter to the right of the screen.

    The square box with 2 green squares is synonymous with data. This appears when you are on the internet.

  • Red arrow of blackBerry Smartphones

    Hello

    There is a red arrow pointing upward near the name of service provider.

    In the screenshot above, you can see the red arrow near the ORANGE IT.

    What means this arrow?

    Thank you

    Marius.

    The indicator means that your signal is homelessness.

Maybe you are looking for

  • messages app screen is empty

    My messages app shows blank screen every time I open it I tried to fix it sooner and deleted files (chat.db, chat.db - shm, wal - chat.db, etc.) because it was suggested in another post on the forum (iMessage on mac doesn't work does not correctly) A

  • HP Officejet 6310 IP address

    I created my printer to print over a network. It woks fine until I turn it off. Then ip address changes and I have to put up again. It's the third day, I had to do this. Is it possible to stop the IP address always change?

  • Sims 2: night - error when updating.

    Original title: Sims 2 Nightlife HELP Please! Okay so I recently started to install the sims 2 on my PC in Windows 8, I installed the sims 2 without problem and then when I install nightlife it load to 100% but then I get an error updating wen. I've

  • need suggestion - do vcix6

    HelloI vcp5-VTC and I want to upgrade, so there is only one available path which is vcap but because that vsphere 6 is available.can I do vcix6-VTC?According to a few post above, that the information is not out yet, but when even if someone knows...n

  • Where can I find the package libXdmcp vCloud Director 5.1 RPM installation?

    Hi allI have installed my first vCloud Director and am not a LinuxGuy at all. In any case my RedHat 6 operating system does not include the RPM libXdmcppackage. I downloaded and installed several RPM packages on the web,but none of them does not seem