Sap.table.table onAfterRendering event breaks the table rows and cols
Hi guys,
I am coloring all the rows, which don't have an entry.
I do that by using the event onAfterRendering from the table control.
The coloring is working fine, but the rows and cols get broken as u can see on the attached picture.
By adding a new entry to the table, they get fixed.
Any ideas how could i fix that?
I appreciate any help.
Regars,
Georgi
This is because you have overwritten the library code :-)
please do this.
<yourControl>.onAfterRendering = function() {
sap.ui.table.Table.prototype.onAfterRendering.apply(this);
<your code> ....
-D
Similar Messages
-
Genaric Include in event of the table maintainance genatrator
hi,
i want to create a include that should be genaric ( it should work for all tables ) to update the fileds like creator name, create date, change name and change date which are in the include structure .
this include can be used in the event of the table maintainance genarator . this should work for all tables.
can any one help me in this regard.
cheers,
srak.any updates...
cheers,
srak. -
I can't be the only person who has this problem with iCal- when a month ends on a Saturday I can't drag events into the next month and instead have to cut and paste - a real pain in the butt. I thought there was something called "scroll" but I can't find that.
Yeah that works, but, it involves a click on the event, a click on edit, a click on the date, keystrokes, plus, since you can't see the next month you have to have a calendar in front of you so as to put it to the right date. It's easier just to cut it and advance the month and paste it, once you are in the right month you can move it around helter skelter willy nilly no problems. Although now that you mention it I will try it, maybe it is easier than cut and paste as I don't really care about the date, as long as it gets moved into the right month I can drag it around all I want.
-
How to Handle the chaned rows and new added rows into ALV in OPPS alv .
Hi All,
I have developed a [program in which i am able to append a row or change and existing row.
when i press save button and handle the user command in PAI of Screen, in the internal table of ALV some records are missing which are inserted in the last.
Could You please guide me how can i handle the change rows and appended rows
Regards,
DeepakHi ,
as avinash said , u need to use check_changed_data Method in order to get all records ,
code will be like this
PAI
user-command.
case sy-ucomm.
when 'ENTER'.
call method G_grid->check_changed_data.
call method g_grid->refresh_table_display.
when 'SAVE'.
call method G_grid->check_changed_data.
call method g_grid->refresh_table_display. -
The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
pear to be working or at least I am not getting any indication on the inidcator.
Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
Attachments:
regulation_tester_7_loops.vi 244 KBI didn't really have time to dig in and understand your program in depth,
but I have a few tips for you that might things a bit easier:
- You use local variables excessively which really complicates things. Try
not to use them and it will make your life easier.
- If you flowchart the design (very similar to a dataflow diagram, keep in
mind!) you want to gather data, calculate a value from that data, store the
calculation in an array, and loop while the time is in a certain range. So
theres really not much need for a sequence as long as you get rid of the
local variables (sequences also complicate things)
- You loop again if timepassed+1 is still less than some constant. Rather
than messing with locals it seems so much easier to use a shiftregister (if
absolutely necessary) or in this case base it upon the number of iterations
of the loop. In this case it looks like "time passed" is the same thing as
the number of loop iterations, but I didn't check closely. There's an i
terminal in your whileloop to read for the number of iterations.
- After having simplified your design by eliminating unnecessary sequence
and local variables, you should be able to draw out the labview diagram.
Don't try to use the "insert into array" vis since theres no need. Each
iteration of your loop calculates a number which goes into the next position
of the array right? Pass your result outside the loop, and enable indexing
on the terminal so Labview automatically generates the array for you. If
your calculation is a function of previous data, then use a shift register
to keep previous values around.
I wish you luck. Post again if you have any questions. Without a more
detailed understanding of your task at hand it's kind of hard to post actual
code suggestions for you.
-joey
"nelsons" wrote in message
news:[email protected]...
> how do I create a 1d array that takes a single calculation and insert
> the result into the first row and then the next calculation the next
> time the loop passes that point and puts the results in thsecond row
> and so on until the loop is exited.
>
> The attached file is work inprogress, with some dummy data sp that I
> can test it out without having to connect to equipment.
> The second tab is the one that I am having the problem with. the
> output array from the replace element appears to be starting at the
> index position of 1 rather than 0 but that is ok it is still show that
> the new data is placed in incrementing element locations. However the
> main array that I am trying to build that is suppose to take each new
> calculation and place it in the next index(row) does not appear to be
> working or at least I am not getting any indication on the inidcator.
>
> Basically what I am attempting to do is is gather some pulses from
> adevice for a minute, place the results for a calculation, so that it
> displays then do the same again the next minute, but put these result
> in the next row and so on until the specifiied time has expired and
> the loop exits. I need to have all results displayed and keep building
> the array(display until, the end of the test)Eventually I will have to
> include a min max section that displays the min and max values
> calculated, but that should be easy with the min max function.Actually
> I thought this should have been easy but, I gues I can not see the
> forest through the trees. Can any one help to slear this up for me. -
How to set the Selected row and Column in JTable
Hi,
i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any solution then i will be thankful to him/her.
Praveen K SaxenaIs that what you're looking for? :myTable.getSelectionModel().setSelectionInterval(row, row);
myTable.getColumnModel().getSelectionModel().setSelectionInterval(column, column); -
Suppressing the total row and column in OLAP datagrid
I have created an OLAPDatagrid and everything looks fine
except that I don't want to show the '(All)' row and column in the
grid. Is there a way to suppress them?
Thanks,
FredInstead of using members() in the query use children() for
the attribute/hierarchy. -
Delaying a function so ADF will get all the selected rows and run only 1 time ?
Hello,
I'm using JDeveloper 12.1.2.0.0.
I have a group of functions that are executed after i click on one or more rows, which is called:
public void onDimProjectSelect(SelectionEvent selectionEvent)
Whenever i shift-click some rows (lets say, for the purpose of this example, that i shift-click the 1st row to the 5th row, so i shift select and i get selected the rows: 1,2,3,4 and 5).
I did notice that what happens is that the function onDimProjectSelect will execute with the 1st row, and after it runs all the functions, it will run again the function onDimProjectSelect with the 1, 2, 3, 4 and 5 rows as it should in the first place.
Why is this happening? I've tried to add a delay but i did not work.
This is really a pain because its spending time executing a function without all of the rows that is suppose to have, so it will run again.
I think the problem here is how ADF does the selections for the function but i don't know how to change it.
Any ideia of why is this happening? What can i do to correct this?
Regards,
Frederico.Hey Frank,
I mean that my function onDimProjectSelect has other functions inside that need to be executed so when i say that is runs all the functions i mean the functions that are suppose to execute when onDimProjectSelect is executed.
Maybe the problem is my implementation approach but it was required to use the selection. But the funny part is that i select with the shift-click and he knows that, since it will run the function with all the rows that are selected but firstly he will execute the function with just the first selected row. -
I'm using a DataGridView (I call it "dg") to display a list of items. I want the user to be able to position the cursor on a row in the middle of the list then click a button to move that row to the top of the list (and move the other rows between
the first row and the row being moved down one row to accomodate the new first row).
Robert HomesHello,
If the DataGridview does not have it's DataSource set we can use the following logic
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim data = (From T In DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells.Cast(Of DataGridViewCell)() Select T.Value).ToArray
DataGridView1.Rows.RemoveAt(DataGridView1.CurrentRow.Index)
DataGridView1.Rows.Insert(0, data)
End Sub
If the DataSource is set then we need to do what was done above but against the underlying data rather than the DataGridView itself. The base logic can be found in
the following article in LanguageExtensions.vb but please note the code there is for a different type of move yet the logic is still the same in the end.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Need to know ,how SAP is Posting wrong Enrtry at the Table level for Same .
Hello SAP Experts ,
Good Morning Gems!!!
I have a Typical Issue here , SAP Is Posting In wrong tables
. Production is currently processed everything that it should process. This works as designed.
PO = 7800507594 (From Plant 5400 to Plant 5409 - only NL, no intercompany)
Dlvry = 81243277 (Has PGI but no Invoice, as it is the same company code!!!
The issue is that for some reason, SAP has put an entry into table VKDFS by mistake. This table is used by SAP to determine the list in VF04. This is why VF04 thinks it should create an invoice, but it should not. so we are getting error message that the Invoice cannot be created , which is valid, and a good thing.
Do we have OSS for 2 things:
1) A note that mentions why it is determining the wrong CoCode or Sales Area which leads to the entry into this table
This is to stop it from adding entries incorrectly.
2) A note that mentions how to fix the existing entries in this table that should not be there?
Awarded Full Points for the Correct answer
Thansk and Regards
Adarsh Srivastava
Supply Chain Consultant ,
CSC INDIADear Friend,
I guess you item category in Delivery Document would be NLN.
Go to VOV7 & under Business Data there is a check box for Billing Relevance. This box should be blank. I mean if there is any entry in this box (either A or J) then remove it & make it blank.
Hope this helps...
Thanks,
Jignesh Metha -
How to insert a row in Tree table which is dragged from the table?
Hi All,
I am having a Tree table and a Table in the same page, like below
Treetable Table
Item1 Subitem12
Subitem1 Subitem13
Subitem2 Subitem14
Subitem3 Subitem15
Subitem4 Subitem16
Item2 Subitem17
Subitem5 Subitem18
Subitem6 Subitem19
Subitem7 Subitem20
Subitem8 Subitem21
Item3
Subitem9
Subitem10
Subitem11
The requirement is i need to "drag" a row from the Table and place it under any parent node in the Tree table.
What i have done is I make the Tree table as ".ui-sortable" and table as a "draggable".
I am not able to find the position of the dragged item when i dropped it in the Treetable.
Please provide me a solution.
Regards,
AravindhHello:
Do you mean setting the selectedRowKeys in the setter method of the treeTable in the Request Scoped Managed Bean?
If that is what you mean, I tried that and there was no change in behavior. (Still does not highlight the correct row in the tree table upon execution of the next method for the bindings) Does anyone have any sample code they can provide that works?
Thanks for the help. -
I've tried both creating the table using Thunderbird, as well as creating the table in Word first and the problem is the same. I've reinstalled and updated both the mail merge add on and Thunderbird.
If you do not need all the excel specific items you can just write it to a spreadsheet using the write to spreadsheet file vi's.
If you want to go the excel route you will have to use active x. you can see a lot of examples on the excel board under the breakpoint forum. please post a sample of how you want your data to look and I can maybe help explain what options you have. and also oyu do not necesarily need the report generation toolkit.
Joe.
"NOTHING IS EVER EASY" -
I am creating a pages document with a table where I have entered merge fields and want the table filled out with data from a numbers spreadsheet. Instead of pulling data and filling the next rows down it is giving me a separate sheet per data. This worked fine in Word/Excel. What am I missing here?
I am creating a pages document with a table where I have entered merge fields and want the table filled out with data from a numbers spreadsheet. Instead of pulling data and filling the next rows down it is giving me a separate sheet per data. This worked fine in Word/Excel. What am I missing here?
-
Compare tables in two schemas for the table with particular column & value
Hello All,
I have a query to find out the list of table from a given schema to extract all the tables having a search column .
ex :
SELECT OWNER, TABLE_NAME, COLUMN_NAME FROM
ALL_TAB_COLUMNS WHERE OWNER='<SCHEMA_NAME>'
AND COLUMN_NAME='<COLUMN_NAME>'
I want to compare two schemas for the same above query .
Can we wirte a query on this - I am using SQL DEVELOPER , which has menu item - TOOL - database differneces to find the diffenence between two schemas but my requirement is to find the differences in two schemas for all the tables matching for a particular column ( as given in quer).
Appreciate your help.
thanks/Kumar
Edited by: kumar73 on 29 Nov, 2012 1:50 PMHi, Kumar,
This is the SQL and PL/SQL forum. If you have a question about SQL Developer, then the SQL Developer is a better place to post it. Mark this thread as "Answered" before starting another thread for the same question.
If SQL Developer has a tool for doing what you want, don't waste your time trying to devise a SQL solution. The SQL Developer way will probably be simpler, more efficient and more reliable.
If you do need to try a SQL solution, then post some sample data (CREATE TABLE and INSERT statements for a table that resembles all_tab_columns; you can call it my_tab_columns) and the results you want from that data. -
Invalid table name when pass in the table name as variable in dynamic sql
Hi,
I need to create a stored procedure which will return a list of data to my java application like the following.
first, select the table name from the first table.
For example : SELECT T_NAME FROM MDR_SMSTABLES
second, select the data from the table which returned by first select statement
For example : SELECT * FROM T_NAME.
I use dynamic sql with cursor to select the data. But it returns "java.sql.SQLException: ORA-00903: invalid table name"
I fetch the table name to varchar2. I think this might the cause it returns me the this error. But i don't know what type should i put for the table name other then varchar2.
val2 VARCHAR2(200);
OPEN cv FOR
SELECT T_NAME FROM MDR_SMSTABLES WHERE T_DATE=d_dt_sent;
FETCH cv INTO val2;
WHILE cv%FOUND
LOOP
OPEN refcur FOR
'SELECT * FROM :t WHERE MID = :m' USING val2, msg_id;
EXIT WHEN refcur IS NOT NULL;
FETCH cv INTO val2;
END LOOP;
As my stored procedure is quite long, so i just paste some of the code here. Hope the information is enough. Can anyone please help?
ThanksDECLARE
val2 VARCHAR2 (200);
cv sys_refcursor;
refcur sys_refcursor;
BEGIN
OPEN cv FOR
SELECT table_name
FROM user_tables
WHERE table_name IN ('EMP', 'DEPT');
FETCH cv INTO val2;
WHILE cv%FOUND
LOOP
OPEN refcur FOR 'SELECT * FROM '||val2;
EXIT WHEN refcur IS NOT NULL;
FETCH cv INTO val2;
END LOOP;
END;
Maybe you are looking for
-
I have a problem with my ipod video gen 3(classic) I try over and over again to turn it on, try charging it and it does nothing. It just display a skull. What can it be?
-
Servlet ,GET,POST,"Network error Connection reset"
Hi all, I am having some problems with the get and post method handling while using servlet runner which comes along with JSDK2.1 Get works fine , but when i invoke the post method , I get an error...."Network error...Connection with server reset" Ha
-
Is there significant advantages of the iphone 4s over the iphone 4
-
How can I turn off Start up Sound?
How can I turn off the start up sound, on both my 10.7.5 iMac 24" Late 2006 and my 10.8.3 iMac 27" Late 2009 Mountain Lion. Plus my Superdrive has stopped working on both Computers. Please help asap. With kind regards, and many thanks.
-
WMV files not displayed in compiled CHM
Working in RoboHelp 10. I added a multimedia files to an HTML topic using Insert>Multimedia\demo. I generate a chm file using: Generate> webHelp to CHM Converter I have a folder of video files (wmv) in the same folder as the help.chm file. The vi