HTMLDB_APPLICATION.G_F01 has wrong value!
HTMLDB_APPLICATION.G_F01 has wrong value!
Hello again,
I have a search page in my app (here the user defines the search criteria) P1.
The page branches to P130, where the result is shown. This second page contains a region of type 'SQL Query (PL/SQL Function Body Returning SQL Query)'. The code for this dynamic query is 231 lines of code, so I want to spare you scrolling through it here . What it basically does is generating SQL QRY's such as the following:
select distinct(sq.SAMPLE_ID) XXX,
'ID: '||sq.SAMPLE_ID||'
' ||'Type: '||sq.SAMPLE_TYPE||'
' ||'Collection Date: '||sq.COLLECTION_DATE SAMPLE_INFO,
'Aliquots (T/A): '||to_char(sq.ALIQUOTS_TOTAL)|| '/' ||to_char(sq.ALIQUOTS_AVAILABLE)||'
' ||'Volume (T/A): '||to_char(sq.VOLUME_TOTAL,'990D00')|| '/' ||to_char(sq.VOLUME_AVAILABLE,'990D00') AVAILABILITY,
'Age: '||sq.PATIENT_AGE||'
' ||'Gender: '||sq.PATIENT_SEX||'
' ||'Bloodtype: '||sq.BLOOD_TYPE||'
' PATIENT_INFO,
DML_SERVICE.get_Diagnoses(sq.SAMPLE_ID) DIAGNOSES,
DML_SERVICE.get_Medications(sq.SAMPLE_ID) MEDICATIONS,
DML_SERVICE.get_Interferences(sq.SAMPLE_ID) INTERFERENCES,
DML_SERVICE.get_LabData(sq.SAMPLE_ID) LABDATA,
decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.text(1, '1', 1, 2)) ORDER_QTY,
decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.checkbox(2,sq.SAMPLE_ID)) ORDER_ME
from SEARCH_V01 sq
where sq.DIAGNOSIS = 'D-Dimer'
order by 1 desc
The DML_SERVICE functions just return a string(Varchar2). At the right side of the report I have two columns, one with a textfield (ORDER_QTY, default: 1) and one with a checkbox (ORDER_ME) for each line.
For each line where the checkbox is checked, a process (On Submit - after Comp and Val) places the order for the requested quantity (this is done by inserting an Order ID into the ALIQUOTS table -> see bold update statement below).
The process follows:
declare
alq_qty number;
alq_id number;
cnt number;
begin
cnt := 0;
for i in 1..HTMLDB_APPLICATION.G_F02.count
loop
select count(*) -- set alq_qty to number of available alq's
into alq_qty
from ALIQUOTS a
where a.SAMPLE_ID = HTMLDB_APPLICATION.G_F02(i)
and a.ORDER_ID = 0;
insert into D_DEBUG (ID, DD) values (1, 'wanted: ' || HTMLDB_APPLICATION.G_F01(i) || ' available: ' || alq_qty); -- REMOVE!!!
if alq_qty > to_number(HTMLDB_APPLICATION.G_F01(i)) then -- if there are enough alq's
alq_qty := to_number(HTMLDB_APPLICATION.G_F01(i)); -- set alq_qty to number of ordered alq's
end if;
for n in 1..alq_qty
loop
select min(ID)
into alq_id
from ALIQUOTS
where sample_id = HTMLDB_APPLICATION.G_F02(i)
and order_id = 0;
insert into D_DEBUG (ID, DD) values (1, 'alq_id: '||alq_id); -- REMOVE!!!
update ALIQUOTS
set order_id = :P130_SELECT_ORDER
where id = alq_id;
cnt := cnt + 1;
end loop;
dml_service.upd_sample_record(HTMLDB_APPLICATION.G_F02(i)); -- refresh data in SAMPLE table
end loop;
:P130_MSG := 'Assigned '||cnt||' aliquots to order: '||:P130_SELECT_ORDER;
end;
Now my problem is that this process does what it should, sometimes. When I enter 6 in one row and check the checkbox and enter 4 in another row and check that checkbox and then press SUBMIT, 10 aliquots are assigned to my order.
Sometimes.... the other times the process just orders 2 aliquots, one of each line and disregards the number entered in the textfield.
Or so it may seem: I added some lines to write debug info into D_DEBUG (see above.) From those entries you can assume that the content of HTMLDB_APPLICATION.G_F01(i) is in fact '1' when the process does its work. So I think the problem lies somewhere in the creation of htmldb_item.text(), (I went through the API of that htmldb_item again and again...)
Also: I can reproduce / recreate this error. It's totally weird: for some rows it (always) works and for some it (always) doesn't !!!
So, any help, any suggestion is really appreciated (I'm currently working on bringing the crucial part of this to marvel.oracle.com)
-David-
[Edited by: sleuniss on Jul 15, 2004 12:18 PM]
Changed subject line.
Now the subjectline is right, but the indentation is gone.... :-(
again the SQL query:
select distinct(sq.SAMPLE_ID) XXX,
'ID: '||sq.SAMPLE_ID||'
' ||'Type: '||sq.SAMPLE_TYPE||'
' ||'Collection Date: '||sq.COLLECTION_DATE SAMPLE_INFO,
'Aliquots (T/A): '||to_char(sq.ALIQUOTS_TOTAL)|| '/' ||to_char(sq.ALIQUOTS_AVAILABLE)||'
' ||'Volume (T/A): '||to_char(sq.VOLUME_TOTAL,'990D00')|| '/' ||to_char(sq.VOLUME_AVAILABLE,'990D00') AVAILABILITY,
'Age: '||sq.PATIENT_AGE||'
' ||'Gender: '||sq.PATIENT_SEX||'
' ||'Bloodtype: '||sq.BLOOD_TYPE||'
' PATIENT_INFO,
DML_SERVICE.get_Diagnoses(sq.SAMPLE_ID) DIAGNOSES,
DML_SERVICE.get_Medications(sq.SAMPLE_ID) MEDICATIONS,
DML_SERVICE.get_Interferences(sq.SAMPLE_ID) INTERFERENCES,
DML_SERVICE.get_LabData(sq.SAMPLE_ID) LABDATA,
decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.text(1, '1', 1, 2)) ORDER_QTY,
decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.checkbox(2,sq.SAMPLE_ID)) ORDER_ME
from SEARCH_V01 sq
where sq.DIAGNOSIS = 'D-Dimer'
order by 1 desc
and the process:
declare
alq_qty number;
alq_id number;
cnt number;
begin
cnt := 0;
for i in 1..HTMLDB_APPLICATION.G_F02.count
loop
select count(*) -- set alq_qty to number of available alq's
into alq_qty
from ALIQUOTS a
where a.SAMPLE_ID = HTMLDB_APPLICATION.G_F02(i)
and a.ORDER_ID = 0;
insert into D_DEBUG (ID, DD) values (1, 'wanted: ' || HTMLDB_APPLICATION.G_F01(i) || ' available: ' || alq_qty); -- REMOVE!!!
if alq_qty > to_number(HTMLDB_APPLICATION.G_F01(i)) then -- if there are enough alq's
alq_qty := to_number(HTMLDB_APPLICATION.G_F01(i)); -- set alq_qty to number of ordered alq's
end if;
for n in 1..alq_qty
loop
select min(ID)
into alq_id
from ALIQUOTS
where sample_id = HTMLDB_APPLICATION.G_F02(i)
and order_id = 0;
insert into D_DEBUG (ID, DD) values (1, 'alq_id: '||alq_id); -- REMOVE!!!
update ALIQUOTS
set order_id = :P130_SELECT_ORDER
where id = alq_id;
cnt := cnt + 1;
end loop;
dml_service.upd_sample_record(HTMLDB_APPLICATION.G_F02(i)); -- refresh data in SAMPLE table
end loop;
:P130_MSG := 'Assigned '||cnt||' aliquots to order: '||:P130_SELECT_ORDER;
end;
-David-
Similar Messages
-
Hi there,
We are trying to reference data returned by a query using an array statement such as XX := htmldb_application.g_F01.count;
The value is always zero. Are we missing something?
ThanksHi Scott,
Correct.
We have say 2 columns FUND and EXCEL_FUND. A snippet of the query would look like;
select a.segment1 fund, '="' || a.segment1 || '"' excel_fund.....
they return 01 and ="01" for example.
We conditionally display 01 on the on-screen report but we want to export ="01" to excel so the leading zeros are not stripped out.. The browser displays the report region data 01 correctly. But we cannot export ="01" as it appears that unless you display the value you cannot export it(version 3.1).
So we have our own export to excel button which works if we re-run the query. But we do not want to re-run the query, we want to re-use the "result set" of the on-line report(sorry, i am not certain what all the terms are). Everyone seems to use the htmldb_application package but we don't know if the htmldb_application.g_F01 array item is loaded up by the app or do we have to do it? We are in a bit of a fog.
Any help is appreciated.
Thanks -
how to unlock ipad with voice over and password? i already entered my correct password the voice over kept on saying its wrong..my password is 0409.. and the voive over says"zero" has no value?
Turn off VoiceOver
1. Press the Home button
2. Tap Settings.
3. Then double-tap Settings.
4. Tap General.
5. Then double-tap General.
6. Use three fingers on the screen to scroll to Accessibility
7. Tap Accessibility.
8. Then double-tap Accessibility
9. Tap VoiceOver
10. Then double-tap VoiceOver.
11. Tap "On" next to VoiceOver
12. Then double-tap "On" to turn it off. -
I have 2 different queried regions (PL/SQL Function returning Query). I want to use one SAVE button to save all values in both regions. One is a student's SAT scores, the other is their ACT scores. They reference 2 distinct tables, sat and act.
The problem seems to be that the regions share the f01, etc. identifiers. I tried to get around this by making f01 indicate which test it is, ie. which table to update.
I'm using the "for i in 1..htmldb_application.g_f01.count loop" construct. It works fine when only 1 of the regions has records. But when they both have rows i get this error: ORA-01403: no data found... apparently not retrieving the records? Here is my process code, which is executed when the SAVE button is pressed:
-- There are 2 regions, SAT and ACT. Since they share form identifiers
-- (f02, etc.) the Test Type was needed to distinguish which table to insert
-- the values into, sat or act.
-- SAT
-- f01 = Test Type ( = SAT )
-- f02 = permnum
-- f03 = SAT admindate
-- f04 = SAT testsite
-- f05 = SAT math
-- f06 = SAT verbal
-- f07 = SAT composite
-- ACT
-- f01 = Test Type ( = ACT )
-- f02 = ACT permnum
-- f03 = ACT admindate
-- f04 = ACT testsite
-- f05 = ACT math
-- f06 = ACT english
-- f07 = ACT reading
-- f08 = ACT science
-- f09 = ACT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'SAT' then
update sat
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
verbal = replace(htmldb_application.g_f06(i), '', NULL),
composite = replace(htmldb_application.g_f07(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
if htmldb_application.g_f01(i) = 'ACT' then
update act
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
english = replace(htmldb_application.g_f06(i), '', NULL),
reading = replace(htmldb_application.g_f07(i), '', NULL),
science = replace(htmldb_application.g_f08(i), '', NULL),
composite = replace(htmldb_application.g_f09(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;Ok i broke them out into 2 separate processes, with a Save button in each region "SAVE_SAT" and "SAVE_ACT". Like this:
// | PROCESS: Save Changes to SATs |
-- There are 2 regions, SAT and ACT. Since they share form identifiers
-- (f02, etc.) the Test Type was needed to distinguish which table to insert
-- the values into, sat or act.
-- SAT
-- f01 = Test Type ( = SAT )
-- f02 = permnum
-- f03 = SAT admindate
-- f04 = SAT testsite
-- f05 = SAT math
-- f06 = SAT verbal
-- f07 = SAT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'SAT' then
update sat
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
verbal = replace(htmldb_application.g_f06(i), '', NULL),
composite = replace(htmldb_application.g_f07(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;
// | PROCESS: Save Changes to ACTs |
-- ACT
-- f01 = Test Type ( = ACT )
-- f02 = ACT permnum
-- f03 = ACT admindate
-- f04 = ACT testsite
-- f05 = ACT math
-- f06 = ACT english
-- f07 = ACT reading
-- f08 = ACT science
-- f09 = ACT composite
begin
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) = 'ACT' then
update act
set testsite = htmldb_application.g_f04(i),
math = replace(htmldb_application.g_f05(i), '', NULL),
english = replace(htmldb_application.g_f06(i), '', NULL),
reading = replace(htmldb_application.g_f07(i), '', NULL),
science = replace(htmldb_application.g_f08(i), '', NULL),
composite = replace(htmldb_application.g_f09(i), '', NULL)
where permnum = :GLOBAL_PERMNUM
and to_char(admindate, 'DD-MON-YYYY') = htmldb_application.g_f03(i);
end if;
end loop;
end;
Now, i can save SAT information (for that region), but i get this error when i try to save changes to the ACT region:
ORA-01403: no data found
? -
FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
I cannot seem to get row processing (using G_Fxx.count) to work property.
I have followed the HOWTO section to create an updateable report with a Checkbox. On Load, all checkboxes are set to UNCHECKED:
SELECT X.OFFICER_ID
, X.OFFICER_NAME_TX
, X.OFFICER_TITLE_TX
FROM (
SELECT HTMLDB_ITEM.CHECKBOX(1,'N',NULL,'Y')
|| HTMLDB_ITEM.HIDDEN(2,OFFICER_ID) OFFICER_ID
, HTMLDB_ITEM.TEXT(3,OFFICER_NAME_TX) OFFICER_NAME_TX
, HTMLDB_ITEM.TEXT(4,OFFICER_TITLE_TX) OFFICER_TITLE_TX
FROM CDIS_INV_OFFICER
WHERE CORONER_CASE_ID = :P1_CORONER_CASE_ID
UNION ALL
SELECT HTMLDB_ITEM.CHECKBOX(1,'N',NULL,'Y')
|| HTMLDB_ITEM.HIDDEN(2,NULL) OFFICER_ID
, HTMLDB_ITEM.TEXT(3,NULL) OFFICER_NAME_TX
, HTMLDB_ITEM.TEXT(4,NULL) OFFICER_TITLE_TX
FROM ALL_OBJECTS WHERE ROWNUM <= NVL(:P2_ADD_OFFICER_CNT, 0)) X
I attempt to loop through the looped rows and upate the Officer Name and Title for those rows checked.
BEGIN
-- Loop through the rows that have been checked.
FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
LOOP
-- Update the Officer Name and Title if checked.
CDIS$CDIS_INV_OFFICER_U.P_UPDATE_BY_OFFICER_ID
( HTMLDB_APPLICATION.G_F02(I)
, :P1_CORONER_CASE_ID
, REPLACE(HTMLDB_APPLICATION.G_F03(I),'%'||'NULL%',NULL)
, REPLACE(HTMLDB_APPLICATION.G_F04(I),'%'||'NULL%',NULL)
, :F118_STATUS_CD
, :F118_STATUS_DESC ) ;
END IF ;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
:F118_STATUS_CD := '1' ;
:F118_STATUS_DESC := SUBSTR((SQLERRM),1,2000);
END ;
If I check row 1 and 3 and hit the UPDATE button, rows 1 and 2 get updated. If I check rows 1, 3, 5, 7 and 9, then rows 1 to 5 get updated.
From what I can determine, all that FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT holds is the count of the rows update. Then when I loop through, I update the FIRST X-many rows. So, if 5 rows are checked, the first 5 rows are updated.
What exactly am I doing wrong?Vivek thanks for helping find the solution.
I see that there are several threads on this topic â having to do with updateable reports, checkboxes and hidden columns (most likely the Primary Key or parts of the Primary Key). Maybe I should write a HOWTO, but here first is the solution for those that are currently experiencing this problem.
First let me address the value contained within HTMLDB_APPLICATION.G_F01.COUNT:
G_F01.COUNT contains the number of rows checked. It does not identify those rows. Meaning, if you have 3 rows checked this variable will contain the number 3. If you use this variable in a LOOP Statement (i.e. "FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT") the variable "i" will start at 1 and be incremented by 1 until it gets to 3. So, the values will be 1, 2 and 3.
If you then reference HTMLDB_APPLICATION.G_F03(i), you will reference the 3rd column in the array for rows 1, 2 and 3. This is not necessarily the checked rows. Meaning if rows 1, 3 and 5 are checked and then HTMLDB_APPLICATION.G_F03(i) is referenced in the loop, the wrong rows will be referenced.
The solution is "not to reference HTMLDB_APPLICATION.G_F03(i)" but instead "to reference HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i))".
Within my Region Definition, I have:
SELECT HTMLDB_ITEM.CHECKBOX(1,ROWNUM)
_______, X.Officer_Name
_______, X.Officer_Title
FROM (
SELECT HTMLDB_ITEM.HIDDEN(2,Officer_Id)
______|| HTMLDB_ITEM.TEXT(3,Officer_Name) Officer_Name
______, HTMLDB_ITEM.TEXT(4,Officer_Title) Officer_Title
FROM CDISINV_OFFICER
WHERE Coroner_Case_Id = :P1_CORONER_CASE_ID ) X
The Checkbox is stored in F01. The Hidden Primary Key is stored in F02 (if there were multiple columns in the Primary Key, one would have multiple hidden columns and multiple associated F##s). The updateable report columns are stored in F03 and F04.
Within my "After Update" Process (On Submit â After Computations and Validations), I have:
BEGIN
FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
LOOP
UPDATE CDIS_INV_OFFICER
____SET Officer_Name = HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i))
_______, Officer_Title = HTMLDB_APPLICATION.G_F04(HTMLDB_APPLICATION.G_F01(i))
WHERE Coroner_Case_Id = :P1_CORONER_CASE_ID
___AND Officer_Id = HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i)) ;
END LOOP;
Notice that I am referencing F03(F01(i)) and not F03(i).
Instead of going F03(1), F03(2) then F03(3), I am actually referencing the rows associated with the checkboxes.
This is how the Checked Rows (where the CHECKBOX is set to âEnabledâ) are selected, via the ROWNUM stored within the Regional Definition.
This solution works well.
I hope you find my explanation helpful. -
FOR i IN 1..htmldb_application.g_f01.COUNT LOOP
Hello,
I have created a report query as below
SELECT
ROWNUM,
x.household_org_affil_id,
x.hoaf_effective_date,
x.hoaf_terminate_date,
x.partner_organization,
x.primary_type,
x.relationship_type ,
x.affiliated_person_id,
x.chksum,
x.del
FROM (SELECT
htmldb_item.hidden(1,household_org_affil_id) household_org_affil_id,
wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
wwv_flow_item.date_popup(3,NULL,vbhoaf.terminate_date) hoaf_terminate_date,
htmldb_item.display_and_save(4,partner_common_name) partner_organization,
htmldb_item.HIDDEN(5,affiliated_person_id) affiliated_person_id,
htmldb_item.display_and_save(6,primary_type) primary_type,
htmldb_item.display_and_save(7,relationship_type_dis) relationship_type,
htmldb_item.md5_checksum(
household_org_affil_id,
vbhoaf.effective_date,
vbhoaf.terminate_date) chksum,
htmldb_item.checkbox(50, household_org_affil_id, (case when vbhoaf.terminate_date is null then 'DISABLED' else NULL end)) del
FROM vb_household_org_affil vbhoaf
JOIN vb_household_membership vbhm
ON vbhoaf.family_household_id = vbhm.family_household_id
JOIN vb_partner_organization vbpo
ON vbpo.partner_organization_id = vbhoaf.partner_organization_id
WHERE :P1580_AFFILIATED_PERSON_ID IS NOT NULL
AND vbhm.affiliated_person_id = :P1580_AFFILIATED_PERSON_ID) x
But if I am trying to loop as below
FOR i IN 1 .. htmldb_application.g_f01.COUNT LOOP
I am getting an error 'no data found' as like the array g_f01 does not exist. But If I am refering g_f02, that is ok but that is not the one I want.
Can you anyone please help me to find what is wrong.
Thanks in advance,
NattuHello Nattu,
Although it seems that your query is working in the way you wrote it, I believe it makes more sense (at least for me) that the use of the APEX API will be within the main query and not within the sub-query.
In your case, as you created the household_org_affil_id column as hidden one, you probably don’t want to display it. Did you uncheck the “Show” attribute for this column? In this case the column don’t get to be POSTed, and the corresponding G_Fxx array will be empty.
In order to correct that, and still get a presentable report, you need to concatenate the hidden column with a column you are displaying. This way the hidden values will be populated to the corresponding G_Fxx array. You can try something like this:
SELECT ROWNUM
htmldb_item.hidden(1,household_org_affil_id) ||
wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
from (select x.hoaf_effective_date, . . .
from vb_household_org_affil vbhoaf x
where . . . )
@ ines:
There isn’t any problem to use G_F01 to accommodate a hidden column. The example in the documentation is doing just that - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#sthref2857 .
Hope this helps,
Arie. -
TDS certificate wrong values down payment clearing
Hi,
we are using 4.7 version with patch level Sap &APPl( accounts &
Logistics) SAPKH47029. we are using extended witholding tax. with three
tax codes. Tds + Surcharge, Ecess , SHEcess
we made vendor downpayment Rs5000/-. at the time my TDS is
TDS+Surcharge= 550, Ecess=11, SHEcess= 6, Total tax= Rs567/-
we made vendor invoice Rs10000/- at the time TDS is
TDS+Surcharge= 1100, Ecess=22, SHEcess= 11, Total tax= Rs1133/-
We cleared downpayment using F-54 aginst invoice.
at the time it has reversed the Downpayment tds entry Rs567/-
i made remittance challan J1INCHLN amount RS 1133/- it is correct.
While generating TDS certificate it is showing wrong values. Rs 1116/-
it is showing two line items.
Amount paid TDS Surcharge Educat cess Total tax
9450.00 500 50 1 549.00
5000.00 500 50 17 567.00
Total 1116.00
But it is showing correct value in Querterly e returns J1INQEFILEHi,
Note Number: 1124300 -
Wrong value in message header on target system | "test" -- "production"
Hi all,
need some help with this.
When sending a message with RNIF Adapter to target system there's something wrong with the Message Header.
GlobalUsageCode has the value "test" but should say "production".
Any ideas where i can change that value on PI side ?
Cheers
Larsmay be u can change it in the mapping . it should be definitely possible using abap mapping
-
Color picker on Illustrator CC 2014 shows wrong values
See the image above . The selected area filled color is e6e6e6 ( 230, 230, 230 ) but the color picker shows the wrong value 4d4d4d. Its happens only on Illustrator , What is this actually is there any problem with the color mode settings ? Please help me
You misunderstand me, so don’t be too quick to judge.
I said that the Color panel was more efficient than the Color Picker. It has sliders so that you can adjust colours precisely as you wish first time, rather than just groping somewhere on a big area of colour in the Picker and then having to make fine numerical adjustments afterwards (plus an OK when you’re done).
The Color panel is particularly useful when you are working in CMYK because it ensures that you get clean mixtures when you want them (which the Picker does not, without fine tweaking afterwards).
And if you want to get shades of the same colour, you simply hold down Shift as you drag one of the sliders.
In conjunction with the Swatches panel, I would go for the Color panel any time, but if you prefer the Picker that’s quite all right by me. -
Wrong value with calculated item in pivot table
I have a report with 4 columns:
First Column are Department Dimension
Second Column is Actual value
Third Column is Previous value
Four Column is: ((Actual Value-Previous Value)/Previous Value))*100 that called Var
Then I do a pivot table and I have new calculated item: Department1/Department2 and I have wrong value in four column:
Department----------------------------------Actual-------Previous------Var
Dept1------------------------------------------18503--------16308--------13,5
Dept2-------------------------------------------3758---------3518----------6,8
(Calculated Item: Dept1/Dept2)--------4,92---------4,64------------*2* <---- This value is wrong...and it has to be: 6,03
Is possible to get the correct value???
Thank you very much!hi,
Create a logical column with ur calculation formula and make it as default agg rule in rpd and answers change it to server determined/server complex agg.I did the same it was working fine for me!!
Check this link
http://books.google.com/books?id=OnbYrkWa4RsC&pg=PA74&lpg=PA74&dq=%22server+complex+aggregate%22&source=web&ots=qxrpaFXmo2&sig=CxLOemzcOlvIiaQ_sQD4fPQotdM&hl=en&sa=X&oi=book_result&resnum=5&ct=result#v=onepage&q=%22server%20complex%20aggregate%22&f=false
thanks,
saichand -
Using HTMLDB_APPLICATION.G_F01 in a stored procedure
I have a page with pl/sql function returning sql query report. The query works fine and produces a report with check boxes. The query looks like this:
SELECT HTMLDB_ITEM.CHECKBOX(1,material_code) export,
material_code, COUNT(*)
AS letters FROM du_materials
WHERE ... long where clause.
The query produces a nice report with checkboxes.
I placed a region button on the page which redirects to this URL:
#OWNER#.du_mailmerge.write_materials?user_id=871010501&one_many=MANY
The purpose of this stored procedure is to produce a file download.
The stored procedure looks like this:
PROCEDURE write_materials(user_id IN VARCHAR2,
one_many IN VARCHAR2) IS
BEGIN
FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
IF HTMLDB_APPLICATION.G_F01(i) IS NOT NULL THEN
write_mime_header(file_name=>HTMLDB_APPLICATION.G_F01(i) || '.csv');
write_table_data(HTMLDB_APPLICATION.G_F01(i));
END IF;
END LOOP;
END write_materials;
When I run the application and click the button, I get a blank page in the browser. Before I tried this, I used simple code that did not reference HTMLDB_APPLICATION and it worked fine. I have run some debugging code in the above procedure and find that HTMLDB_APPLICATION.G_F01.COUNT appears to be null or zero. There are no errors in the apache error log.
I have tried replacing HTMLDB_APPLICATION.G_F01.COUNT with
v('G_F01.COUNT'), that does not work either.
What's wrong? Is my syntax bad? Is the array not available to a stored procedure?Thanks much for your response. I was afraid of that.
I quess I will have to go with this fallback plan:
1. put code in page process to create file use UTL_FILE.
2. Using the techniques in the How-to file export/import, import the whole file to clob, then export it.
3. delete import from table
4. return to my page.
This forum is great. Thanks to everyone who reads and responds to us newbies with HTML DB. -
Passing variable which has multiple values to cursor as parameter
declare
i varchar2(4000):='0';
j varchar2(100):='0';
cursor c1
is
(select * from gl_je_lines
where period_name='Mar-10'
and reference_10='WRITEOFF');
cursor c2 (l_ref varchar2)
is
(select * from gl_je_lines
where period_name='Mar-10'
and reference_10='WRITEOFF'
and reference_2 not in (l_ref));
begin
for cur_record in c1
loop
j:=cur_record.reference_2;
end loop;
i:= i||','''||j||'''';
dbms_output.put_line(i);--here i has 254 values separated by ','
for cash_rec in c2(i)
loop
dbms_output.put_line('this is loop 2');
dbms_output.put_line(cash_rec.reference_2||','||cash_rec.reference_1);--Here this output is not displayed
--i think the code in this cursor c2 is not executing
--please tell me the solution
end loop;
end;
I already use pl-sql table with array..it is not sufficietn to my requirement.because when i use it we must increment the index of that table ..so every time not in operator works in cursor2.so it shows wrong result
From last three days i am working on this only please let me know as early as possible friends
Edited by: 805567 on Oct 28, 2010 11:30 PM
Edited by: 805567 on Oct 29, 2010 1:05 AMyou said two cases
in first case
place my second cursor in first cursor
if i place like that here i use not in operator
so it prints for every value it will print not in of that value
so it was wrong result
i want not in all values
in second case
i took values from cursor not from table
like as shown below
declare
credit_amount number:=0;
debit_amount number:=0;
v1 number:=0;
v2 number:=0;
v3 varchar2(500);
v4 varchar2(500);
v5 varchar2(240);
v6 varchar2(240);
v7 number;
v8 varchar2(240);
v9 varchar2(240);
v10 number;
v11 number;
v12 varchar2(240);
v13 varchar2(240);
v14 varchar2(240);
v15 number;
v16 number;
--This cursor is for liability records which are in GL not in AP
cursor c1(p_header_id number,p_reference_2 varchar2,p_reference_4 varchar2)
is
(select
jl.je_header_id "JE_HEADER_ID"
,jl.period_name "PERIOD"
,glcc.concatenated_segments "ACCOUNT_CODE"
,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
,jl.PERIOD_NAME "PERIOD_NAME"
,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
,jl.reference_1 "SUPPLIER"
,jl.reference_2 "INVOICE_ID"
,jl.reference_3 "CHECK_ID"
,jl.reference_4 "CHECK_NUMBER"
,jl.reference_5 "INVOICE_NUM"
,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
,jl.reference_7 "set_of_books_id"
,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
,jl.reference_9 "INVOICE_PAYMENT_ID"
,jl.REFERENCE_10 "LIABILITY"
,jl.TAX_CODE_ID "TAX_CODE_ID"
,jl.TAX_GROUP_ID "TAX_GROUP_ID"
FROM
gl_je_lines jl
, apps.gl_code_combinations_KFV glcc
, gl_je_headers jh
WHERE
jl.period_name='Mar-10'
and glcc. code_combination_id in (1016,1296,1298)
and jh.je_header_id = jl.je_header_id
AND glcc.code_combination_id = jl.code_combination_id
and jh.je_source = 'Payables'
AND jl.je_header_id = p_header_id
and jl.reference_2 = p_reference_2
and jl.reference_4 = p_reference_4
MINUS
select
ir.je_header_id
, h.period_name "APPERIOD"
,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
,l.CODE_COMBINATION_ID "AP_CCID"
,h.set_of_books_id
,h.PERIOD_NAME "PERIOD_NAME"
,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
,l.reference1 "SUPPLIER"
,l.reference2 "INVOICE_Id"
,l.reference3 "reference_3"
,l.reference4 "reference_4"
,l.reference5 "INVOICE_NUM"
,l.reference6 "reference_6"
,l.reference7 "reference_7"
,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
,l.REFERENCE8 "REFERENCE_8"
,l.reference9 "reference_9"
,l.REFERENCE10 "REFERENCE_10"
,l.TAX_CODE_ID "TAX_CODE_ID"
,l.TAX_LINK_ID "TAX_LINK_ID"
from
ap_ae_lines_all l,
ap_ae_headers_all h,
gl_code_combinations_kfv g
,gl_import_references ir
where
ir.gl_sl_link_id=l.gl_sl_link_id
AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
and h.ae_header_id = l.ae_header_id
AND h.period_name ='Mar-10'
AND g.CODE_COMBINATION_ID in (1016,1296,1298)
AND ir.JE_HEADER_ID = p_header_id
and l.reference2 = p_reference_2
and l.reference4 = p_reference_4);
--This cursor is for writeoff records
cursor c2
is
(select * from gl_je_lines
where period_name='Mar-10'
and reference_10='WRITEOFF'
and reference_2 in ('525706','525600'));
credit number:=0;
debit number:=0;
j varchar2(240);
i varchar2(4000):='0';
cursor c3 (p_invoice_id varchar2)
is
(select
jl.je_header_id "JE_HEADER_ID"
,jl.period_name "PERIOD"
,glcc.concatenated_segments "ACCOUNT_CODE"
,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
,jl.PERIOD_NAME "PERIOD_NAME"
,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
,jl.reference_1 "SUPPLIER"
,jl.reference_2 "INVOICE_ID"
,jl.reference_3 "CHECK_ID"
,jl.reference_4 "CHECK_NUMBER"
,jl.reference_5 "INVOICE_NUM"
,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
,jl.reference_7 "set_of_books_id"
,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
,jl.reference_9 "INVOICE_PAYMENT_ID"
,jl.REFERENCE_10 "LIABILITY"
,jl.TAX_CODE_ID "TAX_CODE_ID"
,jl.TAX_GROUP_ID "TAX_GROUP_ID"
FROM
gl_je_lines jl
, apps.gl_code_combinations_KFV glcc
, gl_je_headers jh
WHERE
jl.period_name='Mar-10'
and glcc. code_combination_id in (1016,1296,1298)
and jh.je_header_id = jl.je_header_id
AND glcc.code_combination_id = jl.code_combination_id
and jh.je_source = 'Payables'
and jl.reference_2 in (p_invoice_id)
MINUS
select
ir.je_header_id
, h.period_name "AP PERIOD"
,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
,l.CODE_COMBINATION_ID "AP_CCID"
,h.set_of_books_id
,h.PERIOD_NAME "PERIOD_NAME"
,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
,l.reference1 "SUPPLIER"
,l.reference2 "INVOICE_Id"
,l.reference3 "reference_3"
,l.reference4 "reference_4"
,l.reference5 "INVOICE_NUM"
,l.reference6 "reference_6"
,l.reference7 "reference_7"
,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
,l.REFERENCE8 "REFERENCE_8"
,l.reference9 "reference_9"
,l.REFERENCE10 "REFERENCE_10"
,l.TAX_CODE_ID "TAX_CODE_ID"
,l.TAX_LINK_ID "TAX_LINK_ID"
from
ap_ae_lines_all l,
ap_ae_headers_all h,
gl_code_combinations_kfv g
,gl_import_references ir
where
ir.gl_sl_link_id=l.gl_sl_link_id
AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
and h.ae_header_id = l.ae_header_id
AND h.period_name ='Mar-10'
AND g.CODE_COMBINATION_ID in (1016,1296,1298)
and l.reference2 in (p_invoice_id)); --here if i put l.reference2 in (p_invoice_id)) it must show the details of
-- of all.but it doesnot display sir
--here if i put l.reference2 not in (p_invoice_id)) it shows that id also sir
BEGIN
for writeoff_rec in c2
LOOP
FOR Main_cur in c1(writeoff_rec.je_header_id,writeoff_rec.reference_2,writeoff_rec.reference_4)
LOOP
j:='0';
IF writeoff_rec.accounted_dr is not null AND Main_cur.ACCOUNTED_CREDIT<>0
THEN
v10:=Main_cur.ACCOUNTED_CREDIT;
credit_amount:= credit_amount+Main_cur.ACCOUNTED_CREDIT;
ELSIF writeoff_rec.accounted_cr is not null AND Main_cur.ACCOUNTED_DEBIT<>0
THEN
v11:=Main_cur.ACCOUNTED_DEBIT;
debit_amount:= debit_amount+Main_cur.ACCOUNTED_DEBIT;
END IF;
if c1%found then
j:=Main_cur.INVOICE_ID;
end if;
END LOOP;
-- i:=i||','||j;
i:= i||','''||j||'''';
END LOOP;
dbms_output.put_line(i); --Here i got all invoiceids of varchar2 records without single qutations
--its look like '0','23232','2324234' etc.
for cash_clearing_cur in c3(i)--here is the problem i am sending i with 250 values separated by ',' is it correct
loop
v3:=0;
v4:=0;
v5:=0;
v6:=0;
v7:=0;
v8:=0;
v9:=0;
v10:=0;
v11:=0;
v12:=0;
v13:=0;
v14:=0;
v15:=0;
v16:=0;
credit:=credit+cash_clearing_cur.ACCOUNTED_CREDIT;
debit:=debit+cash_clearing_cur.ACCOUNTED_DEBIT;
v3:=cash_clearing_cur.JE_HEADER_ID;
v4:=cash_clearing_cur.INVOICE_ID;
v5:=cash_clearing_cur.CHECK_NUMBER;
v6:=cash_clearing_cur.LIABILITY;
v7:=cash_clearing_cur.CODE_COMBINATION_ID;
v8:=cash_clearing_cur.PERIOD;
v9:=cash_clearing_cur.ACCOUNT_CODE;
v10:=cash_clearing_cur.ACCOUNTED_CREDIT;
v11:=cash_clearing_cur.ACCOUNTED_DEBIT;
v12:=cash_clearing_cur.SUPPLIER;
v13:=cash_clearing_cur.CHECK_ID;
v14:=cash_clearing_cur.INVOICE_NUM;
v15:=cash_clearing_cur.GL_SL_LINK_ID;
v16:=cash_clearing_cur.SET_OF_BOOKS_ID;
DBMS_OUTPUT.PUT_LINE('HEAd '||v3||','||'inv_id '||v4||','||
'chk_num '||v5||','||'ref10 '||v6||','||'CCID '||V7||','||'PED '||V8
||','||'acctcode '||v9||','||'acct_Ct '||V10
||','||'acct_Dt '||v11||','||'chk_id '||v13||','||'inv_num '||V14
||','||'link '||v15||','||'sob '||v16||','||'suplir '||V12);
end loop;
DBMS_OUTPUT.PUT_LINE( 'Dr Amt ' ||debit || 'Cr amt ' || credit );
EXCEPTION
when too_many_rows then
dbms_output.put_line('Invalid no of rows');
when no_data_found then
dbms_output.put_line('no data found exception');
when others then
dbms_output.put_line('Other than Invalid no of rows');
dbms_output.put_line(SQLERRM);
END;
/ -
Row wise Initialization - "Session Variable has no value Definition"
Hi,
I have gone through other posts relating to this error, but could not find a solution.
I have defined an initialization block with 'Data Source' as SELECT 'TEST_VARIABLE', cost_center from XX_COST_CENTER.
In the 'Edit Data Target', i have selected the 'Row Wise Initialization' option.
When i 'Test' this initialization block, using the 'Test' button, i get the exected output, with all the different Cost Centers being defined.
However, in the Presentation Services when i add a column and change its formula to VALUEOF(NQ_SESSION.TEST_VARIABLE), i get an error
+[nQSError: 23006] The session variable, NQ_SESSION.TEST_VARIABLE, has no value definition.+
Would appreciate some input, to check if i have missed any steps, or am doing something wrong
Thanks & Regards,
Ab
Edited by: obiee_user_ab on Jan 16, 2012 6:25 AMHi,
Error is caused because no value is returned from the sesision variable for the logged in user, you may check the NQquery.log file to see if the initblock was successfull and if that returned any rows, try setting default value in the session variable
It might also happen when
1. You created the variable as Repository variable in RPD and referring as session variable in Answers
2. It may also happen when you are referring the Session variable Name wrongly in Answers. E.g "Current Week" in RPD (2 Words) and CurrentWeek in Answers (Single word).
Try to use the same letter case for the name of the variable (upper and lower).
Hope this helps.
Regards
MuRam -
Bios reporting wrong value memory
I am still running on my old AMD Athlon XP 1800+ on MS-6330 Motherboard.
I have 3 RAM slots: 512kb, 128kb, 512kb. (max allowed 1.5gb).
I have S.I.W. (Systems Information for Windows) installed that reports this as correct. However, since reinstalling XP following a drive failure, S.I.W. now reports that BIOS is reporting the wrong value; i.e. total 512kb only.
My question is; Is this a hiccup in BIOS or SIW?
Has anyone had a similar experience please?how much the bios counts during bios post?
Quote
i.e. total 512kb only.
kb -
On Firefox stage.stageWidth stage.stageHeight return wrong values
Hello,
I have a problem on firefox windows 8, stage.stageWidth and stage.stageHeight return wrong values,
swfobject.embedSWF("mySwf.swf", "mySwf", "500", "500", "14.0.0","expressInstall.swf", flashvars, params, attributes);
on ie, Chrome stage.stageWidth and stage.stageHeight return 500
on iFirefox stage.stageWidth and stage.stageHeight return 750 and my animation is smaller (66%)
ThanksIn order to target iPhone 5 you need to use AIR 3.5 beta or AIR 3.4
pointing to iOS 6 SDK. Be sure to include the [email protected] to
trigger the iPhone 5 size. In other words, the app has to be built
targeting the iOS 6 SDK and have the new default png to trigger the full
size on the iPhone 5.
AIR 3.5 beta includes the bits that to target iOS 6 SDK, but you can
target iOS 6 with AIR 3.4 by using the external SDK path in the package
ANE prompt in FB 4.6
http://labs.adobe.com
iBrent
Maybe you are looking for
-
BMP is not displayed in Oracle Forms 10g
Hi, I am trying to display logo on the custom logon form. I have created an image item in the block. The following code is written in WNFI DECLARE Master_image VARCHAR2(80) := 'SS.bmp'; BEGIN set_window_property(forms_mdi_window, window_state, maximi
-
How do I graph multiple bit values on one time axis?
I want to graph multiple bit values, all of which will change back and forth from 0 to 1, on the same time axis, but I don't want any visual overlap between the different bit value traces. Now I could do this by graphing bit one as either 0 or 1, bi
-
Release strategy will not be effected when reduce in amount or when item de
Hi All, I have created the PO with three line Items out of 3 items 2 items got GR and Invoce done and 3rd is open NO GR and Invoice Whenever I delete the 3rd item ,PO is again going for release.Our Client wants that whenever Item will be deleted or P
-
I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback. Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found This error is
-
Mail not showing up in Mac mail, once downloaded to iphone
Hi, Thanks as always- I have 5 diff email accounts set up on my phone and mac. 2 of the accounts (the most important two) are playing up. If I check email first on my iphone they don't show up later in Mac Mail. Surely if I don't delete them on the p