Enter multiline bbUI

Is there any way to get a multiline entry in bbui? I just found the textarea component, but it doesn't look like bb10

Currently no, there is an open problem (https://github.com/blackberry/bbUI.js/issues/124) for the text box formatting, but it has not been worked on yet.

BCR.

Tags: BlackBerry Developers

Similar Questions

  • Entry to the workflow multiline string

    I'm working on integration with FortiManager via SOAP plugin vCO 5.1. One of my steps will be to install/run a script from several line like this:

    # Set FortiAnalyzer
    config log fortianalyzer setting
    set status enable
    set server xxx.xxx.xxx.xxx
    set localid FGT60Dxxxxxxx
    set upload-option realtime
    set reliable enable
    end
    

    Ideally, the workflow would be take in a block of text, assign to a variable, then who has inserted properly in the SOAP call.

    Is it feasible or possible?

    Of course, simply choose "Enter multiline text" for the input string to get several lines

  • multi level cells

    Hi, is it possible to have the text on several levels in the same cell in a table? In excel I press ALT + ENTER to allow a 2nd line. I don't want 2 separate cells.

    Thank you

    Yes - right click on the table and select "enter multiline".

    Urgent return then takes you on a new line in the same cell.

    Ian

  • Entry without textarea multi-line

    Hello
    I'm looking for fields to enter multiline without the use of the h:textarea tags. Could someone please help?

    You can use the line to specify the number of rows you want to display in the inputText
    http://jdevadf.Oracle.com/ADF-richclient-demo/docs/tagdoc/af_inputText.html

  • Enter the text in the TextBox multiline and new lines

    Hi guys,.

    I have a form that accepts an input of users and records in an access database.

    The data are in turn attracted a recordset and displayed on an ASP using VBS.

    The form takes the info has 1 multiline textbox and I want it to be a simple input box except when the user adds a line break by pressing back I want to be taken into account when the recording is attracted on the detais page...

    Earlier no matter how many times I hit return key when you type in the multi line text box and add paragraphs or simple sentances that all come out no line breaks in page when shown?

    What I have to do my own text rich editor? or is there something Im missing?
    Thanks in advance for any thoughts.
    Tag

    Tag2007, try using the Replace function:

    Replace (your_string, Chr (13) ")
    ")

    David Powers wrote:
    > Tag2007 wrote:
    > Thanks Im on the site now and don't see the version lite? Do you have
    > link to it please...
    >
    > InterAKT was acquired by Adobe in September and most of its products
    > have been abandoned. The full version of KTML is now part of the
    > Kollection suite.
    >
    > The solution to your problem is very simple, however. I'm sorry I can't
    > gives you the exact coding, because I did not use ASP for many years.
    > However, all you need to do is create a function that looks for a
    > strings for the new line of characters and replaces them with
    (or

    (> for XHTML).
    >
    > PHP has built-in (nl2br()) to do so, but in ASP, you will need to
    > Search new character code.
    >

  • BB10 WebWorks Debug Error - Please enter a valid application id

    Need help to solve a WebWorks BB10 issue when debugging.

    Packaging error question

    The command line, I ran the command standard packing

    bbwp [location of project].zip -d -o [locationofoutput]
    

    Resulting in:

    [INFO]       Populating application source
    [INFO]       Parsing config.xml
    [INFO]       Error: Please enter a valid application id
    

    Here is my file config.xml, I'm actually building the sample bbUI.js

    
    http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.2">
      App name
      A sample description
      My Name
      
      
      
        
      
      
      http://chart.apis.google.com" subdomains="true" />
      
      
      
      
      
      
      
      
    
    

    issue of token bbwp. Properties & debug
     

    Also... I know in the previous SDK WebWorks, you edit bbwp.properties and add a line pointing to the location of your debugging token.

    Question:

    • Where is the bbwp.properties file in the new SDK? Where can I specify my symbolic debug location?

    Thank you!

    Hello

    The id is an alphanumeric property of the principal element of the .  It cannot contain spaces or

    
    http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.2" id="yourIDhere">
    

    You don't need to edit the bbwp.properties file.  The Debug documentation token specifies where to put the debugging token file.  To enable debugging symbolic support, simply build your application with the d flag.

    Hope that helps!

  • Problem with BBUI / Web database / asychronous timing: untreated by BBUI.js query in HTML format

    I think I solved most of my problems with getting my data to be used in various functions, etc... but the problem now (which may have been the problem basic all along) is related to the asynchronous nature of the treatment of Web database.

    I get my markup returned as a

    with all the 'data-bb-type' attributes etc, but based on the statements of 'alert' I sprinkled throughout my code, database results are processed after the 'onscreenready' event is over and "ondomready" began.

    I know that if you generate markup for use with BBUI.js, he must enter the screen "" before the screen "" is passed to BBUI.js BBUI can do everything it's the stuff of fantasy for her.

    I tried to make sense, but it escapes me. Maybe someone could point me in the right direction for a good tutorial that explains clearly what is happening behind the scenes, and then I guess I'll have to rip my code share and put back... or at least call functions in a different way or from a different location or use the callbacks more liberally (I'm not exactly clear on the use of reminders either).

    The approach you describe would be necessary in the sense that an asynchronous call in the onscreenready function will allow this function to progress / probably finish and BBUI continue on treatment until you can completely change the elements with the data returned by the database.

    Content, while not ideal, front-loading is a valid route.

    The other option, depending on which time of control you're filling, would wait for ondomready and then use the JavaScript APIs for the control (if any) to be completed after the fact. For example, the ImageList controls have JavaScript APIs to refresh their content with an array of elements, once the element has been created / BBUI-means.

  • Problems using backbone see to add to BBUI display Div in BB10

    I'm experimenting with using views of the spinal column to fill the contents of a BACKUP screen. So I have a screen empty BBUI that contains only the div and screen script tags to load the scripts with the code for views of the spinal column etc. The views of the spine are responsible for creating the bbui divs and adding them to the div. screen bbui I created a controller to handle the onscreenready event and pass the item to a view of the spine.

    In my first experience, I used a view that created an imagelist bbui a collection of the spine (and other views of backbone of sup) and added the imagelist created onscreenready to the bbui div screen Virgin
    It seems to work, but then I realized that the title of bbui created by the display of the spinal column covers the first element of the imagelist.
    So if I had a list of 5, only four components were visible. The five elements would be visible if I not add the title bar. This problem occurs only in BB10. BB6 and BB7 make as expected (tested with ripple and simulators).

    I noticed that the element passed by onscreenready contains the bbui screen, and since I am adding to this item passed to the display of the spine, I thought the error was adding to this and not the screen. Then I tried passing element.firstChild (which is the screen bbui as far as I can tell) instead, but no change.

    My experience was similar, but I used views of the spinal column to generate groups of control and containers for entry. A similar problem with the title bar, but I can not select the input field to enter text. Yet once again, this only happens about BB10.

    If I do not use backbone and enter items manually in the form as usual, it works as expected.

    Anyone have any ideas?

    I posted this question on github and it has been fixed, so no need to workaround more.

    https://github.com/BlackBerry/bbUI.js/issues/561

  • TextBox multiline - touchscreen

    I have a multiline text based on the example provided here

    In the touch screen, the text box does not scroll up once I have finished entering characters in the visible region. When the virtual keyboard is displayed, only the first two lines of the text box is visible. Once I have enter characters in the third line, the text box does not scroll up. Is there a way to fix this?

    I finally got this work using setVerticalScroll

  • Creating layers of the multiline edittext fields multiline text questions

    Hi all

    I wrote a script that accepts a user input and puts in the part layerName.textItem.contents to a text layer, code example below.

    var docRef = app.activeDocument;
    var win = new Window("dialog", "Hello world");
    var input = win.add("edittext", [0,0,400,40], "", {multiline:true, wantReturn:true});
    input.active = true;
    var go = win.add("button", undefined, "Go");
    
    function makeText() {
         var myText = docRef.artLayers.add();
         myText.kind = LayerKind.TEXT;
         var ref = myText.textItem;
         ref.kind = TextType.POINTTEXT;
         ref.size = 50;
         ref.contents = input.text.replace(/\\n/g,'\r');
         win.close();
    }
    go.onClick = function() {
        docRef.suspendHistory("text", "makeText()");
    }
    
    win.show();
    

    However, simply using entry for a new line in the input box produces unexpected results:

    Screen Shot 2016-09-04 at 01.42.38.png

    Curiously, the symbol of the copy and paste elsewhere show that it is a new line character, it is simply not recognized by Photoshop.

    By setting wantReturn to false and adding a keypress eventListener:

    win.addEventListener("keydown", function(kd) {pressed(kd)});
    function pressed(k) {
        if (k.keyName == "Enter") {
            input.text += "\\n";
        }
    }
    

    I am able to get a new line correct, although each press of Enter brings the cursor at the beginning entry field, forcing the user to manually move the cursor at the end before you can continue typing. This too (of course, I guess) puts a visible "\n" in the input field.

    Is there a solution that, at least, can prevent the cursor jumps at the beginning whenever you press Enter? Ideally the end user would not see "\n" in the input field at all, but rather a new visible line in the input field which translates a new visible line in the text layer.

    I'm under CS6 on OSX but will mainly use the script from Windows, also CS6.

    Thanks to all who can help.

    Change line 13 for your regex to:

    REF.contents = input.text.replace(/\n/g,'\r');

  • Can I move a field to the "enter" instead of the tab help?

    Because I use the "enter key" in most of my software, I wonder if I can use this key instead

    "Tab key" to move in my forms of a field to.  Often I hit it and the cursor

    somewhere crashes and I have to 'click' in the next field and start "Tab.  I tried to locate

    an option in my settings but couldn't find where I could go to "entrance".  Can someone help me?

    Thank you.

    There is nothing as simple as this. You can try to use a script to Format custom in the sense of:

    Custom script to Format for field of type text/list drop-down

    If (event.commitKey = 2) {}

    getField("Text2").setFocus ();

    }

    This will cause the development having the value of the field named 'Text2' when you press the Enter key in a text field (non-multiline). If the field uses one of the built-in formats (e.g., number), it is still possible, just more complicated.

  • Dialog box with multiline entry?

    I work on the automation of one of our most tedious chart types, a typed statement upward and ran into an obstacle. I have a pop up dialog box that the user fills out. They put in the name of the applicant, position, and then I have a large space to paste them into the text, they would like to insert into the chart. Unfortunately, it only sticks the first line of the text. Is it possible to enter several lines in a dialog box? Initial searches lead me to believe that entered fast can only be a single line, but I have to imagine that there is a way. Any ideas? Not having not any problems making the text in the box, the question is stick it in the dialog box.

    Thank you!

    Here is a cut down version of the part of the dialog box with the fact that I have problems:

    The GRP is the area that I intended to use for multi-line text blocks.

    // Export dialog
        this.dlg = new Window('dialog', 'Create new depo layer'); 
    
        // PANEL to hold options
        var msgPnl = this.dlg.add('panel', undefined, 'Create new deposition layer'); 
    
        // content GRP
        var contentGrp = msgPnl.add('group', undefined, '')
        contentGrp.oreintation = 'row';
        contentGrp.alignment = [ScriptUI.Alignment.LEFT, ScriptUI.Alignment.TOP]
        
        var contentSt = contentGrp.add('statictext', undefined, 'Content:'); 
        contentSt.size = [100,20]
    
        var contentEt = contentGrp.add('edittext', undefined, ''); 
        contentEt.size = [ 300,500 ];
        
        var btnPnl = this.dlg.add('group', undefined, ''); 
        btnPnl.orientation = 'row'
    
        btnPnl.cancelBtn = btnPnl.add('button', undefined, 'Cancel', {name:'cancel'});
        btnPnl.cancelBtn.onClick = function() {this.dlg.close() };
    
        // OK button
        btnPnl.okBtn = btnPnl.add('button', undefined, 'Create Single Depo Layer', {name:'ok'});
        btnPnl.okBtn.onClick = function() { 
                //add the textPull content in
                var textPullBox = docRef.textFrames.getByName("textPull");
                if(contentEt.text != ''){
                   textPullBox.contents = contentEt.text;
                }
                var paraStyle;
                if (contentEt.text.match(/Q./) || contentEt.text.match(/A./)){
                    paraStyle = docRef.paragraphStyles.getByName("DepoPull");
                    }
                else{
                    paraStyle = docRef.paragraphStyles.getByName("TextPull");
                    }
                //apply the paragraph style
                for(tp=0; tp<textPullBox.paragraphs.length-1; tp++) {
                    paraStyle.applyTo(textPullBox.paragraphs[tp], true);
                }
                
                //close dialog box
                this.dlg.close();
        };    
    
        this.dlg.show();
    
    // change to this:
    var contentEt = contentGrp.add('edittext', undefined, '', {multiline: true, scrolling: true});
    

    Hope this helps your efforts.

  • When you use my dynamic stamp I get the "undefined" Word where the text entered in the dialog box must be

    I get my dialog box open no problem I enter click data OK but the stamp shows that the text field is "undefined". "Text fields names are 'Due' and 'WorkOrder' in the photo below they appear"DueValue"and WOrkOrderValue", then the results as 'undefined' for both. I put the code at the bottom that I delete the section that caused the word "value" is displayed at the end of the deadline and order of business.

    < AcroForm >

    < ACRO_source > CaseNumField: calculate < / ACRO_source >

    < ACRO_script >

    / * belongs to: AcroForm:CaseNumField: calculate * /.

    var = {} dialog box

    DueValue:

    WorkOrderValue:

    function: Commit (dialog) {/ / called pressed OK}

    results var = dialog.store ();

    This. DueValue = results ["tx1"];

    This. WorkOrderValue = results ["tx2"];

    },

    Description:

    {

    name: 'Information stamp control', / / title of the dialog box

    elements:

    [

    {

    type: "display."

    elements:

    [

    {

    name: "reason: «,»»

    type: 'static_text. "

    },

    {

    item_id: "tx1"

    type: 'edit_text. "

    Multiline: true,

    Width: 200,

    height: 40

    },

    {

    name: "work order #: «,»»

    type: 'static_text. "

    },

    {

    item_id: "tx2"

    type: 'edit_text. "

    Multiline: true,

    Width: 200,

    height: 40

    },

    {

    type: "ok_cancel."

    ok_name: "Ok."

    cancel_name: "Cancel".

    },

    ]

    },

    ]

    }

    };

    If (event.source.forReal & & (event.source.stampName == "#VOfL_5866j3cq0GIzQbaLC"))

    {

    If ('ok' is app.execDialog (dialog))

    {

    CMSG = var dialogue. DueValue;

    Event.Value = "Due\n" + CMSG;

    event.source.source.info.DueValue = CMSG;

    CSMG is "Work Order\n" + dialog box. WorkOrderValue;

    this.getField("WorkOrder").value = CMSG;

    }

    }

    Title of the dialog box get ready unless the code is executed in a context of trust. It's a bit complicated to put up with a custom in a stamp file dialogue box, so I won't even try to explain it.

  • Masking printed lines in a multiline text field?

    I am designing a form using Adobe Acrobat XI. This form is designed to be multi use. It can be printed and completed by hand or it can be filled electronically.

    When the user chooses to complete the form electronically, entering into a multiline text field, I want to hide the printed lines. After leaving the field, I want the lines will still be hidden if any text has been entered in the field. I know that this can be accomplished by using a script in the Action of the box text field properties window, but I can't find the correct script and triggers. Any help is very appreciated.

    Here is the solution:

    In the onFocus event, you add this line of code:

    event.target.fillColor = color.white;

    and in the onBlur event, you add this line of code:

    If (event.value.toString () .length< 1)="">

    event.target.fillColor = color.transparent;

    }

    The script of the onBlur event is required to set back field transparent background when you tab through an empty field; When you tab through a field, the Format event will not occur.

  • EA4: enter the bind values dialog box

    For some of my reports, I bind values and the user is prompted to accept the incoming. Everything works well, but is this normal when you enter (say 4) in the box and press on enter, accept the dialog that CR? I would normally expect the button apply be hurry to hit the Enter key. This is expected behavior?

    REDA

    Yes, this is normal behavior even in versions of pre SqlDev4EA1.  It allows you to enter as a bind value multiline text.  All links are treated as data of type varchar, so if you use it as part of a numeric or date, you must explicitly convert the appropriate data type.

Maybe you are looking for

  • Mac is running too slow and hot.

    I think I might be problems with the software of runing core and bottom of crapware. I used etrechek but I can not post for some reason any.

  • Portege M300 with Dual Core

    Hello Does anyone know if it is planning to produce a Portege M300 with new processors dual-core? I need to replace an old Portege 4010 and wait if dual core is on the right track. 4010/M300 is a brilliant compromise of size because it fits into a sa

  • maximum rate of series cRIO 9066

    Hello. I would like to know the maximum flow to the serial port on CompactRIO 9066. I couldn't find it in the manual. Kind regards Daniel

  • I can't check my registration as his allusion to an old e-mail address

    I changed my primary alias to my current email address and when check he wants to send me a check to my previous alias priamry, which can't receive emails. When I ask for the code to my new email address, I do not receive the email notification from

  • portable Atrix stops after awhile (100% reproducible)

    I have the motorola atrix with motoblur and any music player application, I install on it, they all leave in silence after a period of time, usually less than 2 minutes. It always happens, and it frustrates me. I thought earlier that only default mus