Hide fields in blackberry

Hi, I want to hide certain areas such as :-labelfield TextField, ButtonField, etc. on the button click.

For example: button1 and button2 are present in the base class and after pressing button1, the control moves to next screeen where there are such fields as textfield & indicators button I want to hide, and in the same way when you press button2 on the other fields must be visible and only a few buttons should be hidden...

«I tried these already...»
---------------------------------------------------------------------------------
-((TextField) name) .getManager () .delete (datetimefield);
-((ButtonField) selectfromMap) .selectionDelete ();
-selectfromMap.setEditable (false);
----------------------------------------------------------------------------------"

(1) ((TextField) name) .getManager () .delete (datetimefield);

If you want to remove datetimefield, then the correct code would be:

datetimefield.getManager () .delete (datetimefield);

(2 point ButtonField) selectfromMap) .selectionDelete ();

SelectionDelete is intended to be used for the text field where the user has selected a section of the text.  According to the documentation:

"By default, this method does nothing; custom fields that support delete operations must override this method.

ButtonField does not implement this.  On the other hand, does ActiveAutoTextEditField.

(3) selectfromMap.setEditable (false);

The documentation says:
«This method allows you to change the style of this field by adding or removing, the style of Field.EDITABLE.»

So you can do the non editable field, and he look and behave differently, but not remove it.

In summary, deletion is the only option that works, I suggest that the reason that he did not work for you, it's that you were not selecting the field properly Manager.

Edit:

I've seen your last post when I added above.

In this case, I suggest you create a handler that is added in the correct position, which, by default, does not contain field.  When the user clicks the appropriate button, add the fields you want to this Manager.  When the fields should be deleted, use the Manager deleteAll() method to remove all the fields you do not want to display.  This should work for you.

Tags: BlackBerry Developers

