Image list of JavaScript (with data from a database)

Hello

I'm trying to get a list created on a database.  I use Webworks and ripple (for testing).

So far, I have this code:


This creates my database to contain items from my list.

Once my page is pushed into the view, I use this code to read the database and complete my list.


Then, I have a section (on the same screen) that looks like this:

My idea was that, for each element in my database, it would create a separate post in the list, however, nothing works I spent more than 10 hours trying to make it work, does not.  I am new at this and would appreciate the help.

I know for a fact that the database is filled but I can see the data in it.

You are right: the missing button does not affect your error.

When you call this function (and the following lines)?

document.getElementById('mylist').clear()

You must wait for the DOM to finish rendering, before you can access it via the function "getElementById".

The easiest way is probably by using the integrated bbUI of bb.init trigger in the ondomready section:

bb.init({
                actionBarDark: true,
                controlsDark: true,
                listsDark: false,
                // LOTS OF OTHER STUFF HERE...
                ondomready: function(element, id) {
                    // The ID should match the one from pushScreen (second parameter)
                    if (id == 'yourfile') {
                        initYourStuff(); // CALL YOUR LIST.JS INIT HERE!
                    }
                }
            })
            bb.pushScreen('yourfile.html', 'yourfile')

Tags: BlackBerry Developers

