Presentation of custom ListView

I have a list view which gets its data from a data model that is filled from a database. Each item in the list has more than a dozen of values. I would like to see 4 values in a row to equal spacing and the size of the text. It seems not to be possible with StandardListItem. I would create a "column to identify the values. How can we go about it?

Thanks in advance.

Hello

Some examples of code that I used in my project... you can see this

ListView {
                        layoutProperties: AbsoluteLayoutProperties {
                            positionX: displayInfo.pixelSize.width==720?0.0:0.0
                            positionY: displayInfo.pixelSize.width==720?129.0:129.0
                        }
                        opacity: 0.9
                        dataModel: groupDataModel
                        onTriggered: {
                            var selectitems = dataModel.data(indexPath)
                            Qt.objectQD.showCustomDialog(selectitems.quote,selectitems.author);
                        }

                        id:favoritelist
                        objectName: "favoritelist"
                        listItemComponents: [
                            ListItemComponent {
                                id:row
                                type: "item"
                                Container{
                                    id: favlist
                                    layoutProperties: AbsoluteLayoutProperties {
                                        positionX: 0.0
                                        positionY: 0.0
                                    }
                                    background: Color.create ("#ffffff")
                                    preferredWidth: 768
                                    preferredHeight:120
                                    Container{

                                        layout: AbsoluteLayout {}
                                        Label {
                                            id: quotef
                                            text: ListItemData.quote
                                            textStyle.base: SystemDefaults.TextStyles.TitleText
                                            textStyle.color: Color.Black
                                            textStyle.textAlign: TextAlign.Left
                                            layoutProperties: AbsoluteLayoutProperties {
                                                positionX: 10.0
                                                positionY: 15.0
                                            }
                                        }
                                        Label {
                                            id: authorf
                                            text:" "+ListItemData.author
                                            preferredWidth: 400
                                            textStyle.color: Color.DarkGray
                                            layoutProperties: AbsoluteLayoutProperties {
                                                positionX: 450.0
                                                positionY: 80.0
                                            }
                                            textStyle.fontSizeValue: 5.0
                                            textStyle.fontSize: FontSize.PointValue
                                        }
                                        Divider {
                                            layoutProperties: AbsoluteLayoutProperties {
                                                positionX: 0.0
                                                positionY: 118.0
                                            }
                                        }
                                    }
                                }
                            }
                        ]

                        onDataModelChanged: {
                            if(objectQD.totalsize==0){
                                            nofav.visible = true;
                                        }else if (objectQD.totalsize>=1){
                                            nofav.visible = false;
                                        }
                            }
                    }

Tags: BlackBerry Developers

