Creating a Form with Report based on View
Hi All,
I wanted to create a form with report based on two tables so:
1. I created a view (called COMBO) based on two tables
2. I then created a form with report based on the view
Everything seemed fine thus far until I tried to edit existing records - I got the error:
ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view
Unable to process row of table COMBO.NB: REPATRIATION_ID is the primary key of the Repatriation table. The other table is Applicant.
& when I tried to create a new record - I got the error:
ORA-01776: cannot modify more than one base table through a join view
Unable to process row of table COMBO.Someone please enlighten me!
Kind Regards
Kamo
Edited by: Kamo on 2009/03/12 2:33 AM
Hello Kamo,
You need to create an 'instead of' (update/insert/delete) trigger on your view to process the inserts etc into the 'real' tables.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-)
Similar Messages
-
How to create a form or report on a view or on a sql for update
Let's suppose to have this two tables:
BOOKS(title, author, id_tongue)
TONGUE(id_tongue, tongue)
where TONGUE contains (1, english), (2, french), ...
I want to create a report and a form (for inserting new books) so as to insert the right values in the two tables.
I've created a view VIEW_BOOKS(title, author, tongue) and an instead-of-trigger to update the two tables when inserting into the view itself. The problem is that with APEX it seems to me it's only possible to define a form or report on tables or on query and not on a view.
Any advice to give me? Or other solutions?
I'm quite new on APEX
Thanks in advance!You are mistaken!! what version of apex are you on?
Select Form on a Table or View when creating a form using wizard
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_frm.htm#HTMDB05029 -
Additional fields in report for form with report
Hello,
I got the problem, that I want to create a form with report where the form only changes the values of one table but the report is also using additional fields linked from another table. If I take a view with all fields for my form with report, the form is about all fields and not only about those from the first table. So is there a way to have another table linked to the form than to the report and get a link between them by a key?
I hope that someone has got a great idea and can help me solving this.
Thanks
JochenJochen,
you can create a form with report on the view and afterwards you change the SQL-query into a query on the view. Take care that the original column names remain the same. You get your extra columns in the report and your link to the form remains,
good luck,
DickDral -
Question of Form with Report?
This is great since I can create a form with report.
For my search on form selection, I can only select one column, can I select more than one columns so I can search column A and B?
Thank you.User,
What is your name?
Yes, when you're creating the report it's easy as you should see a list of columns and be able to select the ones you want. Afterward you'll have to manually modify the query which is easy enough.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-) -
Form with report, where some items in the form have been given values.
Hi, greetings:
I have a question that maybe silly but annoying to me. I need to provide a form with report, where some items in the form have been given values automatically, and these items (display only) are supposed to show given values in the form automatically.
I used the APEX form with report. The update and delete worked well. But I cannot show automatic values when insert. By default APEX insert form makes every item null; I tried to give value for two items: P5212_USERKEY, P5212_DAILY_VER_DATE with process before header, after header, after regions and before footer, and computation, or set values of these two items in the branch when user hit create button (submit). It never worked out, the two items always displayed null value, and when I insert, I got "ORA-01400: cannot insert NULL into ("TBSBI"."DAILYVERPRODNOTE"."USERKEY")", since I have set up constraint in database that these two columns should not be null.
Could anyone help on this? any suggestion would be appreciated.
SamIf you have made these values 'Display Only' they would by default not save the session state. Accessing the page items will always return NULL. Did you change the 'Save Session State' option to 'Yes'?
-
Image upload in Form with Report
Hello
I have created a table FA_CUST_DTL
Column Name Data Type Nullable Default Primary Key
CUST_ID NUMBER No 1
CUST_NAME VARCHAR2(1000) Yes
CUST_ADD VARCHAR2(4000) Yes
MOBILE NUMBER(12,0) Yes
PHONE VARCHAR2(15) Yes
EMAIL VARCHAR2(100) Yes
SIGNATURE_IMAGE BLOB Yes
MIMETYPE VARCHAR2(200) Yes
FILENAME VARCHAR2(400) Yes
IMAGE_LAST_UPDATE DATE Yes
Then i created a page Form With report with the trigger . After Browsing , images are not showing in my report.
Can u tell me any idea abt it plz help me its urgent for me.
Regards
GeetIf you need to control height and width of your uploaded images, then you must use the APEX_UTIL.GET_BLOB_FILE_SRC function. Please refer to this documentation:
[http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#AEAPI129] -
I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review
I'm afraid not. It's not rocket science but you need to do some coding.
You'll need to find a script (php) and save it to your local site folder. Then reference the script in your form's action attribute like so.
<form action="path/form-to-email-script.php" >
The input fields in your HTML form need to exactly match the script variables.
I'm assuming you're hosted on a Linux server which uses PHP code. Linux servers are also case sensitive, so upper case names are not the same as lower case names. It's usually best to use all lower case names in your form and script to avoid confusion.
Related Links:
Formm@ailer PHP from DB Masters
http://dbmasters.net/index.php?id=4
Tectite
http://www.tectite.com/formmailpage.php
If this is all a bit beyond your skill set, look at:
Wufoo.com (on-line form service)
http://wufoo.com/
Nancy O. -
Hi,
I have developed all my forms of type 'Form with report' which after entering values, displays the report page that shows the details entered.
In the form page definition I have a select list for customer id which diplays 'customer name' as return value. So after the form values are entered it redirects to the report page which displays the details such as customer id etc. How do I make this page to display the customer name instead of customer id. From user's perspective it would make more sense if he can see the customer name for editing/changes.
Also I wanted to know which kind of report would be the most appropriate if the report is based on a PL/SQL block. Would it be as interactive ?.
Appreciate all suggestions posted.Hi Zahid,
Yes, That is exactly what I wanted. So now I have my other table (resources ) for getting the resource_name . I do not see any quotes in your query which makes me wonder how your query under – ‘Region source’ of the Region definition looks like. Could you paste you code exactly as seen there. Besides I am not sure if we can join tables in there. I was getting –Unable to parse query error as well as Invalid character. I am not entirely sure of the syntax of the query definition in the report page as it is automatically generated . Any ideas? . I am pasting my query here for you to look at.
Appreciate your help.
select "RR.RESOURCE_ROLE_ID",
"RR.RESOURCE_ID";
"RE.RESOURCE_NAME",
"RR.ROLE_ID",
"RR.PROJECT_ID",
"RR.CREDITS_PER_HOUR",
"RR.ACTIVE_DATE_START",
"RR.ACTIVE_DATE_END",
"RR.LAST_UPDATED_BY",
"RR.LAST_UPDATE_DATE",
"RR.CREATED_BY",
"RR.CREATION_DATE"
from "#OWNER#"."RESOURCE_ROLES" "RR",
"#OWNER#"."RESOURCES" "RE"
where "RR.RESOURCE_ID" "=" "RE.RESOURCE_ID";
Thanks,
A -
How to do a left join to create a timesheet status report in Power View
I am trying to create a very simple report in power view for Project Online. It's a timesheet status report that should show a list of resources, and the current status of their timesheet (in progress, not started, etc).
In Excel, I created an odata connection with Resources and Timesheets, and set up the connection between them. So, I can now easily display a list of timesheets, and filter them by end date. Good. But this only displays rows where there is an existing timesheet.
So resources who have not started a timesheet are not displayed. So, I need a "left join" in power view to display all resources, whether or not they have a timesheet for the period. (and, for the ones that do, I need to display fields from the timesheet,
such as the status description.)
Any suggestions?
Mike G.Hi Mike,
I'm not sure of what I'm suggesting since I got no instance to test it, but I'm wondering if the OLAP Cube "MSP_Project_Timesheet" wouldn't contain all resources of the enterprise pool with assignments (and not only resources that already submitted
a timesheet) since it is a combination of the assignment timephased, resource timephased and EPM timesheet cubes.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
Hi,
I have created form with report.i want to apply the function like initcap,upper or lower apply changes portion of item.
e.g when i click on pencil image to modify the value.item which holds the value.if i enter value in lower case.i want to make value in initcap format.how can i apply this function.
Please help me to solve this problem.
Thanks & regards
NishaHi,
First of all when do you want to make them Initcap? If its after submit, then you can handle it in your DML or at trigger level. If its before submit, you can go with JS.
for those who prefer recursion over looping...
<script type="text/javascript">
function fnInitCap(pStr)
var vReturn;
if (pStr.indexOf(" ") != -1)
// Initcap the first word
vReturn = pStr.substring(0, 1).toUpperCase() + pStr.substring(1, pStr.indexOf(" ") + 1).toLowerCase();
// Contains multiple words, call function recursively
return vReturn + fnInitCap(pStr.substring(pStr.indexOf(" ") + 1, pStr.length));
else
vReturn = pStr.substring(0, 1).toUpperCase() + pStr.substring(1, pStr.length).toLowerCase();
return vReturn;
</script>and put following in item attributes..
onChange="javascript:this.value=fnInitCap(this.value);"Regards,
Hari -
Reset Select List in Form With Report
Hi,
i have Created Form with Report Page. I have three select List on this page.
1-Market Name Select List with Redirect
2-Customer Name Select List with Redirect
3-Contect Person
when i select market Name then Respective Customer name is select In to select List Customer Name.
When i select Customer Name Then Contact Person is Select in Select List Contect Person.
Problem is when i select Customer Name from Select List then Contact Person comes into Contact persion Select List But the value in select List Customer Name and Market Name is not dispaly , Display Only -Select Market - and -Select Customer Name- .
I want when i select Customer NAme From Select List then value from MArket and customer Select List should not be reset.
How can i do this.
Thanks
Edited by: 805629 on Jan 26, 2011 10:45 PMTry 'select list with submit', not "select list with redirect". Redirect usually doesn't save the values in session state so they are lost when the page repaints.
-
Use Formule on FORM with REPORT - result stored at table
Hi all,
What is the best solution for?
I have region with FORM WITH REPORT on the same PAGE.
Values stored at table INFO with column ID, MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN, SUM1, SUM2
ITEMS on the form:
P1_ID (hidden)
P1_MYDATE (date picker)
P1_TIME_START_HOUR (select list)
P1_TIME_START_MIN (select list)
P1_TIME_END_HOUR (select list)
P1_TIME_END_MIN (select list)
P1_SUM1 (hidden)
P1_SUM2 (hidden)
After user fill in MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN then I need proces for calculation SUM1 en SUM2. Result stored (one record) at table INFO.
Report shows all columns. User had possibility to update the record
Formule:
Select
(CASE
when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
(interval '00 00:00:00' day to second)
,12,5)
ELSE '08:00'
END) SUM1,
(CASE
when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
(interval '00 04:00:00' day to second)
,12,5)
ELSE '04:00'
END) SUM2
FROM INFO
where id=:ID
What is the best way for the calculation: computation or processes or etc? The calculation after or before user push button(New:create button of Update:Apply Changes)?
How to fill the answer (SUM1 and SUM2) at table INFO?
Thanks WalterI have something similar I use:
DECLARE
str_day VARCHAR2(10);
dt_indx DATE;
db_dt_indx VARCHAR2(20);
str_st_tm VARCHAR2(20);
dt_st_tm DATE;
db_st_tm VARCHAR2(20);
str_ed_tm VARCHAR2(20);
dt_ed_tm DATE;
db_ed_tm VARCHAR2(20);
shft_flag NUMBER;
BEGIN
str_day := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' || :P1050_DATE_YYYY;
dt_indx := to_date(str_day, 'MM/DD/YYYY');
db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
str_st_tm := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
dt_st_tm := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
str_ed_tm := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
dt_ed_tm := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
--Alter date if night shift
SELECT NVL(:P1050_NIGHT_FLAG,0) into shft_flag from dual;
IF dt_ed_tm < dt_st_tm THEN
dt_ed_tm := dt_ed_tm + 1;
END IF;
db_st_tm := to_char(dt_st_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
db_ed_tm := to_char(dt_ed_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
end;You'll need to modify it for your page variables. -
I'VE CREATED A FORM WITH IMAGES. WHEN I OPEN THE FILE IN ACROBAT READER THE IMAGES ARE BLACK BOXES.
THE FORM HAs (extend features to acrobat reader). THE FORM WAS DISTRIBUTED.
NON OF MY EMPOYEES CAN SEE THE IMAGES. WHAT'S WRONG? CAN YOU HELP?However, the view large images is an issue for a form that is being distributed. Either a note needs to be added to the PDF to tell how to enable the view or the images need to be changed so that the enabling is not needed.
-
How to create a form like report
Hi all,
I am using Oracle 11g release 1.
I want to create a form like report.
for example: first row have 4 items (4 columns).
second row have 5 items,
third row have 7 items.
is there any way to do that?
Thanks.Not sure I understand what you want, but I set up a page with 2 items on one row, 3 on the next. http://apex.oracle.com/pls/apex/f?p=23834:30 is that the sorta thing you want to do? - control where the items appear?
If so - you can just use drag and drop layout, or on the items settings (Displayed settings), specify whether or not it appears on a new line or not.
Ta,
Trent -
Is it possible to create a form with multiple form fields on a single line?
Is it possible to create a form with multiple form fields on a single line? I can't find anything in the documentation or a template that does this.
I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor. I would prefer to use FormsCentral if it is possible.We now support multiple fields on one line. This post provides a brief overview.
Give it a try and send us your feedback.
Sorry it took so long.
Randy
Maybe you are looking for
-
How do i save my cookie setting in "firefox will" it always changes back
I cannot save the setting "use custom settings for history" and after checking "accept cookies sites" to enable cookies, there is no place where i can save the setting, so it keeps going back to previous settings.
-
A205-s4777 crashing - video processor?
I have had my A205-S4777 for a couple years now without any major problems. Starting a few months ago, it started either powering itself down or completely freezing at seemingly random times. The first thing I did was reformat the hard drive and do
-
Hi Gurus, I need a ALV Report in the below given manner. Logo Company Details Customer Number Sales Details Customer Number Sales Details Customer Number Sales Details Footer Is it possible ? How? Thanks & regards, Lijo Joseph
-
Already existing adapter modules in Decentralized Adapter Engine(urgent)
hi 2 all, I have installed a Decentralized AE. I wanted to know whether i can use already existing modules in XI directly in my communication channel with my non central DAE as the adapter engine. Or i have to deploy SCA of those already existing mod
-
Unable to download Quick Office & Adobe Reader
I'm unable to download the Quick office and adobe reader for download section. After downloading it shows 'File Currupted'. Can any body help me to download these software without any extra cost.