Layout in the Layout? FieldManager containing another FieldManager?

Hello

(I'm still fairly new to Blackberry):

In my Application, I have a HorizontalFieldManager containing a few buttons and the main part of the screen for another Manager (VertikalFieldManager).

By clicking on the buttons I have to show different content (complex) in the main part of the screen.

It seems a simple enough thing to do.

The problem is:

Given that each content must be desplayed after clicking on the relative button is quite complex (1 button displays a list of items that should be organized in a TableView; 2 button displays a form to be filled out and sent to a server)

This is not done by adding items directly in fieldChanged()

and not either by making a custom element and adding to my FieldManager in fieldChanged()...

No! I should have to define in the custom class not a simple element but A NEW SCREEN, actually (with my form or my TableView!) And then ADD it to the actual LayoutManager (for the real part of my screen).

' Public Sub fieldChanged (field field, int context) {}

CustomFormClass myformpage = new CustomFormClass();
_fieldManagerBottom.Add (myformpage);

}

How can I do such a thing?

How can I implement CustomFormClass in such a way that it contains an entire form with its logic and can be added to an existing screen?

How to make a layout in another presentation?

I need this because I need to change that part of the screen. The rest (that contains the navigation buttons) must remain intact.

It is quite a simple thing to do on a page web (with pictures!), but how can you do this in a Blackberry java Application?

I'll be very grateful for the help!

I don't think you need to extend a Manager to achieve what you want here.

When I "optional bits" I have add and remove, I add a handler at the insertion point.  Then when I want to add fields to this moment, I add fields to this Manager.  When I want to clear the fields I remove fields to this Manager.  I often do in the FieldChanged method.  A strategy like this work for you?

Regarding your problem, you actually never add your fields on the screen.  You add fields to formfm, which is a new Manager you create in the constructor of FormFieldManager.  But you actually never add it Manager for anything whatsoever.  If the fields have managers, but the Manager doesn't have a Manager.  I think that if you change

formfm. Add (Surname);
formfm. Add (FirstName);

TO

formfm. Add (Surname);
formfm. Add (FirstName);

This.Add (formfm);

your domain can be viewed.  However, I think that the approach you are trying to use here is more complicated that you need, and I encourage you to use the approach I described in the first paragraph.

Tags: BlackBerry Developers

