FAQ Database Discussion Community


Populate textarea with javascript variables from onclick

populate
I need to use an a tag to send variables to a JavaScript function which will populate a textfield, but my code doesn't seem to work. My code, A TAG <a onclick='quote('Name', '5:03', 'Test')'> TEXTAREA <textarea id='quote'></textarea> Javascript <script type='text/javascript' src='jquery-1.9.1.js'></script> <script> function quote(username, date, quote) { var newText =...

How to populate a treeview from a XML file with multiple child nodes?

xml,vb.net,xml-parsing,treeview,populate
I´m trying to populate a TreeView component in VB.NET from a XML file. It´s a large XML file and I chopped it up in order to give you guys an idea about how it is structured. I´m new to VB.NET so I´m having a hard time to figure this out....

Codeigniter form populate with db results not working

database,forms,codeigniter,populate,setvalue
I have been trying for days now using the form class to populate the text fields from my database. I have also been searching to find out how to do it without any luck. Please could somebody take a look at my code and tell me what I'm doing wrong....

Android: problems with CursorAdapter

android,sqlite,listview,android-cursoradapter,populate
first of all thank you all for your answers and sorry for the bad English used, have a controller class to populate a listview and an adapter class that extends CursorAdapter, my problem is that when I setAdapter, my class adapter is not running the Newview method BindView certainly not...

Change data according to selected item in combobox

vb.net,combobox,populate
I call into a function which runs a query into SQLServer and returns a DataTable with multiple columns. I want the data from the DataTable to change rows according to the selected item in the combobox. Dim dt As New DataTable Dim rInt As New Int32 dt = subGetDB() rInt...

Is it safe to drop and then create the foreign key constraints inside a transaction?

sql,postgresql,transactions,foreign-keys,populate
I have a table A that references a table B. Table B needs to be populated with updated data from an external source and for efficiency I use TRUNCATE followed by a COPY. This is done even when the application is live. To further improve efficiency, as suggested in the...

Populate Userform combobox from a given range on a mac (excel 2011)

excel,combobox,populate,userform
How do you populate a combobox with values from a given range on a mac. I have been searching for answers for the last hour but none of the solutions seem to be working. I have a userform called Details and a combobox called CurrencyList that I would like to...

How to model and save in mongoose multi-to-multi relationship?

node.js,mongodb,rest,mongoose,populate
I want to 2 model, one is user that can belongs to multiple groups, and another is group that can has multiple users. This is my schemas and models, i don't know whether they the correct: var Schema = mongoose.Schema; var UserSchema = new Schema({ joinedGroups:[{type:Schema.Types.ObjectId, ref: 'Group'}] } );...

how to populate a table's fields with multiple criteria, some of which overlap

mysql,populate
I have a table called sinvent with columns accno, jno, and saccno. jno and saccno are already filled with numbers, alot of the numbers repeat.i need to populate accno with the following values based on which jno its associated with, but some of the ranges overlap. for example I first...

populate all div ids in a page with javascipt

html,populate
I am tryin to populate a list of all Div ids on a page with javascript. The below code gives me a count of all divs but not a list of div ids which i am looking for, Please help var divs = document.getElementsByTagName("div"); for(var i=0, len=divs.length; i < len;...

mongodb populate method not working

node.js,mongodb,model,populate,auto-populate
Here is my code for models var postSchema = new mongoose.Schema({ created_by: {type: Schema.ObjectId, ref:'User', autopopulate: true }, //should be changed to ObjectId, ref "User" created_at: {type: Date, default: Date.now}, text: String }); var userSchema = new mongoose.Schema({ username: String, password: String, //hash created from password created_at: {type: Date, default:...

how to populate a table's fields with multiple values depending on the row

mysql,sql-update,populate
I have a table called sinvent with columns accno, jno, and saccno. jno and saccno are already filled with numbers, alot of the numbers repeat.i need to populate accno with the following values based on which jno its associated with. how do i write a single query to do this?...

Swift: cannot invoke 'addObject' with an argument list of type '(AnyObject?!)' [closed]

ios,arrays,json,swift,populate
I have created an array, empty atm: var textArray: NSMutableArray! = NSMutableArray() I'm trying to populate this Array with datas like this tutorial: https://youtu.be/0qE8olxB3Kk but my datas are not simple Strings like he does, they are gotten from a JSON (an array of dictionaries) and are of type AnyObject?! I...

Populate in rails 4 and heroku (SOLUTIONS)

ruby-on-rails,heroku,deployment,populate
I am new to rails 4 and I'm trying to do a deploy on heroku, but as I can populate my bd de heroku? I have this in seed.rb Cliente.create([{nombre: 'Jose',apellido: 'Cabarcas',telefono: '7897987',direccion: 'calle 11', cedula: '10236', referencia: 'andu', telReferencia: '898998'},{nombre: 'Andu',apellido: 'Cabarcas',telefono: '7897987',direccion: 'calle 11', cedula: '10236', referencia: 'andu',...