How to create a list of button by using the names of a table

Hi, I want to create an application that displays detailed information about something. for example, as the profile of the users. my application will read an xml response from the server that contains the list of the names of the users. How to create a list of buttons using the names and then each button that displays the name that can be pressed and displays detailed information about the name? I think that it is similar to the BBM app that displays a contact list of the user. Thank you very much

Create a ButtonField as:

ButtonField [] users_buttons = new ButtonField [number of users];

Initialize the uasing dem:

for (int i = 0; i)<>

users_buttons [i] = new ButtonField ("user", Field.FIELD_HCENTER |) ButtonField.CONSUME_CLICK);

Make dem clickable setchangeListener method of buttonField and Ooveride Navigation click to make a few operatoin by clicking on the specific button!

Tags: BlackBerry Developers

Similar Questions

  • How to create a hierarchy that is shared using the rules file.

    Hello - I am trying to create a shared in Essbase hierarchy that looks similar to the following

    -Member 1

    Member 2

    Member 3

    Member 4

    Member 5

    Member 6

    -Member 3

    Member 4

    Member 5

    Member 6

    Basically trying to shoot the 3 members 1 member hierarchy and show it separately.

    What my rule file should look like this situation.

    Grateful for the help.

    Thank you.

    Well, you can do that, as you describe because your member 3 would be a shared member and shared members cannot have children.

    you could do something like

    Member 3A

    Member 4

    Member 5

    Member 6

    Of course if you really want to watch a member 3 with his children, I don't understand why you need a shared hierarchy you can get the update rollup member 3 in the hierarchy of the primary

  • How to create a data model (other than using the Notepad/xml Localization)

    Hello gurus,

    We create data models with publishers of ordinary/xml Notepad.
    But, is it a std BI publisher tool which designs data models?

    Thank you
    Vinod

    Hi Vinod,

    BI Publisher 11g comes with DataModel Editior

    Please follow link below to understand the steps in detail

    http://www.adivaconsulting.com/Adiva-blog/item/12-bip11g-datamodel.html

    Thank you
    OMKAR

  • create a list of "buttons."

    I am creating a list of "Buttons", I use the term as I want to reproduce the behavior of a button, but it is created dynamically.  For example I return data as xml, I am a loop nodes and create buttons for each node I find.  The button will be implemented in the following way

    _______________________________

    Text1

    Text2

    _______________________________

    Text1

    Text2

    _______________________________

    When you click one of these buttons, it will redirect to another page.  What would be the best way to create these buttons?  I am new to Java and BB, I don't require exact code that I am happy to learn, however some tips in the right direction would be great.

    Can you tell me what gives you the idea that you cannot create controls (I suppose you mean the fields to use the terminology of BlackBerry) dynamically.

    As far as I know, there is no RIM provided the fields that you cannot dynamically create.  In your case, I proposed two options, both use RIM provided fields.  Then you should be OK.

    However, I'm guessing that you look at some code like this:

    class MyScreen extends form {}

    ...

    BasicEditField myField1 = BasicEditField (...) new

    BasicEditField myField2 = BasicEditField (...) new

    ...

    private void processEnter() {}

    If {(myField2.gettext (.equals("Fred")))

    ...

    }

    }

    In this case to refer directly to myField1, then Yes, you have it is defined.  But you don't have to write code like this, you can create a vector in which you put all the controls and manage them yourself.  It is more difficult, of course, but more flexible.  And code like above is often very difficult to treat.

    So if you want to design your application as in the example I gave above, then you will need to "preset" all fields.

    However, if you think that you may need 100 custom fields, then I suggest that you look at the ListField idea.  Insofar as you have only one field, it uses the same "logic to display" to display the entries that give you it.  So if you have 20 entries, it shows 20 lines, if you have 100 entries, it will display 100 lines.

    ListField is not trivial to use, but I think it will be much easier than the redefined option you are currently considering.  And it's very effective.

    So my recommendation is that you try to make this request using the ListField.

  • How to create a list of chips which is aligned which can occur over time (such as powerpoint)

    Hi all. I'm trying to figure out how to create a list of chips for a training video that will appear gradually as the voice on reveals each point, without the need to have a separate title for each point. Even if I create bullets, especially how to align and having the good spacing between each sentence. Basically I want it to be like an animated Powerpoint slide! Please can someone give me advice on how to do this than all my text/bullet alignment points and are spaced evenly. Thank you!

    Each line is revealed over time:

    Title

    • Point 1
    • Point 2
    • Point 3

    Do in the Titler, and start with the complete list of ball.

    Then create "new title based on the current title" and remove the bottom line

    Do so until that there is only a line on the left.

  • Creating a list of buttons

    Hello

    I am trying to build a list of buttons, each one integrated with an image as an icon. Each of these buttons are dragEnabled, in the sense that they can drag and drop on a canvas. I tried to create a list of button with the above charateristics and my code as shown below. However, it has not worked for me.

    Code:

    < mx:Array id = "arr" >
    < mx:Object mouseDown = "dragButton (event)" id = "trans" name = "Transformer" icon = "{transIcon}" contextMenu = "{buttonMenu}" / > "
    < mx:Object mouseDown = "dragButton (event)" id = "isoTrans" name = "Transformer of Isolation" icon = "{recIcon}" = "{buttonMenu}" contextMenu / > "
    < mx:Object mouseDown = "dragButton (event)" id = "ups" name = "UPS" icon = "{linuxIcon}" contextMenu = "{buttonMenu}" / > "
    < mx:Object mouseDown = "dragButton (event)" id = "pdu" name = "PDU" icon = "{vmIcon}" contextMenu = "{buttonMenu}" / > "
    < / mx:Array >

    < mx:HorizontalList id = 'horizontalList '.
    labelField = "label".
    iconField = 'thumbnailImage '.
    dataProvider = "(arr).
    itemRenderer = "CustomItemRenderer."
    dragMoveEnabled = "false".
    columnCount = '2 '.
    columnWidth = '150 '.
    number of lines = '2 '.
    rowHeight = "200".
    horizontalScrollPolicy = "on" / >

    The CustomItemRenderer.mxml:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:VBox xmlns:mx = "http://www.adobe.com/2006/mxml"
    horizontalAlign = "center".
    verticalAlign = "middle" >

    "< mx:Button mouseDown ="data .mouseDown"icon =" {data.icon} "contextMenu =" {data.contextMenu} "buttonMode ="true"useHandCursor ="true"/ >" "

    < mx:Label text = "{data.name}" / > "

    < / mx:VBox >

    Let me know what I'm missing. Thank you

    Hi Ronnie,.

    Have you tested the app...

    He works for you... ?

    Thank you

    Jean Claude Chari

  • How to create subtitles for a button?

    Hello!

    I really tried to find the answer to this ridiculous problem on mine, but without result. Please help someone!

    The situation:

    I have a menu with three choices: 'Play Movie', 'scène Sélection' and 'subtitles '. Now, the text with these choices are part of the image background, created in the first (the program that I know best). They are written with an old typewriter to get that gritty feel.

    I want the user to navigate between these 'menus '. The currently selected item should be indicated by a black circle/point/point before the item text. By default, when the menu appears, there is a black circle in front (to the immediate left of) the element "Play Movie". The user should now be able to intervene with its remote control, the other points, thus making the circle black in front of 'Play movie' disappear and instead of other elements. In short: the black circle is always show before the currently selected item. OK, I got there a little chatty, but the idea got across hopefully. One more thing: the background color is white to 100%.

    So far, my solution was this: I placed Black circles (small images with graduation and everything, very nice looking) before all THE THREE ELEMENTS. Can I convert these into buttons. Then I choose the color defined for the menu so that the unselected state is 100% covering the Black circles that should not see white, pure and simple, with an opacity of 100%. Only in the opacity of selected and active States for the fall of subpicture for button at 0%, revealing the black circle that must be seen.

    The problem? Well well, on some DVD players (not on the XBOX 360 so), when an element is activated, all three circles show a brief moment until the selected action begins (the movie playing for example). It also happens in preview again. It's not logical at all and looks amateurish. I don't know why it happens, but my guess is that it would not be if I did it the 'proper' way: by creating a subpictures fo the buttons in the shape of circles. I understand that the gradations seeks beautiful must go out of the window, but it's a price I'm willing to pay.

    But now I encountered an unexpected problem: I do not understand how to create a subpicture for button who is a black circle. It seems the documentation in still and on the forums generally takes for granted that you know how to do this.

    What I tried was this: I created a monochrome, small image in format bmp - a black circle on a white background. But this picture just shows up as a black rectangle in yet.

    What should I do? I must add that I have no real experience with Photoshop, so go slowly if you go.

    Kind regards

    Nikolaj

    Basically, when we realize the limitations of the secondary image highlights, as defined by the DVD-plug., it is easy to see the "Workaround".

    A couple of aspects of subpicture highlights are:

    1.) 2-bit color (either ON or OFF), in a color scheme limited, with degrees of transparency (as opposed to the opacity of the PS).

    2.), they will appear on top of anything else on the Menu, including things like text/graphics buttons.

    By building your secondary image to highlight in PS, you can use the masking allows you to set where it will be, and where it will not. In the case that prompted my article, the poster had a series of text buttons and the secondary image highlights were formed from this text. The poster did not like the look of these 2 bits stepped colored blocks covering the text in the button. The solution is to "a hole" in the subpicture Highlight, so that it is hollow, there where the text of the button. This in the PS, using the "outline" of this text to create a mask to highlight of the secondary image. The appearance in staircase can be adjusted a little, using a degree of transparency (defined in the No - Auto Color Set back in again). We always have a color 2 bits subpicture Highlight and she still overlays of text for the button, but now there's a hole in it, just where the text of the button is located, and it is seen through this hole. The introduction of transparency has the Visual effect to "soften" the appearance of the color of 2 bits, even if the edges are still there - they look just softer. I went to show how we can even use a second secondary image point out, it's just a little bigger than the first and more transparent to simulate a "glow". Now, we can have a real "glow", because we are limited to this 2-bit color to highlight the secondary image, but we can simulate it.

    A large part of what makes a designer is really light hand - illusion. They all have to work within the limits of the specifications DVD (or BD)., but with a little creativity, planning and other work in PS, and yet, they can create enough smoke and enough mirrors allows to deceive the user into believing that what they think they see skirt the DVD specifications. They did not, but here comes the illusion.

    We receive many questions from people who would say that one commercial DVD, or another, a full-color subpicture highlights, and they complain that yet can do that - only 2 bits subpicture highlights. What they see, but don't realize, isn't fooled Menu, with a color chart and no real subpicture highlight visible. Jeff gives all the details on this operation. Even for those who have seen a button with a miniature of duo-tone, which transformed into color, when the button is navigated to. Wow, how did, and why Adobe Encore can do that? Well, what they saw was fooled Menu, with a full color sticker and not point out visible real subpicture.

    Jeff shows how to create what seems like at least a secondary image 3 colors to highlight. It's really just 3 regular 2-bit subimage color highlights, with masking to create the illusion that he has beaten the DVD specifications. Neat! [From the USA, I also liked that he used the American flag, but he could have chosen the "tricolor" French, or any other flag, without work.]

    Here are all the tips of righteous, but if the user buys in the illusion, which is?

    Enjoy,

    Hunt

    PS - if much larger positions, the elderly were lost, when the forum change that's happened, I strongly suggest to read the posts here. You can ignore those that don't offer anything, but almost every possible illusion was considered at least once, and probably a lot, with some of the different workflows offered by those who responded. Great reading.

  • How to create a list of permissions in the wizard for registration of components?

    Dear friends,

    Hello. I have just finished developing my first PeopleSoft application in the Application Designer and try to save the component using the registration wizard. I have 2 questions:

    When to use select button to select an allow list, first of all, there is no list of permission to select from my computer. So creating a list of permissions in the registration wizard?

    Secondly, in content reference window, click the "select" button to select the name of the portal and the name of the folder. Then click on the button "Open Selected", it is supposed to launch a browser that takes the administration page to create a new folder if necessary. But in my computer, the browser is a message: "page cannot display." What is going on?

    Friends can help answer these 2 questions? Thank you.



    Lucy

    Lucy,

    You cannot create a list of permissions in the registration wizard, only selection from a list of those that already exist. Note that when you choose the selection... button, there is another selection button in the popup window that acts first as a search button, and assuming that it returns a list of highlight or authorization lists you want to include and use the Select button. You can enter search criteria before using the Select button, or leave it blank to see everything.

    In response to your second question, the selected button open for content references will not work unless you set the URI correctly on the browser under Tools-> Options tab in the App Designer.

    Kind regards
    Bob

  • How to create a list of value based on a variable?

    Hello

    How can I create a LOV based on dynamic information, if what I want is to have a sql statement to create the LOV like this:

    Select name, id
    users
    where users.group =: VARIABLE_GROUP
    by name

    Thank you
    J

    Hello

    You create the LOV well enough as you have your example. Use the name of the variable that contains the value you want to use for users.group, in general, on a page that is initialized during the loading of the page, or some criteria provided by the user.

    I do it all the time. For example...

    Select project name, project
    projects
    where state_id =: P1_STATE
    state_id order;

    : P1_STATE is defined by a query that runs on my 1 Page that looks at the State of origin for the user who is logged in the system. This LOV then displays only the projects for their own State.

    Thank you
    Don.

  • create a list or a container for the States of a statemachine

    Hello

    I'm working on an application where many different types of devices will be put into a test set-up for Board level testing.  Depending on the type of Board, I need to create an ordered list of all necessary tests for the device.  I have a state machine and a single State for each of the tests and try to figure out how to create a list of tests for the specific device.  I want to have control in each of the States to remove the first element of the list and then take the next value and he lead the shift register used to go from one State to the other.  This should allow the state machine switch to the appropriate State based on the type of device and its sequence of necessary test.

    It should be with a table?  Is there some containers easier to work with this use case?  I need a container that will allow me to easily add between 5 and 30 names of State (based on the needs of the unit type) and easily remove or increment a pointer to the next State in the container.

    Thank you

    Gary

    Hi Gary,.

    an array of string or "enum" comes to mind. You can use it for the selection of States.

    You have to transfer data?

    Another way would be a queue. You can read the States with the enqueue function.

    It may be useful

    Mike

  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

  • How to install an hp LaserJet 1010 printer using the format of Windows 7?

    How to install an hp LaserJet 1010 printer using the format of Windows 7?

    Hello

     
    The hp LaserJet 1010 printer is not compatible with Windows 7. Visit the following links of Microsoft and hp for more information on this.
     
    Microsoft link
     
    link HP
     
    To work around the problem, you can try the following steps, however this may or may not help solve the problem.
     
    Install the drivers for HP 3050 and check. Follow the steps mentioned.
    a.Go devices and printers.
    b. Add a printer.
    c. Add a local printer
    d. use an existing port - for example DOT4 001
    e. choose HP 3050's driver in the list and install it.
  • How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page

    I just noticed that (in comparison to Internet Explorer): in IE, when you preferred a Web page, it uses the actual name of the Web page (for example, for this page, it would be "Ask a Question Firefox Help" as the name of the bookmark), but in Mozilla, it uses the URL as the name of the bookmark. I was wondering if it was possible to change my Mozilla settings so that it uses the name of the Web page as the bookmark name instead of the URL? I hope that everyone understands what I am getting? If anyone can help me, I would really appreciate it. Thank you.

    Firefox uses the tag title for the name of the newly saved bookmark.

    When I bookmark on this forum page I get this for the 'name' of the bookmark.

    How can I get Mozilla to use the name of the page for the name of the real instead of the URL bookmark when I bookmark a page | Firefox Support Forum | Firefox help

  • How can we support WAV file stream by using the window media services

    How can we support WAV file stream by using the window media services in Windows Server 2008 R2

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • I try to use windows excel for windows vista and am asked for a product key. How can I find out what order to use the product?

    I try to use windows excel for windows vista and asks me to enter a product key. I am the sole owner of the computer but have no installation CD for recharge Excel. How can I find out what order to use the product? From now the product doesn't let me do anything. Help, please!

    Hello

    Did you pay for Office (including Excel) in a packaging separated when you bought your computer?

    Office is not included with your purchase of computer for free.

    Most new computers come with a trial version of Office that lets 'x' number of days usuage.

    After this test times out, you will have to buy Office.

    And the product key on the computer case or laptop for the operating system, not for the desktop Suite.

    Here is the link for the Microsoft Store to Office products:

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Office_Category_Page?ICID=Home_4up_1_OfficeCatPage

    And you might be interested in the free Open Office Suite of Office Applications.

    http://www.OpenOffice.org/

    For any other question about Office, please repost in the Office Forums:

    http://answers.Microsoft.com/en-us/Office

    See you soon.

Maybe you are looking for