How to update when i have two updateable report on single page
Hi,
I've two updateable report created using pl/sql procedure. I really don't know how to update both reports at the same time. I report contains only one row and second one contains multiple rows.
For the second one, i use
FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT
LOOP
UPDATE table
SET col3=HTMLDB_APPLICATION.G_F03(i),
col4=HTMLDB_APPLICATION.G_F04(i)
WHERE col1=HTMLDB_APPLICATION.G_F01(i) and
col2=HTMLDB_APPLICATION.G_F02(i);
end loop;
how to update the 1st report. Please help me
when you use the htmldb_item api to render form elements to your pages, those values end up in the htmldb_application.g_fNN arrays. i'm not sure how you defined your first report region, but you seem to be populating the g_f01 through g_f04 arrays with your second. if that's the case, try populating g_f05 with your first region. a query region like...
select htmldb_item.text(5,ename) from emp
...would do it. you should then be able to access those submitted values in the htmldb_application.g_f05 array.
hope this helps,
raj
Similar Messages
-
Two Updateable Reports On One Page
I have 2 updateable reports on one page and two update procedures (one for each report)
Each procedure is linked to a different button and calls a different procedure in the database
My question is how to tell the page procedure, which report it should look at ?
GusMy twp page processes are
Process 1
DECLARE
v_Row number;
v_upd number;
v_count_failed number := 0;
v_count_updated number := 0;
v_count_failed2 number := 0;
v_count_updated2 number := 0;
v_count_total number := 0;
BEGIN
FOR i IN 1 .. apex_application.g_f02.COUNT
LOOP
p_vrpapx.pr_p_upd_correlation (
apex_application.g_f04 (i), --p_geokey
apex_application.g_f08 (i), --p_PRIMARYMATKEY
apex_application.g_f03 (i), --p_DEPMATKEY
apex_application.g_f16 (i), --p_PROMOKEY
--to_date(apex_application.g_f11 (i),'DD.MM.YYYY'), --p_STATCALCDAY
apex_application.g_f11 (i),
apex_application.g_f06 (i), --p_DOBJECTID
apex_application.g_f05 (i), --p_POBJECTID
apex_application.g_f17 (i), --p_USERCORFACTOR
apex_application.g_fcs (i), --checksum
v_count_failed,
v_count_updated
v_count_total := v_count_total + 1;
v_count_failed2 := v_count_failed2 + v_count_failed;
v_count_updated2 := v_count_updated2 + v_count_updated;
if not apex_application.g_f16 (i) ='ALL'
then
v_upd:=p_vrpapx.fn_3_p_update_conv
apex_application.g_f16 (i), --p_PROMOKEY
apex_application.g_f08 (i), --p_PRIMARYMATKEY
apex_application.g_f03 (i), --p_DEPMATKEY :P3_OM,
apex_application.g_f04 (i), --p_geokey :F140_GEOKEY,
nvl(apex_application.g_f17 (i),to_number(apex_application.g_f12 (i))), --p_USERCORFACTOR --corfactor
:F140_PLNO, --pi_plno
apex_application.g_f15 (i) --primaryscale
end if;
--reset variables
v_count_failed := 0;
v_count_updated := 0;
end loop;
:P3_COUNT_FAILED := v_count_failed2;
:P3_COUNT_UPDATED := v_count_updated2;
END;Process 2
DECLARE
v_count_failed number := 0;
v_count_updated number := 0;
v_count_failed2 number := 0;
v_count_updated2 number := 0;
v_count_total number := 0;
BEGIN
FOR i IN 1 .. apex_application.g_f02.COUNT
LOOP
p_vrpapx.pr_3_p_upd_forcast(
apex_application.g_f04 (i), --p_clocid
apex_application.g_f05 (i), --p_siid
apex_application.g_f06 (i), --p_clocfcstversionid
apex_application.g_f07 (i), --p_clocfcstcalid
--to_number(apex_application.g_f12 (i)), --p_qtyuser
-- nvl(apex_application.g_f12 (i), 0), --p_qtyuser
apex_application.g_f12 (i), --p_qtyuser
apex_application.g_fcs (i), --p_checksum
v_count_failed,
v_count_updated
v_count_total := v_count_total + 1;
v_count_failed2 := v_count_failed2 + v_count_failed;
v_count_updated2 := v_count_updated2 + v_count_updated;
--reset variables
v_count_failed := 0;
v_count_updated := 0;
end loop;
:P3_COUNT_FAILED_FORECAST := v_count_failed2;
:P3_COUNT_UPDATED_FORECAST := v_count_updated2;
END;What I mean is that if I update a column in my first report and click update (button linked to process 1).
How to link the code from process 1 so it uses report 1.
Gus -
How I can do this update, when I have two records (one primary key, no seq)
How I can do this update in pl\sql
Here is the table with some data
CREATE TABLE INSERT_TE
PIDM VARCHAR2(8),
FORM_ID VARCHAR2(2),
TEACHER VARCHAR2(30)
INSERT into INSERT_TE
PIDM,
FORM_ID,
TEACHER
SELECT
'1106651',
'TE',
'Teacher, Alber Howard'
from dualcommit;
INSERT into INSERT_TE
PIDM,
FORM_ID,
TEACHER
SELECT
'1106651',
'TE',
'Teacher, Alber2 '
from dualcommit;
INSERT into INSERT_TE
PIDM,
FORM_ID,
TEACHER
SELECT
'2321241',
'TE',
'Teacher, Silly Billy '
from dualcommit
You are going to ended with something like this: In a cursor..
PIDM FORM_ID TEACHER
1106651 TE Teacher, Alber Howard
1106651 TE Teacher, Alber2
2321241 TE Teacher, Silly Billythen I need to update a table
if the there is only one record like this one 2321241 TE Teacher, Silly Billy
not problem I do this
UPDATE saturn.sarchkl
SET
sarchkl_receive_date = SYSDATE,
sarchkl_activity_date = SYSDATE,
sarchkl_source = 'U',
sarchkl_source_date = SYSDATE
WHERE
sarchkl_pidm = v_pidm3
AND sarchkl_receive_date IS NULL
AND sarchkl_term_code_entry = p_term
AND sarchkl_admr_code = 'REC1'But if there is a PIDM (pk) with two records
PIDM FORM_ID TEACHER
1106651 TE Teacher, Alber Howard
1106651 TE Teacher, Alber2 I need to do 2 updates (notice the AND sarchkl_admr_code rec1 for the firs and rec2 for the second
The first record should update the table when the condition is sarchkl_admr_code = 'REC1' and the second record with the
condition is sarchkl_admr_code = 'REC2'
UPDATE saturn.sarchkl
SET
sarchkl_receive_date = SYSDATE,
sarchkl_activity_date = SYSDATE,
sarchkl_source = 'U',
sarchkl_source_date = SYSDATE
WHERE
sarchkl_pidm = v_pidm3
AND sarchkl_receive_date IS NULL
AND sarchkl_term_code_entry = p_term
AND sarchkl_admr_code = 'REC1'and
UPDATE saturn.sarchkl
SET
sarchkl_receive_date = SYSDATE,
sarchkl_activity_date = SYSDATE,
sarchkl_source = 'U',
sarchkl_source_date = SYSDATE
WHERE
sarchkl_pidm = v_pidm3
AND sarchkl_receive_date IS NULL
AND sarchkl_term_code_entry = p_term
AND sarchkl_admr_code = 'REC2'I am doing this in pl\sql, I don't have a sequence in the table INSERT_TE, how I know that the first record in
1106651 TE Teacher, Alber Howard
1106651 TE Teacher, Alber2 update a rec1 and the second updates when sarchkl_admr_code = 'REC2',
I guess I can create a sequence, but I am inserting a table from a select satement, I am getting the error
ORA-02287: sequence number not allowed here, when I try to do the following:
INSERT INTO SYTEACH
SYTEACH_PIDM,
SYTEACH_ID,
SYTEACH_TEACHER,
SYTEACH_SEQ
SELECT
DISTINCT
spriden_pidm,
sarchkl_admr_code,
szsform_form_id,
szsform_schl_off_type||', '||szsform_schl_off_firstname||' '||szsform_schl_off_lasttname teacher,
SZSFORM_SEQ.NEXTVAL
FROM saturn_midd.szsform, saturn.spriden, saturn.sarchkl
WHERE spriden_ntyp_code = 'CAPP'
AND szsform_common_app_id = spriden_id
AND spriden_pidm = sarchkl_pidm
AND sarchkl_admr_code = 'REC1'
AND szsform_form_id = 'TE'
What is the simple way of doing this update..Hi,
you said:
>
But if there is a PIDM (pk) with two records
PIDM FORM_ID TEACHER
1106651 TE Teacher, Alber Howard
1106651 TE Teacher, Alber2
>
No! pks are unique! (otherwise we don't call them pk)
For your table you could define a unique like this:
PIDM column + a sequence. (new column):
ALTER TABLE INSERT_TE ADD(TEACH_SEQ NUMBER)
UPDATE INSERT_TE x
SET TEACH_SEQ =
(SELECT n
FROM (SELECT ROWID rid,
ROW_NUMBER() OVER(PARTITION BY pidm ORDER BY TEACHER) n
FROM INSERT_TE t) s
WHERE s.rid = x.ROWID)
PIDM FORM_ID TEACHER TEACH_SEQ
1106651 TE Teacher, Alber Howard 1
1106651 TE Teacher, Alber2 2
2321241 TE Teacher, Silly Billy 1I need to do 2 updates (notice the AND sarchkl_admr_code rec1 for the firs and rec2 for the second
The first record should update the table when the condition is sarchkl_admr_code = 'REC1' and the second record with the condition is sarchkl_admr_code = 'REC2'
>
normally no.
but you can (now) do
select PIDM, FORM_ID, TEACHER, 'REC'||TEACH_SEQ TEACH_SEQ from INSERT_TE
PIDM FORM_ID TEACHER TEACH_SEQ
1106651 TE Teacher, Alber Howard REC1
1106651 TE Teacher, Alber2 REC2
2321241 TE Teacher, Silly Billy REC1and use the last column for you update ...
Edited by: user11268895 on Aug 20, 2010 2:01 PM -
How data update when there is two planning cubes in one aggregation level
If we have two planning cubes and a multi-cube includes these two planning cubes.
then we have the aggregation level defined based on this multi-cube.
if the characteristics and key figures defined in aggregation level all are included in these two planning cubes. When we plan the data with plan query based on this aggregation level, which plan cube will be updated with plan data, or both of them?HI Wang,
yes as Bindu said you need to restrict the layout based on the infoprovider.
Lets assume that we have a multi provider M1 and it has two planning cubes cube1 and cube1.
in case u develop a layout for updating cube 1 give the restriction in the filter section as infoprovider = cube1.
or the vice versa.
Else ur layout must input values for both the cubes simultaneously, then in that case create two restricted KF with each having a restriction for cube1 and cube 2.
so wen the user enters value for the first restricted KF it will get saved in cube1 and wen he enters value for the second restricted KF it will gets saved in cube2.
This is how it works. Guess this was useful to u.
Regards.
Shafi. -
HT1296 How do you sync iphone and PC when you have two different iphones/users?
How do you sync iphone and PC when you have two different iphones/users in house? I just tried to sync my iphone and cancelled sync becauase I saw it was updating my phone with my husband's apps! How do I make it so that sync can distinguish between my and my husband's phone?
I sync two iPhones and an iPad with one iTunes library on the same computer and each device has different content. Each device has its own sync preferences with iTunes. You can transfer the same music and apps to each device or different music and apps.
Are you sharing the same Apple ID or iTunes account? -
When I have two clips, one above the other, I would like to hear the audio from one at a time. How do I suppress temporarily one of that, in a easier way? Thank you.
I would think you would drop down the audio level lines in the "Stereo" tab (FCP 6.0.6 view to me) in the clip's video window.
But then again, in my old version, I can't play two clips at once. But I figure if the newer FCP allow you to do that, then that's what I would do. -
Firefox freezes for up to a minute when I have two tabs open, one playing a YouTube video, the other with a flash game running, and the screen shows the contents of both tabs, one superimposed on the other. If I have other tabs open, they also appear as visual garbage on the same screen. After the freeze, everything semi-works, starting and stopping, with long frozen hangs.The frequency of this problem is increasing and greatly reduces Firefox's operating capacity. I am using Firefox 5.0 on a Windows Vista desktop made by Hewlett-Packard. I have cleared the caches and the problem persists, and I can't find any online help to explain why this is happening. I don't recall it happening with a previous version of Firefox.
Hello jesterabk, '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Once you get the pop-up, just select "'Start in Safe Mode"''
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Thank you. -
I am trying to debug the jQuery to a micro site I've created and I am unable to open the Error Console when I have two Firefox windows open and I am unable to open a second Firefox window when I have the Error Console open.
I am using Mac OS X 10.6.7 and I am using Firefox 4.0.1I personally haven't experienced much of the "reverberation/feedback" when using a headset on the i4S...
Yes, I have near-perfect hearing too (for scope, squeaky brakes hurt my ears) I come from many conversations on many phones and types and first off, CDMA technology is great for coverage, terrible for voice quality. HD Voice in Europe made for some of the best phone conversations I've ever had.
Back on track, feedback is most noticable (similar to the landline phone) when using the iPhone without a headset, but for me it's not an absolute criticality mainly because I use VoIP apps alot, so maybe it has desensitized me some over the past year.
But whenever I'm on a call, and the other person has me on speakerphone, I have alot of trouble talking because of the feedback loop caused. So the less of my voice I hear the better I can talk.
Have you tried a bluetooth headset yet? -
I notice that when you have two or more reminder pop-ups on BB10 (tasks, calendar, etc.), you can't edit 2 or more of these because the second and beyond get lost and will never pop-up again.
Hey JVanB,
Thank you for your feedback.
To better understand your issue, for example If you have two reminders and select 'View Event Details' on the 1st reminder, does the 2st reminder popup before the Details of the1st reminder displays?
Thanks.
-HB
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
How to remove white space between two answer reports
How to remove white space between two answer reports
In Dashboard section I have 2 rqeuest. Each request renders Table View. When I display dashboard, it show white space separating the 2 table views. How do I get rid of the white space/white band ?See this link
Re: Eliminating the space between two reports in OBIEE dashboard page Section
Regards,
Sandeep -
How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.
You can increase the font size and automatically page view changes. Go to menubar; Reading -> PDF View or Epub Text Size (depending upon the ebook) and increase the size.
-
There's a problem with my when i have sent a report it said that firefox stopped the plugin
there's a problem with my skype, when i have sent a report it said that firefox stopped the plugin
5th item on the Blocklist. <br />
http://www.mozilla.com/en-US/blocklist/
Blocked due to causing a high number of Firefox crashes. <br />
http://blog.mozilla.com/addons/2011/01/20/blocking-the-skype-toolbar-in-firefox/
Mozilla blocking that extension in Firefox shouldn't stop Skype from working. -
Hi, I got iMac and I can not open file "doc" when I have downloaded from distance learning internet page. I have office program, but when I try to open file it shows: u1-assesment.doc uses a file type that is blocked from opening in this version.?
I have tryed to change just extension from doc to docx, but it doesn't work. I am new user, please helpConsider the Mcrosoft Office:Mac forums as well:
Office for Mac forums
Here is an MS page that deals with that error message:
http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/bs0811doc-use s-a-file-type-that-is-blocked-from/548ce159-8157-419e-9552-1789594fafe9 -
What's a good app to use to put two photos on a single page like Windows Paint?
I have a OSX Lion with an iPhoto app. I would like to put two photos on a single page like Windows Paint. What's a good app for this? Is there a Windows Paint app for Mac or something similar?
You can print two photos on a single page with iPhoto, you can put two photos on a single page with Pages, Word or any word processor. Or are you trying to edit two photos together?
In order of price here are some suggestions:
Seashore (free)
The Gimp (free)
Graphic Coverter ($45 approx)
Acorn ($50 approx)
Pixelmator ($50 approx)
Photoshop Elements ($75 approx)
There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto. -
Two tabular reports on one page
Hello,
I've a page with master an two different detail regions.
For both detail regions I need a tabular form.
The first is no problem. Because the second one cannot be created automatically by ApEx I created the region with the buttons (other names) and the processes manually.
When I press the button "add" in the second tabular report region the empty column is added to the first tabular report region. The same problem I have with the "Delete" button.
Is there generally no possibility to place two tabular reports on one page?
Thanks in advance
Regards
UlrikeI have a similar need, where I would like to display two reports within different regions on the same page. Both reports would be linked to a Form, such that the desired row could be edited. If the user clicks on a row within region A then it would go to one form for editing that row, and if the user clicks on a row within region B then it would go to a seperate Form for editing.
I wondered if I could use two "Forms with Reports" and then create a third page that references these to pages through an I-Frame. Hopefully, when I clicked on a row within the I-FRAME everything would navigate to the proper form with the proper row. Is this feasible, or is there a better approach that I should consider?
Maybe you are looking for
-
M'y file pdf multimédia (+audio) is not fonctionnel in Adobe reader android
I prepared a file Adobe acrobat multimedia(+ sound) by my pc. Then the sound does not work on Adobe reader of my Samsung Galaxy Tablet T520 SM
-
[Solved] Amilo XI 2550 - Black screen after fresh install
Dear archlinux users, I have been reading the archlinux wiki and forums since I started using arch several years ago. It was always possible to solve the problems I ran into by consulting these webpages, therefore a big thanks to the community for th
-
Bug in OS6 for Bluetooth connection
My BB 9700 cnnected fine with my handsfree carkit when I used OS5. After going to OS6 the connection with my carkit always gave troubles. I've experienced that after a reload of the OS (battery out and in again) the conection works fine one time. Af
-
Query Skill Group - Translation Route mapping from Routing Script
Hi, Is there a way we can query against the individual routing scripts and extract the PSG-TR mapping? In ICM we can map any particular Peripheral Skill Group (PSG) to a specific Translation Route (TR) defined on the same Peripheral Gateway through I
-
How to dismiss "This plug-in may require an update" warning
Like in this thread, if a Audio unit plug-in crashes during launch, GarageBand will block that plugin, presumably until a later version is installed. An error has occured with an installed Audio Unit plug-in. GarageBand unexpectedly quit while trying