Selection of a pill since JavaScript button element

I have developed an application using the brilliant bbUI.js library, in this particular application, I used a control for the first time, the Button control on the pill. One of the things I need to do on this app is defined dynamically the element selected, just as I do with the. setSelectedItem() drop-down control, but there is nothing in the documentation detailing how to the buttons of the pill. Any ideas?

If you talk about smartphones, there isn't a way to do it... for the moment, but it's in the BBUI roadmap.

You can, however, manually change all attributes... or think of a better option

Tags: BlackBerry Developers

Similar Questions

  • Button element to open a pop up window but not make a shipment

    Hello

    I want to open a popup using a button located next to an item. I don't want a shipment to occur.
    I followed the instructions given in want the button element to call the window and the popup is displayed correctly.
    However, it is also a shipment.
    How do I prevent present it when this button is pressed?

    I copied models button, called "Javascript button" and changed its code to:

    #LABEL#

    TO:

    #LABEL#

    where "AAAAA" is "javascript: #BUTTON_ATTRIBUTES #" (the tag didn't work so I had to describe it in this way).

    I then put the script I want to run the application in the attributes of the button and the fact no matter what. It's not very elegant, but it does not work.

  • JavaScript, button help/invisible/div/radio/subradiobutton

    JavaScript, button help/invisible/div/radio/subradiobutton

    Does anyone know how to create the radio 2 button and where the second box option have a sub option button when it is clicked or selected.

    The default value will be the first main option button

    Then, when you click on the second option button and then the 2 arises for selection of void

    Thank you
    In advance

    Yes cud u put the javascript code in the page itself.

    I've include the html for your rerference file example

    Kind regards
    AKEL

  • Is there a way to select an area of some of the elements of a csv file and read in LabVIEW?

    Hello everyone, I was wondering if there was a way to select only a certain "box" of the elements of a .csv file in LabVIEW? I have LabVIEW 2011 and my main goal is to take two tables and graphs against each other. I can import the .csv perfectly and separate each line and each column to be his own, but I have a 8 X 8 but want graphic in the middle of 4 X 5 or something like that. Is it possible to extract a table without starting at the beginning and end in the end? Thank you in advance.

    Hi Szklanam,

    as a CSV file is a TXT file with a different suffix, you can read a number of lines in this file. For example, you can limit the number of rows in your table of resultung. To limit the number of columns, you must always use an ArraySubset, so maybe it is much easier to read the complete CSV file and select interesting places with ArraySubset...

  • Shortcut to select the bounding box / wired / transform button in the effect control window?

    Is it possible to program a key on the keyboard shortcut to select automatically the framework encompassing / wired / transform button in the effect control window?

    This one:

    Screen Shot 2016-04-07 at 12.28.44.png

    You can double-click on the images in the program monitor, assuming that your playhead is parked on the element that is appropriate in the Assembly.

  • Determine the name of a Javascript Button icon file?


    Hello

    Some time before, I created some buttons in JavaScript and then specified the names of files for their icons.  Now, when I go back to the properties of the button for these buttons dialog box, specifically the Options tab, it doesn't tell me the names of the files that I specified originally for the icons.  The 'Label' field is empty.  It would be really useful if the ' Label: ' field would specify, by default, the file name of the CURRENT icon associated with the button I look.

    The button Properties dialog box is displayed a very small image of the icon in the "icon:" box, but this image is not enough for me to understand the name of the original file of the icon.

    If I click on "select icon...". ", it seems to show the last file icon I selected (which is of no help), not the file name of the icon which I am looking at properties.

    Is there some way look at the properties of a button and determine what the icon file was associated with the key?  Once again, the small picture in the "icon:" box is of no help.

    Thanks for your help with this issue.


    Dave

    The file name is not stored in the PDF file, only the icon.

  • put a page (textbox and button) element within an HTML region

    Hi all
    Im working with apex 4.1 on 11g EE database.

    Sorry if this is an easy question.

    I want to change the appearance of the login page, so I an area of html with the html code I need, but login username, password and top button is outside the area of html, I need to have in my design.

    How can I do?
    I can't find the code.

    Thank you.

    I'm not really sure what you mean. The buttons are "outside" of the region, I could see. Some of the options for the buttons are "above the region" and "below the region". However, how you could have 'outside' of the region HTML elements is not sensible unless they have not actually responsible for this region.

    If you need buttons in among the elements of the region (which is the creation of the 'standard' login button) when you create the button, you must select the option 'create a button displayed between the elements. in this region"when the button is created.

  • Custom JavaScript button close

    I have problems with a javascript custom button during export both swf and html 5 with the AICC LMS settings.

    When just using html5 out the button works fine, here is the content of the script window:

    Window.Open (","_self",");

    Window.Close ();

    The first line was added because Firefox keeps closing window unless it was opened with the window.open() method.

    However, even with the patch, output swf also selected in the publication settings window closes at all.

    I was wondering if maybe because the index.html file in the output of the AICC, is choosing the html5 or the swf through the line - newFrame.src = "index_AICC.html"; "" That the fact that it opens in a frame somehow the javascript is not able to close the top of the window? I played with all the settings in Captivate Javascript the extent of change of the target to top window, parent, Gites, etc without success.

    Any suggestions on the contribution of a push to close the custom window that works in html5 and flash, while using AICC?

    You might be interested in the link below:

    Click here to see

    See you soon... Rick

  • Call javascript button, but no submission page

    Apex 4.0.2.00.07

    I have a simple page with a map of 'The Oracle cards' in a Div. I have two areas of text for a button and the Longitude and Latitude. When the user enters the Latitude and Longitude, I want the zoom of the map to this location via a javascript call:
    javaScript:setMapCenter(<Latitude>,<Longitude>);
    I don't want to submit and reload the entire page. When the button is clicked, I just want to call that javascript and pass the value in two text boxes.

    So for starters, I have edited the branch for the button, left the default branch Point ' on submit: after...» ", set the target Type of URL and the target of the URL value javaScript:setMapCenter (60,60);
    I've hardcoded the values for now, the next step is to read the values in the text boxes. If all goes well with something like:
    javaScript:setCenter(#P3_Latitude#,#P3_Longitude#);
    When I run this page, nothing seems to happen. I have check the console javascript from Chrome and I get:
    POST http://localhost:8090/apex/wwv_flow.accept undefined (undefined)

    To simplify, I changed the target URL for
    javaScript:alert("Test");
    and always get the same.

    Then I tried to add a displayed item only with pre text element:
    <input type="button" value="Test" id="P3_Test_Button" onClick="alert('Test');" />
    Now to the help I can get to display the message box, but I have no idea how to access the contents of two text boxes.

    Any idea on how I can do?

    Thank you
    John

    John O'Toole (Reggie) wrote:
    I use EPG, so it doesn't seem to be a problem.

    Hmmm, I'm not sure then. You might like to try in firefox with firebug (by opening the console to see this error message is issued) to see if you get a different/more significant error - sometimes for me, a product more useful error on the other (i.e. firebug vs chrome).

    APEX 3.2 creating a button, there is an option to set the Action "Redirect URL without submitting the page. I think that's what I need here. Y at - it an equivalent in 4.0?

    No, it's the same in the 4 apex. Well, actually, it's "Redirect URL" - I tested to make sure a simple:

    javascript:alert('test')
    

    And it works as expected.

    I tried, but I can still access the text content of the box of my javascript.
    that is for my button hand rolled show only items I have:

    Oh sorry, I have been thinking clearly when I suggested that. I was thinking about values being available at run time. So, Yes, you need to get the value of the item when you click the button that you can use document.getElementById... operate as you demonstrated above. Alternatively, you would simply use a supplied apex function: $v ('Px_ITEM') where px_item is the element you wan to get the value of. i.e.

    setCenter($v('P3_X'), $v('P3_Y'))
    
  • Need help with JavaScript button to save as an event.

    Hello

    I use Adobe Acrobat X Pro and am totally new to scripting of forms in Adobe (completely new to Adobe Acrobat as well!).  There is a backup on a form button that opens the Save dialog box under using a trigger (the mouse upward) and action (execute a menu item - file > save under... > PDF...) and it works fine, however, I want to now use javascript to change the behavior of the button so that it uses a trigger (the mouse upward) and action (run a JavaScript script) , and I want that JavaScript to combine the text values in two form fields (a location drop down and a date text field) and use this string concateneated + ".pdf" as the file name when he opens the Save as dialog box.  Make sense?

    This is what I added to the button as a JavaScript so far I use a test at this time string ("NewFile.pdf") and add the string that is concatenated to the script after that I know that the script works as it should.

    var NouveauNomFichier = "NewFile.pdf";

    var pathArray = this.path.split("/"); "

    pathArray.pop ();

    pathArray.push (newFileName);

    this.saveAs(pathArray.join("/")); "

    Up to present two questions:

    1. when I click the button nothing happens, no dialog Save as or whatever it is.

    2 when I check the properties of the button depending on the Actions tab shows property to select Action "Performing a menu item", even if I chose previously 'run a JavaScript '.

    Thanks for any help!

    The saveAs method will not work if the code is placed in a key event. It would need to be in a JavaScript file to the folder level, inside a function of confidence, inside a block of app.beginPriv/app.endPriv. Each user must have the JavaScript file to the folder level. The button can then call the code in the file. It will be possible for users of the form?

  • last box gets automatically selected on the click of a button page

    Hello

    I tried many solutions - removal of the last box then recreate it again, but it's always the same problem.

    I have 2 messageRadioButtons:
    SupplierRB
    CustomerRB

    Both under SupplierCustomerRGP and of course has been set by the group name property element I also booted it in processRequest as follows:
    OAMessageRadioButtonBean SupplierRB = (OAMessageRadioButtonBean) webBean.findChildRecursive ("SupplierRB");
    SupplierRB.setName ("SupplierCustomerRGP");
    SupplierRB.setValue ("Supplier");
    OAMessageRadioButtonBean CustomerRB = (OAMessageRadioButtonBean) webBean.findChildRecursive ("CustomerRB");
    CustomerRB.setName ("SupplierCustomerRGP");
    CustomerRB.setValue ("Customer");
    However, when I try to choose the supplier (works great!) and then click on my button create (which has not not any code in there), the page will automatically have the selected customer radio button.

    It is to consume a lot of my time, when it must have been completed.

    Help, please.

    N

    Try to create two temporary variables in VO and attach it to your radio buttons and then check.

    Thank you
    AJ

  • Need help to select lists in cascade and Update button in IR

    Hello

    I try to use cascading Select lists in a form that is called when the button update (see photo) is pressed in an IR problems I encounter are 2:

    1. during execution of the first of the form (that is to say by pressing the update or create in IR), the first Select list values but the 2nd is empty. If I change the value of the
    Select the first list then 2nd fills with the correct values, etc. I want the two 1st AND 2nd list to fill in the entry on the form.

    2. in addition, while pressing the button update, the 2nd list select do not seem to have the correct value selected, that is, the value that is actually in the database (IE in the)
    database file), but always the 1st available in the select list 2. The value of the select list 1 is always that of the recording.

    Any help will be appreciated. The following information:

    Table mapping: (form updates this table)
    ID
    Iface_protocol_id = > (list 1): Table: iface_protocols
    Iface_protcol_categ_id = > (2nd list): Table: iface_protocol_categ, a FK to iface_protocols the iface_protocol_id
    .....


    Application process involved
    DECLARE
    l_counter NUMBER;
    l_o_name VARCHAR2 (2000);
    BEGIN
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");

    FOR rec IN (SELECT "IFACE_PROTOCOL_CATEG". "" IFACE_PROTOCOL_ID ".
    as "IFACE_PROTOCOL_ID."
    'IFACE_PROTOCOL_CATEG '. "' DESCR_LOCAL ' as 'NAME',
    'IFACE_PROTOCOL_CATEG '. ' ' ID ' as the 'ID '.
    OF 'IFACE_PROTOCOL_CATEG' 'IFACE_PROTOCOL_CATEG '.
    WHERE 'IFACE_PROTOCOL_CATEG '. "" IFACE_PROTOCOL_ID ".
    =: F108_TEMPORARY_ITEM1)
    LOOP
    HTP. PRN ("< option value ="' | rec.id |) '">' || Rec.Name
    || ("< / option >");
    END LOOP;

    HTP. PRN ("</select > '");
    END;


    HTML Source code in the corresponding form region
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_AJAX_SELECT_XML (pThis, pSelect) {}
    var l_Return = null;
    var l_Select = $x (pSelect);
    get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is Interface_Protocol_Categories', 0);
    Get.Add ('F108_TEMPORARY_ITEM1', pThis.value);
    gReturn = get.get ('XML');
    If (gReturn & & l_Select) {}
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for (var i = 0; i < l_Count; i ++) {}
    var l_Opt_Xml = gReturn.getElementsByTagName ("option");
    appendToSelect (l_Select, l_Opt_Xml.getAttribute ('value'), l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }


    function appendToSelect (pSelect, pValue, pContent) {}
    var l_Opt = document.createElement ("option");
    l_Opt.value = pValue;
    {if (document. All)}
    pSelect.options.add (l_Opt);
    l_Opt.innerText = pContent;
    } else {}
    l_Opt.appendChild (document.createTextNode (pContent));
    pSelect.appendChild (l_Opt);
    }

    }

    < /script >


    Attributes of the HTML Form on the first list form field
    OnChange = "get_AJAX_SELECT_XML (This, 'P63_IFACE_PROTOCOL_CATEG_ID')" "



    TIA

    Ok. Now remove the javascript code that has been added in the footer.
    Change the LOV query for the 2nd item in list be

    SELECT descr_local descr_local, id of
    OF IFACE_PROTOCOL_CATEG
    WHERE iface_protocol_id =: P63_IFACE_PROTOCOL_ID

    Set the Source used for this item "Always, replacing any existing value...". »

    Varadl

  • How to programmatically set the option button selected on a group of radio buttons

    Hello, I have another question for you.

    How can I set an option specifically button selected programmatically on a group of Radio buttons? I think it's very simple, but I can't find a solution.

    Thank you in advance.

    You can use the SetActiveCtrl function

  • No download in order 14 button elements + first Elements 14

    Following the instructions, I unfolded my order for 14 elements + first Elements 14. It would have taken a download button, but there is not.

    Does anyone know how to fix this?

    You can download at the bottom of the link:

    Download Photoshop Elements | 10, 12, 14, 11, 13

  • How to make a Javascript embedded element (embedded MS Excel chart) updates automatically so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that contains an embedded chart in MS Excel. I would like to table automatically update (refresh) to illustrate direct information viewers without having to refresh the entire page. I found that there is a way to activate this via Excel, but with my current subscription can not access this feature. I hope there is a way to do this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a button "Refresh" which refreshes only the embedded section (Excel table) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded worksheet is truly integrated using HTML rather than javascript.

Maybe you are looking for