Similar Questions

  • Show/hide fields based on T/F control - only showing or hiding, not both.

    Hi Forum,

    I'm looking to show/hide fields address based on a T/F control (or a single entry check box).

    My online form has a number of business address fields, a T/F control and a number of postal address fields. I want the mailing address fields to hidden when a user clicks on the box 'As Above' (and demonstrated once again if they click this box once more).

    I used the sample code (https://docs.oracle.com/cloud/latest/process_gs/CPRCW/GUID-F3BD3386-F333-45C6-AA56-C77136D169E5.htm) as a starting point for my Web form rule and it works as expected the first time that a user clicks area T/F (i.e. He's hiding the post fields) but it does not work the second time they until it clicks (where I assumed that fields would still be visible).

    The T/F box has the following options:

    true = as above

    false = No

    And my web rule looks like this:

    If (AsAbove.value = true) {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }


    I tried the same thing (with similar results) using a Checkbox control with a single option (according to the example code)

    If (PostalAddressCheckbox [0] .value == 'As Above') {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    As verified does not seem to be supported, is there another way to accomplish what I'm after, or I missed something somewhere simple (and y at - it documentation on the T/F control)?

    See you soon,.

    James.

    Hello

    Web Forms address these true-false as the boxes and, as such, in the form of tables.

    You can see if you try to print the TrueFalse value. You should get something like java object lang @XXXXXX

    Try to put the code as follows (in bold and underlined):

    If (AsAbove[0].value = true """""") {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    This should do the trick

    See you soon

    José

  • Hide fields

    Is there a way to hide fields in the jhs Application based on the following EL Expression definition: #{securityContext.userInRole ['roleList']}? The problem is that, if you do in pages, you need to update multiple and will be walking on it when you have the application regerate. Would be nice if you could push this check in the model.

    Of course, you can just type in this expression the form display, display in the Table or display in properties of Table Overflow.

    Steven Davelaar,
    Jheadstart team.

  • Clear field Q10 blackBerry feature

    We all do begin to type something and then decide to delete the entire paragraph, especially when you write an email. I am disappointed not being able to just click on the menu and select clear field or copy and paste. These features still benefit when texting and I have just the failed or have they got rid of it all together?

    Hello kp0130,

    Welcome to the BlackBerry support community.

    Thank you for your question about select all text in a message on your smartphone BlackBerry Q10.

    You can do it by holding your finger on a word until it appears highlighted, then a second time touch, touch the menu action, if it does not automatically appear (3 points on the bottom right) and select everything in the upper part of the menu. You can then press BACKSPACE to delete any highlighted text.

    Let us know if that helps.

  • The Menu options of displacement / to hide/change of blackBerry Smartphones

    Everyone figured out how to move menu items or hide them etc yet?

    You want to make one of the 6 main options before going to the full menu of selections and can't figure out how to spend some to... also want to put things like Visual VM as an icon that is not two or three clicks deep in the SMS messages download folder...

    I am an avid blackberry user and have had one for years, but I had been on the 8703e years so I don't know if there is a way from the desktop computer to do this, or what the new shortcut key would be for that... certainly not as my old phone

    When you press the Menu > move, you might have also noticed the function "Move to folder" adjacent to the "Move" command

    So, same thing: highlight > Menu > move to folder, and then choose in which will place you.

  • You can hide fields when editing?

    I am trying to create an interactive piping Schematic of a customer. Rollover buttons using Acrobat to display the info has been incredibly helpful. I used simply form text fields or the picture. I'm sure that is not their intended use, but it serves my purposes.

    However, due to the size of the scheme, I had to overlap several of my fields and it became simply impassable.

    Q1.png

    Q2.png

    Is there a way to hide a part of the fields when editing so it will make it easier to place others? If not, is there some kind of option to overlay or script that I can use?

    I will eventually have to add images more than the latter. Acrobat is perhaps not the way forward. Otherwise, any other suggestions?

    Thanks in advance.

    No, you can't hide a part of fields while working on others, and no, you cannot set the order of the fields.

    It is good to use fields to display text and images, but you're pushing it a little. I suggest that you look into the use of layers instead. You can then show/hide layers by using the buttons and it will be much easier to work with. I hope that the application used to generate this file can do this. If not, then you better to import the file in Illustrator or Photoshop (depending on the type of image you have), add the layers and then export it to PDF and then set up the buttons.

  • Show/hide fields based on the user's selection

    I know little of Javascript, but my first attempts to integrate it in Acrobat are bothersome. I have created a simple form where the user via a check box the number of people that he or she must register, then the form shows that several fields to complete. I tried to make it work with a single field, before I add more.

    In this example, I'm trying just to get the second hidden registered field if the user checks only 1 person to register. (I already know that I have issues when it comes to hide several fields).

    If (event.target.value == "0") {}

    this.getField("Registrant2").display = display.hide;

    }

    Given that I do not know what is the value of exports, try this:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    }

    You can add an else clause so that the field is displayed when the check box is not selected:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    } else {}

    this.getField("Registrant2").display = display.visible;

    }

    If this does ' t work, you don't maybe not the correct domain name. Verify that the console (Ctrl + J) to see all JavaScript errors are reported.

  • How can I have 7 txt calculate and/or show/hide fields?

    I have 7 fields txt. As follows, ST1, ST2, ST3... ST7. With 1 TotalST field for all areas 'ST' (that calculates totals fields). Is what I want to do, when the ST fields are not met, then the TotalST field would be hidden. When one or all the fields St are filled the TotalST field would be visible, but also calculates the fields of ST. Then the TotalSt would hide if I delete the entry of all fields of ST.

    At the moment, I have the calculation works fine (fairly simple) by using the simplified window. But, in my opinion, it takes a javascript that will have to be placed in the window of custom calculation. So, can someone provide a script that would do what I hope to do? Thank you.

    Sure. Use this code instead of the one above:

    Event.Target.Display = (event.value == 0)? Display.Hidden: display.visible;

  • How to hide fields according to their name (by using a loop)?

    I have a form that will require several fields to hide when the user first loads the form. I would like to automate that with a JavaScript loop where if the value of the object name starts with 'hidden' his presence 'Hidden '.

    I found the script below in the ES4 LiveCycle documentation, but it does nothing. No error was reported in the JS console. In which case the loop must be added to? The form parent? The syntax is correct for what I want to achieve?

    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    
        var oFields = xfa.layout.pageContent(nPageCount, "field");
        var nNodesLength = oFields.length;
    
        for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
            if (oFields.item(nNodeCount).name.substring(0,3) == "hid") {
                oFields.item(nNodeCount).name.presence = "hidden"
            }
        }
    }
    

    Thank you!

    Hello

    On line 8, you need to delete the name of '. ', the presence is a property of the field, not the name. Then;

    oFields.item (nNodeCount) .its presence = "hidden".

    You can place this code in the subforms docReady event of the page, or perhaps it would be better in a macro, so that the fields are hidden at design time?

    Concerning

    Bruce

  • Please help guys - hide fields based on the menu drop-down - javascript - output (adobe livecycle)

    I'm trying to hide certain fields in a form that is based on any value selected from a drop down menu, as shown in the image below. My main dropdown has values such as $25, $50 $ 75 and based on what value is selected, I want to hide two text field and date field, I created. Also when you select a value of $1000 I want to hide the ' field Manager ($ 25 - $ 100).

    hidefields.jpg

    That's how I would solve the problem. Note that the numbers used in the comparisons are links in the drop down menu.

    I don't know if it solves your problem exactly, but he should at least get you on the right track.

  • Hide fields added by program

    Hello

    AR, ARIHOMEPAGE - there is an area on the right side of the Page with new information, FAQ, policies. My requirement is to hide this region.
    I found a note in metalink for this: 396723.1-, but only until the 11.5.10.3

    We are on 11.5.10.7RUP and this region was created programmatically to CO.
    In CO, while creating web beans, ids are not defined. and so an extension, it's not possible to get managers for these items.

    OACellFormatBean oacellformatbean7 is createWebBean (OACellFormatBean) (oapagecontext, "CELL_FORMAT", null, null);.
    oacellformatbean7.setVAlign ("Top");
    oacellformatbean7.setStyleClass ("OraBGAccentLight");
    oarowlayoutbean.addIndexedChild (oacellformatbean7);
    OARawTextBean oarawtextbean is createWebBean (OARawTextBean) (oapagecontext, "RAW_TEXT", null, null);.

    oarowlayoutbean is created also by program with no id.

    Please let me know how to hide these fields. Thank you!

    Not recommended, but if you have no other choice, then you can follow below aproach.

    Create a custom controller by copying all the seeded controller code and make changes to meet your requirement.
    Apply to this controller of customization.

    Kind regards
    RAM

  • Show/hide field on all pages problem

    I try to use a script to show/hide document level menu (via a drop-down list) field on a 6 page document.

    If my domain is named "P1.field" on page 1, P2.field on page 2... How can etc, I do for States to field by doing the same?

    Right now my state of field changes on page 1 only.

    Just do it to all fields... Either in a loop or one by one. You can use something like this, for example:

    for (var i = 1; i)<=6;>

    this.getField("P"+i+".field").display = display.hidden;

  • Hide fields null except when calculated to show 0% - LiveCycle ES3

    I have a form that I'm working on what made a calculation regarding loans. He will take the monthly salary of the user entered and debt not guaranteed to produce a %. Well, I currently have to appear as white until the two fields are not zero. If I the area not secure with a 0 it will not calculate the calculation at all leaving the field blank. I need it to appear like a 0% if the total unsecured is actually $0. EXAMPLE:

    Capture.JPG

    As you can see on the right side, I have 2 different calculations running for a main borrower and co-signer. Under Total Conn$ the first is 12,000 and the second is $ 0. Under the % Conn to Inc., it shows then 13% and then white. I need the field empty to fill a 0%.

    Currently, it is what my script looks like in this area.

    If

    (AINC1 <> and AINC1.isNull == 0 0) then

    ;

    And leave it empty and allow Zero boxes are checked under models... in the object tab.

    THANKS FOR YOUR HELP!

    UH...

    the bosses where just the examples to explain, what they can be used for.

    If you that your field empty to display 0% then use the display model null {' 0% '}.

    The quoted string and then will appear in the field, if the value actually feels the value zero.

    To hide the 0% when you print the form you need to script.

    In the case of pre-printing enter the script

    $.format.picture.value = ""
    

    and in the postPrint event

    $.format.picture.value = "null{'0 %'}|zero{'0 %'}|num{zz9 '%'}"
    
  • hide fields based on the value

    I have a script that I use to hide and show some areas according to what is entered in a certain area. The script looks like this:

    T1 var = this.getField ("text1");
    var t2 = this.getField ("text2");

    T1. Hidden = true;
    T2. Hidden = true;

    If (event.value > = "501")
    {
    event.willCommit = true;
    {
    T1. Hidden = false;
    }
    }
    If (event.value < = "500")
    {
    event.willCommit = true;
    {
    T2. Hidden = false;
    }
    }

    The problem I have is that he is seeking only the first 3 digits which is put on the ground. So, if I type in "3000", it reads like 300 and text1 appears instead of Text2. If I put in "6000", it shows the right field because it is read only 600. Is there another way I can write the script to make it work properly? Thank you in advance for your help!

    3 problems:

    1. the willCommit property is read-only. You can assign a value to it. You must remove these statements.

    2. you have inserted the numbers inside quotes, which turns them into channels and you cannot use them in mathematical comparisons. Remove the quotes and it should work.

    3. do not use the hidden property, it is not recommended. Use the display property.

  • show/hide fields with percentages

    I'm trying to find a script to show/hide a field as a percentage that is located in one of the fields. The script that I usually use to base numbers is:

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");

    R1. Hidden = true;
    R2. Hidden = true;

    If (event.value < = "100")
    {
    event.willCommit = true;
    {

    R1. Hidden = false;
    }
    }

    If (event.value > = "101")

    {

    event.willCommit = true;

    {

    R2. Hidden = false;

    }

    }

    So I need basically the same thing again but I need to be field appears if "38.00%" or above is entered. If anything lower then it is entered, I need 2 field is displayed... I can't make it work once the decimals are here.

    Thank you in advance for your help!

    The percentage format is just for display and rounds the value of the current field, the value of the actual field is the decimal number created by the division or entered by the user.

    100% is entered as 1.00 but if the result of a calculation, it could be 99, 5 - 1.4. If you want to compare the calculated value, you may need to round the value of the fields for the same number of decimal places that display area. You should be aware that using the Math.round of JavaScript method may cause an error with numbers rounding floating-point. You can use the util.printf method in Acrobat JavaScript to properly round a field value.

    I also wouldn't quotes on numeric constants.

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");
    R1. Hidden = true;
    R2. Hidden = true;

    If (util.printf ("% 1 .2f", event.value))<= 1.00)="">
    R1. Hidden = false;
    }

    If (util.printf ("% 1 .2f", event.value) > = 1.01) {}
    R2. Hidden = false;
    }

Maybe you are looking for