JSP Table Editing (Getting Specific Row)
Hi there,
I want to ask how do i get a specific row on my jsp table with a column containing "Edit" buttons.
I want that when the user click the "Edit" button It will return the data of the selected row.
Hope you could help me with this.
Thank you and God Bless
The logic is simple...
Just store the primary key Id with each of the edit buttons.
<input type="hidden" name="tempId">
<input type="button" name="xyz" value="Edit" onClick="callEdit(<%=primaryKeyId%>)">Write a JS function as below ...
<script>
function callEdit(key)
document.forms[0].tempId.value=key;
document.forms[0].submit();
</script>When the user clicks this button then the passed Id can be queried in your DB to retreive the values specific to that row.
Similar Messages
-
While Joining 3 tables am getting 2 rows,actual i need a single row
Hi all,
While joining 3 tables am getting 2 Rows, i need 1 row.
please find my query and actual output and expected output.
Help me out to handle this.
select
--MFU_D_C_INVESTOR_ID_DET,
mfu_remove_junk(Q.CAN) CAN_ST,
mfu_remove_junk(Q.INSTALLMENT_AMOUNT) AMOUNT_ST,
mfu_remove_junk(x.Can ) Can ,
mfu_remove_junk(x.Amc_Code ) Amc_Code ,
mfu_remove_junk(x.Folio_No ) Folio_No ,
mfu_remove_junk(x.Order_Status ) Order_Status ,
mfu_remove_junk(x.User_Code ) User_Code ,
mfu_remove_junk(x.User_Txrn_No ) User_Txrn_No ,
mfu_remove_junk(x.Group_Ord_No ) Group_Ord_No ,
mfu_remove_junk(x.Ind_Txn_Ref_No ) Ind_Txn_Ref_No ,
mfu_remove_junk(x.Pending_Txn_Ref_No ) Pending_Txn_Ref_No ,
mfu_remove_junk(x.Appl_No ) Appl_No ,
mfu_remove_junk(x.Ts_Machine_Id ) Ts_Machine_Id ,
mfu_remove_junk(x.Trxn_Date ) Trxn_Date ,
mfu_remove_junk(x.Trxn_Time ) Trxn_Time ,
mfu_remove_junk(x.Timestamp_No ) Timestamp_No ,
mfu_remove_junk(x.Sch_Code ) Sch_Code ,
mfu_remove_junk(x.Reinv_Tag ) Reinv_Tag ,
mfu_remove_junk(x.Txn_Mode ) Txn_Mode ,
mfu_remove_junk(x.Trxn_Type ) Trxn_Type ,
mfu_remove_junk(x.Sub_Trxn_Type ) Sub_Trxn_Type ,
mfu_remove_junk(x.Units ) Units ,
mfu_remove_junk(x.Amount ) Amount ,
mfu_remove_junk(x.All_Units_Flag ) All_Units_Flag ,
mfu_remove_junk(x.Entity_Id ) Entity_Id ,
mfu_remove_junk(x.ENTITY_BRANCH_ID ) ENTITY_BRANCH_ID ,
mfu_remove_junk(x.Location ) Location ,
(TO_CHAR(sysdate,'DD-MON-RRRR')) CREATED_DATE
From MFU_FTP_XML_FILES T
Left Join Xmltable('/COMM_TXN_STRUCT/FILE_ROWS/FILE_ROW'
Passing T.Filecontent
Columns
--MFU_D_C_INVESTOR_ID_DET
Can Varchar2(500) Path 'INVESTOR_ID_DET/CAN',
Amc_Code Varchar2(500) Path 'INVESTOR_ID_DET/AMC_CODE',
Folio_No Varchar2(500) Path 'INVESTOR_ID_DET/FOLIO_NO',
Order_Status Varchar2(500) Path 'TRANSACTION_DET/ORDER_STATUS',
User_Code Varchar2(500) Path 'TRANSACTION_DET/USER_CODE',
User_Txrn_No Varchar2(500) Path 'TRANSACTION_DET/USER_TXRN_NO',
Group_Ord_No Varchar2(500) Path 'TRANSACTION_DET/GROUP_ORD_NO',
Ind_Txn_Ref_No Varchar2(500) Path 'TRANSACTION_DET/IND_TXN_REF_NO',
Pending_Txn_Ref_No Varchar2(500) Path 'TRANSACTION_DET/PENDING_TXN_REF_NO',
Appl_No Varchar2(500) Path 'TRANSACTION_DET/APPL_NO',
Ts_Machine_Id Varchar2(500) Path 'TRANSACTION_DET/TS_MACHINE_ID',
Trxn_Date Varchar2(500) Path 'TRANSACTION_DET/TRXN_DATE',
Trxn_Time Varchar2(500) Path 'TRANSACTION_DET/TRXN_TIME',
Timestamp_No Varchar2(500) Path 'TRANSACTION_DET/TIMESTAMP_NO',
Sch_Code Varchar2(500) Path 'TRANSACTION_DET/SCH_CODE',
Reinv_Tag Varchar2(500) Path 'TRANSACTION_DET/REINV_TAG',
Txn_Mode Varchar2(500) Path 'TRANSACTION_DET/TXN_MODE',
Trxn_Type Varchar2(500) Path 'TRANSACTION_DET/TRXN_TYPE',
Sub_Trxn_Type Varchar2(500) Path 'TRANSACTION_DET/SUB_TRXN_TYPE',
Units Varchar2(500) Path 'TRANSACTION_DET/UNITS',
Amount Varchar2(500) Path 'TRANSACTION_DET/AMOUNT',
All_Units_Flag Varchar2(500) Path 'TRANSACTION_DET/ALL_UNITS_FLAG',
Entity_Id Varchar2(500) Path 'TRANSACTION_DET/ENTITY_ID',
ENTITY_BRANCH_ID Varchar2(500) Path 'TRANSACTION_DET/ENTITY_BRANCH_ID',
Location Varchar2(500) Path 'TRANSACTION_DET/LOCATION'
) X
on (1=1)
left join XMLTABLE('/CT_SYS_STRUCT/FILE_ROWS/FILE_ROW'
PASSING T.FILECONTENT
columns
CAN varchar2(500) PATH 'INVESTOR_ID_DET/CAN',
INSTALLMENT_AMOUNT varchar2(500) PATH 'TRANSACTION_DET/INSTALLMENT_AMOUNT'
)Q
on (1=1)
Where
TRUNC((TO_DATE(T.RETRIVED_DATE,'DD-MON-RRRR HH:MI:SS PM')))=TRUNC(SYSDATE-2)
Order By Rownum,X.Can Asc;
Actual O/P:
15114LBA01 1000.00 (null) (null) (null) (null) (null) (null) (null)
(null) (null) 15114LBA01 SMF AC MFU 40715117000 15114010001 1511401000102
Expected O/P:
can_st amount can amc order user trxn_no group_ord ind_txn_no
15114LBA01 1000.00
15114LBA01 SMF
AC
MFU 40715117000 15114010001 1511401000102Expected O/P:
can_st amount can amc order user trxn_no group_ord ind_txn_no
15114LBA01 1000.00 15114LBA01 SMF
AC
MFU 40715117000 15114010001 1511401000102
check http://docs.oracle.com/cd/E11882_01/server.112/e41084/ap_keywd001.htm#SQLRF55621
to verify:
with
actual_output as
(select '15114LBA01' can_st,1000.00 amount,null can,null amc,null order_,null user_,null trxn_no,null group_ord,null ind_txn_no from dual union all
select null,null,'15114LBA01','SMF','AC','MFU',40715117000,15114010001,1511401000102 from dual
select max(can_st) can_st,max(amount) amount,max(can) can,max(amc) amc,max(order_) order_,max(user_) user_,max(trxn_no) trxn_no,max(group_ord) group_ord,max(ind_txn_no) ind_txn_no
from actual_output
CAN_ST
AMOUNT
CAN
AMC
ORDER_
USER_
TRXN_NO
GROUP_ORD
IND_TXN_NO
15114LBA01
1000
15114LBA01
SMF
AC
MFU
40715117000
15114010001
1511401000102
select max(can_st) can_st,max(amount) amount,max(can) can,max(amc) amc,max(order_) order,max(user_) user,max(trxn_no) trxn_no,max(group_ord) group_ord,max(ind_txn_no) ind_txn_no
from actual_output
ORA-00923: FROM keyword not found where expected
Regards
Etbin -
How to get specific rows from the vo or Iterator in the backing bean?
Hi,
I have to get the specific number of rows from iterator in the backing bean. means i want to get the records from the VO or Iterator only from 5 th record to 10th record its like rownum in SQL.
We can use rownum in VO sql query. but there would be a performance issue with that ...
SO i am trying to get the rows from ADF Iterator once we fetch from DB.
Is it possible to do that ?
Do we have any way to set the pointer to the VO/Iterator like setFirst() and after that setMaxResult to retrun the rows between first and maxresult..
ThanksIf this is for pagination, then af:table offers pagination by design when you set accessmode=RangePaging or RangePagingIncremental in VO. Paginated queries are fired when scroll down in the table. Explore this option before you try out any custom solution
To answer the question,
Note: same logic i have implpemented ADF with EJB ..In EJB Query class we have setFirst(int) and setMaxResult(int) methods...simply i did setFirst(30) and setMaxResult(10)..It worked fine...Theoretically speaking the same can be achieved by setting setRangeStart() on the viewobject(which in turn sets to the default rowset) and by setting max fetch size on VO + accessmode=RangePaging. However when you use table with ADF binding, these will be overridden by the binding layer. If you are not using ADF binding, then the above is same as what you did for JPA entity. Other option is, you build expert mode VO with rownum for this special case, which will work if you dont need to set accessmode=RangePaging for VO. -
Getting specific row of the result set.
table: employee
empno number(20)
ssan varchar2(9)
date_time_stamp date
My Sql gets all the empno where ssan and date_time_stamp are equal.
However I need previous row from max(empno) where ssan & date_time_stamp are equal.
For eg:
empno ssan date_time_stamp
100 123456789 01-FEB-2004
101 000000000 02-FEB-2004
102 123456789 01-FEB-2004
103 123456789 01-FEB-2004
105 123456789 01-FEB-2004
I need row with empno = 103.
My current sql fetches all rows for particular ssan where ssan and date time stamp are equal that fetches all empno for particular ssan and date time stamp. I want the max(empno) -1 (previous row of the result set).
Here is my sql:
select empno,ssan,date_time_stamp
from employee e
where date_time_stamp in (select date_time_stamp from employee where e.ssan = ssan)
order by empno,ssan;
The above sql will fetch
empno ssan date_time_stamp
100 123456789 01-FEB-2004
102 123456789 01-FEB-2004
103 123456789 01-FEB-2004 ---> I need this row, previous row from max(empno) where ssan and date time
stamp are matching.
105 123456789 01-FEB-2004
101 000000000 02-FEB-2004If I understand correctly, you want the second highest empno for each unique combination of ssan and date_time_stamp. If so, given
SQL> SELECT * FROM employee;
EMPNO SSAN DATE_TIME_S
102 123456789 01-feb-2004
103 123456789 01-feb-2004
105 123456789 01-feb-2004
100 123456678 01-feb-2004
102 123456678 01-feb-2004
103 123456678 01-feb-2004
101 000000000 02-feb-2004
105 123456678 01-feb-2004
100 123456678 02-feb-2004
102 123456678 02-feb-2004
103 123456678 02-feb-2004
105 123456678 02-feb-2004
100 123456789 01-feb-2004Then something like this should do it.
SQL> SELECT empno,ssan,date_time_stamp
2 FROM (SELECT empno,ssan,date_time_stamp,
3 RANK() OVER (PARTITION BY ssan,date_time_stamp
4 ORDER BY empno DESC) rk
5 FROM employee)
6* WHERE rk = 2;
EMPNO SSAN DATE_TIME_S
103 123456678 01-feb-2004
103 123456678 02-feb-2004
103 123456789 01-feb-2004HTH
John -
Make only the new row in a table editable and other rows display mode.
Hiii all,
I am working on the component GSWISET, there is a table view for substitutes, the requirement is to show all the rows in the table view in display mode. Whenever the user clicks the button (Add employee), a search popup triggers and the user selects an employee from that and it will come as a new row in the table view. Here I need to be able to make only the new row editable and all the other rows in display mode.
Could you please suggest a way to achieve this. Thanks for your time..Hi,
Try with the code below in.htm page
data: lv_displaymode TYPE string.
IF controller->view_group_context->is_view_in_display_mode( controller ) = abap_true.
lv_displaymode = 'X'.
ELSE.
lv_displaymode = ' '.
ENDIF.
if lv_displaymode = 'X'.
<chtmlb:tableExtension tableId = "Substitutes"
layout = "FIXED" >
<chtmlb:configTable actions = "<%= controller->gt_button %>"
id = "Substitutes"
onRowSelection = "select"
selectedRowIndex = "<%= substitutes->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
table = "//Substitutes/Table"
width = "100%"
selectionMode = "<%= substitutes->selection_mode %>"
visibleFirstRow = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
usage = "ASSIGNMENTBLOCK"
headerText = "<%= controller->gv_header_text %>" />
</chtmlb:tableExtension>
else.
<chtmlb:tableExtension tableId = "Substitutes"
layout = "FIXED" >
<chtmlb:configTable actions = "<%= controller->gt_button %>"
id = "Substitutes"
onRowSelection = "select"
selectedRowIndex = "<%= substitutes->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
table = "//Substitutes/Table"
width = "100%"
selectionMode = "<%= substitutes->selection_mode %>"
allRowsEditable = "TRUE"
visibleFirstRow = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
usage = "EDITLIST"
headerText = "<%= controller->gv_header_text %>" />
</chtmlb:tableExtension>
endif.
Regards,
Gangadhar.S
Edited by: gangadhar rao on Dec 24, 2010 12:49 PM -
Joining three tables to get specific data set
table1
id
seq
dat
table2
id
seq
empid
taxid
Table3
empid
taxid
I want to find out records That have same id,seq,empid having different taxid column Common to three of the tables .
Please help meHi,
There are a lot of different things you could mean.
Here's how to do one of them:
SELECT t2.id, t2.seq, t2.empid
FROM table2 t2
JOIN table1 t1 ON t2.id = t1.id
AND t2.seq = t1.seq
JOIN table3 t3 ON t2.emp_id = t3.empid
AND t2.taxid = t3.taxid
GROUP BY t2.id, t2.seq, t2.empid
HAVING COUNT (DISTINCT t2.taxid) > 1
;It would help if you posted some sample data (CREATE TABLE and INSERT statements) from all 3 tables, and the results you want from that data. -
Custom row-fetch and how to get column values from specific row of report
Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
table has links that send the user to a single-row DML form, but of course the automatic
fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
auto fetch only handles 2 PK columns.
1)
I have written a custom fetch (not sure it's the most elegant, see second question) that is working
for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
more than 3, I don't know how to get the remaining PK column values for the specific row that was
selected in the report. How can I access that row's report column values? I'll be doing it from the
form page, not the report page. (I think... unless you have another suggestion.)
2)
My custom fetch... I just worked something out on my own, having no idea how this is typically
done. For each dependent item (database column) in the form, I have a source of PL/SQL
function that queries the table for the column in question, using the primary key values. It works
beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
a way to manually construct the fetch statement once for the whole form, and have APEX be smart
about what items get what
return values, so that I don't have to write PL/SQL for every item? Because my query data sources
are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
to streamline the process.
Thanks,
CarolHI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
Maybe I'm making this too hard?
Thanks,
Carol -
HI ALL,
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I have to display the values in jsf frm table where i'm using DislayCertDetailVO . In dis VO i'm having a column no.of certificaties .taking dis column value when i navigate to other page jsf by selecting a specific row. here i have to display the selected row in multiple times based on the no.of.certificates column value.
I want to display specific row to display multiple time to repeat same row in a table in jsf based on the value from bean or table in database.
Edited by: user9010551 on Apr 28, 2010 6:14 AM
Edited by: user9010551 on Apr 28, 2010 10:33 PMHi, Trying it once more to give more clarity of my scenario.
I have to navigate from 1 screen to the other by picking a given table record/row from the 1st screen. While displaying the record on the 2nd screen the catch is that, I have to display it as many times as the value in a cell of the selected record.
eg.
screen 1
col1 col2 col3
2 order1 item1
[next]
On clicking next it should look like
screen2
col1 col2 col3 col4
order1 item1
order1 item1
where col3 and col4 will be editable by the user and col1 is the value depends how many times i have repeat the row/record
Hope this give more clarity. -
How to get selected row of an advanced table
Hi All,
I have created an advanced table with 5 rows and i can also add rows in that. Here my requirement is i want to get the data of a row which i have selected. There are 5 rows. i have entered data into all 5 rows. Suppose i have selected 3rd row i have to get that 3rd row. if i have selected 5th row i have to get 5th row.
Can you please guide me to achieve this requirement..
Many thanks
MuraliHi ,
you have to set the firepartialaction event on your selection button, then use row refernce to get the handle on specific button
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
String event = pageContext.getParameter("event");
if ("<ItemPPREventName>").equals(event))
// Get the identifier of the PPR event source row
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
// write your business logic
Thanks
Pratap -
To color a specific row in a Table UI element
Hello Experts,
We have a requirement to highlight (with distinguish color) a specific row of a table UI based on column data.
Suppose we have a table with 5 column and 10 row, now if the data on 5th column greater than some XYZ value then we need to highlight the specific row with a different color.
Can anyone please help me to achieve this requirement?
Thanks & Regards,
Sambaran ChakrabortyHi,
In your outline, I am missing quite a few prerequisites which I mentioned (not sure if you have implemented them already)
your sub node, does it have singleton=false, cardinality 1..1 and selection cardinality 1..1?
The attribute of type TableCellDesign in that sub node, does it have the calculated property to true?
If you've bound each table column's cellDesign property to this calculated attribute, you just put some code in the generated generated get<SubNode><CalcAttribute> method to set the color
For instance by just entering the line
return WDTableCellDesign.CRITICALVALUE_LIGHT
in that method will render each linked cell to that color
Not sure what else I can say to explain this, there's not much to code... -
Not able to get which row is edited in alv grid
Hi,
I have created a Editable alv grid .
My grid does not contain line selection cloumn so How can I get to know which row is to be changed.
I am using get_selected_rows method but not able to get which row is changed. please help on this.
Thanks in advance.Hi,
check this ..
it_ekko1[] = it_ekko[].
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_events = i_events
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
In user command you need to write logic to know which all records have changed.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
loop at it_ekko into wa_ekko.
read table it_ekko1 into wa_ekko1 index sy-tabix.
if wa_ekko <> wa_ekko1.
write your logic further
endif.
endloop.
endcase.
Regards,
Srini. -
Programmatically refresh components inside a specific row of an af:table
How to programmatically refresh components inside a specific row of an af:table without refreshing the whole table ?_
I have an af:table displaying a read-only view object. There is an edit button inside the table calling an af:popup, where the user can update some informations and click a submit button to validate his changes.
The action property of this button is a method in a backing been where
- 1 : A stored procedure is called to update several tables (related to my read-only VO).
- 2 : The VO is re-queried (VO. refreshQueryKeepingCurrentRow() )
- 3 : The whole table is refreshed (AdfFacesContext.getCurrentInstance().addPartialTarget(myTable) )
Is it possible to programmatically refresh some components of the current row of the table without refreshing the whole table (point 3)?
I’ve tried to play with the “partialTrigger” property of af:outputText (table:column:outputText), without success.
Thanks
Nicolas"+do you happen to want to refresh following an action on the row? Like a link/button click?+" : NO
There is a table on my page. The user select a row and click on an edit button. This edit button call a popup where the user can modify some information (not directly on the viewObject. All fields in the popup are dummy fields bind to attributes in my backing bean) and then he click on a submit button.
The submit button action execute a method "submitInformation" in a backing been.
public String submitInformation(){
Map<String, Object> params = new HashMap<String, Object>();
params.put("pManNo", xManNo.getValue()); //xManNo is an attribute of the backing bean
params.put("pDate", xPeriod.getValue()); //xPeriod is an attribute of the backing bean
// Execute Operation
OperationBinding oper = ADFUtils.findOperation("serviceSubmitInfo");
oper.getParamsMap().putAll(params);
String results = (String)oper.execute();
// Close Popup & Refresh Row if OK
if(!StringUtils.isStringEmpty(results) && results.equals("TRUE")){
closePopup("pt1:popAbs");
refreshMyCol();
}The serviceSubmitInfo method is defined in my serviceImpl
public String serviceSubmitInfo (String pManNo, String pPeriod, ......){
String results =
callStoredFunction("? :=myDatabaseFunction(?, ?, ?, ?)",
new Object[] { pManNo, pPeriod, ...... });
// Commit
getDBTransaction().commit();
// Refresh VO (re-query & set currentRow)
getMyVO().refreshQueryKeepingCurrentRow();
return results; // TRUE if ok
}I want the " refreshMyCol()" method to refresh only the current row and not the whole table...
Regards
Nicolas -
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. -
How to identify one specific row in the table STPO?
Hi!
How can I identify one specific row in the table STOP? As an input for my ABAP function I have MatNr, Plant, Alternative, BomUsage and Bom Position (0010, 0020...). With these values I can ask the table MAST to get the STLNR. But how can I get all needed values to specify an entry in the table STPO then?
Thanks,
KonradHere is a actual working code that we used here.
*-- get the bom details
li_mast-mandt = sy-mandt.
li_mast-matnr = material.
li_mast-werks = '6000'.
li_mast-stlan = '1'.
call function 'GET_MAST'
exporting
all = 'X'
no_buffer = 'X'
set = 'X'
tables
wa = li_mast
exceptions
call_invalid = 1
end_of_table = 2
get_without_set = 3
key_incomplete = 4
key_invalid = 5
no_record_found = 6
others = 7.
if sy-subrc <> 0.
clear: kdf_material,
kdf_material_desc.
exit.
endif.
loop at li_mast.
*-- get the valid headers
move-corresponding li_mast to li_stko.
li_stko-stlty = 'M'.
call function 'GET_STKO'
exporting
all = 'X'
datub = l_valid_date
datuv = l_valid_date
del = ' '
no_buffer = 'X'
set = 'X'
valid = 'X'
tables
wa = li_stko
exceptions
call_invalid = 1
end_of_table = 2
get_without_set = 3
key_incomplete = 4
key_invalid = 5
no_record_found = 6
others = 7.
if sy-subrc <> 0.
continue.
endif.
loop at li_stko.
move-corresponding li_stko to li_stpo.
call function 'GET_STPO'
exporting
all = 'X'
alter = li_stko-stlal
datub = l_valid_date
datuv = l_valid_date
no_buffer = 'X'
set = 'X'
valid = 'X'
* VIEWNAME =
tables
add_wa = li_cszalt
wa = li_stpo
exceptions
call_invalid = 1
end_of_table = 2
get_without_set = 3
key_incomplete = 4
key_invalid = 5
no_record_found = 6
viewname_invalid = 7
others = 8.
if sy-subrc <> 0.
continue.
else.
exit.
endif.
endloop.
if not li_stpo[] is initial.
exit.
endif.
endloop. -
How to get info who is locking a specific row in the RDBMS 9i?
Hi,
could some one please helop me with this? I would like to know the Oracle user name of the user who is locking a specific row in my table. I can display all locking requests with the following SQL statements. What I could not igure out how to find the rownum that is being locked by others?
SELECT *
FROM v$lock lk, v$session s , DBA_OBJECTS ao, wf_users wu
WHERE lk.lmode > 1
AND s.username IS NOT NULL
AND lk.SID = s.SID
AND ao.OBJECT_ID(+) = lk.id1
AND s.username = wu.NAME(+)
AND ao.owner = USER
AND ao.object_name = 'BWF_IKTATASI_ADATLAPOK';
Thank you in advance,
Tamas SzecsyI'm not sure what's happening with your app. I wrote on up to see if it could handle the CTRL-C. Seems to work fine. Do you have any other JMenuItems with the same accelerator?
import java.awt.event.*;
import javax.swing.*;
public class Copy extends JFrame {
public Copy() {
this.initMenuBar();
this.setSize(400, 300);
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
private void initMenuBar() {
JMenuBar menubar = new JMenuBar();
JMenu edit = new JMenu("Edit");
JMenuItem copy = new JMenuItem(new CopyAction("Copy"));
edit.setMnemonic(KeyEvent.VK_E);
copy.setMnemonic(KeyEvent.VK_C);
copy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK));
edit.add(copy);
menubar.add(edit);
this.setJMenuBar(menubar);
public static void main(String[] args) {
new Copy();
private class CopyAction extends AbstractAction {
public CopyAction(String label) {
super(label);
public void actionPerformed(ActionEvent e) {
System.out.println("Action Performed.");
}
Maybe you are looking for
-
Dear everyone I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it. I read a european commission document explaining that http://ec.europa.eu/research/participants/data/support/sep_usermanual.pdf If Safari
-
The ALT key gave no response I found the place to tick Menu toolbar but no toolbar came up. The Restore defaults toolbar thing doesn't have the options I want (File, print, help etc) Beginning to think I'm going crazy
-
anyone knows how to get the photos after IMG_9999 from iphone? :-(ps:... i got them all in my camera roll but when i connected to the computer there's nothing after IMG_9999.. many thanks :-)
-
Pages can't handle the load?
I wrote a 400-page manuscript in Pages (117,000 words) with absolutely no issues. I exported it to Word and sent it to my Editor. She Worked in Word, tracking her minor edits and making margin comments along the way. Then she sent it back to me with
-
Unable to install weblogic via EPM installer
Hi , I get the below error while installing weblogic application server via the EPM installer . "could not find the main class: com.bea.plateng.common.util.Delete. Program will exit." Below is the screenshot of the same. Below errors are found in the