values

With Java Swing App, how to get values from a dialog panel into the main app ?

In my Swing app, users can click a button to open a dialog panel and enter some values, then they can click "Ok" on that panel to close it and return to the main program, but how can I pass the values they enter to the main program without saving them to a file first ? ...

iPhone: Passing values through a @selector funcion

I need help with an Xcode script, and was wondering if anyone can help me solve this. Lets say that I created these fields, "UITextField *titleField" & "UITextField *tagsField" directly within a table cell. And the "UIBarButtonItem *saveMyContentButton" below calls a function "saveMyContent". When I run the app I get the two commented e...

Using a Case statement within the values section of an Insert statement

Please forgive my ignorance and poor SQL programming skills but I am normally a basic SQL developer. I need to create a trigger off the insertion of data in one table to insert different data into another table. Within this trigger I need to insert certain data into the new table based upon values within the newly inserted data from t...

Slider value available between different cocoa classes

I am playing around with an iPhone app, and need to accomplish something that I am sure is very basic: I have a slider that is implemented in a Controller.m class. However, I need its value must be available in a different class, MainView.m class where I have defined an equation that depends on the value of the slider. How can I do i...

PHP - How to get, and display the biggest values from a database?

Hello. Can anyone tell me how to get and display the biggest values from a database? I have multiple values in my database with the heading "gmd", but how would I get only the first 3 biggest ones to be displayed? How would I do it in this example: $query = "SELECT gmd FROM account"; $result = mysql_query($query); while($row = mysql_...

PHP - How to make/generate a graph image depending on values in a database?

Hello. How could I make an image graph from values in a database? The idea came from "Steam", which uses a graph to show how many users are online. How could I do the same thing? It seems like the graph is one whole image; not made up of parts. Here's an image of the graph from Steam: Thanks. ...

How to set which of function inputs are required and which are not (C#)

So I have a function public int Sum(var valueA, var valueB, var valueC) { var summ = valueA + valueB; return summ; } I want to add to summ valueC if it was given. And let user not specify it if he does not want to. How to do such thing? ...

Returning the nearest multiple value of a number

Hi, I need a function by which I will be able to convert a number to a nearest value of a given multiple. Eg i want an array of number to be set to the neareast multiple of 16, so 2 = 0, 5 = 0, 11 = 16, 17 = 16, 30 = 32 etc thanks ...

How to store values inside Plist and read while runtime in iphone 3.0?

Hi Guys, how to store values inside Plist and read while runtime in iphone 3.0?. Thanks in Advance. ...

XSL unique values per node per position

this get ever more complicated :) now i face another issue in last question we managed to take unique values from only one parent node now with: <?xml version="1.0" encoding="ISO-8859-1"?> <roots> <root> <name>first</name> <item> <something>A</something> <something>A</something> ...

Passing Values from a View to itself with parameters getting null values ?

Hi all, I am trying to get values from a view which i have the code below and I am taking the start date value from the view input text box and posting it back but I am still getting null except for the apikey and userkey.Here are the two views.. public ActionResult View1(string apiKey, string userId) { StartGoalView...

Find actual value of PHP variable

Hi all. I am having a real headache with reading in a tab delimited text file and inserting it into a MySQL Database. The tab delimited text file was generated (I think) from a MS SQL Database, and I have written a simple script to read in the file and insert it into an existing table in my MySQL database. However, there seems to be so...

Counting unique values in a column with a shell script

Hello. I have a tab delimited file with 5 columns and need to retrieve a count of just the number of unique lines from column 2. I would normally do this with Perl/Python but I am forced to use the shell for this one. I have successfully in the past used *nix uniq function piped to wc but it looks like I am going to have to use awk in h...

Need help with Values

I want to take a value ex: <input type="hidden" name="quicksearch" value="**1**" /> from a third party website. then place that value on my website ex: <input type="hidden" name="quicksearch" value="**REPLACE WITH 1**" /> ...

Linq query with subquery as comma-separated values

In my application, a company can have many employees and each employee may have have multiple email addresses. The database schema relates the tables like this: Company -> CompanyEmployeeXref -> Employee -> EmployeeAddressXref -> Email I am using Entity Framework and I want to create a LINQ query that returns the name of the company...

Symfony: How to hide form fields from display and then set values for them in the action class

I am fairly new to symfony and I have 2 fields relating to my table "Pages"; created_by and updated_by. These are related to the users table (sfGuardUser) as foreign keys. I want these to be hidden from the edit/new forms so I have set up the generator.yml file to not display these fields: form: display: General: [name, template_i...

easiest possible way to clear values of all controls in a div using jquery?

I have an add form inside a div which has 3-5 textboxes.. I submit the form via ajax and hide the div in the success function of it... Now i want to clear all the values of textboxes within the adddiv using jquery? ...

python: identifying duplicate values across disparate dictionary keys

here is an example of the dict ActivePython 3.1.2.3 (ActiveState Software Inc.) based on Python 3.1.2 (r312:79147, Mar 22 2010, 12:20:29) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> dict = {} >>> dict[("127.0.0.1", "127.0.0.2")] = ["value", "value2", "value3"] >>> dict...

Create Custom values for the cells in the YUI datable or gui: dataTable

Hi i would like to know how to create custom values for the dataTable. For example I want to do some calculations for the values that will be placed in the dataTable. But what happens is that I get an error: ERROR errors.GrailsExceptionResolver - Executing action [dataTableJSON] of controller [com.MeetingController] caused exception: ...

Click to make body text larger | JavaScript

Please note this is just an example: <img src="img/normal-font.png" onclick="javascript:document.body.style.fontSize = '13px';" /> &nbsp; <img src="img/medium-font.png" onclick="javascript:document.body.style.fontSize = '14px';" /> &nbsp; <img src="img/large-font.png"onclick="javascript:document.body.style.fontSize = '15px';" /> The...