Similar Questions

  • Presentation Conference custom conductor, telepresence Server

    I am trying to set up a layout custom Conference, through layout of custom settings of my conductor (according to the model of the Conference), as shown below

    I can't seem to change the layout of layout custom default "5".

    I have the settings customized according to the guidelines below and restarted the driver after the changes have been made; no luck

    I followed the instructions as indicated

    http://www.Cisco.com/c/dam/en/us/TD/docs/Telepresence/infrastructure/con...

    {'customLayout': '39', 'customLayoutEnabled': 'true', 'newParticipantsCustomLayout': 'true'}

    conductor version: 3.0.3

    The telepresence Server version: 4.1

    Hi Dennis,

    You are right that the GST has 4 conference layout options.

    -Jonathan

  • Customized presentations

    Hello

    I'm trying to set up a presentation very customized using 5320 MCU which is managed remotely by the conductor.

    Current configuration:

    1.) create Conference in TMS

    Available assigned custom number 2.) in the model of the Conference in the conductor.

    3.) layout changes every time Conference is created in TMS and propagated in the MCU.

    Is there, far from creating this type of disposal of the conference without creating a static Conference meeting in the microcontroller.

    Conductor cannot use the default layouts on the MCU, necessary custom presentations have to be modified on a basis by the Conference on the MCU, or use a static conference where the layout is already customized.  Refer to the section 'Customize page layout views' in the MCU 5300 Help Guide online.

  • How to associate a bean managed with model custom content presenter

    Hello

    We use webcenter Portal 11.1.1.8.

    We have created the model of presenter content customized by using application portal Webcenter Framework. We use the Portal Server model Extension to extend Webcenter portal. The requirement is to associate a bean managed with the presenter of custom content model.

    Thanks in advance for your help.

    Nikhil,

    You can download DesignWebCenterSpaces to the URL http://download.oracle.com/otndocs/tech/webcenter/files/DesignWebCenterSpaces_11.1.1.8.0.zip

    It has the "WebCenterSpacesResources" project, which helps you to organize the active portals (including the content presenter models) and resources of portal to create/update.

    If you want to use beans controlled inside the presenter content model:

    (Development of components in ADF for WebCenter portal using the PortalExtension project http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27739/jpsdg_wcsres.htm#JPSDG14173)

    1. you create the bean managed in PortalExtension project

    2. set up in faces-config. XML

     

        myManagedBean

        com.Portal.CP. MyManagedBean

        request

     

    3 deploy a part of extend.spaces.webapp.war.

    After deployment, the managed bean will be available for the presenter content model.


    K

  • HOWTO: Use the contextual action with ListView in C++

    Hello

    I need your advice and the best way to manage the user in the context menu action, linked to a ListItem (or the MultiSelectActionItem)

    My skeleton of ListView is defined in QML. In C++, I create and fill in ListView. ListView can be instancied multiple times (each with its own data model). So for each ListView, I get the same action of context.

    Now, how to manage the action trigger signal. Sample for ListItem delete action, I can not connect a slot to the signal of ListItem. Otherwise, I have to do for each ListItem! I think that this is not the right way.

    I looked at the bucket sample. Stocks are managed directly by the datamodel.

    The second point is that the action item process is long and regular through the event of Qt. loop (and of course the content list may change before the end of the process).

    Another solution could be: QML send a signal custom ListView object (and not the ListItem).

    Nicolas

    I see what you mean about Battambang: there are a series of action applied to each element.

    In many cases, it may be wiser to join acts to list.  I suggest something along these lines:

    Addition of stampcollector main.qml in the ListView after the ListItemComponents:

                    contextActions: [
                        ActionSet {
                            ActionItem {
                                objectName: "ooglyAction"
                                title: "oogly"
                            }
                            ActionItem {
                                objectName: "booglyAction"
                                title: "boogly"
                            }
                            DeleteActionItem {
                                objectName: "deleteAction"
                                title: "Delete"
                            }
                        }
                    ]
    

    In stampcollectorapp.cpp:

    (a) in the constructor:

        ActionItem* action = nav->findChild("ooglyAction");
        if (action)
            connect(action, SIGNAL(triggered()), this, SLOT(onListActionOogly()));
        action = nav->findChild("booglyAction");
        if (action)
            connect(action, SIGNAL(triggered()), this, SLOT(onListActionBoogly()));
        DeleteActionItem* daction = nav->findChild("deleteAction");
        if (daction)
            connect(daction, SIGNAL(triggered()), this, SLOT(onListActionDelete()));
    

    (although you can use the same signal for all the actions non - handler remove if you want to turn on the text of action in Manager)

    (b) methods as:

    void StampCollectorApp::onListActionOogly()
    {
        qDebug() << "Here I am: oogly!";
        qDebug() << sender();
    }
    void StampCollectorApp::onListActionBoogly()
    {
        qDebug() << "Here I am: Boogly!";
        qDebug() << sender();
    }
    void StampCollectorApp::onListActionDelete()
    {
        qDebug() << "Here I am: Delete!";
        qDebug() << sender();
    
        DeleteActionItem* action = dynamic_cast(sender());
        if (action == 0)
        {
            qDebug() << "Not expected type";
            return;
        }
        qDebug() << "Yes, found!";
    
        QObject* parent = action->parent(); // get ActionSet
        if (parent != 0) parent = parent->parent();
        if (parent == 0)
        {
            qDebug() << "No parent!";
            return;
        }
        const QMetaObject* m = parent->metaObject();
        if (m == 0)
        {
            qDebug() << "No metaobject!";
        }
        qDebug() << m->className();
    }
    

    In other words, use sender()

    Stuart

  • ListView triggered signal

    Hello

    I created a ListItemListener & ListItemProvider - class.

    Everything works very well to show in a listview.

    On a new page, I created a signal connect to triggered(), but this signal seems to be issued.

    I followed the instructions from cascadescookbook to create the custom listview.

    When I put the DataModel for a new QListDataModel: HistListView-> setDataModel (new QListDataModel(hist-> getHistList())); the triggered signal works

    ListView * {IMUI::createHistListView()}
    QList histList = hist-> getHistList();
    ListView * histListView = new ListView;
    HistListFactory * histListManager = new HistListFactory();

    QVariantMap histMap = QVariantMap();

    for (int i = 0; i)< histlist.size();="" i++)="">
    histMap ["title"] = histList.value (i);
    mHistModel<>
    }

    histListView-> setDataModel (& mHistModel);
    histListView-> setListItemProvider (histListManager);

    Connect (histListView, SIGNAL (triggered (const QVariantList)), this, SLOT (onTriggered (const QVariantList)));

    Return histListView;
    }

    void IMUI:{nTriggered (QVariantList row)
    ResultMap = mHistModel.data (row) .toMap () QVariantMap;
    navRoot-> pop();
    SystemToast * test = new SystemToast();
    test-> setBody("");
    test-> show();
    }

    Thank you

    Ralph

    Hello

    Problem solved.

    I wrote a small "o" in "onTriggered" method method .cpp one a big "O" of all.

    Thank you

    Ralph

  • point to row in the ListView multiselect

    Once again, the lack of documentation around annoys me no. where to go so I hope someone can enlighten us

    I do it s simple list multiple selection on a customized ListView, by trial/error, I get a row on the

    {ActionItem}

    ...

    var temp = my_list.selectionList ();

    Temp [0] is the 1stevel of row to the ELT in the list, how the hell I get the actual data for the current item?

    (Works dataModel.data(temp[0]).list_fld onSelectionChanged but not onTriggered, I saw a strange)

    listView = parent.parent.parent, but that one does not work either. The bucket sample did not help either.

    Pretty frustrating is repeat the old song now... How you want devs to come when you play mysterious and not document this? Some of the ad will be would be good if you get a cut of the tech writers and start matching section. This list seems to be powerful but useless if we must spend hours of trial/error to understand how it works.

    These forums are supported by the community, with many other developers like you (i.e., people who do not work for BlackBerry) try to help each other. It does not help us help when we have to read through stuff like that ' play mysterious "etc... just an info.

    You can specify which of the two you are having problems with? Looks like you have that works well for onSelectionChanged(), but did not he works for onTriggered()? Is this correct or have I missed something? (Also please try to use social features shaped correctly. You can use the small "Clipboard with C" icon to insert the code with formatting preserved, to make the issue easier to read.)

  • Use of customer

    Some of my clients need images for their projects and content assets, which include typically:

    -eBooks

    -Press releases

    -Presentations

    -Customer interviews

    -Blogging

    -Social media

    -Computer graphics

    -Newsletters

    -White papers

    After reading the use and license terms, I guess I can buy pictures on behalf of my clients - and sell these images as part of a project, for example an eBook - as much as they respect the restrictions and conditions of use. My questions are:

    (1) am I correct to assume that?

    (2) on the photo credit, it is only when you use the image in the articles editorials or credit of social media must be added?

    (3) need me a license for images that is distributed to traditional media, for example with a press release?

    Thanks in advance.

    Hi Johannes,

    You must purchase an extended license.

    Kind regards

    Sheena

  • Custom data centers

    I created several CDC that we use for the management of capacity, but recently noticed that it does not automatically update with the new groups added to the environment in. Does anyone know how I can get a CDC auto add new members in the area which I define as my CDC

    Here it is my CDC production and as you can see the new cluster its not added. It doesn't seem to be a parent object that I can select (in this case windows or linux) that will automatically add new groups

    CDC.png

    Today, custom data centers do not have an automatic fill criteria are met that statically. However, I agree with you that it would be an advantage to have this capability, similar to the how custom groups to have rulesets. Others that the obvious benefits of Datacenter Custom ojcts be exploited with WLP capabilities, I use these global organizational construction groups of cluster for the analysis of high level. This high-level analysis is in the form of capacity planning, calculation, efficiency and so on. This cap of model capabilities are not present in custom groups (CGs simply show the distribution of the population), which make the data centres custom unique positions for the aggregation of CLuster and analysis without the need to be creative with the SMs and the views to try to make them 'cap-model-like. "

  • ComboBox with customized with buttons listcell

    Hi all

    I would like to create a combobox with a custom listview that contains several controls. The thing is that setAction is consumed by the list of ComboBox popoup and then controls inside are ignored.

    There is here an example:

    //***************************************************************************************************************

    package javafxapplication3;

    Import javafx.application.Application;

    Import javafx.collections.FXCollections;

    Import javafx.collections.ObservableList;

    Import javafx.event.ActionEvent;

    Import javafx.event.EventHandler;

    Import javafx.scene.Scene;

    Import javafx.scene.control.Button;

    Import javafx.scene.control.ComboBox;

    Import javafx.scene.control.ListCell;

    Import javafx.scene.control.ListView;

    Import javafx.scene.input.MouseEvent;

    Import javafx.scene.layout.HBox;

    Import javafx.scene.layout.HBoxBuilder;

    Import javafx.scene.layout.StackPane;

    Import javafx.stage.Stage;

    Import javafx.util.Callback;

    SerializableAttribute public class JavaFXApplication3 extends Application {}

    @Override

    {} public void start (point primaryStage)

    ObservableList < String > options

    = (FXCollections.observableArrayList)

    "Option 1"

    'Option 2 '.

    );

    ComboBox < String > comboB = new ComboBox <>(options);

    Object obj = comboB.getOnAction ();

    comboB.setCellFactory (new reminder < < String > ListView, ListCell < String > > () {})

    @Override

    public ListCell < String > call (ListView < String > param) {}

    last cell ListCell < String > = new ListCell < String > () {}

    {

    super.setPrefWidth (100);

    }

    @Override

    {} public Sub updateItem (empty string element, Boolean)

    super.updateItem point, empty;

    If (item! = null) {}

    setText (item);

    HBox cell = HBoxBuilder.create () .children (createButton (), createButton () infrastructure ();

    setGraphic (cell);

    } else {}

    setText (null);

    }

    }

    };

    return the cell;

    }

    });

    Root StackPane = new StackPane();

    root.getChildren () .add (comboB);

    Scene = new scene (root, 300, 250);

    primaryStage.setTitle ("Hello World!");

    primaryStage.setScene (scene);

    primaryStage.show ();

    }

    private Button createButton() {}

    last button btn = new Button ("Hola");

    btn.setOnAction (new EventHandler < ActionEvent > () {}

    @Override

    {} public void handle (ActionEvent t)

    System.out.println ("Does´t work");

    }

    });

    btn.setOnMouseEntered (new EventHandler < MouseEvent > () {}

    @Override

    {} public void handle (MouseEvent t)

    System.out.println ("Works");

    }

    });

    return btn;

    }

    Public Shared Sub main (String [] args) {}

    Launch (args);

    }

    }

    //***************************************************************************************************************

    How could I do 'System.out.println ("work of Does´t");' works?

    A ComboBox control is used to select an element; from a set of predefined items (displayed in the context menu), or possibly by entering one. You intend something must be selected in your control? If so, it is not clear if something should be selected when the user presses the button. If this isn't the case, then a ComboBox control is not the appropriate control. Something like a menu button can work better.

    Assuming you want to use it to make a selection, a menu button might work if you used CustomMenuItems points the menu button and hideOnClick set to false:

    import java.util.Arrays;
    import java.util.List;
    
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.CustomMenuItem;
    import javafx.scene.control.Label;
    import javafx.scene.control.MenuButton;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    public class ButtonInMenuButtonItem extends Application {
    
        @Override
        public void start(Stage primaryStage) {
            List options = Arrays.asList("Option 1", "Option 2");
            MenuButton menuButton = new MenuButton("Options");
            for (String option : options) {
                menuButton.getItems().add(createCustomMenuItem(option));
            }
            StackPane root = new StackPane();
            root.getChildren().add(menuButton);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    
        private CustomMenuItem createCustomMenuItem(String option) {
            HBox hbox = new HBox(5);
            hbox.getChildren().addAll(createButton(), createButton(), new Label(option));
            CustomMenuItem customMenuItem = new CustomMenuItem(hbox);
            customMenuItem.setHideOnClick(false);
            return customMenuItem ;
        }
    
        private Button createButton() {
            final Button btn = new Button("Hola");
            btn.setOnAction(new EventHandler() {
                @Override
                public void handle(ActionEvent t) {
                    System.out.println("Button pressed");
                }
            });
    //        btn.setOnMouseEntered(new EventHandler() {
    //            @Override
    //            public void handle(MouseEvent t) {
    //                System.out.println("Works");
    //            }
    //        });
            return btn;
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    

    If you do not want 'selection '. You should maybe use a button from menu above and manage the selection yourself.

  • Several questions of presentation

    I have a few problems regarding the presentation of custom web view I created.

    1. When I set the defaults for vCenter objects, the display of web pages shows the ID of the object rather than the name, for example 'Localhost datastore 10' instead of 'datastore1 '.
    2. Even when I put a root folder, the user should always be able to choose each existing VM he read rights on. To resolve this problem, I created a table of VMs and added those I want to show the users. It actually works, but now I can't see any name for the virtual machine.
    3. Is it possible to add comments next to the text boxes? I want to add some explanations for users and everything written in the description of the mess really the view.

    I made some screenshots if you understand what I mean exactly.

    The first screenshot shows the problem with the object ID. The second displays the name for the virtual machines and the third shows my current properties for the presentation of my virtual machines.

    Yep, the # is a typo.

    The SdkConnection must come from the inventory-vCO.

    So in my case, I had an input parameter named SdkConnection (you can call it at will) with the VC:SdkConnection type for the script element.

    This is because the vCO is designed to deal with multiple vCenter servers, so there is no global authorisationManager.

    See you soon,.

    Joerg

  • Easy way to auto submit the custom after the approval of the PO report

    I have an obligation to present a custom report whenever a PO approved (for reapprouvee as well). The obligation is to customize the PO approval workflow.

    R12 do we have an easy way to do it, rather than customization or modification of workflows existing or packages?
    My client prefers not application of database triggers.
    Please let me know.

    As far as I KNOW, customization of the workflow is the only solution (you can connect an SR to confirm this with the support of the Oracle).

    Any reason you prefer not to go with this approach? -Why not customize the PO approval workflow? -How to create a customized copy of the seeded purchase PO Approval Workflow POAPPRV [1270010.1 ID]

    Thank you
    Hussein

  • iTunes Gift Card scam

    My sister in the United States bought 2 iPhones (one for itself) and one for me. She we me shipped in India (sim free iphone), after a while my iPhone starts giving trouble that was sent to me. So I sent it to him. She wanted to replace, so she looked up a number of apple care and discovered the following mentioned repeatedly and addressed the issue with apple support management and he said that both phones will not work in India because it is not factory unlocked. He said that apple will replace these two phones with factory unlocked ones. I have to provide a deposit, and apple will send me two phones that will be factory unlocked. When I go back to my old two phones, the security deposit will be refunded. So she bought the iTunes gift card and shared the details with him. But phones were not delivered in time, she returned to the same survey number which becomes unavailable, so she contacted on another number of apple support, then they said they have not received any request from her and told her that she had been deceived by a fraudster and it was a scam.

    Now the apple say that they are sorry for the loss of his money and they can do whatever it is in the present. Customer care people do not answer until she reminded them repeatedly and the lady who finally gathered his disconnected the call between the two. It's pure not meaning, people are deceived by using the Apple name and they are not bothered on this subject and they say sorry for it. Then she wrote to the care of apple with all the details and now they say they will study the issue.

    I think Apple should look into this issue seriously as a fake apple support page (replica) opens on the first link and fraudsters are deceiving the people. It is a serious matter. How a person know that if he's talking to a direction of apple support authentic.

    Here are the details of the e-mail and telephone numbers which have been used by this fraudster: (CAN ALL ONE please SUGGEST ON HOW to FILE A COMPLAINT CYBER CRIME CELL AND THE PROCESS AND GET the MONEY BACK)

    Apple support number called - 1800 235 3 *.
    The person who claimed to be Apple executive support - name - Eric, Extn 7000
    He gave a service ticket number - 61129 *.
    He gave a confirmation number - 21974. *
    He asked me to send photos of the itunes to email card - [email protected] *.

    Three cards iTunes gift card whoese number were shared - $500, $500 and $200.

    < published by host >

    I can't say how your sister found the phone number above for Apple Support.  Clearly, it's a scam.

    Phone number of Apple's Support to the United States is (800) MY-APPLE, which translates by of (800) 692-7753.

    I can't imagine there is a way to get your money back.  I'm sorry.

  • NEITHER Veristand 2014 does not appear in the generation of Code from MATLAB R2014a

    Hello

    I installed NI Veristand 2014 after installation of MATLAB R2014a. I restarted my PC and tried to apply the example sinewave. I looked at the code generation in model configuration settings Simulink, but could not find the NIVeristand option as shown in the video. Here is a screenshot of the target file system:

    I missed to install something? It was my installation (since I need Veristand to compile MATLAB model):

    Thank you for your help in advance

    Hi Wade,.

    Unfortunately the behavior you are touched by is a flaw in our automatic installer of the MATLAB R2014a detection. The NI VeriStand 2014 node that you see in the window of parameters of the installation program hides in fact several other unique options. The default selections expected automatic selection supported MATLAB if MATLAB was detected successfully by our Installer, unfortunately, this procedure has failed.

    To work around this:

    1 restart the Installer settings window
    2. in the characteristic parameters (your second picture) window, left-click on the image next to the label of NI VeriStand 2014
    3. you should now be presented with the option, with customization - choose this option.
    4 4 proceder proceed to installation, thereafter you presented with custom product options VeriStand.
    5. in the list of features VeriStand, select NI VeriStand 2014 model framework
    6. proceed with the installation.

    After that, restart MATLAB and then again. If the installation was successful, on the revival of the command window MATLAB will display the initialization string NI VeriStnad 2014. Please note that we have documented this problem and make an effort to remedy.

  • WebEx costs setup in organization - thoughts?

    Hi all

    There is a need of client to configure webex in the organization.

    at the present time, customer use bomgar to share office but it has some limitations.

    I would like to know what kind of piece of the infrastructure needed to put in place a webex environment. all documentation would be greatly appreciated.

    Thank you

    Hi Eric,.

    I think Cisco webex services are now integrated into their Solution Jabber and you would have a wide variety of Cisco products in case you are looking for a Solution to the UC.

    Legacy, webex, used to provide the only IM client, on the other hand, Jabber has the advantage of: -.

    • IM
    • Presence
    • Video
    • Unit

    Cisco offers Jabber in two flavors - one is at the scene and other is on the cloud.

    Speaking at the scene, you would have to buy the whole installation of Cisco which would include the server for the AAU, CUPS, as well as licenses.

    And if you get on the cloud solution - then you will have to go to the cisco client licenses you would charge for the train of Infra - annual or monthly basis.

    It was for Cisco Jabber which consists of IM, video, etc. of presence.

    And if you want to go only - for video, then you option for Cisco Jabber of telepresence which makes video only.

    For more information, I recommend to contact your Cisco sales representative.

    Let me know if you need more technical details.

    Thank you

    Saurabh

Maybe you are looking for