Similar Questions

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • retrieve a row of data from mysql database

    Hello

    I extract data from a database.  Use of then in a Web page as <? php echo $row ['product'];? >

    However, if there is an apostrophe in 'product', he displays like a diamond with a question mark.

    Data stored in the database looks like this, 'pearls of Mary. "

    Is the problem when I have the data stored in the database or when it was recovered?

    Thanks, Dan

    This happens usually if you paste from another application like Word or Xpress directly in the database.

    To work around the problem:

    If you are still using the old mysql extension insert the line below before any other query mysql on your page:

    mysql_query("SET NAMES UTF8");

    If you uisng the new mysqli extension then use the variable of connection string (in this case $conn) as below:

    $conn-> query ("SET NAMES UTF8");

  • Can I import data from a database in a FrameMaker using ExtendScript document?

    I want to import the part of database information in a structured document in FrameMaker (XML). The document would be an illustrated parts catalog, built by merging the text in the document structured with Bill of material stored in a database and graphic files. ExtendScript for this, or do I have to study a different language for this programmatic approach to the construction of a document?

    There is no direct way to connect to a database with FrameMaker ExtendScript. It is possible to write code C++ to interact with scripts, so you could write some kind of connector in C++ that would work with ExtendScript. ExtendScript can work with XML files, then another solution is to export the data from the database in XML format and ExtendScript allows you to analyze and import it into FrameMaker.

    I'd take a serious look at FrameScript. FrameScript has built-in ODBC support, you can connect directly to your database and use SQL queries to get your data into FrameMaker. There also ActiveX is supported, so you can use ADODB technology to get data from your database. I did the import of the database in a bunch of my scripts over the years. Please let me know if you have any questions or comments. -Rick

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • copy data from one database to another

    Hello

    I want to copy data from one database to another.

    I have two patterns such as

    dev1/dev@ORCL
    DEV2/dev@DCEL


    I have same tables dev1 and dev2 (tables)
    but I have not given in dev2 (tables).
    now, I want to copy dev1 (tables) in dev2 (tables).

    You can also use the database link:

    select * from dev1.emp@orcl;
    

    What database are you connected to?
    You must create and use the links in the database for all other databases.

    For example if you are connected to the database A and to retrieve data from database B, you must create a connection of database in base B

    create database link B connect to  identified by  using 'B';
    

    Then you can retrieve data from database B with

    select * from [yourschema.]yourtable@B;
    

    This will work only for tables that are visible to the user that you used in the definition of database link.

    Published by: hm on 10.08.2011 22:15

  • Display data from the database in a table

    Hello

    How to display data from my database in an ADF table using a backing bean? I created an arraylist in the bean, but only the last row of my query is displayed in the table...

    Thank you...

    Hello

    Create a simple Java class that implements Serializable. Create attributes that represent each column in your table. This class represents on the row of your table. A list of these objects, and you can fill your af:table.

    Visit this link below for an example.
    Re: Is it possible to create a static array of ADF and the tree?

    Kind regards
    Amélie Chan

  • With the help of data from the database on my Web page

    Hello

    This is probably a simple great question, so I apologize in advance. I looked through a lot of information on BC and I can't seem to find the answer to my question (although a lot of it seems to go over my head that I'm a n00b full BC., and I feel that my hands are tied without being able to just stir up the something in Python or PHP!).

    I am trying to create a Web page that displays a single product (the entire site exists just for 1 product), and the user can click on the color chart of different color in order to customize it. I would like my client (owner of site) so you can easily add new colors (using the hexadecimal code) for different parts of the product.

    So I basically just need a place where the client can enter these values, and then I can write on my page in JavaScript format and build dynamic page using JavaScript.

    It seemed that the way to do would be to create a new "Web App" inside the BC. I did, and I created a "Web App Item" called "Data". Under "Data", I added a 'field Item' named 'Color', which is a multiline text area. I entered a few different hexadecimal codes like this:

    000000

    FFFFFF

    003366

    (I thought that I can analyze the lines with JS)

    The problem, I comes across however, is to know how to enter these data in my source code on my Web page? I created a Web page and I put the code in it:

    {module_webapps, 6042, one,}

    but this will display a list of links, with a link to 'Data', and then if you click on "Data" you go to a separate web page that says only: "Data" in this topic. Very strange.

    Is there a way I can get the data entered here in the source of my Web page? (Or is there a better way to do it?)

    As a more general question... It's basically just how use BC as a CMS and have custom fields that you can then access your web page. A bit like plugin, WordPress Advanced Custom Fields, if you're familiar with that. (I know that's not WordPress, but just a way that I can access certain values that my client has entered in)

    Thanks in advance!

    Heather

    You may be better to use electronic commerce and assign different attributes for your colors?

  • JDeveloper 11.1.1.2.0 - Panel dashboard with data from SQL Server 2008

    Hi all

    I use JDeveloper 11.1.1.2.0 and trying to create a cross-application dashboard. This dashboard would show 2 group of data from an Oracle database (already finished it) and two from the Group of data from a SQL Server 2008 database.

    I managed to install a SQL Server 2008 database locally on my machine. I downloaded the JDBC drivers on the Microsoft site and I have two JAR files:
    * sqljdbc.jar
    * sqljdbc4.jar

    I created a SQL Server login in Control Panel connections JDeveloper and can I query my database successfully.

    I created a new module of the application and define his connection for a JDBC connection with identification information specified on the Connections tab. I then added the two JAR files as libraries in the model project and
    has run the tester Module of the Application. This succesfully shows some records.

    In the draft opinion, I created a new page and dumped the View object in a table. I then go to run the page and get an error related to the drivier JDBC is not found. I read a few posts on add to Weblogic lib files and edit the startup scripts, but can someone give me a definitive solution to work? I also tried to change my Application Module using a data source, but I also have the same problem the Weblogic console (it cannot create a data source for SQL SERVER because it doesn't have the drivers).

    Any help is greatly appreciated.

    Thank you

    The built-in driver MSSQL weblogic.jdbc.sqlserver.SQLServerDriver class is packaged in \wlserver_10.3\server\lib\wlsqlserver.jar

  • How to fill a ComboBox with data from a Web service

    I have a simple application that contains a DataGrid control that gets its data from a web service. I prefer to put these data in a ComboBox instead of a DataGrid control. My web service returns objects.

    Someone has an idea how to do?

    < mx:DataGrid id = dataProvider = "{ws.getProjects.lastResult"dgProjects"}" > "
    ... < mx:columns >
    ... < mx:DataGridColumn dataField = "projectID" headerText = "ID of project" width = "100" / >
    ... < mx:DataGridColumn headerText = "Project name" dataField = "projectName" / >
    ... < mx:DataGridColumn headerText = "Doc UNID" dataField = "docUNID" visible = "false" / >
    ... < / mx:columns >
    < / mx:DataGrid >

    Exactly what I needed.

    Thank you very much!!!

  • read data from a database and display them in a listbox

    Hello

    I want to read the data from a table in a database, so I want to display 1 column in a listbox.

    I read the data from database, but I can't display in a listbox control.

    can someone help me please?

    Your VI is way too complicated. If you get a 2D array and you want just the second column, you should only use the Array Index to take off from the second column. That's all.

    Once again, the structure of your sequence is completely useless.

    I will reiterate my statement about to spend some time with the LabVIEW tutorials.

  • How can make us big data from one database to another db

    Hi all

    I have 540,00,000 records in a table. Use dblink when I try to extract data in the database for this table in another table to it-error. Is someone can you please tell me how I can extract data from table A in db1 that has 540,00,000 records in table A which is located in db2 and is empty.

    Kind regards

    Amrit

    You can also consider an insert in direct path, possibly with active parallel.

    Insert / * + append * / in...

  • transfer data from a database not AL32UTF8 (WE8ISO8859P1, US7ASCII, UTF8) to a db AL32UTF8 using dblinks

    Hello

    We had 3 databases off-production of the version 11.2.0.4 on AIX platform. These 3 databases had character set WE8ISO8859P1, US7ASCII & UTF8.

    We are migrating to AIX to the Linux platform and DB version will remain the same. New databases will have character set AL32UTF8.

    We had gone through various metalink notes related to conversion problems and possibly the character set. We understand that we need run the csscan utility to check

    all possible data issues and fixed before using export/import. We are trying to see if we can use DB link to copy data from db not AL32UTF8 AL32UTF8 DB.

    And we have not found any document mentioned that DB link can handle character set conversion and can use as an alternative to export/import.

    Our concern is that can we use DB links to copy data not AL32UTF8 db db AL32UTF8 after we deal with truncation and data loss?

    The DB has only English characters and symbols. There are sign euro no. European characters or Asian characters in db.

    Help, please.

    I've referenced below documents.

    AL32UTF8 / UTF8 (Unicode) database Character Set Implications (Doc ID 788156.1()

    Note 1297961.1 ORA-01401 / ORA-12899 when importing data into an AL32UTF8 / UTF8 (Unicode) or other multibyte NLS_CHARACTERSET databases.

    Note 144808.1 Examples and limits on use of BYTE and CHAR semantics.

    Please see Note 269381.1 ORA-01406 or ORA-06502 in PLSQL when querying data in UTF8 (AL32) db db not remote UTF8 with the cursor

    Note 158577.1 NLS_LANG explained (how work of transformation of characters Client / Server)?

    NOTE: 745809.1 -Installation and configuration of Csscan 10 g and 11 g (database character set Scanner)

    NOTE: 444701.1 -Exit Csscan explained (also contain how to run csscan)

    Thank you

    Ashish

    Yes, you can use the links to the DB.  I doubt DB links are faster than Data Pump, but they perform character set conversion. Questions that you can meet the copy of data through DB links are basically the same, you may encounter using Data Pump or any other method of migration.

    One import thing to note: If you are using ETG over link DB (without specifying data types), columns of the semantics of length created on the target aura database bytes of length three times larger than the columns in the source constraints. You can run the CREATE TABLE AS SELECT INSERT followed instead.

    Thank you

    Sergiusz

  • How to create views of data from different databases tables in2

    Using Oracle 10.2 g

    I have 2 databases Gus and the haggis on schema Comqdhb.

    Glink indicates a link of database between Haggis and Gus

    In Gus, there is school that contains columns with same name upn, grade, subject, student of tables...

    STUDENT
    UPN
    academicYear

    Object

    Object

    GRADE
    examlevel
    grade

    SCHOOL
    SN

    In HAGGIS raising tables, grade, teacher containing columns upn... desc below.

    STUDENT
    UPN

    GRADE
    grade
    UPN
    academicyear
    level



    Create views in your database HAGGIS who join their all the qualities of the review. You should have a point of view that will produce the following relationship:
    examGrade (upn, subject, examlevel, sn, rank, academicYear)

    So I need to create a view that gets the data from the tables in the databases.

    create view as examGrade (upn, subject, examlevel, sn, rank, academicYear) like some s.upn


    But I don't get the selection of a column of 2 tables in different databases

    I mean if I said

    Select the UPN in comqdhb.student@glink,comqdhb.student;
    Select the upn name in comqdhb.student@glink,comqdhb.student
    *
    ERROR on line 1:
    ORA-00918: column ambiguously defined

    Help me, thank you.

    Hello

    Rider wrote:
    The issue is that I can't understand that I should create the view by the union of the haggis and the two gus data or only haggis.
    the reason I believe I need to combine the two is mentioned * "" create views in your database schema HAGGIS who join their all the qualities of the review. ". *
    By the mention of creating views and who join their all the qualities of the review, it probably means to obtain the data of the GUS and HAGGIS.

    This is my interpretation of the assignment, too.
    If you ask just the tables on Gus, you will get the ranks of three of the four schools: it's not all examination classes.
    If you ask just the tables on Haggis, you will get the ranks of any of the four schools: it's not all examination classes.

    2nd prob is that if have decided to create a view that gets the data from these two gus and therer haggis would be a lot of duplication involved due to the cross product

    Why would there be "repetition involved due to the cross-product"?
    If the quuery of Gus produces 100 lines, the request of product Haggis 30 rows, then the UNION of the two will have 100 + 30 = 130 lines (assuming, as you say, each student is at school only one).

    the query I wrote is

    Create view examGrade (upn, subject, examlevel, sn, rank, academicYear)
    as
    Select distinct s.upn as upn, g.subject as topic,
    g."LEVEL" as examlevel, g.grade as rank, to_number (g.academicyear) as academicyear
    of s comqdhb.student, comqdhb.grade g
    s.UPN, sb.subject, g.elevel, g.grade, s.acyr select Union
    of comqdhb.subject@glink sb,comqdhb.student@glink s,comqdhb.gradevalues@glink g;

    You should not write, not to mention not formatted zip code. I have a little time I can devote to answering questions in the forum. Do you want me
    b spend this time formatting your code, so I can understand the question, and no time to answer, or
    b spend only a little time reading understanding your code and spend most of my time to help you?
    I would prefer (b), but the choice is yours.
    See the statement that I posted in my last post for an example of the formatted code. You see how it appears in a box with a police fixed-width, and multiple spaces are printed? This is because I typed {code} (all small letters), before and after the section I wanted formatted.

    At least put each table in the FROM clause on a separate line, so it is easy to know if you have enough join conditions.
    If you have N tables in the FROM clause, you almost always have at least N-1 join conditions that specify how the tables are linked together. For example, if talk you about two tables, quality and student, you expect to see a join condition that tells you when you have data in a table, how to find related data in the other table, such as

    g_gus.upn = s_gus.upn
    

    No no no join conditions will cause "repetition involved due to the cross product.

    I downloaded my info here
    http://www.upload4free.com/download.php?file=44201983-School_ExamGrades.PDF


    http://www.upload4free.com/download.php?file=184648736-ExamGrades_Case_Study_2008FINAL.PDF

    Sorry, if there is data as long as you can't post here, there is much too much for me to read.
    Make a sample set, containing a few (maybe five) students and a few shades of each student. It is fine to copy a few lines of your actual data.

    That's all the time I have for today. I can't wait to get the data and formatted requests.

  • Insertion and extraction of data from a database by USING SQL Developer al32UTF8

    Hi guys,.

    Before I post my questions, I think it's better for me to give you guys my first understandings so that it is easier to understand where / if I have gone wrong...

    I use Windows XP and Oracle 10 g
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Non-unicode client - a client program that needs to use the code page of the operating system for the mapping of unicode data retrieved from the database as well as the support to display/insert characters from the code page to the database.
    For example sqlplusw.exe

    Therefore, when you use a non-unicode client

    (1) we define the code page of the OS (Control Panel - regional and language of the parameter - advance - the language for non-unicode programs) to the code page that contain the characters that we will view/insert.

    (2) we also defined the NLS_LANG characterset on the character set of code page, that we'll insert so that when we do an insert (for example in thai), oracle will and automatic conversion to Unicode can take place. This is also true when recover us the database unicode data so that the correct character set conversion can take place.

    INSERTION OF
    THAI->-> UNICODE conversion

    RECOVERY OF
    THAI <-conversion <-UNICODE

    I hope that my basic understanding is correct up to this point.
    ---------------------------------------------------------------------------------------------------------------

    Unicode client - a client program that supports display/inserting unicode characters without the need to set the code page of the operating system (Control Panel - regional and language setting - control - language for non-unicode programs advance)
    For example isqlplus http or SQL Developer

    However,.

    (1) there are still set the NLS_LANG so that the correct conversion can take place between the client and the database.
    For example, when the recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and store data in Unicode in the database is for example (THAI), then the conversion would be a mistake.
    It's a supported unicode client, then the NLS_LANG character set should be set to UNICODE as well.

    ---------------------------------------------------------------------------------------------------------------------------

    Those are my questions
    * Important - please help if you're busy and don't have the time to answer the remaining questions

    (* Q1) if I had to use a unicode client, what should I put my character NLS_LANG set?
    AMERICAN_AMERICA. UTF8?

    (* T2) where can I put the NLS_LANG information of character in SQL Developer, I know there is a metalink for setting NLS_LANG using isqlplus but I cant seem to google each led for SQL developer.

    Q3) is my basic understanding of up to this point? If no, please explain in a term more widespread that I'm really not familiar with character sets code page, unicode and fonts, glyphs...

    A unicode client (Q4) didn't need to refer to the OS codepage (regional and language updates), y at - it a code page UNICODE for the customer to refer to, or is there an available window API?

    Q5)
    , there are still set the NLS_LANG so that the correct conversion can take place between the customer and the > > database.
    For example, when recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and the data store in > > unicode in the database is for example (THAI), then the conversion would be erroneous.
    I'm just on this point for customer UNICODE supported?
    --------------------------------------------------------------------------------------------------------------------------

    Thank you for spending the time to read my questions and I hope to hear soon tips from you guys.
    Million thanks again for sharing.

    Best regards
    Noob, but eager to learn

    The requirement to always set NLS_LANG is not true for JDBC, which ignores the NLS_LANG altogether. Java programs extract the textual data in string variables, which uses Unicode UTF-16 by design. JDBC defines the conversion of character sets so that data is converted between UTF - 16 and the database or the national character set.

    The obligation to set NLS_LANG is not generally true for the OIC, either. The first call to a problem of the BEAK may be OCIEnvNlsCreate(). This call has two parameters that allow the caller to set the character set to use for the text of VARCHAR2/TANK/LONG/CLOB/statement and the character set to be used for NCHAR/NVARCHAR2/NCLOB. Only if these character sets is specified as 0, character set NLS_LANG is used. Also, the OIC programs can specify different character for each binding sets or set the variable (i.e. the buffer input/output). Note: The OIC programs always use NLS_LANG to initialize the language settings and the territory for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().

    OCIEnvNlsCreate() can specify the client character set to UTF-16 (platform boutien) format. This is not possible with NLS_LANG.

    Various interfaces based on the BEAK, such as ODBC Oracle and .NET for the ODP, explicitly initialize OCI with character set Unicode and therefore ignore the NLS_LANG character set as well.

    Thnx,
    Sergiusz

Maybe you are looking for

  • I can add avoid tolls on the cards?

    I want the option to 'avoid tolls' on maps.  Is this already available?  If so, how to set it?  If not, why?  This is a Google map option.

  • How the hell is R100 supposed to boot from an external source?

    Hi guys Please I need some wisdom... I'm trying to reinstall XP. However a member of the forum here named Meier has posted previously that the R100 bios does not support so I'm tryin to boot from USB CD, USB CD-rom boot. Is this TRUE? Now, I don't ha

  • What is the name of best

    Apps for sAfari

  • Satellite 4100XCDT: how the IRDA port works under DOS

    I have a Toshiba Satellite 4100xcdt. How do I assign a COM port to the IRDA (infrared) port in the BACK so I can use programs such as Winsamphttp://www.veg.Nildram.co.UK/remote.htm The BIOS assigns COM1 and COM2 serial port to the built-in modem. How

  • Call dll ActiveX in Labview

    Hello I'm a new starter in c# .net.  I have a control dll ActiveX (control of vision of NOR -> CWIMAQ). I need to call dll functions in Labview. I searched for articles on this subject. Everyone talks about single thread and register the dll.  I have