Entered by the user: equivalence with Qlineedit or QtextEdit

Hello world

My question may sound strange to you, but I start in the world of Blackberry programming and I use the C++ language.

How you can make an entry by the user, with Qt I use Qlineedit or Qtextedit, but I can't find any equivalent in BB native Development Kit?

Can you give a link or an example to learn how to make an entrance (string, int, float...)?

Thanks for your help!

Hello

He does. Almost all the Cascades QML classes are accessible from c ++.

Both cascadescookbookqml and cascadescookbookcpp in the first repository above projects do exactly the same thing - but in QML, the other in c ++.

Thank you.

Tags: BlackBerry Developers

Similar Questions

  • Possible to automatically calculate date 2 weeks after date entered by the user in the form?

    Hello! I am trying to create a form that auto fills a few dates based on a value entered by the user. For example, if a user enters a date 07/01/16 deadline, I would another field to automatically fill the area with the 15/07/16 (2 weeks from the previously entered date). Is this possible? I've searched for scripts but no luck so far.

    Thank you!

    Melissa

    Of course, it is possible. Say the name of the field date entered by the user is Date1. You can use this script as script custom calculation of the other field.

    var dateString = this.getField("Date1").valueAsString;
    if (dateString=="") event.value = "";
    else {
        var d = util.scand("m/dd/yy", dateString);
        d.setDate(d.getDate()+14);
        event.value = util.printd("m/dd/yy", d);
    }
    

    For a tool that allows you to easily install these calculations, see: Scripts custom Adobe: Acrobat - automatic Date calculation applies

  • Fill in the Date field to CurrentDate if not entered by the user

    I have this simple condition to enter the Date to current date if it is not entered by the user. In the same way with the time of day. I tried writing below the lines in the document of the rule, but it does not work: -.

    DATE = current date if

    DATE is not known

    Can someone help me with this? I have a screen where the field belongs to several questions. If not entered by the user, the system fills when the user presses the submit button.

    3 things to consider:

    • If the user does not provide an answer to a question of date attribute, this attribute date will be uncertain, not unknown;
    • You cannot define an attribute based on itself - which is a loop of logic and modules does not compile
    • You cannot set a conditionally non Boolean attribute without a rules table.

    My solution would be to ask the user for the value of another attribute (DATE of the USER) and then use it to determine the value of DATE inside a table of rules, as follows:

    DATE

    the date of the day

    The USER DATE is uncertain

    THE USER DATE

    in the opposite case

    See you soon,.

    Brad.

  • Can you create a text field entered by the user that the content of the flow in a subform?

    I'm working on a project to convert into a document library of more than 600 forms from Word to PDF, most of the time it's simple and binding the fields to the database schema and use subforms works very well - however, there are some cases where there is a combination of input fields by the user mixed with fields of database and in some cases , the fields in the end user are all there, but the amount of content can vary from 250 characters to thousands.  The project manager wants a PDF that allows users to enter any amount of text they should and have the function of shaping the way it is as if all the fields have been populated by the database - I don't know of a way to make that work only if the content is first registered in the schema (or implement CM and have all users working in LiveCycle, but the basic data use PDF, take her is not an option right now).

    If anyone has any ideas how to operate the these things I would be very happy to hear about.

    Thank you very much

    R

    Hello

    If you can post your form in the post, I can have a look and give my comments.

    I created a sample file for your reference...

    (1) Flowed is set to the content property for Page1.

    (2) each text box is placed inside a subform that is also a property content value Flowed.

    (3) in the properties of the form, as the default tab, set the format of PDF rendering dynamic XML form.

    (4) in the properties of the form, on the overview tab, specify the Type of Preview as "Interactive form" and preview XML Adobe as a 'dynamic XML form' form. (this step is to preview the PDF file in the Designer).

    (5) to save the form as dynamic XML form. (File-> Menu save under).

    I hope this helps.

    If you have any questions, please post your form...

    Thank you

    Srini

    Please find the example file the slot location

    https://Acrobat.com/#d=qQohvZGsJrky-sTdPTJbzA

  • The user equivalence test failed for user 'oracle '.

    Hello

    I try to install the Clusterware Oracle 10g as part of my RAC installation.
    I have configured in RHEL 4 to 2 nodes (rac and rac2). But when I run the runcluvfy utility, I get the error below:

    [oracle@rac cluvfy] $./runcluvfy.sh stage pre - crsinst - rac n, rac2
    Conducting due diligence to install cluster services
    Audit accessibility of node...
    Check for accessibility of node is passed node "rac".
    Verify the equivalence of the user...
    The user equivalence test failed for user 'oracle '.
    The test failed on the nodes:
    RAC
    CAUTION:
    Equivalence of the user is not defined for nodes:
    RAC
    Audit will proceed to nodes:
    Rac2

    The problem is that with the first node (rac). The second node passes.
    SSH works fine. Don't know what the problem is!

    Thank you!

    Have you set up SSH for the equivalence of the user?
    Or
    Did you establish the user equivalence?
    If Yes... Please check...
    $ ssh hostname rac
    RAC
    $ ssh hostname rac2
    Rac2
    You should establish the equivalence before user...
    exec/usr/bin/ssh-agent $SHELL
    / usr/bin/SSH-Add

    If you do not configure ssh for the equivalence of the user
    http://www.Oracle.com/technology/pub/articles/smiley_rac10g_install.html
    Or
    read the SSH user equivalence is not defined on the remote nodes

  • Entered by the user Email address becomes a hyperlink

    Is there a script that will change an email address entered by the user to a clickable hyperlink?

    Thank you

    Hello

    Something along these lines should work (click on the textfield event):

    if (this.rawValue !== null) {
         var vEmail = this.rawValue;
         var vSubject = "A Subject for your email";
         var vBody =  "Put your body message here...";
    
         event.target.app.mailMsg({
              bUI: true,
              cTo: vEmail,
              cSubject: vSubject,
              cMsg: vBody
         });
    }
    

    Which should help you in the right direction

    Niall

  • The search filter - how to get the value of the metadata entered by the user

    Hello

    I wrote a fixUpAndValidateQuery filter where I want to modify search QueryText.

    I tried to update some of the metadata values entered by the user and then let the fire search query.
    But I'm unable to get the values of metadata user has entered in my java code filter.
    I'm getting like below

    DocType string = binder.getLocal ("dDocType");

    It returns the value "no" even if the user gives the value of the Doctype in the search engine.

    Am I missing something here?

    Kind regards
    Rajendra

    Search filters tend to manipulate the query that ends up being called by the search service. If this isn't what you're trying to accomplish there are probably better filters for you before the actual query is run or after the query is executed.

    If you really need a connection of database at the moment and you can't find a better filter for what you're trying to do that has a database connection, you can always create one like:

    final Provider dbProvider = Providers.getProvider("SystemDatabase");
    final Workspace myWorkspace = (Workspace) dbProvider.getProvider();
    

    Warning: If configure you your own db connection for a filter where no database connection is available, you will need TO release the connection too.

    myWorkspace.releaseConnection();
    

    Published by: fscherpe on February 16, 2011 06:07

  • Is it possible with javascript to compile the data entered by the user in an easy format to excel?

    I have a form in which the user enters several lines of data as well as additional information on these data.  I would like finally to export data, so I can manipulate the Excel.  This is possible because javascript (or otherwise)?  Here is an example of what I mean.

    The form of a table in which the user enters each of the names of his friend, their favorite color and their age.  I want the name of the specific friend linked to their favorite color and age so when I export to excel I can see how many friends has the user whose favorite color is red.

    If the form data would be as follows:

    Friend1name

    Friend2name

    Friend3name

    Friend1color

    Friend2color

    Friend3color

    Friend1age

    Friend2age

    Friend3age

    When I export the data as entered above, the results of each field in another column.

    Anyone has any ideas for that?

    It is possible with JavaScript. You can write the data to the JavaScript console and then copy & paste into Excel, or write to a file as an attachment (aka data object) and export it. Here's a sample script that writes the field data in the JavaScript console:

    Table of domain names

    Invoke the var = ['Friend1name', 'Friend2name', 'Friend3name', 'Friend1color', 'Friend2color', 'Friend3color', 'Friend1age', 'Friend2age', 'Friend3age'];

    Browse the fields and write the field values in the console

    for (var i = 0; i)< afields.length;="" i="" +="1)">

    Console.println (getField(aFields[i]).valueAsString);

    }

    Display console

    Console.Show ();

    You can place this code in the mouse event to the top of a button and click the button to run it. This last line of code displays the console and you will be able to copy & paste the data.

  • Automatically seized of the data entered by the user in a database?

    Hello

    I do an application in which the user enters an item of data as information, but I need to be added directly in the tables in the application database. Is it possible to do? If so, how? The program would automatically put the data in the table and use SQL statements to add, modify, etc., so that the user would not have to do something with it? I'm just a beginner in programming, I would really appreciate the answers to be simpler than usual.

    Thank you

    Daniel

    Hi DanielJWE06,

    Click on the links.

    http://docs.BlackBerry.com/en/developers/deliverables/8682/SQLite_overview_701956_11.jsp

    and also, this will help you.

    http://docs.BlackBerry.com/en/developers/deliverables/17952/Storing_data_in_SQLite_databases_1219769...

    First try to search for your problem in the forum after that create a thread.

    There are so many threads available in the forums for Sqlite. Then use the Support forums search feature...
    Any way Gud luck!
    --------------------------------------------------------------------
    Please mark as resolved messages if you found a solution.
    Feel free to press the Bravo thank the user who has helped you

  • Remove the commas (-) of numbers entered by the user in a field

    Hello world

    How can I filter the commas of a number entered by a user into a text input field? I'm doing calculations with these numbers entered, but if the user enters a comma, I get "NaN" (not a number) as the result of what the user has entered.

    I could prevent the user to enter commas in fields (I'm already restriciting enter letters and periods), but it would be nice if the user can always use commas.

    the code I have so far is:

            q4input = q4_mc.q4_ans.text;    

         q4_preCalc = (Number(q4input)*1000);     
         trace(q4_preCalc);

    Thanks in advance for your help.

    Rafael.

    Try:

    q4input = q4_mc.q4_ans.text.replace (",", "");

  • Order results based on year entered by the user

    I have an APEX page where the user can enter a start date and an end date and get a graph of the data for this date range. My problem is that I don't know how/sort order of the results according to the dates entered. For example:
    Start_Dt    End_Dt
    01-Jan-09   31-Dec-09
    
    sort results:
    jan
    feb
    Mar
    apr
    May
    etc...
    
    Start_Dt    End_Dt
    01-Nov-08   31-Oct-09
    
    Sort Results:
    Nov (2008)
    Dec (2008)
    Jan (2009)
    Feb (2009)
    Mar (2009)
    etc...
    
    Start_Dt    End_Dt
    01-Mar-08   28-Feb-09
    
    Sort Results:
    Mar (2008)
    Apr (2008)
    May (2008)
    ... (2008)
    Jan (2009)
    feb (2009)
    
    Start_Dt    End_Dt
    01-dec-08   31-mar-09
    
    Sort Results:
    Dec (2008)
    Jan (2009)
    Feb (2009)
    mar (2009)
    I need a way to always sort the results since the beginning of the year of the entries by the user, at the end of the year of the entries by the user, any "year" (or part of a year), they enter. Sorting based on year and month seems to be the most obvious way to do it, but I don't have a complete list of months/years, just the dates of beginning and end I tried to work with months_between and add_months, but I can't get consistent results.

    Hello

    If you post CREATE TABLE and INSERT to your sample data statements and instructions CREATE FUNCTION for the functions defined by the user you are using (for example, issue_open_date), then all anyone can do is guess.

    I guess Issue_Open_Date (Issueid) returns a DATE, and the date you need sort.
    Since the main query is a query GROUP BY and GROUP BY clause does not include issueid, then you cannot "ORDER BY Issue_Open_Date (issueid)"; but you can use an aggregate function, such as:

    ...
    Group By  Months.Month_Desc, Months.Ordinal, Months.Month_Id
    ORDER BY  MIN (Issue_Open_Date (Issueid))
    ;
    

    Let's say a row of output represents December, 2009, and another line of January 2010. As long as issue_open_date always returns DATEs in recent months, it won't matter what exactly are the dates: a DATE of 2009 will be earlier than any DATE in January, 2010.

  • How to present the user programmatically with different input parameters based on the choice of the Group of entry?

    I have an array of items that represent the inputs to an operation.  The user is allowed to choose a random order for entries to assemble in the table.  Each element, however, requires different input associated parameters that are used by the operation to define each choice.  I realize that, for an array of clusters, the individual cluster array element must all have the same format, that is, they must all have the same type and number of the cluster inputs or outputs.

    Ideally, I would like to have a picture of the clusters, where each cluster has a different set of inputs.  Does anyone have ideas for a solution of programming would be to approach or to simulate such a structure?

    Thank you

    Mike H.

    Hello

    I tried soemthing and attached the VI (LV 2010)

    develop something similar to what is in the attached VI and then package clusters for which the user enters the parameters... I prefer the tabs page, more than the cluster "all settings".

  • Slow response from the user interface with acquisition of data of type long time

    Hi all

    I have a question to ask more out of curiosity than necessity right now. I've built a program that acquires data from the accelerometer and the Treaty in a number of ways: filtering, FFT, FRFS, things like that, but the answer of the UI is still slow, because I need a resolution of frequency of 0.2 Hz for my data domain, which means that the sample acquisition time is 5s and all this awaits before execution.

    My question is this: is there a way to completely isolate the user interface of data acquisition so that it responds immediately?

    I tried a design model of producer consumer with queues, but found everything to be always waiting for samples to be taken. Maybe it was exactly as I did.

    Thank you

    Phil

    If you need to sample for 5 seconds in order to have enough data to analyze, so unless you can "predict the future" and "knowing" the five seconds of data, simply wait for the data that arrives.  Using parallel loops of producer-consumer will allow data acquisition to proceed (for the next 5 seconds of data) while you do the analysis, but you still have to wait for the data to be analyzed.

    Note that the previous paragraph assumes you are collecting data in 5 seconds 'chunks' and analyze each "chunk" (independent) on arrival.  You could also do something like having a "second 5 sliding window" which moves, say, a second at a time, giving your FFT a finer resolution of 'time' (at the expense of their independence).  This would be a (slight) change in your loop of producer (you want to taste in 1 second pieces, accumulate 5 these pieces) and the consumption loop (start analyzing, spewing a FFT every second, while replacing the older "chunk" with the most recent - a queue with loss can do for you).

    Bob Schor

  • Cannot reset the user vmail with Cisco Unified CM Administration password

    We use Cisco Unified CM Administration ver 7.1 with Cisco 7945 IP phones. I have a user who came to tell me that they could access is no longer the voicemail, getting PIN disabled. Ichanged the PIN with the Cisco Unified CM Administration that accepts the new pin without problem, but when we try from the phone, it does not work. Any ideas... Thank you Don

    Hi Don,

    For voicemail partners changes/updates, you should choose

    2 cisco Unity Connection Administration.

    Then; Users > Find/list > user associated with selectect > drop-down Edit > change passwords >

    Change voicemail password

    See you soon!

    SoC

    "Spend your life waiting,
    a moment that all do not come.
    Well, don't waste your time waiting.

    -Springsteen

  • Try to update the user interface with another thread

    Hello

    Start a class JavaFX from another application, and then I want to change the UI of it components. I tried to use Platform.runLater to do.

    But the GUI crashes at the start (does not display anything) for the first 5 seconds (sleep time) changes and shows.

    I want to display the GUI at first, and then after 5 seconds the GUI should be updated with the message, but with the code it hangs just first and screens below everything after 5 seconds.

    Here sampleGUI is a an application javafx with inside text fields.

    + / public class StartGame extends Application {+
    +@Override+
    + public void start (steps) riser Exception {+
    final sampleGUI gui = new sampeGUI();
    GUI. Start (training);

    + Platform.runLater (new Runnable() {+)
    +@Override+
    + public void run() {+
    + try {+
    System.out.println ("sleep now...");
    Thread.Sleep (5000);
    System.out.println ("sleep above!");
    gui.updateText ("new message");
    +} catch (InterruptedException ex) {+
    System.out.println ("exception" ex); +
    +}+
    +}+
    +});+
    +}+
    +}+
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
       // ...
      }
    });
    

    causes the run method of the executable to run on the Thread of the FX Application. Since you put Thread.sleep (5000) inside the run method of your executable, sleep occurs on the Thread of the FX Application.

    The call to runLater (...) can be called from any thread, including the Thread of Application FX.

    So, if you are not in the FX Application thread, you want to:

    // any long-running task, for example
    System.out.println("Sleeping now");
    Thread.sleep(5000);
    System.out.println("Sleep over");
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
        // update UI:
        gui.updateText("New Message");
      }
    });
    

    If you are on the thread of the Application of FX, which is the case in your Application.start (...) method, you must create a new thread to run your code of long duration. You can do this "manually", creating a Thread and a workable for it to run, but it is probably best to use the simultaneity of JavaFX API, which has many hooks useful for updating the user interface on the Thread of the FX Application.

    In this case, the code would look like this:

    public class StartGame extends Application {
      @Override
      public void start(Stage stage) throws Exception {
        final SampleGUI gui = new SampleGUI();
        gui.start();
        final Task waitingTask = new Task() {
          @Override
          public String call() throws Exception {
            System.out.println("Sleeping");
            Thread.sleep(5000);
            System.out.println("Sleep over!");
            return "New Message" ;
          }
        };
    
        waitingTask.setOnSucceeded(new EventHandler() {
          @Override
          public void handle(WorkerStateEvent event) {
            gui.updateMessage(waitingTask.getValue());
          }
        });
    
        ExecutorService executor = Executors.newSingleThreadExecutor();
        executor.submit(waitingTask);
      }
    }
    

    There are (probably of dozens of) other ways to use a task to do. See the API documentation [url http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html] for the task for more information.

Maybe you are looking for