How to edit a table row on same window in Eclipse RCP ? - eclipse-rcp

I have a table with many rows on a window. I want to edit a row. I have two options
I can open that row values in editor and then save.
I can open that row in the same window (beneath table), edit and save (same like above but on the same window where I am showing table).
I want to do second option.
any help (more details can be provided if required to understand the question)

You can make columns editable using makeEditable
Refer this link :
http://www.ralfebert.de/blog/eclipsercp/tableviewerbuilder/

Related

when i try to alter table i cannot see my values on MySQL workbench

When I pressed alter table, I can't edit my variables because it is blank as shown from the picture. I am not able to change anything and see what variables my table has.
The picture shown of MYSQL problem:
I'm not sure which variables you mean, but your actual problem might be that the table editor is too small to show the list of table columns. If you make the Workbench window taller or close the output pane, then you will have more vertical space to show all editor parts like shown here:

How to select rows in swt table

I am trying to create a UI using SWT in eclipse. I have a table with multiple rows and two buttons Start and Next.When I click on Start, the first row is supposed to get selected. When I click Next, the next row has to be selected. And when a row is selected I have to read the corresponding row data.
I tried using
tableViewer.getTable().setFocus();
tableViewer.setSelection(new StructuredSelection(tableViewer.getElementAt(0)),true);
But no row is getting selected.
I also tried with table.getSelection(0);
And now each row is selected but with grey colour.As a result the row selection is not invoking table.addListener().
Please help me with this. I am new to this topic.
Thanks in advance.
You might have missed
tableViewer.refresh ();
before doing setSelection

How copy data from Excel to a table using Oracle SQL Developer

Is there any alternative way to copy the data from Excel sheet and paste it into a table using Oracle SQL Developer!?
For now I am using (PL/SQL Developer) by writing (for update) at the end of the select statement, Ex:
Select * from ABD
for update
Then paste the columns from Excel to the table...
Regards
Adel
It's not exactly copy and paste but you can import data from Excel using Oracle SQL Developer.
Navigate to the table you want to import the data into and click on the Data tab.
After clicking on the data tab you should notice a drop down that says Actions...
Click Actions... and select the bottom option Import Data...
Then just follow the wizard to select the correct sheet, and columns that you want to import.
EDIT : To view the data tab :
Select the SCHEMA where your table is created.(Choose from the Connections tab on the left pane).
Right click on the SCHEMA and choose SCHEMA BROWSER.
Select your table from the list (by giving your schema).
Now you will see the DATA tab.
Click on Actions and Import Data...
None of these options show up for me. The way to paste data from Excel is as follows:
Add an extra column to the left of your spreadsheet data (if you
don't have row numbers showing in PL/SQL Developer you may not have
to have an extra empty column to the left).
Copy the rows of data from your spreadsheet including the empty
column.
In PL/SQL Developer, open your table in edit mode. You can
right-click the table name in the object browser and select Edit Data
or write your own select statement that includes the rowid and click
the lock icon. Be sure your columns are ordered the same as in your
spreadsheet.
Here's the part that took me forever to figure out: click on the left
side of the first empty row to highlight it. It will not work if you
don't have the first empty row highlighted.
Paste as usual using Ctrl+V or right-click Paste.
I couldn't find this info anywhere when I needed it, so I wanted to be sure to post it.
You may directly right-click on the table name - that also shows the "Import Data.." option.Then you can follow few simple steps & succeed.
Do anyone know how to import a new table with data from excel?
Click on "Tables" in "Connections" window, choose "Import data ...", follow the wizard and you will be asked for name for new table.
For PLSQL version 9.0.0.1601
From the context menu of the Table, choose "Edit Data"
Insert or edit the data
Post change

In SSRS 2008, is there any way to add all dataset fields to a table at once?

I'm working with SSRS for the first time. When adding a table to a report, is there any way to add all fields of a dataset to it at once or does it have to be done individually? Drag & drop, insert column -> right is a pain when there are a lot of fields that are being displayed.
It's a bit of a workaround, but the "Add new report" wizard automatically creates a table with the specified columns and groups from your given dataset. I don't believe there's a way to trigger this functionality from within an existing report, but you could create a "sacrificial" report to get what you're looking for - run through the wizard, generate the table, and copy / paste it into your original report. As long as your datasets are the same, it should work just fine...
Hope this helps.
I have a similar problem as the op and am new to SSRS/BIDS. And, I am updating a previously created report which (for me) is too complex to just quickly re-create using the "wizard generation" as the datasource is a web service (with code-generated web service parameters, lots of calc'd datasource fields, etc). It is faster to just copy the .rdl, delete all, and create the table manually.
I thought I would add that (only a little better than op's method, but nonetheless it is time-saving) you can just drag and drop to populate columns w/o the "right click > insert column > right". Just drag the dataset field to the place you want it in the table and BIDS/SSRS will automatically insert a new column. It also helps to drag the latter columns first (i.e. always inserting a previous column) so you don't have to scroll to the right all the time.
I was looking for the similar thing and I have figured this out. Open your report in Report Builder 3.0 which is a free BI tool by Microsoft. Go to Insert > Table wizzard. Then just follow the wizard steps to generate auto columns. Save and reopen the file in your visual studio, file will refresh itself.
Ved
#Kevin Fisher actually there is no need a workaround. There is way to do this out of the box of Report Builder 3. Open your existing favorite report template. on the tool bar, click on INSERT tab, look for TABLE icon, click on the down-ward arrow at the bottom of the TABLE icon, then choose TABLE WIZARD. Then I guess you know what to do from here. -hope this help.
I agree that there is no way to bring all of the columns over from the data set to a table easily. But I came up with a method that helped me:
Insert a blank table (this usually gives you 3 columns). Then insert columns to the right of the table (right click, Insert Column, To the Right), as many times as you need in order for it to equal the number of columns in your data set.
Once you have all the blank columns created in your table, click inside a table cell box and use the drop-down to select the field. This has the added benefit of allowing you to get the fields in the correct order, since I've noticed that the field names in the dataset don't always appear in the same order as the SQL stored proc output.

Adding Row click event or a check box to each of the rows in a SSRS report

I'm new to SSRS. These may be very trivial questions.
I've a SSRS report, which shows employees in row by row format. Is there any way that I can double click on a row and get the corresponding employeeID of the row. And another question is can I have check boxes in each of the rows so that I can do something based on the rows that was checked? Please help.
Thanks in advance.
To your first question regarding dynamically hiding and showing the employeeid, you would want to use the Visibility property on the employeeid column,row or textbox and set visibility to "HIDE" and check "Display can be toggled by this report item" This will allow you to interactive show/hide the data.
Toggled Item Example
Another quick and easy option would be to set the tooltip property of one of the employee textboxes to
=Fields!EmployeeID.Value
This would give you the employeeid without clicking anything, just hovering over the field.
For your second question about checkboxes, the easy answer is no, it's not built-in to do that. But I have seen interactive "game" reports that run stored procedures to update data as you click on textboxes (which you could make to appear as checkboxes) and drill-through to itself to show refreshed data, but it's more of a hack than actual functionality. Here's a link to one of the examples I've seen.
http://blogs.msdn.com/b/robertbruckner/archive/2009/05/20/multi-player-gaming-in-rs-aka-bi-power-hour-2008.aspx