How to update records marked by [row selector] ?
Hello,
I have a small table (PK=record_id) from which I send mail to a user of informational reasons. At the moment I can only send all records in a mail, but I want to be more 'selective', send only marked records.
The table is shown in a APEX-report defined as an updateable report.
I added a column [record selector] to it, allowing me to put a mark before the record to be send.
I did not succeed however sending the user only the marked records....
I tried something like
BEGIN
-- Loop through the rows that have been checked.
FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
LOOP
SELECT record_id
INTO to_be_send_record
FROM meldingen_voor_postverzending
where HTMLDB_APPLICATION.G_F01(I) = 'Y' ;
-- place the record with record_id = to_be_send_record
-- into a mail (via a self-made package) ...
END LOOP;
-- send the mail (using HTMLDB_MAIL)
END ;
It looks as if the records marked are not selected, but I can't find the reasopn why.
Maybe the = 'Y' is not correct, but I also tried "is not null" , '!= NULL" and other things.
Can anybody help me getting opnly the checked records into the mail-body?
Thanks and regard,
Jan.
Hi Jan,
try the following code:
DECLARE
vRow BINARY_INTEGER;
BEGIN
:p95_text := NULL;
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
vRow := apex_application.g_f01(i);
:p95_text :=
:p95_text
|| CHR (10)
|| vRow
|| '. '
|| apex_application.g_f02 (vRow)
|| ' / '
|| apex_application.g_f03 (vRow)
|| ' / '
|| apex_application.g_f04 (vRow)
|| ' / '
|| apex_application.g_f05 (vRow)
|| ' / '
|| apex_application.g_f06 (vRow)
|| ' / '
|| apex_application.g_f07 (vRow);
END LOOP;
END;The APEX row selector returns the row number of the selected row. Not the primary key or whatsoever. So you have to use that value to access the arrays of the other columns.
Hope that helps
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Similar Messages
-
How to update Records from Internal table to u2018Zu2019 table?
Hi Friends,
How to update Records from Internal table to u2018Zu2019 table.
I have records in Internal table , that records want to update on u2018Zmarau2019 Table.
( my internal table & u2018 Zu2019 table structures are same.)
Thanking you.
Regards,
SubashHi,
loop at internal table.
modify <Z- table > from values < internal table Workarea>.
if sy-subrc = 0.
COMMIT work.
else.
ROLLBACK waork.
endif.
endloop.
or
UPDATE <Z- table > from table < internal table Workarea>.
if sy-subrc = 0.
COMMIT work.
else.
ROLLBACK waork.
endif.
Prabhudas -
How to update record xml data?
Hi,
How can update existing record using an existing xml packet?
Thanks.Hi,
The above Exception seems to be because of mapping error.
Check your mapping for all the mandatory 1-1 mapping, also the 1-unbounded parent node mapping.
Once when you import the XSD and activate your External Definition if it does without any error then there is no problem with your External Definition.
If this error occurs only when you test your mapping then this is mapping error and not because of XSD.
Please check the parent node mapping like 1-unbounded.
Reward Points if useful
Regards
Ashmi. -
How to update records in a table based on user selection..
Hi all,
This time the above doubt is totally based on the logic of coding which I tried a lot but didn't get any solution. so atlast I come to sdn site.
please help..
The requirement is like that I have a table with 6 fields (1 primary key and other are nonkeys). If the user inputs some values in the fields on the screen, then a row will be added in the table. Upto this i have done well. but when the user want to change some value in the existing row of the table my program unable to do so. Because I couldn't get any logic to do that as there are 5 nonkey fields, so if any one field is modified then the respective row should be selected first based on the user selection and then it should be updated.
At this point I could not get any idea as it may take a lots of if conditions (I guess) to reach to that particular row.
Please help..
thanks ,
sekharHi Sekhar,
I am afraid, the whole design of your program is wrong, let me explain
Let us say you have two rows(5 non key fields) that the user wants to update and the data in these five non key fields are identical and in your program you are getting a number(which is the key) using a number range object. So you will have two entries in the table for the same data.
And on the update page when the user enters the non key fields, how will the program know(or for that matter any one of us) which record to pick, if you have two identical books and if asked for a book wouldn't you ask which one among these two do you want?
Possible Solution: Identify a possible key maintaining the integrity of the data, that is a combination of the non key fields which will help you identify a unique row and make these fields as key fields in the table.
A more costly solution(if you do not want to change the non key field keys to key fields) would be to, adding a check(using select statement) to see if the non key fields combination already exists in the Z table before inserting a record into the table.
If yes, throw a message to the user and just update the values in the table, else insert the record.
Another solution would be to, use the non key fields to generate a key(using some logic) and using this instead of the number range object.
regards,
Chen -
How to update Records of SAP table from .CSV file
Hi,
I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table.
Now I want to update the all fields in SAP table with the Internal table.
I want to use Update statement.
Update <table Name> SET <field needs to update> WHERE connditon.
I don't want to iterate through thousand on record in sap table to check the where condition.
Could you please tell me how to do it.Hi. I thing you will not workaround the iterating of the internal table.
You can pre-load all the records into another internal table
check lt_csv[] is not initial. " important, otherwise next select would read all records of the table
select .... into lt_dbitab for all entries in lt_csv where key-fieds = lt_csv-key_fields...
check sy-subrc eq 0 and lt_dbitab[] is not initial.
then do in-memory update of the it_dbitab
loop at it_dbitab assign <fs>.
read table lt_csv assign <fs_csv> with key ... " lt_csv should be sorted table with key, or you should try to use binary search
if sy-subrc eq 0.
...change required lt_dbitab fields: <fs>-comp = <fs_csv>-comp...
endif.
endloop.
ant then you can do mass-update
update dbtab from table lt_dbitab.
From performance view, this solution should be much faster than iterating lt_csv directly and updating every single database record
Br
Bohuslav -
How to update record in Table control
Dear Friends,
I have table control that has space for 10 records but i need to update 15 record from the flat file which is getting into the table how can i do this.
Regards,
MAHENDRA.Hi,
you record for an item and then click on page down and save it.use the loop on this bdc to populate the the bdc table no need to do manually.
LOOP AT l_i_dettab_item INTO l_wa_dettab_item..
l_cursor = l_cursor + 1.
IF l_cursor GT 1.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
ENDIF.
PERFORM cursor_pos_notation USING 'V_EAN_DET001- GTIN_VARIANT_TYP'
l_cursor
CHANGING l_cursor_notation.
PERFORM cursor_pos_notation USING 'V_EAN_DET001-VTWEG'
l_cursor
CHANGING l_cursor_notation.
PERFORM bdc_field USING l_cursor_notation
l_wa_dettab_item-vtweg.
PERFORM cursor_pos_notation USING 'V_EAN_DET001-DATEFROM'
l_cursor
CHANGING l_cursor_notation.
PERFORM bdc_field USING l_cursor_notation
l_v_date.
PERFORM bdc_field USING 'BDC_CURSOR'
l_cursor_notation.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SAVE'.
ENDLOOP.
Here my ok code for page down is =P+ so i am looping on the table control data and then populating the bdc table after this i will populate the remaing info required for the call transaction and refresh bdcdata.
thats it no need to do recording 1000 times.
now if u do like this it doesn't depend on the number of records on table control.
it will take all the records.
Reward if useful.
Regards,
sasi
Regards,
sasi -
How to update Record Model for old Records(Personnel Record) in DPF?
Hi
i was able to successfully implement Digital Personnel files and Record Management for my scenario, but now question is:
i have created a record for personnel using "SE38--> Report (RPASRCREATEDPF)" or "Tx RPASRCREATEDPF) after a while i decided to add a node to my record model , how can i update my personnel records to new record model?
i need to do it for several staff and this is not logical to change record for every individual staff. Also when i deleted a record and recreated it all of old Archived and Processed Document gone.
Any Idea?
Regards,
Ali.Hi Pragya
Thank you for your very helpful answer, i tried that report and it has changed my records but problem is, i am using SAP sample record model , i have changed some Nodes Name and it seem name change has not taken effect in my records, those nodes that i added to my record model is correctly transferred, but some changes has not affected my personnel records.
Green: Change Affected
Red: Not Changed
Regards, -
How to update record from datagridview
hi every one
am new in .net am developing an inventory system for learning.
i successfully develop a purchase form where user can put record for parching invoice.
as
and for save record am using flowing code.
Private Sub btn_Save_Click(sender As Object, e As EventArgs) Handles btn_Save.Click
Dim connectionStringdgv As String = "Data Source= ABDULLAH-PC;Initial Catalog=Erpdb;Persist Security Info=True;User ID=jabbar;Password=abc123"
Dim connection As New SqlClient.SqlConnection(connectionStringdgv)
Dim adaptor As New SqlClient.SqlDataAdapter
Dim adaptor1 As New SqlClient.SqlDataAdapter
Dim dataset As New DataSet()
Dim datasetmax As New DataSet()
Dim adaptor3 As New SqlClient.SqlDataAdapter
Dim adaptormax As New SqlClient.SqlDataAdapter
Dim dataset3 As New DataSet()
Dim dataset1 As New DataSet()
Dim cmdinsert As New SqlClient.SqlCommand
Dim cmdinsert1 As New SqlClient.SqlCommand
Dim cmduppurtable As New SqlClient.SqlCommand
Dim cmdupdrcrtable As New SqlClient.SqlCommand
Dim cmdinsert2 As New SqlClient.SqlCommand
Dim Cmd As New SqlClient.SqlCommand
Dim Commandmax As New SqlClient.SqlCommand
connection.Open()
cmdinsert1.Connection = connection
cmdinsert1.CommandText = "INSERT INTO purtrans(date,amount,paid,discount,[bill no],taxvalue,ac,tax)" _
& "VALUES ('" & DateTimePicker2.Text & "','" & GAmt.Text & "','" & amtpaid.Text & "','" & Tdis.Text & "','" & invo.Text &
"','" & ttax.Text & "','" & txtCode.Text & "','" & tv.Text & "')"
cmdinsert1.ExecuteNonQuery()
'find last id'
Commandmax.Connection = connection
Commandmax.CommandText = "SELECT date,MAX(sr) FROM purtrans GROUP BY date"
Commandmax.ExecuteNonQuery()
adaptormax.SelectCommand = Commandmax
Dim maxtable As New DataTable
adaptormax.SelectCommand = Commandmax
adaptormax.Fill(maxtable)
If maxtable.Rows.Count > 0 Then
SrTextBox.Text = maxtable.Select.Last.Item(1)
End If
If connection.State = ConnectionState.Open Then
connection.Close()
End If
connection.Close()
Dim n, m As Integer
n = Me.dgv.Rows.Count - 1
For m = 0 To n - 1
Dim cd As String = "insert Into amountdrcr(todate,ac,party1,amount,purtransid,qty,rate,billno,disc,tax,weight,sp,drcr) VALUES (@todate,@ac,@Party1,@amount,@purtransid,@qty,@rate,@billno,@disc,@tax,@Weight,'Purchase','Dr')"
Cmd = New SqlClient.SqlCommand(cd)
Cmd.Connection = connection
Cmd.Parameters.AddWithValue("todate", DateTimePicker2.Text)
Cmd.Parameters.AddWithValue("ac", dgv.Rows(m).Cells("itemcode").Value)
Cmd.Parameters.AddWithValue("party1", cmbname.Text)
Cmd.Parameters.AddWithValue("amount", dgv.Rows(m).Cells("Amount").Value)
Cmd.Parameters.AddWithValue("purtransid", SrTextBox.Text)
Cmd.Parameters.AddWithValue("Qty", dgv.Rows(m).Cells("Qty").Value)
Cmd.Parameters.AddWithValue("Rate", dgv.Rows(m).Cells("Rate").Value)
Cmd.Parameters.AddWithValue("BILLNO", invo.Text)
Cmd.Parameters.AddWithValue("Disc", dgv.Rows(m).Cells("Disc").Value)
Cmd.Parameters.AddWithValue("tax", txtPerVat.Text)
Cmd.Parameters.AddWithValue("Weight", dgv.Rows(m).Cells("Weight").Value)
connection.Open()
Cmd.ExecuteNonQuery()
connection.Close()
Next
MsgBox("Your Record save Sucssfully", vbOKOnly, "AANO TECH")
'posting a credit voucher for supplier'
If Balance.Text > 0 Then
Dim cd2 As String = "insert Into amountdrcr(todate,ac,party1,amount,purtransid,billno,sp,drcr) VALUES (@todate,@ac,@Party1,@amount,@purtransid,@Billno,'Purchase','Cr')"
cmdinsert2 = New SqlClient.SqlCommand(cd2)
cmdinsert2.Connection = connection
cmdinsert2.Parameters.AddWithValue("todate", DateTimePicker2.Text)
cmdinsert2.Parameters.AddWithValue("ac", txtCode.Text)
cmdinsert2.Parameters.AddWithValue("party1", cmbname.Text)
cmdinsert2.Parameters.AddWithValue("amount", Balance.Text)
cmdinsert2.Parameters.AddWithValue("purtransid", SrTextBox.Text)
cmdinsert2.Parameters.AddWithValue("billno", invo.Text)
connection.Open()
cmdinsert2.ExecuteNonQuery()
connection.Close()
dgv.Rows.Clear()
btn_Save.Enabled = False
invo.Text = ""
txtCode.Text = ""
TAmt.Text = ""
GAmt.Text = ""
Tdis.Text = ""
Balance.Text = ""
ttax.Text = ""
amtpaid.Text = ""
txtAddress.Text = ""
txtPhone.Text = ""
cmbname.Text = ""
btnAdd.Enabled = False
txtQty.Text = ""
Wk.Text = ""
txtRate.Text = ""
txtRate.Text = ""
txtPerDisc.Text = ""
txtPerVat.Text = ""
cmbItemCode.Text = ""
cmbitemname.Text = ""
invo.Focus()
Else
dgv.Rows.Clear()
btn_Save.Enabled = False
invo.Text = ""
txtCode.Text = ""
TAmt.Text = ""
GAmt.Text = ""
Tdis.Text = ""
Balance.Text = ""
ttax.Text = ""
amtpaid.Text = ""
txtAddress.Text = ""
txtPhone.Text = ""
cmbname.Text = ""
txtQty.Text = ""
Wk.Text = ""
txtRate.Text = ""
txtRate.Text = ""
txtPerDisc.Text = ""
txtPerVat.Text = ""
cmbItemCode.Text = ""
cmbitemname.Text = ""
btnAdd.Enabled = False
invo.Focus()
End If
what is the easiest way for editing record
please guide me thanks
Hi ABDULLAH,
>> what is the easiest way for editing record
What do you mean by “editing record” ? Do you mean that you want to update the record according the textboxes in the form? If so, I am afraid that there is no better way, you need to use the ado.net and the update command to achieve that like you insert
new records. If you want to modify the record in the datagridview directly, I think you could bind the dataset to the datagridview, and then modify the record in the datagridview, and then save the changes to the database. The link below might be useful to
you:
# DataGridview Update
https://social.msdn.microsoft.com/Forums/en-US/5980181e-f666-4f0a-ab50-c4ebecf96f02/datagridview-update-?forum=Vsexpressvb
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
How to Insert Record with multiple rows
Hello alls,
i want to ask something... how to use insert record server behavior - php myysql, to insert multiple rows from textfiled?
thanks.It would have been more helpful if you had shown me your existing code. However, this shows the basic principles.
First of all, the name of each input field in the form needs to end in an empty pair of square brackets like this:
<input type="text" name="field_name[]" . . .
This results in $_POST['field_name'] being treated as an array of the values in each input field. Change field_name to the actual name of the input field. Without the square brackets, only the last value is submitted by the form.
The Insert Record server behavior code looks like this:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO my_table (field1, field2) VALUES (%s, %s)",
GetSQLValueString($_POST['field1'], "int"),
GetSQLValueString($_POST['field2'], "text"));
mysql_select_db($database_connAdmin, $connAdmin);
$Result1 = mysql_query($insertSQL, $connAdmin) or die(mysql_error());
$insertGoTo = "another_page.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
You need to amend it like this:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
mysql_select_db($database_connAdmin, $connAdmin);
// loop through the input values
for ($i = 0, $len = count($_POST['field1']); $i < $len; $i++) {
$insertSQL = sprintf("INSERT INTO my_table (field1, field2) VALUES (%s, %s)",
GetSQLValueString($_POST['field1'][$i], "int"),
GetSQLValueString($_POST['field2'][$i], "text"));
$Result1 = mysql_query($insertSQL, $connAdmin) or die(mysql_error());
} // end loop
$insertGoTo = "another_page.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
This uses a for loop (see http://docs.php.net/manual/en/control-structures.for.php) to access each element of the $_POST['field1'] and $_POST['field2'] arrays (see http://docs.php.net/manual/en/language.types.array.php). -
[Solved] How to update records in entity based on view with distinct
Hi
- I have a relational view of the form:
SELECT DISTINCT
FROM TAB1, TAB2, ...- I created instead of triggers for delete, update and insert.
- I created an entity object on this and an updatable view object
- I added this to my module.
- Then I test the view object in the module (module > test), and if I try to update an existing record, I receive the error:
(java.sql.SQLException) ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
So, ADF internally create as select FOR UPDATE cursor to update the modified record and as the error shows, this is not possible on a view with distinct, ...
Is there a way to work around this error without to rewrite the view?
I was thinking that there is maybe a way to force ADF not to use the select FOR UPDATE and use UPDATE .. SET <value> WHERE <pk>, or maybe to create a new instead of trigger to catch the select FOR UPDATE?Arti,
Here's another solution (that will still use locking, and can help avoid the "lost update" problem):
http://stegemanoracle.blogspot.com/2006/03/using-updatable-views-with-adf.html
John -
How to select record in mulitple rows based on another field's values?
Hi,
sorry about the bad title, really not sure how to explain this
Have the following data:
Cost_center Activity_type
1005009401 CLBR0
1005009401 CLBR1
1005009401 TLBR0
1005009401 TLBR1
1005009401 VEH00
1005009402 CLBR3
1005009402 CLBR4
1005009402 TLBR5
1005009402 TLBR6
1005009402 VEH07
1005009901 CE000
1005009901 CLBR0
1005009901 CLBR1
1005009901 TLBR0
1005009901 TLBR1
1005009901 VEH01 I need to return a list of cost centers (with its associated activity types) that do not have activity types of CLBR0 and CLBR1 and TLBR0 and TLBR1 and VEH01. So in the above data, cost center 1005009401 and 1005009402 would be returned.
Any thoughts?
Thanks.
Edited by: dgouin on Aug 29, 2012 11:42 AM - added more sample data.
Edited by: dgouin on Aug 29, 2012 11:45 AM
Edited by: dgouin on Aug 29, 2012 11:49 AMSorta kludgey, but functional:
WITH ccs AS
SELECT '1005009401' AS CC, 'CLBR0' AS activity_type FROM dual
UNION ALL
SELECT '1005009401' AS CC, 'CLBR1' AS activity_type FROM dual
UNION ALL
SELECT '1005009401' AS CC, 'TLBR0' AS activity_type FROM dual
UNION ALL
SELECT '1005009401' AS CC, 'TLBR1' AS activity_type FROM dual
UNION ALL
SELECT '1005009401' AS CC, 'VEH00' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'CE000' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'CLBR0' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'CLBR1' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'TLBR0' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'TLBR1' AS activity_type FROM dual
UNION ALL
SELECT '1005009901' AS CC, 'VEH01' AS activity_type FROM dual
SELECT cc, activity_type
FROM ccs c1
WHERE 5 != (SELECT COUNT(DISTINCT activity_type)
FROM ccs c2
WHERE activity_type IN ('CLBR0','CLBR1','TLBR0','TLBR1','VEH01')
AND c1.cc = c2.cc
CC ACTIVITY_TYPE
1005009401 CLBR0
1005009401 CLBR1
1005009401 TLBR0
1005009401 TLBR1
1005009401 VEH00 -
How to create a report region which the first colomn is row selector column
I want to create a report region and its first column is a row selector column. I have used select sentence to select some columns. But I do not know how set the first column to row selector column. I mean I want to do as follow. When a radio which is first column is chosen, it will return it's value of the column in the chosen row. Please help me! Thanks
Hi unnamed,
Suppose you have an id that identifies your record.
Go to Report definiton, tab report attirbutes.
Select the id of your record.
Create a link to the page you want to go to.
Hope this helps.
If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
Leo -
HTMLDB_item.Date with row selector
Hi :
In my application i am using htmldb_item.datepicker and row selector to insert the date object wise
the problem wht i am facing is if suppose 10 rows are generated when i select 3rd row date and insert date picker date get populated in 2nd row similarly 2nd rows to 1st and so on
please try this query
SELECT
HTMLDB_ITEM.DISPLAY_AND_SAVE(2,NULL) "Project Objects",
HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
FROM
DUAL
UNION
SELECT
HTMLDB_ITEM.DISPLAY_AND_SAVE(2,SYSDATE) "Project Objects",
HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
FROM
DUAL
first change this query to sql updatable report and add row selector then try to select date from 2nd row ull find the problem wht i am facing
please suggest how to resolve this
thanks
sudhirya we it wont update when we use a rownum when we resort and update i did like this see if you can understand the code
DECLARE
vRow binary_integer;
BEGIN
for i in 1..htmldb_application.g_f01.count
loop
vRow := htmldb_application.g_f01(i);
UPDATE SCHEDULE_VARIANCES
SET
REVISED_START = htmldb_application.g_f02(vRow),
REVISED_END = htmldb_application.g_f03(vRow),
ACTUAL_START = htmldb_application.g_f04(vRow),
ACTUAL_END = htmldb_application.g_f05(vRow),
STATUS = htmldb_application.g_f06(vRow),
-- ACCEPTANCE = htmldb_application.g_f07(vRow),
COMMENTS = htmldb_application.g_f08(vRow)
where
PROJECT_NAME = :P25_PROJECTS AND
OBJECT_NAME = htmldb_application.g_f09(vRow) ;
end loop;
End;
here i am relating object name to row selector that is the check box so that when u sort the row also based on the object name that u select it will update this worked for me
thanks
sudhir -
How to add a row-selector to an existing SQL Query (updatable report)
Hi,
I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
I actually don't kno how to simply add this row-selector back into place.
Anyone who can point me in the right direction?
Thanks a lot
WimWim,
>
Hi,
I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
I actually don't kno how to simply add this row-selector back into place.
Anyone who can point me in the right direction?Have you been able to recover all your other configuration and this is the last thing you need to fix? Or are all those other things needing to be fixed as well?
The reason I ask is that you may want to consider just starting from scratch, if you haven't put lots of effort into recovering everything else just yet.
On the other hand, if you just want to add a checkbox back into the SQL statement then you can add this, substituting your column name for empno of course:
APEX_ITEM.CHECKBOX2(1,empno,'CHECKED') "Select"When you do this you'll get a warning that you're changing the interactive report, which you should accept. Then you need to make sure that the column is actually shown in the interactive report by making sure it's in the displayed columns list. And you may also need to change the display type of the column to "Standard Report Column"
Hope that helps.
Earl -
SQL Query updateable report with row selector. Update process.
I have a SQL Query updateable report with the row selector(s).
How would I identify the row selector in an update process on the page.
I would like to update certain columns to a value of a select box on the page.
Using the basic:
UPDATE table_name
SET column1=value
WHERE some_column=some_value
I would need to do:
UPDATE table_name
SET column1= :P1_select
WHERE [row selector] = ?
Now sure how to identify the [row selector] and/or validate it is checked.
Thanks,
BobI don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
It should be like
<input id="..." value="" type="checkbox" name="fXX" >we are interested in the name attribute , get that number (between 01 and 50)
Replace that number in the code, for instance if it was f05 , the code would use
apex_application.g_f05
--i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.
Maybe you are looking for
-
9.0.2 loaded and now store is loading without text
Hi, just upgraded i-tunes to 9.0.2 -- when i access the store, I get a black background with album artwork but no text.... cant see what albums are called or what tracks are available... though i do get the 'bullets' for the tracks, which will play i
-
How do I specify the datasource in the weblogic-cmp-rdbms-jar.xml file? I am using an ODBC data source called Test for Microsoft Access. When I try to deploy my entity bean, the server complains it cannot find the datasource with the JNDI name: dataS
-
How to configure IIS for SAP BO 4.0 - installed in different server?
I have installed: Server Nr1 SAP BusinessObjects BI-Platform 4.0 in a 64 Bit Version and Server Nr2. IIS also 64 Bit Version. (BO and IIS are not running in the same Server) I have no idea to configure IIS. Can someone of you tell me the steps that a
-
CS3 Gradient Tool is screwed up
Please forgive me if this has already been discussed. I searched, but couldn't find it. I just recently began using the gradient tool, after learning its usefullness with masks. It worked fine for several weeks, but now I can't get it to work. I t
-
Imported PSD as Comp - options
When I import a PSD as a comp, I'm presented with the usual option to keep Layer Styles editable or merge them. What should I choose if my PSD doesn't use any layer styles at all? Does AE process/render one option faster than the other? (Would be nic