PLS HELP CONVERT QUERY FROM UPDATE TO MERGE
Hi all,
Can you help me in converting this update statement into merge? I will really appreciate your help. Thanks
UPDATE dm_organizations tt
SET (cost_ctr_desc, cost_ctr_hier_lvl_1, cost_ctr_hier_lvl_2,
cost_ctr_hier_lvl_3, cost_ctr_hier_lvl_4, cost_ctr_hier_lvl_5, rgn_nm,
cntry_nm, load_date, update_date) =
(SELECT t.cost_ctr_desc, t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2, t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4, t.cost_ctr_hier_lvl_5, t.rgn_nm,
t.cntry_nm, t.load_date, SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id
AND ROWNUM = 1)
WHERE EXISTS (
SELECT t.cost_ctr_desc, t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2, t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4, t.cost_ctr_hier_lvl_5, t.rgn_nm,
t.cntry_nm, t.load_date, SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id);
why not use existing UPDATE?
UPDATE dm_organizations tt
SET ( cost_ctr_desc, cost_ctr_hier_lvl_1, cost_ctr_hier_lvl_2,
cost_ctr_hier_lvl_3,
cost_ctr_hier_lvl_4, cost_ctr_hier_lvl_5, rgn_nm, cntry_nm,
load_date, update_date ) = (SELECT t.cost_ctr_desc,
t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2,
t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4,
t.cost_ctr_hier_lvl_5,
t.rgn_nm,
t.cntry_nm,
t.load_date,
SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id
AND ROWNUM = 1)
WHERE EXISTS (SELECT t.cost_ctr_desc,
t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2,
t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4,
t.cost_ctr_hier_lvl_5,
t.rgn_nm,
t.cntry_nm,
t.load_date,
SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id);
Similar Messages
-
Get 15 mins back time from current time (pls help writing query)
Dear all,
I need to write a query that gives time 15 mins before the current time.
I need to calculate hits on a website for last 15 mins.
Kindly help writing this query.
Regards, Imranselect sysdate - 15/(60*24)
from dual;
Regards
Asif Kabir -
Convert query from other database
Hi all,
Please help me,
I need convert this query for oracle, this originaly from postgres.
I appreciate anyone who can help me... thanks a lot
select
CASE catg_id
WHEN 1 THEN 'RESIDENCIAL'
WHEN 2 THEN 'COMERCIAL'
WHEN 3 THEN 'INDUSTRIAL'
WHEN 4 THEN 'PÚBLICO'
END as "Categoria",
sum(coalesce(vlr_arrec_tot,0)) as "Arrecadação Provisória Novembro_2010"
from
-- ARRECADAÇÃO DIÁRIA
select
coalesce(arrec1.catg_id,devol.catg_id) as catg_id,
sum(coalesce(arrec1,0) - coalesce(devol,0)) as vlr_arrec_tot
from
select catg_id,
sum(ardd.ardd_vlpagamentos) as arrec1
from arrecadacao.arrecadacao_dados_diarios ardd
where ardd.ardd_amreferenciaarrecadacao = 201011
group by 1
order by 1
) as arrec1
full outer join
select catg_id,
sum(dvdd.dvdd_vldevolucoes) as devol
from arrecadacao.devolucao_dados_diarios dvdd
where dvdd.dvdd_amreferenciaarrecadacao = 201011
and dvdd.dvdd_tipodevolucao in ('C','D','N')
group by 1
order by 1
) as devol on devol.catg_id = arrec1.catg_id
group by 1
order by 1
) as arrec
group by 1
order by 1saddones wrote:
Hi all,
Please help me,
I need convert this query for oracle, this originaly from postgres.
I appreciate anyone who can help me... thanks a lot
select
CASE catg_id
WHEN 1 THEN 'RESIDENCIAL'
WHEN 2 THEN 'COMERCIAL'
WHEN 3 THEN 'INDUSTRIAL'
WHEN 4 THEN 'PÚBLICO'
END as "Categoria",
sum(coalesce(vlr_arrec_tot,0)) as "Arrecadação Provisória Novembro_2010"
from
-- ARRECADAÇÃO DIÁRIA
select
coalesce(arrec1.catg_id,devol.catg_id) as catg_id,
sum(coalesce(arrec1,0) - coalesce(devol,0)) as vlr_arrec_tot
from
select catg_id,
sum(ardd.ardd_vlpagamentos) as arrec1
from arrecadacao.arrecadacao_dados_diarios ardd
where ardd.ardd_amreferenciaarrecadacao = 201011
group by 1
order by 1
) as arrec1
full outer join
select catg_id,
sum(dvdd.dvdd_vldevolucoes) as devol
from arrecadacao.devolucao_dados_diarios dvdd
where dvdd.dvdd_amreferenciaarrecadacao = 201011
and dvdd.dvdd_tipodevolucao in ('C','D','N')
group by 1
order by 1
) as devol on devol.catg_id = arrec1.catg_id
group by 1
order by 1
) as arrec
group by 1
order by 1What exactly about the query doesn't work now? It all looks compliant to me (though i'm not sure about the group by 1 stuff, you may or may not, have to put the actual column name). I also think your alias is too long (just based on visual inspection), it's going to need to be 30 chars or less
"Arrecadação Provisória Novembro_2010"Keep in mind that we don't have your tables (nor your Oracle version since we don't know it) so if you really want help you'll have to put in a little more effort to make this manageable. -
Need help with query from .csv file
I am trying to import a csv file with only 1 column in it.
The column will only contain a 9 digit ID number. I want to read
the file then use the contents to query a table to get the names
and other information and display it. Here is what I have so far:
<cffile action="read" file="#form.FiletoUpload#"
variable="csvfile">
<cfloop index="index" list="#csvfile#">
<cfquery name="massimport" datasource="data1">
SELECT * FROM IDTable
WHERE CardNumber = ('#csvfile#')
</cfquery>
</cfloop>
<cfoutput>#Name# #ID# #Site#</cfoutput>
I get no errors but I am not getting any results. Just a
blank page. Does anyone know how to query directly from a csv
import? Thanks.You need to convert your file to a list somehow. Not sure if
this is the most efficient way but, you can use the cfhttp tag to
produce a query. Then your where clause becomes,
where cardnumber in (#quotedvaluelist(query.column)#)
and you won't need a loop. -
Help converting files from vob to use in Adobe Premiere Pro
Help... I just recently purchased the Adobe Premiere Pro CS3 to use to edit some videos that I shot with the Sony DCR-DVD505. The files save as a vob file and I cannot get them to import into Adobe Premiere. I have tried several different conversion programs - but when I open them up into Adobe I have video and no sound. I have tried converting to mpg and to avi. Any suggestions or help would be greatly appreciated. I am ready to send the Adobe software back for a refund. I am extremely green at editing and this has been very frustrating.
I would not return Adobe, I would return the camera, it is not suited for editing. If you insist on editing that material and end up with pretty crappy results, play it out from a DVD player into a good tape based DV video camera thru analog in and pass it thru to firewire for capture.
To put it another way, when maximum achievable fidelity of video is 100, your camera is at 10% due to the heavy MPEG compression. You need to convert that to DV and you are left with around 8% due to DV compression, you then need to encode it again to MPEG and you end up with less than 1% out of a possible 100. -
I want to write query in weighted average.
test data
Create Table Rl(
stat varchar2(1),
ddate date,
price number,
units number,
amount number)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('30.06.2011','dd/mm/yyyy'),10.3594,9903602.1439,102595376)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('02.07.2011','dd/mm/yyyy'),10.1743,134363.8114,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('02.07.2011','dd/mm/yyyy'),10.2943,136412.1052,0)
insert into rl (stat,ddate,price,units,amount)
values('R',to_date('20.07.2011','dd/mm/yyyy'),10.1461,4928001.8924,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('02.08.2011','dd/mm/yyyy'),10.2943,1778.4053,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('02.08.2011','dd/mm/yyyy'),10.1743,45422.5535,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('05.09.2011','dd/mm/yyyy'),10.2943,1791.0158,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('05.09.2011','dd/mm/yyyy'),10.1743,45744.6419,0)
insert into rl (stat,ddate,price,units,amount)
values('R',to_date('19.09.2011','dd/mm/yyyy'),10.1547,4923828.3750,0)
insert into rl (stat,ddate,price,units,amount)
values('I',to_date('01.10.2011','dd/mm/yyyy'),10.1743,3791.4070,0)
result of table
select stat,ddate,price,units,amount from rl
STAT DDATE PRICE UNITS AMOUNT
I 30/06/2011 10.3594 9903602.14 102595376
I 02/07/2011 10.1743 134363.811 0
I 02/07/2011 10.1743 134363.811 0
I 02/07/2011 10.2943 136412.105 0
R 20/07/2011 10.1461 4928001.89 0
I 02/08/2011 10.2943 1778.4053 0
I 02/08/2011 10.1743 45422.5535 0
I 05/09/2011 10.2943 1791.0158 0
I 05/09/2011 10.1743 45744.6419 0
R 19/09/2011 10.1547 4923828.37 0
I 01/10/2011 10.1743 3791.407 0
11 rows selectedI want result like
Units Balance and amount balance are running balance.
if stat = 'I'
Amount balance / unit balance = AVg_price
if stat = 'R'
copy above avg_price * units = Amount
example
stat = I
Row No 1 . 102595376 / 9903602.1439 = 10.3594 avg_price
Row No 2 . 102595376 / 10037965 = 10.2207 avg_price
Row No 3 . 102595376 / 10174378 = 10.0837 avg_price
If Stat = R
copy Avg_price 10.0837
Row No 4 . avg_price 10.0837 * units 4928001.8924 = amount 49692496
Row No 5 . 52902883 / 5248154 = 10.803 avg_price
Row No 9 .
Stat = R
copy above avg_price
9.9048 avg_price * untis 4923828 = amount 48769746
last row . same as row no 1.2.3
If stat = I
4133136.55 / 421003 = avgprice 9.8173please see this link for result.
http://www.mypicx.com/10202011/avg/
kindly helpHello,
I was not able to to it with analytic functions, so here is a way with the MODEL clause (you need at least Oracle 10g):
select rn,
stat,
ddate,
price,
round(avg_price,4) avg_price,
units,
round(unit_balance,2) unit_balance,
round(amount,2) amount,
round(amount_balance, 2) amount_balance
from rl
model
dimension by (row_number() over (order by ddate) rn)
measures( ddate,
stat,
price,
units,
amount,
0 avg_price,
0 amount_balance,
0 unit_balance,
count(*) over() num_rows
rules iterate (100000) until (iteration_number=num_rows[1])
unit_balance[any] = case when cv(rn)=1
then units[1]
else
case when stat[cv()] ='I'
then unit_balance[cv()-1]+units[cv()]
else unit_balance[cv()-1]-units[cv()]
end
end,
amount[any] = case when cv(rn)=1
then amount[1]
else
case when stat[cv()]='R'
then avg_price[cv()-1]*units[cv()]
else 0
end
end,
amount_balance[any]=case when cv(rn)=1
then amount[1]
else amount_balance[cv()-1]-amount[cv()]
end,
avg_price[any] = case when stat[cv()]='I'
then amount_balance[cv()]/unit_balance[cv()]
else avg_price [cv()-1]
end )
order by rn ;I used the ITERATE clause here, I put a big number (100000) for the iteration value, because, as far as I know, you can not use a column value at this place, you have to put a real number. As we only need to iterate for all the rows, I used the UNTIL clause to limit the number of iterations.
If you want to reuse this query on a very big table you have to ensure the ITERATE clause has a value higher that your number of rows.
I am sorry I did not find a better way to do it.
Hope this will help.
Regards,
Sylvie -
Pls help... on update to access using jsp
hie.. need some urgent help here... i cant seem to be able to update to the database... its output would show all the else statement... hope this would be sufficient info... would appreciate every help..
Below is the table layout
Table: RenRec
RentID(PK)
CarID
CustID
Status
Below is the update code...
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connection = DriverManager.getConnection("jdbc:odbc:EDC","","");
Statement statement = connection.createStatement();
int status = 0;
int id = Integer.parseInt(request.getParameter("RentID"));
String s = request.getParameter("Status");
String c = request.getParameter("CarID");
try {
status = statement.executeUpdate("UPDATE RenRec SET Status='"+s+"' WHERE RentID='"+id+"' AND CarID='"+c+"'");
} catch (SQLException sqle)
out.println("Error! No data Updated!");
if (status > 0)
ResultSet columns = statement.executeQuery("SELECT * FROM RenRec WHERE RentID='"+id+"'");
while (columns.next()) {
id = columns.getInt("RentID");
String id1 = columns.getString("CustID");
c = columns.getString("CarID");
s = columns.getString("Branch");
%>
<tr>
<td> <%=id%> </td>
<td> <%=id1%> </td>
<td> <%=c%> </td>
<td> <%=s%> </td>
<% }
else
out.println("<H2><a href=\"AddItem.html\">Click to continue</a></H2>");
if (status > 0)
statement.executeUpdate("UPDATE Car SET Status='"+s+"' WHERE CarID='"+c+"'");
else
out.println("");
statement.close();
connection.close();
%>its ok guys... i got the solution... thnx to those who view it...
-
Help converting files from CS4 to CS3
Hi everyone,
I'm wondering if anyone has time to help me. I live in Washington, DC and we're buried in snow up here (!), so I'm not able to go to work. I can access my work files from home, but I only have ID CS3 at home (and CS4 at work). I have 2 InDesign files that I really need to be able to work with in CS3. Does anyone have time to save them to INX format for me? I zipped them together into a file here:
http://pjutter.com/CS4files.zip
I realize I'd lose some features, but it makes no difference. One of those is just a template, and the other just has info I need in it. If anyone can resave them for me, I'd greatly appreciate it!
Can't wait to get a new home computer... Tried updating to CS4 on this one, but this machine's not up for it.
Thanks, PhyllisThese work great, thank you so much!
So long as I only work on new stuff, I guess it doesn't matter if I switch to CS3. :-) I'll turn down requests for major edits to long documents already done in CS4!
We have 2 feet of snow on the ground here and are expecting 10-20 more inches of snow starting around noon! DC is basically shut down. I live right in the middle of the District, and the roads are a mess here. I can't imagine how bad the suburbs are.
Thanks again!
Phyllis -
[Help] Join query from 3 tables
Hi, I'm new to database. I have a question about joining 3 tables, pardon me for my bad english.
My tables look like this
table 1: Person (id,firstname, lastname)
table 2: AssignPersonAddress (id,personid,addressid,type)
table 3: Address (id,telefon, street, etc)
I need AssignPersonAddress table, because in my data structure a person can have more than 1 address and the address type should be saved (for eg: private, work)
I want to make a select query to report all of person with his private telefon and work telefon, like this.
PERSON | PRIVATE | WORK
At the moment my query looks like this
select p.name , a1.tel AS Private, a2.tel AS Work
from person p,
addresse a1 ,
AssignPersonAddress apd1,
AssignPersonAddress apd2,
addresse a2
where p.id = apd1.person (+)
and apd1.adresse = a1.id
and apd1.art = 'Private'
and p.objectid = apd2.person (+)
and apd2.adresse = a2.id
and apd2.art = 'Work'the problem is I only get the person who has private and work address. But what I want is all person no matter if the person has only 1 address or 2 address.
As you can see I put the outer left join at the where condition, but I'm still getting the wrong result.
thx in advance
Danny
Edited by: raitodn on Oct 1, 2009 3:51 AM
Edited by: raitodn on Oct 1, 2009 4:12 AMHi,
You're essentially doing an inner join, because some of the comparisons are missing the + markerr.
Do this instead:
select p.name , a1.tel AS Private, a2.tel AS Work
from person p
, addresse a1
, AssignPersonAddress apd1
, AssignPersonAddress apd2
, addresse a2
where p.id = apd1.person (+)
and apd1.adresse = a1.id (+)
and apd1.art (+) = 'Private'
and p.objectid = apd2.person (+)
and apd2.adresse = a2.id (+)
and apd2.art (+) = 'Work'
;What does this mean?
where p.id = apd1.person (+)It means "include rows from p even if they don't have any matching rows in apd1". Whenever that happens, all the colummns from apd1 will be NULL.
So far, so good.
Now, what happens if you follow that with
and apd1.adresse = a1.id The condition above means "include this row from apd1 only if there is matching row in a1". If apd1 is NULL, this condition will never be TRUE (even if a1.id is NULL).
When you do a cascading outer join like this, all columns in the distal table (the table farther away from the table that must be present) need to be marked with the + sign. That includes conditions involving a constant, like
and apd1.art (+) = 'Private' By the way, when posting code or results on this site, always type these 6 characters:
(small letters only, inside curly brackets) to preserve spacing and to keep some strings, such as the outer-join marker, form being interpreted as emoticons.
Edited by: Frank Kulash on Oct 1, 2009 6:37 AM
Added explanation -
OT: help converting image from Illustrator .eps file to
I have 2 files that were sent to me as (supposedly) full
vector-based format
from Illustrator. When I view these in FW, I see only a
bitmap. I know it
is possible to convert these to a FW png where each element
of the graphic
is a separate object but I don't have the software to do so.
Is there anyone out there who would be willing and able to
convert these for
me?
KathieYou can email me the files if you like, my address is joseph
dot dasilva at gmail dot com. -
Hi,
I am having a strange issue,
i have a table containing the following amgst others
rec_time sys_date
7:00 04/08/2010
8:00 04/08/2010
9:00 05/08/2010
I need to query this table and return the max(rec_time) for all sys_date = sysdate
its not working if i do the following
select max(rec_time) from table
where sys_date = sysdate;hello,
this is my table structure for hourly_sales
ID NUMBER,
PRODUCT VARCHAR2(25 BYTE) NOT NULL,
GAME_ID NUMBER NOT NULL,
SYS_DATE DATE NOT NULL,
CONFIRMED CHAR(1 BYTE) DEFAULT 'N',
ACT_AMT NUMBER NOT NULL,
CUMM_AMT NUMBER NOT NULL,
COUNT_SALES NUMBER NOT NULL,
CREATED_BY VARCHAR2(25 BYTE),
CREATION_DATE DATE,
LAST_UPDATED_BY VARCHAR2(25 BYTE),
LAST_UPDATED_DATE DATE,
REC_TIME VARCHAR2(25 BYTE) NOT NULL,
ORDER_ID NUMBERI have created a small application in APEX that has an LOV for rec_time from 7.00 to 22.00. this is just an indication to the times that values are being entered.
Now those geezers were making mistakes and the reason why i wanted my query was to enable them to roll-back on a button click
delete from hourly_sales
where rec_time = max(rec_time)
and trunc(sys_date) = trunc(sysdate);but when i was querying it was not returning any values. -
Pls Help - Change over from G5 to Core 2 Duo
I have just purchased a Intel Core 2 Duo iMac and my old G5 imac, I want to re-install tiger to its factory settings.
The problem being that the disc that came from the computer is missing and the installation discs I have a from my new Core 2 Duo.
These new install discs are only for intel or are they binary?
and how can get my old g5 back to factory settings?
Many Thanks,
DeanDean, normnod is basically correct and two things:
If you're worried about it read your licence agreement, and basically if you did buy a complete set of G5, install disks and licence Apple isn't going to sue you if you borrow the right disk from another user of the same Mac.
However for serious use you really do need to buy a replacement factory disk set from some combination of AppleStore/AppleCare, depending on your location. The need is greater if you're selling the machine, as missing system disks should cut its value…
A factory disk set includes the various applications that shipped with that Mac, and should run only on the same model. The disks should be grey.
A generic retail disk set includes pretty-much only the OS, and should run on any Mac that can take that OS version. The disks should be white. -
Need Help Converting iPod from Mac to Windows
Hi, I have a 3rd Gen iPod and I just gave it to my friend who has a windows xp machine. I had a Mac OS 10.3.9 system. When he plugged the iPod into his windows, it told him that it needed to be configured to windows and that he should connect it to a power adapter. When he did this, the iPod just gave an icon resembling the plug that connects to the bottom of the iPod. Now his iPod won't turn on and when plugged into his computer, it says that there has been a malfunction and his computer does not recognize the USB device. Any suggestions on how to fix this?
That generation iPod requires a combo USB/Firewire cable. It simply won't work with USB alone. It also needs to be re-formated for Windows and that can be done within iTunes. Along with that cable, he will need the A/C power adapter.
-
PLS CONVERT QUERY- UPDATE to MERGE
Hi all,
Can you help me in converting this update statement into merge? I will really appreciate your help. Thanks
UPDATE dm_organizations tt
SET (cost_ctr_desc, cost_ctr_hier_lvl_1, cost_ctr_hier_lvl_2,
cost_ctr_hier_lvl_3, cost_ctr_hier_lvl_4, cost_ctr_hier_lvl_5, rgn_nm,
cntry_nm, load_date, update_date) =
(SELECT t.cost_ctr_desc, t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2, t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4, t.cost_ctr_hier_lvl_5, t.rgn_nm,
t.cntry_nm, t.load_date, SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id
AND ROWNUM = 1)
WHERE EXISTS (
SELECT t.cost_ctr_desc, t.cost_ctr_hier_lvl_1,
t.cost_ctr_hier_lvl_2, t.cost_ctr_hier_lvl_3,
t.cost_ctr_hier_lvl_4, t.cost_ctr_hier_lvl_5, t.rgn_nm,
t.cntry_nm, t.load_date, SYSDATE
FROM dmi_cc_upload_stg t
WHERE t.run_id = 1831
AND t.status = 'Published'
AND t.cost_ctr_id = tt.cost_ctr_id
AND t.div_code = tt.div_code
AND t.fcn_code = tt.fcn_code
AND t.mkt_code = tt.mkt_code
AND t.corp_id = tt.corp_id);Duplicate thread!
PLS HELP CONVERT QUERY FROM UPDATE TO MERGE -
Pls Help me to Create an Updatable report region
hi,
can u pls help in creating an updatable report region. as of now i have 2 regions in a page. 1st region is HTML type where we can select Year,Month&Account parameters and do submit.
2nd region an updatable report region where the report generates according to the SQL query which includes conditions selected as parameters in where clause. even i have the processes to update the data in this report.
now the problem is i am able to put only one submit button which is functioning for both parameter selection and as well as updating the data in report fields. so the functionality of the report became a bit tricky which is not user friendly to the client.
whats happening is: after logging in&select the parameters month=Jan,year=2007,account=ALL
-> If you would like to update the data for Jan’07, you can enter the value in the field and click on ‘Update’ button
-> After that, if you would like to see the data for Feb’07, as of now you are not able to select the month from drop down list directly from this page and say ‘Update’. You need to log-out and log-in again and select ‘Feb’ for seeing Feb’07 data.
-> Rather if you directly select the ‘Feb’ month and say ‘Update’ in the same page, it is updating by the New value you entered for ‘Jan’ ( the same thing happens for all the months what ever you select and click on ‘Update’ in the same page without log-out and log-in)
-> So, the basic thing you have to do while you update the data is, you need to log-out & log-in for seeing or updating different month’s data after making changes to the present month and click on ‘Update’. You can not see correct data if you select the month directly after making changes to the present month’s data. This will cause automatic updating in the selected month.
sorry for the long description of my problem, but your help in this regard will be appreciated. thanks in advance.
Best Regards,
_Rakesh Reddy.hi andy,
thanks very much for ur reply mite..
actually i have 2 page processes.
1 is On Submit-Before Computations and Validations;is to populate
2 is On Submit-After Computations and Validations;is to update
both r PL/SQL anonymous blocks.the problem is i couldn't find any triggers like things in process point drop down list.for eg;'when button pressed' or 'when LOV changed' or 'when list changed'(like in forms developer)
and also i couldn't allocate any processes or functions to button properties in APEX.
can u pls help in this regard.
Cheers,
_Rakesh Reddy.
Maybe you are looking for
-
How to choose external drive for Time Machine?
Having recently changed from a pc to a Mac, I realise that the backup comapny I was using (Carbonite) is not compatible with Mac. I also noticed that Leopard comes with Time Machine and backup features which require an external drive. The website say
-
Great Feedback for the G5 iMac and Apple
My father recently went with a group of people to the Rotary Centennial Conference in Chicargo, and us being from New Zealand this was quite a major trip for their club. About 10 of them went and all took their own photos, but when they got back a th
-
Transaction solman_workcenter displays a blank screen
Hi, When I execute transaction solman_workcenter it displays a blank screen. There is no error message. Is there some setting that is missing. Please advice. Regards Phanidhar
-
How to transfer encrypted file using B2B sftp with custom doc over generic
hi , we have a requirement to get and send an encrypted file to/from our trading partner. Previously we configured B2B sftp with custom doc. over generic exchange protocol to get a text file and used 1st 11 charecters in the file as identifier for th
-
I have an old Verizon iPhone 4s that I'm no longer using as I have upgraded. If someone buys it from me, can they use whatever provider they want or does it have to be with Verizon?