Performance from removing a table
If i wanted to update data in table with a new set of data, at the moment i am removing the table from the GUI and then instantiating a new table and adding it back to the GUI.
Would i be right in assuming this is costly on performance?
Is the alternative to create a tablemodel and as the data changes in the model, would i use JTable's method setModel() to update the data??
Cheers
Dave
If i wanted to update data in table with a new set of dataIf you are changing all the data in the model, then creating a new model and using the JTable.setModel(...) method is the most efficient. However there is one gotcha. All the custom renderers you have attached to the table and any reordering of table columns the user may have done will be lost. To prevent this make sure to use the following:
table.setAutoCreateColumnsFromModel(false);
table.setModel(...);
If you are only changing a couple of values then use the JTable.setValueAt(...) method.
Similar Messages
-
How to remove the default members of a dimension from the control table?
Hi all,
I am new to hyperion FDM 11.1.1.2.0.0 .
When I navigate to Metadata>Control Tables and try to delete the default memmbers
for the dimension like category and period i got the following error.
Error: Period( 8/31/2009 ) is an active Global or Local Period and cannot be deleted.
Then again i unchecked active checkbox for that dimension from Hyperion Essbase Integration Setup of Workbench Client.
After doing that i got the following error
Error: Unable to retrieve target System Data.
Can anyone tell me how to remove the default members of a dimension from the control table?
ThanksCreate a new record for the table.
Go change the POV to the new record.
Return to the control table and delete the default record. -
How to delete(remove) one row(record) from a dynamic table
Hi,
I have adynamically created table.
I want to delete 1 record(Row) from that Dynamic table.
Say if my dynamic table contains 5 records(rows);after deletion of 1 record(1 complete row)from that dynamic table,the number of records(rows) should be 4 .
Please suggest me how to proceed.
Please provide me some sample code.Its not working
I tried with these code:-Its not working-->
IPrivateExportexView.IEt_WriteoffNode node=wdContext.nodeEt_Writeoff();
IPrivateExportexView.IEt_WriteoffElement nodeEle= node.createEt_WriteoffElement(new Zfrm_Writeoff_P());
node.removeElement(nodeEle);
Please suggest
Thanks
-SandipHi,
*int n=wdContext.nodeTable().getLeadSelection();*
*wdContext.nodeTable().removeElement(wdContext.nodeTable().getTableElementAt(n));*
Further more , an example is given below for better understanding , do modifications according to your need.
node :
value node - Table (cardinality - 0..n , selection 0..1)
no ( value attribute - string )
name (value attribute - string )
// create node elements
for(int i=0;i<5;i++)
IPrivateClearnodeElements.ITableNode node = wdContext.nodeTable();
IPrivateClearnodeElements.ITableElement ele = node.createTableElement();
ele.setNo((101i)"");
ele.setName("name :"(i1));
node.addElement(ele);
// Apply template Table -- select -- table node or
// create a table UI element and set the property Datasource - Table ( of the context)
Insert Colum , in that column, next insert celleditor , of type text view , bind the property text -- to "name " of Table node of the context
Insert Colum , in that column, next insert celleditor , of type text view , bind the property text -- to "no " of Table node of the context
// create a action "removeElement"
// create a button "Remove Element " --> Event action -- removeElement
// under the action write down the code :
public void onActionremoveElement(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionremoveElement(ServerEvent)
// before removing display elements
wdComponentAPI.getMessageManager().reportSuccess("Before deletion :");
for(int i=0;i<wdContext.nodeTable().size();i++)
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getNo()) ;
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getName()) ;
int n=wdContext.nodeTable().getLeadSelection();
wdContext.nodeTable().removeElement(wdContext.nodeTable().getTableElementAt(n));
// After deletion
wdComponentAPI.getMessageManager().reportSuccess("After deletion :");
for(int i=0;i<wdContext.nodeTable().size();i++)
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getNo()) ;
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getName()) ;
//@@end
If helpful , give points .
Let me know if any problem u face .
Thanks,
Srini -
It is really monday,
I can not seem to find how to remove a table from a mapping that was put there by accident.Never mind. Ware scared by the Delete but tried it.
Just delete.
it does not delete the object.
An enhancement would be to call that remove from map. -
Forms Designer - Unable to remove Child Table from the form
Hello,
While testing adding additional attributes, I have assigned an additional child table to the form. However I am not able to remove it. I get an error message: "This version has been made active. Add/Update/Delete not allowed."
I tried creating new version and making it active to remove 'active' status from the form I modified, but still getting the same error. What am I doing wrong? Thank you in advance.creating new version and making it active to remove 'active+'
Make new version then remove child form and then make version active..
You are making version active b4 removing child table.
Don't change the sequence which I have written above. -
How to remove selected image from a light table?
According to the Aperture User Manual, when I select an image on a light table, I should be able to remove it (while still leaving it in the light table browser). However, this seems to work only for the image I most recently added to the light table -- when I select an image I added just before the most recent, the button at the upper left for "Light Table Put Back Selected" is grayed out. (Also, the command-shift-P shortcut shown in the tooltip doesn't do anything.) Am I misunderstanding the use of this button? Doing something wrong? I added some images, and decided I wanted to put a few of them back, but can't figure out a way to do that. Makes the light table pretty useless except for layout of a set of images you are already committed to. Doesn't seem possible.
Hey, thanks -- everything worked as you described. It never would have occurred to me that the "put back" button refers to the browser selection not the layout selection, for reasons I give below.
I think Aperture exhibits some conceptual confusion here. First of all, a "light table" is created by the New > Light Table command, and you add images to the newly created light table just as you would add them to an album. But those images don't go on the light table layout until you drag them from the browser to the layout table. The "put back" button and "remove from light table" contextual menu command both mean remove from the layout. The phrasing of the contextual menu command make it sounds as if it will remove the clicked image from the light table's collection of images, like removing an image from an album -- it would have made more sense to name this command "put back". Furthermore, the "put back" button is above the layout display, not above the browser, which to me implies that it applies to selections in the layout display. To select an image in the browser, and click "put back selected" seems backwards -- if you just selected the image in the browser, your attention is focused on the browser, not the layout; from the browser's point of view, the button should read "bring back" not "put back".
The documentation didn't really help when I was trying to figure this out. Sometimes the Aperture documentation refers to just a "light table", as on the overview on page 732. On pages 733 and 734, though, it refers to a "light table album". On page 735 of the Aperture manual there is a very brief explanation of how "to add images to the light table" and "to remove an image from the light table". Here, "light table" refers to the layout not the album. The explanation of the "Put Back Selected" button says to select an image then click the button, and the picture shown is of an image selected in the layout, not in the browser. -
Hello,
How to find and remove obsolete table entries from below tables in EWM System.
/SAPAPO/MATKEY
/SAPAPO/MATMAP
/SAPAPO/MARM
/SAPAPO/MATLOC
/SAPAPO/MATMOD
/SAPAPO/MATRQ
/SAPAPO/MATLOTSZ
Thank you,
PravinPravin,
First, tell me how you determine that these entries are 'obsolete'.
Removing master data from SCM can usually be done using transaction WUF; however, you have to ensure that it is not re-sent to the SCM system, or you are just wasting your time.
Best Regards,
DB49 -
How to remove a table from Replication
Version: SQL 2008 R2
Problem: I have a user who wants to remove table, but when she tries to remove it ( drop the table), she gets an error:
===========================================================
MSG 3724, Level 16, State 2, Line 6: Cannot drop the table, 'dbo.<table name>' because it is being used for replication.
MSG 2714, Level 16, State 6, Line 2
There is already an object named '<table name>' in the database.
============================================================
To investigate, I saw the following:
In the SSMS---> Replcation---> Local Publication--> [XYZ].Pub_XYZ
[SERVER Name].[XYZ_Replication]
Local Subscriptions:
[Reference DB].[Server\Instance].[Instance Name]:ABC.ABC_TO_XYZ.Reference DB).
How do I remove that table? Do I need to edit Replication? How? Which one?
Thanks for your help.You need to reinitialize the subscription.
If a subscription is not synchronized within the maximum distribution retention period (default of 72 hours) and there are changes in the distribution database that have not been delivered to the Subscriber, the subscription will be marked deactivated by the Distribution
clean up job that runs on the Distributor. The subscription must be reinitialized.
If a subscription is not synchronized within the publication retention period (default of 336 hours), the subscription will expire and be dropped by theExpired subscription clean up job that runs on the Publisher. The subscription must
be recreated and synchronized.
If a push subscription expires, it is completely removed, but pull subscriptions are not. You must clean up pull subscriptions at the Subscriber. For more information, see Delete
a Pull Subscription.
--Prashanth -
Need to delete specific Months Data from SQL Server Table
Greetings Everyone,
So i have one table which contains 5 years old data, now business wants to keep just one year old data and data from qurter months i.e. (jan, mar, June, sep and December), i need to do this in stored procedure. how i can achive this using month lookup table.
Thank you in advance
RHi Devin,
In a production environment, you should be double cautious about the data. I have no idea why you’re about to remove the data just years old. In one of the applications I used to support, the data retention policy is like to keep raw data for latest month
and the elder data would get rollup as max, min, average and so on to store in another table. That’s a good example for data retention.
In your case I still suggest you keep the elder data in another table. If the data size is so huge that violates your storage threshold, get the data rollup and store the aggregated would be a good option.
Anyway if you don’t care about the elder data, you can just delete them with code like below.
DELETE
FROM yourTable
WHERE YEAR(dateColumn) < YEAR(CURRENT_TIMESTAMP) OR (MONTH(dateColumn) not in (1,3,6,9,12) AND YEAR(dateColumn) = YEAR(CURRENT_TIMESTAMP))
In some cases to remove data from very large table, DELETE performs bad. TRUNCATE would be a better option which works faster. Read more by clicking
here. In your case, if necessary, you can reference the below draft code.
SELECT * INTO tableTemp FROM yourTable WHERE YEAR(dateColumn) = YEAR(CURRENT_TIMESTAMP) AND MONTH(dateColumn) IN(1,3,6,9,12)
TRUNCATE yourTable;
INSERT INTO yourTable SELECT * FROM tableTemp
As you mentioned, you need to do the deletion in Stored Procedure(SP). Can you post your table DDL with sample data and specify your requirement details so that I can help to compose your SP.
If you have any question, feel free to let me know.
Best regards,
Eric Zhang -
How to Reduce cost of full table scan or remove full table scan while execu
Dear Experts
need your help.
I execute a query and create a explain plan in that plan i found cost of a table is very high (2777) and it was full table scan.
Please guide me How to Reduce cost of full table scan or remove full table scan while execute the query.
ThanksNeed your help to tune this query..
SELECT DISTINCT ool.org_id, ool.header_id, ooh.order_number, ool.line_id,
ool.line_number, ool.shipment_number,
NVL (ool.option_number, -99) option_number, xcl.GROUP_ID,
xcl.attribute3, xcl.attribute4
FROM oe_order_headers ooh,
xxcn_comp_header xch,
xxcn_comp_lines xcl,
fnd_lookup_values_vl fvl,
oe_order_lines ool
WHERE 1 = 1
AND ooh.org_id = 1524
AND xch.src_ref_no = TO_CHAR (ooh.order_number)
AND xch.src_ref_id = ooh.header_id
AND xch.org_id = 1524
AND xcl.header_id = xch.header_id
AND ool.line_id = xcl.oe_line_id
AND ool.flow_status_code IN
('WWD_SHIPPED',
'FULFILLED',
'SHIPPED',
'CLOSED',
'RETURNED'
AND ool.org_id = 1524
AND ool.header_id = ooh.header_id
AND xch.org_id = 1524
AND fvl.lookup_type = 'EMR OIC SOURCE FOR OU'
AND fvl.tag = '1524'
AND fvl.description = xch.SOURCE
AND EXISTS (
SELECT 1
FROM oe_order_lines oe
WHERE oe.header_id = ool.header_id
AND oe.org_id = 1524
AND oe.line_number = ool.line_number
AND oe.ordered_item = ool.ordered_item
AND oe.shipment_number > ool.shipment_number
AND NVL (oe.option_number, -99) =
NVL (ool.option_number,
-99)
AND NOT EXISTS (
SELECT 1
FROM xxcn_comp_lines xcl2
WHERE xcl.GROUP_ID = xcl2.GROUP_ID
AND oe.line_id = oe_line_id))
call count cpu elapsed disk query current rows
Parse 1 0.07 0.12 12 25 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 103.03 852.42 176206 4997766 0 12
total 4 103.10 852.55 176218 4997791 0 12
In this LIO is very high...can u please help in resolving this performance issue -
DB Connect Load - "Unknow error while uploading data from the DB Table"
Hi Experts,
We have our BI7 system connected to Oracle DB based third party tool. The loads are performing quite well in DEV environment.
I would like to know, how we transport DB Connect datasources to Quality systems? Any different process to be followed for DB Connect datasources?
At present the connections between BI Quality and the third party quality systems are established. We transported the DataSource from BI DEV system to BI quality system, but on trigerring an infopackage we are not able to perform loads. It prompts - "Unknow error while uploading data from the DB Table".
Also on comparing the DataSources in DEV system and Quality system there are no fields in "Proposal" tab of datasource in Quality system. Also I cannot change or activate Datasource in Quality system as we dont have change access in quality.
Please advice.
Thanks,
AbhijitHi,
Sorry for bumping an old thread ....
Did this issue get ever get resolved?
I am facing the same one. The loads work successfully in Dev. The transport for DBConnect DS also moved in successfully.
One strange this is that DB User for dev did not automatically change to db user from quality when I transported the DBConnect datasource. DBCon DS still shows me the DB User from Dev in Quality system
I get "Unknown Error" whenever I trigger the data package.
Advait -
Displaying fields from a Z Table on CRM UI
Hello Experts
I am trying to display fields from a custom table onto a CRM UI form view.
1. I created a custom GENIL root object & Search object ie. ZCUSTOMER. & ZCUSTSEARCH
2. Tested this in the GENIL BROWSER to ensure that I could enter update values to the table and retrieve it via the search object.
3. Created a custom component ZCUSTOMER
4. Created a view with this component ZCUSTOMER using the wizard -
Model Name - CUSTINFO
BOL Entity - ZCUSTOMER
No links to the custom controller or higher level objects.(as I do not want to tie this to any standard components)
Type of view - Form view
7. Created a Context node for the component controller with the same info as I did for the view.
8. Performed the binding of the view context node with the component controller context node.
9. Configured 1 field CUST_NAME to be displayed on the view.
10. Configured the run time repository to display the view.
Now the issue is..
When the view gets displayed, the field is displayed with the error "CUST_NAME not bound"
What am i missing?
Thanks
RLXHi Swati,
Thanks for the feedback. I re-viewed the WD_CREATE_CONTEXT method of the view controller implementation class and I see the following code in there already-
method WD_CREATE_CONTEXT.
create the context
context = cl_bsp_wd_context=>get_instance(
iv_controller = me
iv_type = 'ZL_ZCUSTOMER_BSPWDCOMPONEN_CTXT' ).
typed_context ?= context.
endmethod.
Does that look right or do I need to modify it?
Thanks once again for the help.
RLX -
Copying information from one repeating table to another repeating summary table?
Hi,
I have designed a dynamic form with a Table 1 (Investigator details) to be completed at the start to provide a list of investigators. This is a repeating table, and I have added buttons to add / delete an investigator (i.e. add/remove a row). I also have another repeating Table 2 at the end of the form to allow the investigators to be listed so they can insert a signature image (signature table).
Is it possible to set this up so that when one adds an investigator (row) in Table 1, a row is added automatically to Table 2? I then want the Title First name last name to copy into the "Investigator Full name" cell in Table 2. Can this be done and keep the automatic renumbering of the rows in both tables?
I am not sure how to upload a file to show you what I have, so please let me know and I can send a copy directly.
I would appreciate if anyone has any suggestions for a code to do this.
Regards
SouheirHi,
Check the code below
Data: itab1 type table of tab1,
itab2 type table of tab2.
* itab2 is of new table type created from some fields of tab1
* In the select statement below you can select few fields depending upon your requirement
select * from tab1 into table itab1.
loop at itab1 into wa1.
wa2-f1 = wa1=f1.
append wa2 to itab2.
endloop.
insert itab2 into tab2.
Regards,
kinshuk
PS: Reward points if you find it helpful -
Delete all entries from the following tables - Follow-up Activities (oracle)
Hello,
I performed a homogeneous system copy of our development BW system with the database (oracle 11.2.0.3) from the BW production system!
I already start the oracle database and the SAP system in the target system/server (development BW system) and I´m doing some follow-up activities. One of this activities is (at the system copy guide 6.2.3.2 Activities at Database Level) is to delete all entries from the following tables:
DBSTATHORA, DBSTAIHORA, DBSTATIORA, DBSTATTORA
I tried to delete them using SQL Plus:
sqlplus /nolog
SQL> connect /as sysdba
SQL> delete from DBSTATTORA;
delete from DBSTATTORA
ERROR at line 1:
ORA-00942: table or view does not exist
... and it show me that error message.
This is strange because when I go to transaction SE14 and check the DBSTATTORA I see that table exist and contain a lot of entries!
Why this is happened in SQL Plus!? I´m running the correct SQL statement for doing this type of task or not?
How can I delete the entries of that tables? Can I do that using the transaction SE14?
Can you help me please?
Thank you,
samid raifHello
sqlplus /nolog
SQL> connect /as sysdba
SQL> delete from DBSTATTORA;
delete from DBSTATTORA
ERROR at line 1:
ORA-00942: table or view does not exist
It doesn't surprise me as you are not mentioning the schema name here. Instead it should be
delete from SAPSR3.DBSTATTORA;
Assuming the schema owner is SAPSR3. if the owner is different then replace that with the correct one.
Regards
RB -
Performance issue on LIPS table
Hi Experts,
I need to know the delivery for particular batches and materials,Hence i am using the below select query in my program
SELECT vbeln
posnr
matnr
werks
lgort
charg
lfimg
meins FROM lips
INTO TABLE int_lips
FOR ALL ENTRIES IN int_mchb
WHERE vbeln IN s_vbeln
AND pstyv IN s_pstyv
AND matnr EQ int_mchb-matnr
AND werks EQ int_mchb-werks
AND lgort EQ int_mchb-lgort
AND charg EQ int_mchb-charg.
My program is fine when delivery is given in the selection screen but it is taking lot of time when no delivery is entered in the selection screen.
Please guide me how can i increase my program performance. Is there is any need to create the secondary index?
Thanks in advance.
Regards,
KavyaUsing
vbeln IN s_vbeln
slows down your query as the cost of IN operator is high. If it is empty then all records are processed. As this is the left most column in the table so it double slows down as the set of records can't be restrcited to smaller group before next fields are compared.
The best would be
select-options s_vbeln ... obligatory.
"or
if s_vbeln[] is not initial.
select ....
endif.
Regards
Marcin
Maybe you are looking for
-
Poor follow up from Customer Service
Customer Service has very poor follow up. Multiple times I have called with phone not properly working and the initial person was not able to help. After an hour of being on the phone with him he said he would have to have someone else call me back.
-
CS6 Camera raw 7.0.0.308 : can't find manual defringe tool
CS6 Camera raw 7.0.0.308 : can't find manual defringe tool, only automatic by checking a box. The lens effect tool only offers custom and manual panel. No colors for manual defringing. ??
-
i just bought a adobe photoshop elements 12 for windows in the store , why the serial number on the box is invalid ?
-
Grid Y negative and positive chaged in CS5
I know there is another thread with discussion on why different programs have the y axis inverted, which is fine. The problem is that all previous versions of Illustrator have your zero point as it would be on a normal mathmatical grid. Why now aft
-
How to do a sender File Content Conversion with this structure ?
Hi SDN, I have a flat file with this format : header1 header2 headerN detail1 detail2 detailM header and detail are strings with differents lengths. There is no key field. What are the method to do a FCC with this structure ? thanks in advance Greg