why is the working only when I switch tabs? - eclipse-plugin

Can someone please help me to get to the bottom of this.
I have a table in a viewer(TableViewer) which is showing the
data. The "viewer" is in a class called "DetailsView1" that extends
ViewPart.
I have a class called "Model1" which is implementing
IPropertySource, which I want to show in the properties panel when a
row is selected in "viewer" table.
I select a row1 on the viewer1 and row1 gets selected(highlighted blue) , properties panel nothing happens, select row2 and row2 data gets selected(highlighted blue). I take focus on to another tab and come back to "viewer" tab, row2 is greyed but, properties panel now shows "Model1" data.
So please will someone help in my understanding or what I can do to fix it?
Thanks in advance,
Jemrug

Related

Attach user form to UDF which is created in system form

I'm learning sap b1. I have created a field in marketing document. When I enter any value in this field and press on tab button, my user defined form should be open with the data from OITM table and find textbox and highlight the record with value which I entered in UDF.I already seen sample of SimpleForm but not getting anything from it. How can I achieve this?I'm using C# in VS. Plz help me with some examples/hints/code. I would be really grateful for your help!
Thanks.
You need to use choosefromlist controll, you should set Choosefromlist to item object 4, then in EditText properties choose this CFL and in the Alias field enter table filed which you want to filter when tab is pressed.

Tableau, how to remove legend

I have workbook on Public Tableau to keep track of daily studytime.
I didn't study yesterday :-( so I want it to show zero.
However, it appears in legend as Null
This is my data
And this is the graph. I circled part of legend that I wish to remove. Please assist.
You can right click on the null in the legend and select "exclude" that will hide it.
Also, I wanted to point out that this null is not coming from the zero in your data it is coming from a missing value in the "method" column.
To remove legends you can Drag "method" into filters and unmark null from the filters so this will not display Null in legends.
Refer this link to view output
In your Example you have to drag "Method" in place of Quantity in my example and uncheck "Null" from the filter You will get desired results.

Assigning DataGridView_1 (DGV) to DGV_2 and DGV_2 doesn't update

I have successfully found an answer to every question I ever had since I started with VB.NET 2 years ago by trawling forums, but this time I failed, and I decided to join my favourite forum where I have always found the best answers. This one :-)
I am somewhat of a beginner, so load you flack-guns 'cause here we go...
In my main form I have a DGV (called "gridDisplay") to display data. This DGV is a read only one as it is only used to disply data, not to inteact with it.
I have any number copies of a class (called "TaskData") that holds data to be displayed, and the data to be shown in the main form is that of the active "TaskData" class.
I came up with the brilliant (I have my doubts now...) idea to let the TaskData class make a DGV as it knows what data is in it and how to display it, and then all I had to do in the main form was to set the DGV there to that of the Active TaskData Class (see code below)
With ActiveTask
'Assign the active DataDisplay to the one in the main form
Me.gridDisplay = .TaskData.DataDisplay
Me.gridDisplay.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders
Me.gridDisplay.Refresh() 'Trying to make it update
Me.gridDisplay.Update() 'Trying to make it update
MsgBox("Row count: " & Me.gridDisplay.RowCount)
End With
Ok, so the DGV in the .TaskData.DataDisplay has one column and 500 rows. The One in the main form is set up with a default of 2 columns and no rows (set up in the designer)
After the code above, nothing happens visually in the main form. Still 2 columns and 0 rows. However, the text box says: "Row count: 500" And if I put a break point there I can inspect Me.gridDisplay and it has all the data that should be there.
Why doesn't it show up?
Am I doing something unwise by assigning one DGV to another?
Any help would be much appreciated.
Any constructive critizism equally so :-)
I think you should call the datasource again before
Me.gridDisplay.Refresh()Me.gridDisplay.Update()
Something like this,
gridDisplay.DataSource = dataset.Tables["your table"];

Edit DataGrid row redirect to another page with holding the data in the coresponding fields?

I have a Data Grid view with the following colums, in VB.Net
Student Name, Address , Phone etc. and edit hyperlinkfield as well.
When I click on the Edit link on a Row, it should redirect me to studentdetails page and carrying the row value to the corresponding controls like Nametext , addresstext, phonetext controls etc.
I am new to vb.net and datagridview. Can anyone let me know how this works?
Thanks in advance
Place code to open the new form/page in the hyperlinkfield's click event. To access the other information from the same row you can use
DataGridViewName.CurrentRow.Cells(studentName).value
or
DataGridViewName.Rows(e.rowIndex).Cells(studentName).value
Then you get these values for the current row and pass them to whatever method in launches your new page, or set as properties on the edit form.

Grids get empty when I click on some other tab

I have a question, I have a combo box, which when changed fills the data grid. Now Wen I change the Tab and come back to same tab again(one containing the combo box)..the value of combo box remains there, however the grid gets empty. I need this data to be maintained till the user selects another value from drop down.How can this be done???
Any suggestions would be appreciated.
Some of the possible reasons :
There is a MyDataGrid.clear somewhere
The DataSource used to fill the grid is somewhere cleared.
If you use a DataSet, your DataTable is somewhere truncated.
If you use a BindingSource as your DataSource, maybe somewhere else you're using the same BindingSource, which empties the grid.
I would recommend you to put a braekpoint on your Combobox change value event to see if it's not called with a wrong value somewhere else.
And I would add a spy to check your DataGrid (the number of lines for example) to precisely know where it happens by executing my code step by step.
Hope this helps !