Display Uitable data in command window in Matlab - matlab-figure

I am using a UITABLE to display some data. After displaying the table i want to get the data in command window in matrix form make calculation and again display the result in a tabular form.
any 1 pls. help me..

When you create the table, get its handle:
hTable = uitable(...,'Data', dat,...);
Make your changes. Get the data back:
dat = get(hTable,'Data');
Do some calculations, generating new data. Update the table:
set(hTable,'Data',dat);

Related

Adding a drop-down menu (data validation) after each row of a query result in Google Sheet

First, here is the link to my sheet:
https://docs.google.com/spreadsheets/d/1067N1SAIwpGkMRBZiUv4JW8yDNkozuGt7Fwh6GW-qvE/edit#gid=1742559851
If you look at the tab called "Selection", I have two columns called "Select". All the data in these tables is collected by a query function, except column "Select". In that column, I need to add Data Validation (a simple Yes or No). I want the Data Validation to be automatically added when a new row is created but the query function instead of having to add or remove it manually every time I make some changed. Data collected by the query function is using the two variables on top of the sheet (minimum rating and global buff).
Just to show the step to apply data validation to your whole column, see the following image. Under Cell Range, the image shows Selection!D5:D99, but this is actually set to Selection!D5:D999, it just is truncated due to the size of the text box.
Let us know if this is what you were looking for, or if I've misunderstood your issue.

Not retaining values after save

In my application I am using jqGrid to display the data from database, user can update the values and save the data in database. I have a paging in the grid.
I want to implement 2 things --
--- After I save values in the database, jqGrid columns become blank. I want to retain the values in column after save.
--- When I update the values on one page and goes to second page and again I come back to first page, I want to retain the values on the first page.
Is that possible?
If you edited data locally (on grid which has datatype: "local") then you can use grid.jqGrid("getGridParam", "data") to get the current (modified) data. you can send the data to the server via $.ajax call.

AMChart handleClick to retrieve data from database based on item clicked

I'm using AMChart stacked chart to report test execution status from DB. Php file with query is feed into the dataLoader and the stacked columns displays Pass, Fail and NoRun count data for each category. I'm trying to use handleClick function to make the column clickable and once clicked, a query is fired to retrieve data specific to that column's Pass, Fail or NoRun count data and displays the data on the same page. I'm not sure how to implement this. Any help is greatly appreciated!
Below is all I have so far, clicking the column triggers an alert with name of the category and a count, my goal is to be able to trigger a php file with parameters passed in and display data from DB,
// add click listener
chart.addListener("clickGraphItem", handleClick);
function handleClick(event)
{
alert(event.item.category + ": " + event.item.values.value);
}
The issue has been resolved by using JSON (converted from DB data in PHP) and AJAX to display. Within handleClick I call another JS function and pass in the graph variables that the query inside PHP needs.

How can I figure out the value of the clicked cell in a table which was generated in ASP?

I'm generating a large table on a webapp using ASP. I connect to an oracle database using ADODB.Recordset and fill a table with each row of data. Whenever you click on the ID number (the first column of each row), there are 15 boxes at the bottom that will fill up with more data from the database. I apologize for censoring the data, but you can see what I'm giong for. The table fills up with data, and then there's another table at the bottom that, when an ID number is clicked, should fill up with more info for that Id.
The problem I'm having is that, as the Recordset is stepped through to fill up the table, it gets to the end and keeps pointing at the last record in the database. I need to find a way to make it point at the record I clicked on so that it can get all of the data about that record. Any ideas how to do it?
Only 2 ways I know of that will do what you want.
Using JavaScript as #Ed suggested. This will give you results in
your bottom table without a page refresh.
Using VBScript, generate a URL with a querystring with the ID you
want. Use the ID to populate your bottom table. This will require a
page refresh.

Display NSMUtableArray items in Iphone?

I am a newbie to objective-C and I have a particular concept but couldn't get where to start and how to start.I need the advice of experts over here..
My concept is:
I have to load the xml response from a service url and store it in NSMutableArray.And then I have to display that particular Array data in rows and columns..something like adding in gridview and when a user select a particular item that value should display in textfield giving user an option to select only one value at a time.suppose the data I receive from url is id's(suppose 16 values(which may vary) from a particular tag in xml response)then when I have to bind this to gridview and give an option to select one value and display in textfield..I donno where to start and how to start?
Please help..
Solved it by customing UITableView and made it to load array data in rows and columns correspondingly..

Resources