Similar Questions

  • Hello world. How can I change 2000 channels of unique text in the layout ID to another 2000 located in the Excel table?

    Hello world. How can I change 2000 channels of unique text in the layout ID to another 2000 located in the Excel table?

    Hello

    1 click using the Multi-Find/Change to our clever friend Marthino da Gloria, version 2.0.

  • How to import bookmarks Firefox to a hard drive in another PC Firefox browser? The hard drive containing the bookmark has been deleted from a computer whose mother is dead, but the hard drive can be recognized outside on the new computer.

    How to import bookmarks Firefox to a hard drive in another PC Firefox browser? The hard drive containing the bookmark has been deleted from a computer whose mother is dead, but the hard drive can be recognized outside on the new computer.

    See this support article:

    http://support.Mozilla.com/en-us/KB/recovering+important+data+from+an+old+profile

  • How to create a formula that highlights the cell that contains the same data that I type in another cell

    Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you

    resolved to myself

  • ADF: addition of the JSF error message: another user has modified the line containing oracle.jbo.Key [185 primary key].

    When you call the function DB. The function performs its operation, but shows an exception. In JDev 11.1.2.3

    And there is not another user. I'm testing alone.

    ADF: addition of the JSF error message: another user has modified the line containing oracle.jbo.Key [185 primary key].

    oracle.jbo.RowInconsistentException: Houston-25014: another user has modified the line containing oracle.jbo.Key [185 primary key].

    The problem is that the function db has a commit and my code also. However the db function called once in a case.

    Thanks a lot for your help.

  • I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the ProX1 op

    I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the option ProX1.

    Hi Carl,

    It seems that you have installed Acrobat XI pro as an upgrade and an upgrade you will need a serial number for a product older Acrobat X, etc. 9:

    See, error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Also, I checked with your Adobe ID on the forums and I can only locate XI of Acrobat pro upgrade recorded, please check if you have registered an earlier version of Acrobat on some another email to get this serial number.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • Change the location of the TEMP folder on another drive

    1. What are the steps (dialog) to change the files TEMP system Windows7 on drive C for one of my other drives local HHD? Now, I have only a 160 GB SSD for my boot (C - drv) and want to keep the WRITE/ERASE SPO to a minimum.

    2. is it a security risk to modify the TEMP Internet folder of the hidden/protected area on the C drive to another local HHD? I read that there are built-in virtual paths and protections on both the system and registry that tends to protect Internet files TEMP containing viruses, rootkits, etc. to easily reach areas critical. Norton likely also verifies signatures in these default fields for the TEMP files.

    Thanks in advance.

    Core i7-975 3.33 GHz, 12 GB of RAM, nVidia GTX280m, Win7 Ultimate64

    Hi Mike,.

    To change the location of the system Temp folder, follow the steps below.

    1. right click on computer and click Properties. In the window that appears with the basic information about your computer

    2. click on settings system advanced on the left panel, resulting in a dialog box click on the Advanced tab one

    3. click on the button marked down from Environment Variables.

    4. you can see listed in the TEMP and TMP variables user (account). It's common place; each different login account is assigned its own temporary location.

    5. in the Variable value box, you can specify the path to the Windows directory and many other programs use for temporary files.

    Remember and repeat this process for the TMP and TEMP.

    You'll need to restart all programs that are running for the new value to take effect. In fact, you will need to restart Windows for it to start to use the new value for its own temporary files.

    To change the location of the Temp Internet folder, follow the steps below.

    Note: That Internet Explorer moves cookies to the new folder and the old folder is deleted. In addition, the following message appears when you try to move the Temporary Internet Files folder:

    Warning: The location of your Temporary Internet Files folder will delete all your subscription data.

    1. Create a new folder to store the files. For example, if you want to store the files in a folder named Ietemp on drive D, create the following folder:

    D:\Ietemp

    For more information on how to create a folder, click Start, click Help, click the Index tab, type the new folderand then double-click the topic "folders."

    1. Start Internet Explorer.
    2. On the Tools menu, click Internet Options.
    3. On the general tab, click settings.
    4. Click move folder.
    5. Click the folder that you created in step 1.
    6. Click OK, click OK, and then click OK again.
    7. Restart your computer

    You can change the location of the temp Internet folder explore; There is no threat to the security of your computer.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can someone please explain to me why the Metro of Windows 8 for the WSJ application contains all THE STORIES?

    Can someone please explain to me why the Metro of Windows 8 for the WSJ application contains all THE STORIES?   I have the WSJ app on my Kindle Fire and he has indeed all the stories that are included in hard print.   And why the hell not the app allows for offline reading?

    Also, why hell isn't there a WSJ application for windows phone 8?   I know there is a WSJ direct application that shows videos, but I want a real WSJ app that shows all items.

    Original title: Wall Street Journal APP

    You would be better served if you asked these questions WSJ that they control if an application exists and is happy.  Hope this helps and if you need another post to help and we will be happy to help you.

    The above opinion is mine and mine nothing and does not necessarily reflect that of Microsoft, it's employees, or any other Member of this forum

    "When we try to take anything by itself, we find it hitched to everything else in the universe."-John Muir

  • How to transfer the Dreamweaver site in another computer?

    Hello! So I worked on Dreamweaver to design a Web site for the school. I need to transfer it to one of the mobile school (which has no Dreamweaver on it) so that I can present it to the class. Now, my question is how can I do this? I need to have the file on a USB (or Google Drive) is possible to transfer the Dreamweaver project on the laptop if it doesn't have Dreamweaver? Or is there some kind of workaround for it? If it helps, I use a desktop computer Windows at the school and my school Macbooks.

    PS I'm a high school student who is new to the Web design and have never used Dreamweaver until last week. Any help is really appreciated.

    If your site does not use scripts on the server side, all you need to do is copy the folder that contains the files of the site on another storage such as a USB key.

    This is no different than files that are created by using other applications such as Word or Excel.

  • Copy the default value from another field in the same page

    Hello

    I need to pass a value from one page to another page and I want to use this key as DEFAULT VALUE for a field.

    If I create a form tabular all it's ok, but if I create a normal page. I am not able to do that.

    1. 1. I call the page and I pass the value. I also have a FIELD of VIEW and I can see the correct value.
    2. 2. I create a field with attributes of this:
      1. a. source > Source = database column type
      2. b. sources > Source value or expression = FK_ID_DA (the column name)
      3. c. default > default = P27_PK_ID_DA (the field that contains the value)
    3. 3. on the screen, I see P27_PK_ID_DA and not the value

    Where is the error?

    Thank you very much

    TexasApexDeveloper wrote:

    You missed one: before the variable, without it, the default value is the string...

    Not sure that you can READ the other pages... Such that if you are on Page 27 and have a field that you want to use on page 30, page 27 is presented and its items in session state, you can 'see' on page 30.

    So, if you set the default value: P27_PK_ID_DA, then you should get by default, you are looking for...

    Only if the default value Type is set on the PL/SQL Expression. If the literal value "P27_PK_ID_DA" is seen then the Type of default value should currently be set static text with Substitutions of State of Session, in which case the value of session state must be referenced using the syntax of substitution string:

    &P27_PK_ID_DA.

  • Cannot send an email "response from the server: Message contains spam...»

    One of my email accounts cannot send an email... And the message came

    "Response from the server: Message contains spam or virus or the sender is blocked: field32_1e2afb1a2cd02.

    It is said to select another off from server...

    I did something wrong, or is there a setting I need to change?

    Thank you

    Yes it has been fixed, thanks

  • How to make a text box appear in a PDF file in InDesign CC when the cursor rolls over another area of text?

    I'm doing a text box appears in a PDF document in InDesign when the cursor of the user hovers over an another textbox, and I want it to disappear when the cursor moves off the coast of the first text box. I tried the following with adjustment of various, and it does everything just for me.

    Display a different button on turnover

    You can create a hotspot in which clicking or mousing over an object contains another object. To do this, create two buttons, hide one of the buttons and use the show/hide button action to show and hide the button target.

    • Create an object to use as the "source" button. In the buttons Panel, click the icon of the object to convert to A button.

    • Place the image you want to use as the button target and convert it to a button.

    • Select the target image and select hidden until this that triggered at the bottom of the Panel buttons.

      The image must be hidden in the exported document that can be displayed when the "source" button is clicked or wriggle on.

    • Click the source button and create two different actions, one for show the image target and target the other to hide the image.

      If you want the image to appear when the mouse is over the button source, use events on Roll Over and On Roll Off. If you want the image to appear when you click on the source button and disappear when you release, use events on a click and release. In both cases, use the show/hide action buttons to show or hide the target button. See the interactive buttons.

    • Use the Preview Panel to test the buttons.

    Should work...  On your last point (not 12?) I get the feeling that you have exported your doc as Adobe PDF (Print)? You must instead use (Interactive) Adobe PDF...

  • Disable or enable the well-founded key another text item value

    Hi all
    I am facing a problem in the development of forms of oracle.

    I have a query to find form containing 2 fields(customer_name_and_customer_number).i have a requirement that SEARCH button the form necessary to activate only if one of the search field contains data.
    I wrote a trigger to VALIDATE POINT during these two fields of research

    It's
    -Customer number
    IF the number of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    -the name of the customer
    IF the name of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    This creates a problem when I entered the data, it works fine but when I remove the data in both the field, after control is transferred to another area of the form, then only find button becomes disable.

    I tried the same thing in the ELEMENT of TEXT MESSAGE, ITEM of TEXT PRE, POST CHANGE trigger.

    I want once the data is completely removed in the second field, at the same time, it must be deactivated.

    Please help me solve the problem

    Thank you and best regards,
    Karthik M

    Published by: 984533 on February 19, 2013 21:32

    Karthik,
    Your code doesn't make sense to me.

    -Customer number
    IF the number of customer_ is not null then
    Set_item_property('query_find.customer_number,Enabled,property_true);
    elsif customer_ number is zero and customer_ name is null
    then
    Set_item_property('query_find.customer_number,Enabled,property_false);
    end if;

    Why you try to set active CUSTOMER_NUMBER if not null? It goes without saying that if the field has a value entered in it, then it is ENABLED. Do you this also with the client_name field. Your field of research must always be activated, unless they are dependent on each other.

    This creates a problem when I entered the data, it works fine but when I remove the data in both the field, after control is transferred to another area of the form, then only find button becomes disable.

    I think that your best option would be to toggle your search button in the trigger a times-news-point-Instance of the block QUERY_FIND. Something like:

    /* Sample When-New-Item-Instance trigger */
    BEGIN
      IF ( :QUERY_FIND.CUSTOMER_NAME IS NULL AND :QUERY_FIND.CUSTOMER_NUMBER IS NULL ) THEN
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', ENABLED, PROPERTY_FALSE);
      ELSE
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', ENABLED, PROPERTY_TRUE);
        Set_Item_Property('QUERY_FIND.SEARCH_BTN', NAVIGABLE, PROPERTY_TRUE);
      END IF;
    END;
    

    Remember that when you select an element that has been disabled, you must set the properties NAVIGABLE, UPDATE_NULL and UPDATABLE true also. In your case, since you let to a button, you etant donne que vous permettez a un bouton, vous aurait have just set the properties ENABLED and NAVIGABLE to TRUE.

    If you need forms to answer while the event happens (as you would like the button to activate as soon as a user begins to type in a field), you must use a 3rd party Java Bean (for example the KeyEvent Java Bean) or develop your own.

    I hope this helps.

    Craig...

  • Cannot open the web page in another tab of the browser in application for the custom shop page

    I have a custom stores html page and an external link (such as < a href = "...) (' > < / a >) in this html page.  Now when I type this external link, it opens the web page in the same container and crush the store custom html page. But I hope that it can open the external page in another tab of the browser in application with the button "close".   As this external link is in mode folio. Please let me know if I could do it. Thank you

    We do not support this with the current v2 API. We will be adding in release 27 support for this.

    Neil

  • To access the backups Time Machine another computer

    I have spent a good hour looking for a solution to this problem, but have developed empty-handed.

    If I understand correctly, backups of access from another Mac time Machine, I need to connect the backup drive to another Mac and select "Browse Other Time Machine disks... "in the Time Machine dock menu and choose the drive.

    The backup drive appeared as expected and I clicked on "Use selected Disk" to enter the time Machine.

    At this point, the computer between what seems to be Time machine, but shows a Finder window to the hard disk of the computer rather than the backup drive and shows not all dates before "today (now)."

    A thread has suggested that I open a Finder window and select 'Computer' in the menu to reach before the opening of time Machine. It did not work.

    Another thread has suggested that I have use the Migration Wizard rather to recover files and folders, I need. This is not ideal, but I tried it anyway, the result being that the Migration Wizard app remained "Looking for source...". "without finding the backup drive.

    Before formatting my drive on the original Mac, I had checked for if ensure that I could access the Time Machine backup while it was plugged into the backup drive (which he successful well).

    I use the latest version of El Capitan 10.11.6 on a MacBook Air (mid 2011). Backup is a MacBook Pro (mid-2010) who ran as El Capitan.

    I would appreciate any other suggestions!

    So, I discovered the solution, which has been in a simpler way that I expected. Before opening, Time Machine, it is necessary to find the sparsebundle Disk Image in the backup disk in the Finder and open it with "DiskImageMounter." Then, you must select "Computer" in the Finder menu reach before choosing the option "Browse Other Time Machine disks... "menu to the dock of time Machine. The first finder window it shows in the Time Machine view still belongs to the computer, but now it shows the previous backups, who are all from the backup drive!

Maybe you are looking for

  • Airport Express does not extend WiFi range

    OK, I posted a long time will cost about an airport older Gen Express not extending my wifi range when implemented to extend (wireless) and connected to a network of Apple (Airport Extreme). No solution, so I gave up. Still frustrated by the lack of

  • app photo problem!

    transfer photos from ipad to mac. everything is good. photos in the photo library. Once I have transferred the library on a drive external hard, in case of an attempt to open it, gives me the following message is displayed. "the library could not be

  • Can I receive messages encrypted without being Setup to send?

    I am a HVAC Distributor and our factory is setting up the emails encrypted for billing. I can't Thunderbird to use certificate information, they sent me. Certificates appear in the certificate file and I have the coded as being approved, but it doesn

  • Lollipop if I am rooted and I have custom recovery?

    So I am really confused, because I am everywhere mixes answers so I thought to post it here. I have this bike G (2013) and she is rooted, have a custom recovery (MCG). No custom ROM. I know I wouldn't update OTA, but I want to know is, I'll be able t

  • Connection is disconnecting remote desktop continues

    Hi team, I am facing a problem with the remote desktop connection is disconnected several times. We are having the same problem with 3-4 machines. Those are all machine have a system of operating windows XP SP3 as updated antivirus. All but a few min