Hide - show the button field

Hello

I display the image one after the other on the screen.

According to indext of image I want to hide show next previous button,

How can I do?

If (current_index == Questions.size () - 1) {}
_btnnext.getManager (). Delete (_btnnext);
                    
} ElseIf (current_index == 0) {}
_btnprevious.getManager (). Delete (_btnprevious);
} else {}
If (! _btnnext.isVisible ()) {}
_hfm. Add (_btnnext);
}
If (! _btnprevious.isVisible ()) {}
_hfm. Add (_btnprevious);
}

}

Currently, I found this solution.

But I think there must be another way and then add and remove from view every time.

Thanks in advance.

bskania.

You can do this using the setEditable method

If (current_index == Questions.size () - 1) {}
_btnnext.setEditable (false);
                    
} ElseIf (current_index == 0) {}
_btnprevious.setEditable (false);
} else {}

btnnext.setEditable (true);
_btnprevious.setEditable (true);

}

Tags: BlackBerry Developers

Similar Questions

  • Hide/show a dynamic field

    Hello

    I'm new to OFA.

    I have a requirement to hide/show a dynamic field based on the operating unit.

    So instead of hard coding UO, I use lookup.

    Now, what I've done, spread the VO and VO query added a new column to validate in relation to research and back 'n' or 'Y '.

    I created a transitional and in VORowImpl attribute. I'm valid against the newly added column VO and assigning the value TRUE or FALSE to the transitional attribute.

    and I'm on SPEL in Customizing the page.

    Now what is happening is when an existing record is asked in the page, the field is hidden/unhinden based on the given condition.

    But when a new record is created, this condition does not work.

    So I guess that the VO don't get initialized when the page is loaded? Is this the reason why the condition is unchecked in VORowImpl?

    My hypothesis is correct?

    How do I get my requirement?

    Pointers would be useful...

    Thank you

    Naren

    Hi AJ,.

    I forgot to update the thread. Reached the requirement.

    Solution,

    Created a transient VO attribute.

    Then in VORowImpl, written the code to set the transient attribute.

    Then using customization, SPELL, set the property to the item.

    It works perfectly.

    Thank you for guiding me to assign to the attribute.

    Kind regards

    Naren

  • How to hide all the empty fields on a page?

    Hello

    I want to hide all the empty fields but to exclude tables as it messes up the table. He hides this empty cell with borders and the table does not look right.

    My script below works currently it hides all the empty fields on this page.

    Is it possible to exclude on the tables?

    Thanks to all in advance.

    function hideFields (myParentObject) { }

    var allChildElements;

    var intNumElements;

    var currentElement;

    var j;

    var temp;

    //Get the parent all child element nodes

    allChildElements = myParentObject.nodes;

    //Total number of items in the object

    intNumElements = allChildElements.length;

    //Loop through all child elements

    for(j=0; j< intNumElements; j++){

    currentElement = allChildElements.item (j);

    //If the element is another subform which we will call the new function recusively

    If(allChildElements.item (j) .className = "subform") { }

    //if (currentElement.layout = "table") {}

    //else{

    //}

    other If(currentElement.className = 'subformSet') { }

    //If the objects are fields, then we'll want to hide their

    other If(currentElement.className = 'field') { }

    //Check to see if the field is a button - don't count buttons

    temp = currentElement.name;

    if (temp.substring(0,6) !== "Button"){

    If (currentElement.rawValue == "" | "") ( currentElement.rawValue == null) { }

    currentElement.presence = 'hidden';

    //Check Jugendherberge exclusion - boxes option

    other If(currentElement.className = 'exclGroup') { }

    / / hide the exclusion group and not the individual radio buttons

    If (currentElement.rawValue = "") { }

    currentElement.presence = 'hidden';

    { } / / end of loop for

    { } / / end function

    Hello

    A table has a class name of the subform, but will have a property of page layout with the value of "table."  If you find one of these, then you sweep that subform.

    But you code seems to have commented, that didn't work for you?

    Concerning

    Bruce

  • Possible to hide / show the slideshow captions?

    Is there a way to hide/show the captions in the slide show? I would like to make something similar to this: http://www.geschewuerfel.com/GalleryMain.asp?GalleryID=117628 & AKey = DSWC4N8C . If you click on one of the images is full screen, then the 'i' button below will reveal the legend.

    Hello

    You can try to use Lightbox composition and then insert balloon in the container box.

    In the ToolTip settings, select stacked position and transition as vertical, it would be a similar effect as you mentioned. Organize the legend, the buttons of navigation in the same area when it should appear as inline.

    Thank you

    Sanjit

  • Tabular presentation - hide/show the Datepicker calendar

    Hello

    I am toggling of a column of date picker in tabular form wizard based on the value of another column in the same row, using javascript. However, I was unable to find a way to hide/show the associated calendar. Can someone tell me how to proceed?

    Thank you!

    Hello

    The structure on a tabular presentation for a date picker article, is more complicated than for a normal input field:

    <td  headers="Hiredate" class="t4data">
      <fieldset class="datepicker" id="f04_0004_fieldset">
        <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f04_0004_holder">
          <tr>
            <td class="datepicker">
              <input type="text" name="f04" size="7" maxlength="2000" value="01/05/1981"  id="f04_0004" />
            </td>
            <td>
              <a  href="javascript:void($p_DatePicker('f04_0004','0','DD/MM/YYYY','#666666','','','','','1981','en-gb','Y','45958','1683565711731582981','05','210'));">
                <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" />
              </a>
            </td>
          </tr>
        </table>
      </fieldset>
    </td>
    

    While access to the input box by referencing its name attribute, it is impossible to the icon. What you need to do is find the input field, go up to the TR that contains, find indicator A in this TR and hide.

    Try something like:

    <script type="text/javascript">
    function disableDatepickers()
    {
     var f1 = document.getElementsByName("f01");
     var f4 = document.getElementsByName("f04");
     var k;
     var r;
     var a;
     for (k = 0; k < f1.length; k++)
     {
      if (parseInt(f1[k].value) < 7800)
      {
       f4[k].disabled = true;
       r = html_CascadeUpTill(f4[k].id,'TR');
       a = r.getElementsByTagName("A")[0];
       a.style.visibility = 'hidden';
      }
     }
    }
    disableDatepickers();
    </script>
    

    In this example, the first column (f01) contains an EMPNO. If this value is < 7800, I find the datepicker and disable it, then find the A tag that is in the same b and hide. Adjust the f01 and f04 accordance with column names and change the IF test to meet your needs.

    Andy

  • Automatically add delays to the ability to hide/show the bar

    I activated the option to hide/show the bar automatically. I would like it when I touch the upper part of the screen with the mouse, the menu bar will appear with some delays (2 seconds for example). First it is possible to configure the delay?

    NO, but you can offer this feature for Apple

    http://www.Apple.com/feedback/

  • Qosmio G30-126 - how to hide/show the top bar?

    How active hide/show the top bar on the upper side desk, but disappeared how can I return it again?

    You want to have some Flash cards on top of the desktop computer?
    This isn't a problem

    In all programs-> Toshiba-> Utilities-> settings for Flash cards, you can activate this option!

    Check it!

  • Is there a way to hide/show the title safe area in Illustrator?

    Is there a way to hide/show the title safe area in Illustrator?

    I know that I can turn on or off by using the options of work plan, but to facilitate the workflow, I wish I could spend it power I can do using the "Cmd:" for guides?

    I know I can show/hide video leaders and I it was mapped as shortcut... but could not find a way to do the same thing with title/action safe?

    Any ideas would be appreciated?

    I am completely new to scripting, so it took a bit of trial and error, but here is one that will turn on and off for all work plans:

    for (i = 0; i

    If (app.activeDocument.artboards [i] .showSafeAreas == true) {}

    app.activeDocument.artboards [i] .showSafeAreas = false

    }

    else {}

    app.activeDocument.artboards [i] .showSafeAreas = true

    }

    }

  • Hide/show the region

    Hello
    I'm trying to change the default behavior to hide/show the region to show, after a few attempts, I got partially work but now does not work by clicking on the icon to enable/disable/hide also changed the icons and added a type = "" but his does not work. " Any help? Thanks and greetings

    You can do so at the level of the model. Copy the skin and see the area to Hide and Show (show) and then modify the model. Essentially 2 thing I've changed are the image of collapse_minus.gif and style ="". My suggestion is to make a copy of the region before making any changes. It works for me in IE, Chrome and FF.







    #TITLE #.
    #CLOSE # PREVIOUS # ##DELETE NEXT ##EDIT ##CHANGE # CREATE # CREATE2 # EXPAND ##COPY # HELP #.
    #BODY #.

  • Hide/show the series (online) and to redraw the map

    I created a box for each lineserie in my linechart and when you click the checkbox I hide/show the on my list.

    myChart.series [5] .visible = myCheckbox5.selected;

    It works fine but I want to redraw the map and this time he doesn't have to calculate the axis according to the values in my series hidden... Someone knows how to do this?

    I tried without success includeInLayout property.

    Found a solution for the exchange of experts, but it was difficult to finish the removal/addition of series from myChart.series and then force a new drawing by resetting myChart.series.

  • Hide/show the Control Panel button

    Hello people!

    I want to show some Boolean buttons on the control panel only if another button Boolean is true - and hide them if the button is set to false.
    Read some posts, but could not understand how it works with the visible property.

    Thanks for your help and greetings from the Germany!

    Right-click on one of your buttons and select Create-> Node-> Visible property.  You now have a way to make this button visible or not.  I recommend that you use a structure of the event and create a case of change of the value of the button control.  Fair value of the visible property of your other buttons according to the value.

  • Hide/show the fields based on textbox

    I wonder if there is a way to hide certain fields based on the question of if a user enters a value in a text box and then reappear if the value in the text box is removed and the field becomes white.

    I have two scenarios where I would this happen

    1. I have a "Non-registered" check box and a text field 'blood pressure '. If the user check mark the box "Not registered", the field of blood pressure is hidden (I managed this already). If the user unclicks the box, the field of blood pressure again (even once, I did already). Otherwise, if the user enters a value in the 'pressure' I would 'Unregistered' area to disappear. I got this as well with this code: (placed in the form of javascript Action, mouse upward, event)

    this.getField("Not_Recorded").display = event.target.value = "Off"? Display.visible: display.hidden;

    I don't know if it's the appropriate script that I use, but he did not hide the field "unregistered". The problem is, I would 'not registered' to hide if a value is entered in the field of blood pressure and reappear if this value is then removed (i.e., the user changes his mind or made a mistake and wants to not click saved instead). I don't know if it's feasible or just way too complicated for me to do.

    2. in the second scenario, I have 2 text fields where the user must enter a value for weight in pounds or kilograms. There is a text box for a value of lbs and a text box for a value in kg. If the user enters a value for books, I'd like to field for kgs be hidden, but still, if they delete this value so that the lbs field becomes empty, I would field for kgs reappear.

    is this feasible or is there another way I might be able to do this?

    For the first, I would not hide the check box for the reason you give. In addition to hide the text field, it must reset it so that any value that the user may have entered is not retained when it is hidden.

    If you really want to show/hide the check box depending on whether there is an entry in the text field, you can use the validation script customized for the text field:

    var f is getField ("unregistered");.

    If (! event.value) {}

    f.Display = display.visible;

    } else {}

    f.Value = "Off";

    f.Display = display.hidden;

    }

    For this script start working, you change the value in the text field.

    For the second problem, what I do, is to have a single text field and two boxes to tick to indicate lbs or kg. If you want to stay with the configuration you have, you can clear the other text field with a custom validation script:

    Script for weight_lbs custom validate field

    If (event.value) getField("weight_kgs").value = "";

    Do the same for the other text field, but change the domain name in the script. This will allow only one field to be filled at the same time and do not bother with the masking.

  • Hide/show the ObjectChoiceField...

    Hello

    I have a screen that has hierarchical menus (ObjectChoiceFields).  For example, category, subcategory, and Type.

    Type of choice will fill a selection of the subcategory.  Same subcategory will be filled based on the selection of the category.  In some case there is no subcategories and Types for certain categories and so on for the subcategories.  In this scenario, OS 5 and above to show the space reserved for the empty ObjectChoiceFields.

    Is it possible to hide when I don't need them and show them only when I need it?

    I really apprecaite your answer.  If the solution is little complex so please give me an example on how to do it because I'm still growing in this area.

    Thank you very much in advance,

    Vincent

    It's actually a pretty common question.

    You can dynamically add and remove fields from managers, and when you do, these managers are re-built-out.

    It means finding a way to determine when you should add and/or remove the category and Type.  You can do this with a FieldChangeListener on the category field, will get called whenever the user switches to another choice in the categories available, you can add and delete (and repopulate) fields then, according to the selected index.

    The next problem is where to 'Add' them.  Normally, you just make one

    . Add ();

    but who's going to the field at the bottom of the Manager.  Another option is

    . Insert (, index);

    That you will get through the fields to the right place.

    How do detect you if the area has indeed been added.  General, I do the following

    Manager m = . getManager().

    If (m == null) {}

    has not been added

    } else {}

    has been added

    }

    I hope that you get.  As stated, this question was asked before, typically on the addition or deletion of checkboxFields.  If you want more search for this.

    Good luck.

  • Show the button with a single click to edit the table only after click

    Hi all

    I love the click to change features in tables in the ADF and have a button in one of the columns I want to only be displayed in the mode (it is only once the user has clicked on a particular line) edition. Currently, all fields appear as read-only and can be changed when the user clicks on a line, but it seems that the button is always visible. I tried a few EL expressions to set the visible property of the button but have not found one that works. Could you help to define an EL or give me a hint on how I could hide the buttons in the table and only then display the row that is clicked and can be changed?

    Thank you

    Jobinesh blogged about this here decompilation binary ADF: made conditional editor components for a table of clickToEdit

    Timo

  • Hide/show text when field null and not null

    I discovered how only display a field in a query using Dreamweaver 8, PHP, and MySQL when the value of the field is zero in showing this:
    http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=12 & catid = 189 & ThreadID = 1005921 & arctab = & highlight_key = y & keyword1 = see the % 20region

    However, how can I put text next to the field data when there are data in the field? Therefore, 1) hide textes_ data when the value in the record field is zero and 2) show text data and when the fields of records is not null.

    I tried to put the text with the echo, but then the text is displayed without the data from the field when the field is null.

    The code I have so far is:
    <? PHP if (! is_null ($row_rsProperties ['US_List_Price'])) {echo $row_rsProperties ['US_List_Price'] ;}? >

    rsProperties is the recordset and US_List_Price is the field

    Thank you!

    dulcey1 wrote:
    > I tried to format the text with the echo, but then the text is displayed
    > without data field when the field is null.
    >
    > The code I have so far is:
    >
    > $row_rsProperties ["US_List_Price"] ;} ?>

    The is_null() function checks a NULL value. I suspect that your
    the fields are empty instead of NULL. Change the code to do this:


    "Text". $row_rsProperties ['US_List_Price'] ;} ?>

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • Safari, Mail, Web links on iOS 9.3 do not work

    AfterUpdate 9.3 on my iPhone iOS 5 I can no longer click on the Google search links more. I try with Bing.com but do not work The same question in levant e-mail when you try to open the hyperlinks I resolved to see the links as follows: Search the si

  • HP Deskjet 5150 driver Windows 7

    I have the HP Deskjet 5150 printer. I did a fresh install of Windows 7 32 bit and I noticed that even if I didn't install the driver included with the CD for the printer (which I doubt would work on Windows 7 in any case), it seems that Windows 7 is

  • Setting up a network bridge

    I use the PCI Linksys wireless G network card. For wireless Internet surfing. Wmp54gs is the model number, that I have the card installed and it connects to my router wireless very well and I am able to surf the net. I am configuring a connection Bri

  • "Busy" signal for blackBerry Smartphones

    When I'm already busy during a conversation and I received a new call, I hear a beep and see the next call to new but my BB does not send a "busy" signal to the new who is calling me. Instead, BB seems to be free. What I have to change in the setting

  • Total number of concurrent VPN connections.

    Hey guys,. Is it possible to display or not even connect to the total number of simultaneous in one month vpn connection? THX