Insert or Edit a Table Row
I have created a new Project with Business components using a Microsoft Access DB with four tables. I can view succesfully the records on the tbales(next, prior, query).
I cannot Insert od Edit a record, the icons in the Navigator are greyout (not selectable).
How can make these icons available? Can somebody help me?
Thank you
You gotta put the gizmo control in neutral, and install a new flux capacitor.
Hope this Helps,
Eric
Similar Messages
-
How do I update/insert into a target table, rows after date X
Hi all
I have a mapping from source table A to target table B. Identical table structure.
Target table A updates rows and inserts rows daily. Every week I want to synchronize this with table B.
I have CREATION_DATE and LAST_UPDATE_DATE on both tables. I want to pass in a parameter to this mapping of date X which tells the mapping:
"if CREATION_DATE is past X then do an insert of this row in B, if LAST_UPDATE_DATE is past X then do an update of this row in B"
Please can you help me work out how to map this correctly as I am new to OWB.
Many thanks
AdiHi,
You can achieve this by -
1. Create a control table, say Control_Table, with structure
Map Name, last_load_date. Populate this table with the mappings that synchronizes your Table B.
2. Alter mapping, that loads Table B to use the above control table to get all the records from Table A, you have to join Table A and Control_Table with the condition -
Control_Table.Map_Name = < mapping name>
AND ( TableA.Creation_Date > Control_Table.last_load_date
OR TableA.Last_Update_Date > Control_Table.last_load_date )
3. Then use UPDATE/INSERT on the Table B based on the Keys. This should take care of INSERT ( if not present) / UPDATE (if the row already exists).
4. Schedule the mapping to run on weekly basis.
5. You have to maintain the Control_Table to keep changing the values for Last_Load_Date to pick the data since the last time Table B is synchronized.
HTH
Mahesh -
Insert table row - moving Selection
Have a table row selected and new data is inserted and the table rows are moving down. When first row is NOT selected and new table row has fired inserted, the selection row programatically moves down.
However if the first row is selected, and new data is added to the first row, the first and second row are selected even tho its programatically should work, just like if the row selected was second, third etc...
What's up with the first table row selected and new data inserted into the first table row to cause selection unions, even tho programatically it shouldn't?
Thanks
Abraham KhalilAfter the row being inserted, have you tried
table.setRowSelectionInterval(row1,row2)?
And in case it is the first row,
table.setRowSelectionInterval(0,0);
And you can even scroll to show the selection if you want by call
table.scrollRectToVisible(getCellRect(selectedRow, 0, true));
which will show the selectedRow
HTH
Bing
-
hi ,
i need help on the below scenario ,
we have a web dynpro table with different columns, now based on new business requirement one of the column need to
dynamically editable or non editable for different row.
for ex :
Field 1
Field 2 ( Dynamic field )
Field 3
Field 4
Data 11
Data 12 ( Editable with Drop down )
data 13
data 14
Data 21
Data 22 ( Non editable )
Data 23
data 24
Data 31
data 32 ( Editable with drop down )
data 33
data 34
how to achieve this ? please help on this.
Thanks in advance
Thanks
ManishManish,
there is no proper way to insert two Cell Editors in a column(except variants), have a look on below scenario, it may help.
add one more attribute to your table context node for read-only.
create dropDown as celleditor for table and bind with newly created attribute to read-only property of dropdown.
before binding data to table, check the condition then mention readonly value abap_true / false.
@ we can achieve by the use of Variants.
for ex :
Data 11
Data 12 ( Editable with Drop down)
data 13
read-only - abap_false
Data 21
Data 22 ( Non editable, dropdown )
Data 23
read-only - abap_true
Data 31
data 32 ( Editable with drop down )
data 33
read-only - abap_false -
How to create editable tablecells for a single table row dynamically?
Hi
How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?hi
good
if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
thanks
mrutyun^ -
One row as editable and other row as non-editable in table control
Hi Experts,
Is this possible to make one row as editable and another row is non editable in table control?
My Requirement is
1st row non editable field
Customer code, description,amount will come from the previous screen this will be non editable for user.
2nd row editable
User has to enter the amount in 2nd row here the customer code description will be empty.
If 4 customer are there
1,3,5,7 should be non editable and 2,4,6,8 should be editable..
Pls help me in this issue..
Thanks in Advance!hI
This is a simple Module POOL program with only Table control and nothing else
" This is Tested to Enable one row and disabling the next row
in TOP Include
controls : tc type tableview using screen 100.
DATA : OK TYPE SY-UCOMM.
DATA : ITAB TYPE TABLE OF SPFLI WITH HEADER LINE.
in PBO
PROCESS BEFORE OUTPUT.
MODULE status_0100.
LOOP AT itab WITH CONTROL tc.
MODULE TC_MOD.
ENDLOOP.
in PAI
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT itab.
ENDLOOP.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'TEST'.
SET TITLEBAR 'TEST'.
DESCRIBE TABLE itab LINES tc-lines.
IF tc-lines = 0.
tc-lines = 20.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
MODULE tc_mod OUTPUT.
DATA : mod TYPE i.
LOOP AT SCREEN.
mod = tc-CURRENT_LINE MOD 2 .
IF mod = 1.
IF screen-name = 'SPFLI-CARRID'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
ENDMODULE. " TC_MOD OUTPUT
Edited by: Ramchander Krishnamraju on Jan 25, 2011 7:17 AM -
Display and edit currently selected row of ADF Table in ADF Form
I have an ADF Read-only Table and ADF Form, which were created from the same Data Control.
I need to be able to edit the selected row of the table in the form (just like in "Binding Data Controls to your JSF page" part of "Developing RIA Web Applications with Oracle ADF" Tutorial). However, I can't figure out how to do this :(
I found the following solution on the Web: #{bindings.DeptView1.currentRow.dataProvider.dname} - but it doesn't work, since "the class oracle.jbo.server.ViewRowImpl does not have the property dataProvider".
Sorry for the newbie question.
Thanks in advance for any help!Hi,
AFAIK, dataProvider is not supported on ADF BC, hence the error.
If you have created ADF Read only table and form from the same data control you just need to refresh the form based on table selection to show up the selected record, to do which you just need to add partialTriggers property to the panelFormLayout and set its value to the id of table
Sireesha -
Inserting existing records to table and getting new identity ID for each row
I have an issue that I inherited where I need to insert some data to 12 tables related by FK for about 40 records to an existing database through TSQL, SSIS is not an option..
Essentially the situation is that many weeks ago someone deleted a bunch of data and I cant do a restore of the database as new data has been entered so I need to "reconstruct" the data and reinsert it back. I cant just reinsert the data with the
same Primary keys as they are autogenerated. I restored a backup of the database taken prior to the deletion and have got all of my data I need loaded to temp tables. Now the issue I am running across is how to insert my "Main" table data row by
row and get the new identity and then update the corresponding row to the source temp table so that it can be used for the next 11 tables that need that Foreign Key.How do I loop through the 40 records I am attempting to insert into the "Parent" table though?
You don't. That is, you don't loop.
You do:
MERGE target t
USING source s ON 1 = 0
WHEN NOT MATCH BY TARGET THEN
INSERT (col1, col2, ...)
VALUES(col1, col2, ...)
OUTPUT (t.JobId, s.JobId) INTO @idmap(newid, oldid)
UPDATE source
SET newjobdid = i.newid
FROM source s
JOIN @idmap i ON s.jobid = i.jobid
Erland Sommarskog, SQL Server MVP, [email protected] -
How to select data from 3rd row of Excel to insert into Sql server table using ssis
Hi,
Iam having Excel files with headers in first two rows , i want two skip that two rows and select data from 3rd row to insert into Sql Server table using ssis.3rd row is having column names.CUSTOMER DETAILS
REGION
COL1 COL2 COL3 COL4 COL5 COL6 COL7
COL8 COL9 COL10 COL11
1 XXX yyyy zzzz
2 XXX yyyy zzzzz
3 XXX yyyy zzzzz
4 XXX yyyy zzzzz
First two rows having cells merged and with headings in excel , i want two skip the first two rows and select the data from 3rd row and insert into sql server using ssis
Set range within Excel command as per below
See
http://www.joellipman.com/articles/microsoft/sql-server/ssis/646-ssis-skip-rows-in-excel-source-file.html
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to edit a particular row in the table ctrl when a push button is clickd
Hi Experts,
How to edit a particular row (except the Primary keys) after selecting it in the TABLE CONTROL when a
push button is clicked in the table control.
For Eg. If you have a push button say "Modify", the particular row what we select in the table control should be in a
editable mode after clicking "Modify" Push button.
Please help me out.
Thanks in advance.Hey Ram,
Thanks a ton.
Its working fine...sorry for the late reply.
The reason behind the delay is because i had modified my code as per your logic it worked fine but the thing is that the whole column was in editable mode but not a single row.
For E.g If i want to edit a particular row, first i select the row and then click on "Modify" button. After i click on the button, the whole column gets in a editable mode including the one which i intentionally selected.
Here, the solution is that you have to set a flag in PBO so that once it is done with PBO then it need not come back again after we click on "Modify" button.
And one more query is that after you modify a particular row in the table control ( When it is in editable mode) and click on the "Save" button, it is not getting updated to database.
To update the database, we need to select the row once again after modifying it and click on the "Save" button.
Here, database is updating only when it is selected again. If it is not selected, it is not getting updated.
If you have any alternative solution, then please help me out.( I hope i am clear with the question.)
Thanks,
Ananth. -
Why is it so laborious to insert table rows?
I have a table that is at least 1,000 rows in length. I've
used the shortcut Alt+A+I+R to insert a single table row, and I've
found that if I select existing rows, such as five or ten at a
time, I can insert that same number of rows in one action. However,
to insert five rows at a time, it takes about 3-5 minutes. To
insert 10 table rows at a time, it takes about 5-10 minutes.
Is there anyway I can eliminate the time lag to insert table
rows? I tried to create one new table of 1,000 rows initially, but
RoboHelp limits the table creation to 100 rows at a time.
thanks in advance,
ChristyGHi ChristyG
I think what you are seeing is something inherent with the
RoboHelp HTML editor. 1,000 rows is a pret-ty large table IMHO. The
RoboHelp HTML WYSIWYG editor just wasn't designed to handle things
that size. I'm just guessing here, but You probably also notice
that you can easily "type ahead" in this topic and it looks as if
you are typing i n s l o w m o t i o n.
So unfortunately, I'm going to have to say that no, there is
simply no way to "speed it up". The only possibility that comes to
mind is to use a different HTML editor for such topics. I have no
idea if Dreamweaver or other editors are up to that sort of task.
Perhaps someone with more experience with different editors can
comment on that.
Sincerely... Rick -
How to execute a Java method when row inserted into a database table?
I have the need to fire off a java method when a row is inserted into a database table. I am unfortunately working with MySQL which just recently supported triggers but these new triggers can not execute a Java application on any event.
What I am looking for is an event driven approach such that when a row is inserted into a specific table I can fire off a java method (sitting in a tomcat container) that will take the contents and send it to a web service.
It has been mentioned that JMS may have the ability to poll and monitor a database table. Just wondering if anyone could point me in the right direction.
thanks
JavaTekA service handler might be the right way to run some code at the end of a service call (another way would be to make use of filters).
First, make sure your static table is merged with ServiceHandlers.
Secondary, change your custom method name into one that is not already in the service definition of COLLECTION_COPY_LOT (preferably a unique method name like collectionCopyLotLastAction that describes its purpose) and remove the following line from your code:
m_service.doCodeEx("",this);Now create a service definition for COLLECTION_COPY_LOT in your custom component based on the original COLLECTION_COPY_LOT (copy paste from the original service definition) and add you own method collectionCopyLotLastAction as the last step in the service. Play with the load order to make sure CS is using your service definition of COLLECTION_COPY_LOT instead of the original.
regards,
Fabian -
Acrobat - Insert Table (Rows/Columns)
I need to insert a table over a plan (architectural plan) so that we can indicate start and finish dates for work activities. Is any one aware of a plug-in facility that will allow you to create a table (Rows/Columns) of varying quantity/size? Similar to draw table in MS Word.
ThanksThe only way I know to do this is to create the table in a word processor or such. You could do this for all of the tables you need. Create a new PDF of the tables. Then use the object touchup tool (or object select?) to copy the table from the table PDF to the drawing. You may have to look for where it is copied and move it to where needed. The paste seems to work differently in different versions of Acrobat.
-
Table Row Color change on Edit.
Hi,
I have a editable table with two columns (one is inputtextbox and other is an LOV). On click of edit button, table will allow user to change the data.
My requirement is, when ever user edits the data, I need to change the column content color.
I tried to set the color on valuechangelistener of each component but failed.
Please let me know whether it is possible to achieve.
Thanks.Any help...
-
Java.lang.ClassCastException in FOTable while inserting fo:table-row
Hi
Template Builder of in word was throwing error 'java.lang.ClassCastException:oracle.apps.xdo.template.fo.elements.table.FOTable'.This error comes whenever i introduce <fo:table-row> tag.
I am using XML Desktop Pubisher 5.5 Build Version
Please help me out.
Thanks
DarshanSorry for the trouble . I have found out the solution
So this thread can be closed.
Thanks
Darshan
Maybe you are looking for
-
I need to replace my Hard drive.
I have a 60 gig internal that is starting to make noise and fail slowly. I went ahead and bought a 100 gig, 4200 rpm 2.5" drive to replace it. What is the best way to transfer the data? Can I copy everything (including programs) onto an external driv
-
Is hdmi in hp g56 notebook pc windows 7 home premium
i am trying to connect hp g56 notebook pc home premium to tv but it is no working is hdmi in this pc
-
Want to save address in IT0006 with country only
Hi , I have a requirement where i want to save the address in IT0006 , but with country(LAND1) and field ORT01 , begin date and end date , subty only . From HR_INFOTYPE_OPERATION i m passing these parameters , but it throws error and says "Fill in a
-
Shockwave plug-in incompatibility
My Director 11 shockwave files will not run on a Mac with OS X "Tiger" 10.4.11. With the older plug-in (10) I get an alert that the browser cannot open the "new" format, and it asks if I want to install the newer version. Yet when I install the most
-
How to add audio track to Final Cut Express
Does anyone know how to add a audio track to Final Cut Express? My default is four available tracks. What if I want to have 6? How can I add a additional two to the timeline?