Reordering items in a report
The scenario: I have a table that holds values and their respective position "in line".
For example, Apples = 1, Bananas = 2, Oranges = 3, Grapes = 4. When I display a report, I want the values to show up in order...so, Apples, Bananas, Oranges, Grapes.
I need to add the capability to allow the user to rearrange the position (order) that is stored in the database by inserting one of the values before another value. So, If the user wants Grapes before Bananas, they need to be able to enter that, have the database be updated, and have the page repost itself so the user can see the changes.
Any basic ideas how to accomplish this?
How do I process these changes so that the changes
are saved?Hm? The page we are talking about is a wizard-generated tabular form on a table. The wizard already creates MRU (multi-row update/delete) processes and Save/Delete buttons. Don't you already have all this setup?
I have a column in my table called POSITION that is
supposed to store the ordering.Right, that corresponds to the SEQ column in my example.
Where does it go?:
create table emp_up_down as select * from emp;
alter table emp_up_down add (seq integer unique
deferrable initially deferred);
update emp_up_down set seq=rownum;I showed a self-contained fully-working example on that other thread. Something anyone could take, understand and modify according to their specific requirements. So, no, I doubt you would need the exact same code I posted!
Those 3 SQL statements just create a table, add a SEQ column to it and populate it. You probably already have all this.
The important thing I wanted to point out was that the unique constraint on the SEQ (POSITION or whatever) column needs to be "deferrable initially deferred". Why? Because to swap the value of that column in 2 rows, the MRU process would do this in 2 UPDATE statements and after the first UPDATE statement, the unique constraint would be violated. By making it deferrable, we are asking Oracle to ignore the violation until a COMMIT is issued. A COMMIT would be done after all the updates are done and at that time, the SEQ column would be unique again.
Hope this helps.
Similar Messages
-
Text item print in report???
Hi all
I have a problem in Report 6i
I created a report there is many field and text item
there is any possibility that if any field is empty related text item not print just like field.
suppose:
Text item data
Name........:- abc
Father Name.:-
any possibility if field father name empty, text "Father Name.:-" doesnt print in report.Duplicate of the thread :
text item print in report??? -
How to identify BOM items in the report
Hi,
I have a requirement from the user that they want to exclude all BOM items from the report which is showing all the Items.So how can i identify those items from the report query??
ThanksSELECT DISTINCT
DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number)
Ord,
ottt.name ord_type,
ooh.ordered_date Order_Date,
ooh.quote_number quote_no,
ool.line_number LNum,
ooh.flow_status_code Order_status,
-- hca.account_number Customer_number ,
ool.flow_status_code line_status,
PAB.PARTY_NAME bill_Customer_Name,
ACB.ACCOUNT_NUMBER bill_Customer_number,
PAS.PARTY_NAME ship_Customer_name,
ACS.ACCOUNT_NUMBER ship_to_Customer_Number,
ool.unit_selling_price selling_price,
ool.unit_list_price list_price,
ool.ORDERED_ITEM pNum,
ooh.booked_date Date_booked,
ool.Actual_shipment_date Ship_date,
ooh.header_id header_id,
mtl.description pDesc,
gcc.segment4 Revenue_account,
-- ooh.shipping_instructions,
REPLACE (ooh.SHIPPING_INSTRUCTIONS, CHR (10), ',')
shipping_instructions,
ool.schedule_ship_date SSD,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL)
Qty_Remning,
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL)
INV_AMOUNT,
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0) qua_ord,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0)
Ext_value,
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N') Credit_Hold ,
ooh.cust_po_number PONUm
FROM apps.oe_order_headers_all ooh,
apps.oe_order_lines_all ool,
apps.mtl_system_items_b mtl,
apps.org_organization_definitions ood,
apps.gl_code_combinations gcc,
AR.HZ_PARTIES PAH,
AR.HZ_CUST_ACCOUNTS ACH,
AR.HZ_CUST_SITE_USES_ALL SUB,
AR.HZ_CUST_ACCT_SITES_ALL STB,
AR.HZ_CUST_ACCOUNTS ACB,
AR.HZ_PARTIES PAB,
AR.HZ_CUST_SITE_USES_ALL SUS,
AR.HZ_CUST_ACCT_SITES_ALL STS,
AR.HZ_CUST_ACCOUNTS ACS,
AR.HZ_PARTIES PAS,
apps.oe_transaction_types_tl ottt,
apps.per_all_people_f papf
-- apps.OE_ORDER_HOLDS_ALL ooha,
-- apps.OE_HOLD_SOURCES_ALL ohsa
-- ,apps.OE_HOLD_DEFINITIONS Hod_def
WHERE ooh.header_id = ool.header_id
AND ool.org_id = NVL (:p_org_id, ool.org_id)
AND ool.flow_status_code != 'CLOSED'
--and ooha.header_id(+) = ooh.header_id
--and ooha.line_id(+) = ool.line_id
--and ohsa.hold_source_id = ooha.hold_source_id
--and ohsa.hold_id = Hod_def.hold_id
--and ohsa.RELEASED_FLAG = 'N'
AND ooh.attribute2 = papf.person_id(+)
AND ottt.language = 'US'
AND ooh.order_type_id = ottt.transaction_type_id(+)
AND ooh.open_flag = 'Y'
--and ooh.order_number = '40000791'
AND ooh.SOLD_TO_ORG_ID = ACH.CUST_ACCOUNT_ID
AND ACH.PARTY_ID = PAH.PARTY_ID
AND oOH.INVOICE_TO_ORG_ID = SUB.SITE_USE_ID(+)
AND SUB.CUST_ACCT_SITE_ID = STB.CUST_ACCT_SITE_ID(+)
AND STB.CUST_ACCOUNT_ID = ACB.CUST_ACCOUNT_ID(+)
AND ACB.PARTY_ID = PAB.PARTY_ID(+)
AND oOH.SHIP_TO_ORG_ID = SUS.SITE_USE_ID
AND SUS.CUST_ACCT_SITE_ID = STS.CUST_ACCT_SITE_ID
AND STS.CUST_ACCOUNT_ID = ACS.CUST_ACCOUNT_ID
AND ACS.PARTY_ID = PAS.PARTY_ID
-- and SOH.CANCELLED_FLAG ='N'
AND ool.inventory_item_id = mtl.inventory_item_id
AND ool.org_id = mtl.organization_id
AND mtl.sales_account = gcc.code_combination_id
AND ool.org_id = ood.organization_id
--and ooh.salesrep_id = jrs.salesrep_id
--&LP_INCL_QUOTES
GROUP BY DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number),
ottt.name,
ooh.ordered_date,
ooh.quote_number,
ool.line_number,
ooh.flow_status_code,
--- hca.account_number ,
ool.flow_status_code,
PAB.PARTY_NAME,
ACB.ACCOUNT_NUMBER,
PAS.PARTY_NAME,
ACS.ACCOUNT_NUMBER,
ool.unit_selling_price,
ool.unit_list_price,
ooh.shipping_instructions,
ool.ORDERED_ITEM,
ooh.booked_date,
ool.Actual_shipment_date,
ooh.header_id,
mtl.description,
gcc.segment4,
ooh.cust_po_number,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0),
ool.schedule_ship_date,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL),
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL),
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N')
-- (hz_loc.Address1||','||hz_loc.Address2||','||hz_loc.City||','||hz_loc.State)
HAVING (ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)) >
SUM (NVL (ool.shipped_quantity, 0))
ORDER BY 1, 2, 3; -
How do I reference items in a report region
I've created a report. You can view the region attributes at http://i3.tinypic.com/wcn59h.jpg.
I've changed the "Display As" attribute of one of the items (QUAN_ID) to 'Select List (query based LOV)'. I've set the "LOV Query" attribute on this item to the following.
select quan.answer_txt
, quan.id
from vug_question_answers quan
, vug_survey_questions suqu
where suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
--and suqu.id = :suqu_id
order by quan.question_answer_seq_no
The purpose of this LOV is to return QUESTION_ANSWERS that have a foreign key to the SURVEY_QUESTIONS record identified by the sufu_id. The bind-variable ":p33_surv_id" is a page item. I THOUGHT the bind-variable ":suqu_id" (referenced in the commented-out line) would be the name of a column item in my report region. However, the LOV doesn't return correct values if I uncomment the line containing :SUQU_ID.
How do I determine the name of the report region column item so that I can reference it within the LOV of another item in the same region?
Thanks,
-KenIvo,
That's it!
My original tabular form query read as follows.
select rean.id,
rean.resp_id,
suqu.surv_id,
suqu.question_txt,
quan.suqu_id,
rean.quan_id, --this is the column I was adding an LOV to
rean.entered_by,
rean.entered_on,
rean.updated_by,
rean.updated_on
from vug_respondent_answers rean
, vug_question_answers quan
, vug_survey_questions suqu
where rean.resp_id = :p33_resp_id
and quan.id = rean.quan_id
and suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
I've changed it to the following.
select rean.id,
rean.resp_id,
suqu.surv_id,
suqu.question_txt,
quan.suqu_id,
htmldb_item.select_list_from_query
( 6
, rean.quan_id
, 'select quan.answer_txt, quan.id from vug_question_answers quan, vug_survey_questions suqu where suqu.id = quan.suqu_id and suqu.surv_id = :p33_surv_id and suqu.id = '|| suqu.id ||' order by quan.question_answer_seq_no') quan_id,
rean.entered_by,
rean.entered_on,
rean.updated_by,
rean.updated_on
from vug_respondent_answers rean
, vug_question_answers quan
, vug_survey_questions suqu
where rean.resp_id = :p33_resp_id
and quan.id = rean.quan_id
and suqu.id = quan.suqu_id
and suqu.surv_id = :p33_surv_id
My screen now looks as found at http://i3.tinypic.com/wgq4g9.jpg. (Note that I've also changed the question since a previous post.) -
Dear Experts,
We have a report that contains item level data (multiple records for same item in the report). We would like to see the count of records for these items based on aggregation levels.
Since the data is on item level, we have same items available in multiple lines that gives me wrong results.
For e.g, I'd like to see the report that shows the count of items based on some fields like below.
Region
Count of Items
ELAT
20
AMEA
40
NAM
38
So, if I drill down on Sub-region level, I should get the proper count of items as below.
Region
Sub region
Count of Items
ELAT
ER1
10
ELAT
ER2
5
ELAT
ER3
5
AMEA
AR1
40
NAM
NR1
10
MAN
NR2
28
So, the count is same for the above report with additional drill down on Sub region.
When I use Exception Aggregation based on reference characteristic, I'm getting results, but, it varies on different aggregation levels (drill downs of other characteristics).
When I use formula to show '1' for each record, the aggregation shows wrong values, because of multiple records with same item numbers in the report.
I'm not sure Constant Selection would help me because, these are item level data.
Any idea on how to achieve this is much appreciated.
Let me know for any clarifications.
Br, HarishHi Yasemin ULUTURK,
I have a similar requirement in which I need to get a count of RKFs in the report.
This RKF is a subset of items count that was formulated earlier using your approach.
Since the count is a formula, I cannot use this for creating an RKF based on it.
Any idea on how to achieve this is highly helpful.
Br, Harish -
Alternate Item in Crystal Report
Hi Experts!
I am not able to manage alternate item in crystal report's detail section.
Please help me out in solving the same problem.Hello,
Whenever you make CR in designer then you have three option
1.Select Table(SQL Table)
2.Select Procedure(SQL procedure)
3.Select Command(Which have SQL query)
Option 1:-
If you want to use Alternative code then use OALI table and make right or left join with this table.
Option :-2
Make UDF row level and set FMS for Alternative or parent item Code.
Thanks
Manvendra Singh NIranjan -
Meaning fails to generate correct code for text item in designer reports
I have a text item in a report which is a table column governed by a domain. When the display type is set to TEXT and the Show Meaning property is set to MEANING ONLY - the code generation fails as follows:
WHERE NTC.ICO_ID = L_ICO.ID AND
L_ICO.ISS_CAT_CODE = L_ISS.CAT_CODE AND
L_ICO.ISS_LEGI_CODE = L_ISS.LEGI_CODE AND
NTC.DEM_ID = L_DEM.ID
CG.RV_DOMAIN = 'NOTICE TYPE' AND CG.RV_LOW_VALUE = NTC.NOTICE_TYPE
The failure is caused because the AND is omitted from the last condition in the query. (the part that gets the meaning from cg_ref_codes).
Can anyone advise on a solution to this?Sander,
Your concerns about renaming the new release 4 libraries to ofg*65.pll are understandable, but it is exactly what you have to do. The only customizations we made to the ofg* libraries in Headstart 6i are workarounds for Designer bugs that were present when we wrote Headstart 6i (at that time we used Designer release 2). These bugs have been fixed by now, so it is safe to use the Release 4 versions and get rid of the ones that shipped with Headstart 6i.
We recommend still renaming them to ofg*65.pll, for an explanation see the Headstart User guide or the Headstart Installation Guide.
Kind regards,
Peter
null -
If my Items Valuation method is FIFO then can I get that particular Items Landed cost report via Inventory audit report which has posting IF & its Item cost & Is any other way to get Items Landed cost Report.
hi,
Check transaction ME81N - Analysis of order values...
Regards
Priyanka.P -
Items in project report(query) are listed under the "not assigned" (column)
Hi All,
Items in project reports (query) are listed under the "not assigned" (column name) Why it is so ?
Start query : project reports & ask for period April 2008 (Period from/to). .
You will see items listed under Not assigned WBS Element (column name)
If you choose for a period of April until June 2008 then you see more items under u201Cnot assignedu201D .
Items should be under Assigned (column name) & not under the Not assigned (column name )
Any suggestions highly appreciable.
Thanks.Hi,
How are you displaying the ITEM field in the BEx query designer? Is it displayed with "Key and Text"? If so and if the text is not loaded for this master, this may happen.
Regards,
Yogesh. -
Group Tree shows items not on report.
Post Author: BSK
CA Forum: General
I have a report grouped by Items then suppress some of those items based on type or date.
Is there any way to modify the Group Tree to also suppress the Items that the report suppresses?Post Author: BSK
CA Forum: General
That is what I would do but this report is unusual in the fact that I need to select all Items then elimnate the Items that fall into a Quantitiy qualification and print the Items that don't meet the Quantity qualification but fall into a date range. For simple terms I want all items that don't qualify versus a standard report where you generally look for all items that do meet a qualification. I can some reverse logic on the selection formula but is there any way to process the Group Tree during report processing and not strictly on the Group By field? -
Grow up items in tabular report
Dear All i have item in tabular report its grow up vertical as data enter but i need to grow up all field as this field grow up
any idea
Edited by: Hshihadah on Jan 14, 2010 8:20 AMthanks for reply
some item expand vertical (upon there data) more than other item in report what i need expand other item as the largest item expand
thanks -
In report painter report, line item level drilldown report requirment
Dear All,
I created one report in GRR1, when I execute the report i am not getting line item wise drilldown option. For example one cost center no of line itemwise posting ( g/ls wise)posting is there. By double clicking on that specific line item we will go that ledger and see the data available in that ledger.In standard reports that option available but my own reports I unable to go drilldown at ledger level cost reports.
Please sugget anyone, where I am doing mistake in report creation level.
Thanks
M Srinivasa reddy
Ph : 9637399076Thank you,
I attached reports to Library based on that I am able to drilldown line item level of the report.Is it corret or any other way for line item level drilldown option for report painter reports
Thanks
M Srinivasa reddy -
Hi Gurus,
I have a reporting requirement like the basic columns are
Vendor number, Accounting clerk, Total invoices, Total payments
The Total invoices, Total payments will be derived from certain doc types and there is an attached key figure Amount to them
My client wants the Total invoices, Total payments should be linked to display the following details
Line items of Invoices
Vendor Number Vendor Name: XXXXXXXXXXX Invoices
Document Number Reference Account Clerk Document Date Posting Date Doc Type Amount
XXXXXXXXX XXXX XX XXXXXX XXXXX XX XXXXX
How to achieve this using Drill down facility or any other way to follow up
Please explain as this is required
Thank youHi Danny
thank you
i want it like the Total Invoices column should be hot linked to display the following line items of Invoices
Vendor Number | Vendor Name:XXXX | Invoices
Document Number | Reference | Account Clerk | Document Date | Posting Date | Doc Type | Amount
similarly the column Total Payments should be hot linked to display the following line items of Payments
Vendor Number | Vendor Name:XXXX | Payments
Document Number | Reference | Account Clerk | Document Date | Posting Date | Doc Type | Amount
Please suggest
Thank you -
How to acheive the purchase order items in Crystal report
Hi
In crystal Report am using purchase order layout ,how to remove the unwanted space(i'm using only one item like cement alone so lot of space in page 1 )below screen shot show the clear view how to remove this using formula.if suppose am using 5 items that space will cover ,but for 1 item lot of empty spaces.
Regards
VinothHi Vinoth,
Please follow below Steps.
In Crystal Report for Report Footer Section -- Report >>> Section Report >>> Print at Bottom of Page >>> Uncheck
Please check attachment also.
hope thid help
Regards::::
Atul Chakraborty -
Populating apex item checkbox in report row based on database value
Hi All
I am looking for help setting an apex item checkbox to 'checked' depending on a record exisiting in a database and I would appreciate a little guidance.
At the moment I have a report which looks a bit like this
SELECT licence_user_identifier,
description,
licence_name,
apex_item.checkbox(22,licence_id)
FROM TABLE(SOL_LICENCE.F_RETRIEVE_ORG_LICENCES ( 121 ));
4 columns and the last column is a checkbox called 'assign' and is used to assign the selected licence to a user(who is already displayed on the page in another table). There is save button which when clicked saves a record to the database if the checkbox is selected.
However when the page is displayed the checkbox should be prepopulated/checked if there is a record in the database saying that the licence is assigned to the current user. I have created a page process to try and collect this information and populate the checkboxes on load - before header. However I am having difficulty referencing the apex_application item the corresponds to each row because when I use the FOR i IN 1 .. apex_application.g_f22.COUNT LOOP it only selects the item if it is checked. Can anyone point me in the right direction?
here is the process I have to populate the checkboxes, it is not getting to my flow.debug as there are no selected checkboxes:-(
DECLARE
v_count NUMBER;
CURSOR getlicences (p_co_id so05.co_id%TYPE)
IS
SELECT licence_id
FROM so05_cust_org_licences
WHERE co_id = p_co_id;
BEGIN
IF :p9_co_id IS NOT NULL
THEN
FOR each_rec IN getlicences (:p9_co_id)
LOOP
--check if a record exists
SELECT COUNT ( * )
INTO v_count
FROM so05_cust_org_licences
WHERE co_id = :p9_co_id AND licence_id = each_rec.licence_id;
--if the record exists populate the checkbox
IF v_count > 0
THEN
FOR i IN 1 .. apex_application.g_f22.COUNT
LOOP
wwv_flow.debug ('bbbbbbbbbbccccccccccandwearein' || v_count);
IF apex_application.g_f22 (i) = each_rec.licence_id
THEN
apex_application.g_f22 (i) := 1;
END IF;
END LOOP;
END IF;
END LOOP;
END IF;
END;
Thanks in advance
LynnHi,
Sorry my mistake. You can use the above link only to solve this problem, for this you have to use a hidden column to which you will assign 'Y' or 'N' as mentioned in that post.
using that hidden column value you can fire your query accordingly.
let's say your hidden column is f01 and checkbox column is f02 and the id column is f03, you can do like this
create a process before your update process like this
BEGIN
-- Reset the hidden ADMIN_USER flag for all visible records to N
-- Note: g_f01 maps to the hidden ADMIN_USER column
FOR ii IN 1 .. APEX_Application.g_f01.COUNT
LOOP
APEX_Application.g_f01(ii) := 'N';
END LOOP;
-- Set the hidden ADMIN_USER flag for those records where the
-- checkbox has been set by the user to Y
-- Note: g_f02 is the checkbox column ADMIN_USER_CHECKBOX
FOR ii IN 1 .. APEX_Application.g_f02.COUNT
LOOP
APEX_Application.g_f01(APEX_Application.g_f02(ii)) := 'Y';
END LOOP;
END;then write a new process positioning after above process
if apex_application.g_f01 = 'Y' then
your update query using id column (f03)
else
your delete query using that id column (f03)
end if;hope this helps you.
Thanks
Tauceef
Maybe you are looking for
-
Mauled by leopard - serious problems - can anyone solev this?
I installed leopard on my powerbook G4 - encountered no problems whatsoever. So I decided to install on the G5 Quad as well. All seemed to go well. Then I tried to begin working in Final Cut Pro with the raid array and kept getting the multilingual s
-
Error: web template does not exist in master system
I have Bex 7x query. I wnat to publish it on SAP enterprise portal (EP 7.0 SP19). When I create a Bex iview and provide link of query, I get following error in preview: The webtemplate <queryname> does not exist in master system. Could you please let
-
Source Monitor smooth, but Program Monitor STUTTERS
What would cause a clip to play smoothly in the SOURCE monitor, but to not play smoothly in the PROGRAM monitor? Playback resolution makes no difference. I've tried using "New Sequence From Clip" - same problem. I'm not using an external monitoring d
-
SCSA 310-014 free sample questions
Can anybody guide me to get SCSA 310-014 free sample questions. Thanks in advance. Thanks, Vasanth.
-
Help!! my g4 is dying.......
the most bizarre thing happened this morning. got home from apple store last night with a brand new end of line xeon octocore mac pro. went to bed. got up this morning and started using my aging g4 867mhz single processor on the internet and it sudde