Two forms on same page..save state of one form while submitting other.
Hi....
I have 2 form on same page....
first is form on table....
nd another is tabular form.....
now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
now my question is how can I save state of my first form even after clicking on submit button...........
pls,help.
Hi Shirish,
in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
i am not sure in this, but you can try something.
Thanks
Chandran
Edited by: Chandran on Nov 28, 2011 2:21 AM
Similar Messages
-
How to create a master detail form on same page in apex 4.2.1
Hi All,
i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
will appreciate your suggestions.
ThanksHi James,
I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
Ideally, though, you should only really need one key column - is there any need for four?
Andy -
How do now open two copies of same page
As a business short cut I cut and paste from one copy of a web page to another copy. Your new feature disallows two copies of same page. Is there a way to force two copies?
Are these four steps in a procedure, or are they four different ways to accomplish the goal? I've never used the versions of Firefox since that feature was implemented so I can't visualize doing any of them either way.
Is there some way to disable the Switch To Tab in the configuration file? Does the ''about:config'' access still exist?
The Switch To Tab "feature" is the primary reason that I have declined to Switch To "Rapid-Bug-Development" Firefox and plan to remain with Firefox 3.6 indefinitely.
Whichever person(s) decided to implement this "feature" obviously did not have a clue as to the usefulness of ''opening a tab which is identical to an existing tab'' while, for example, investigating a labyrinth of data sheets on a technical website. After it is opened, browsing continues on the new tab, which makes it easy to return to the page from which one departed without hitting the Back key umpteen times and waiting while the pages are re-displayed in reverse order (among other less efficient alternatives). The "user" just returns to the tab for the page-of-departure to resume, regardless of whether s/he also wants to close the tab on which s/he continued browsing. -
Submit form to same page?
how to submit form to same page.
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script>
function sample()
document.form_Configure.submit();
</script>
</head>
<body bgcolor="#FFFDF3">
<FORM name="form_Configure">
<center>
<p align="center"><br />
<% String[] serverNames={"Server1", "Server2", "Server3"};%>
DataBase Type : <select name="DatabaseTypes"
ONCHANGE="sample()" style=" width:211; height:211">
<% for(int i = 0; i < serverNames.length; i++)
%>
<option><%=serverNames%></option>
<% } %>
</select>
</center>
</FORM>
</body>
</html>
cheers
rasmiPut the name of the page in the action attribute of the form, just like you always would :s
Or perhaps you mean that you want to submit to a different frame or something? In that case you use the target attribute and give it the name of the frame you want to submit to. -
I have two iPods under same account information and lost one but when I go to track it only the one that isnt lost shows up, is there somewhere I can go to fix this?
They cannot be tracked unless connected to WiFi.
-
We have two Ipad2's 64gb wifi in the house, one prints wirelessly the other no results even though it sees the printer, any thoughts, also while recently overseas the IPad having print difficulties also had wifi connection issues although no problems at home, any thoughts?
Kristeen-
In case the printing problem is related to the WiFi problem, try resetting your iPad's WiFi network. Go to Settings-General-Reset-Reset Network Settings. You will probably need to reconnect the iPad to your WiFi.
It is also possible that there is a print job hung up in the Print Queue. Double click the iPad's Home button and a row of recent Apps will line up along the bottom of the screen. Scroll across and look for the Print Queue.
Fred -
Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?
See these articles for some suggestions:
* https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
* https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
* http://kb.mozillazine.org/Preferences_not_saved -
1st my sincere thanks for all the help and suggestions so far from apex group of friends.
I have a very critical dilevery to submit by tommorow and i am stucked on this, so please try to help me out with this...
I have a requirement like to fill up a form and once i click the submit button the fields data will be updated in the database table DIM_INDICATOR whose structure is like this.
CREATE TABLE "DIM_INDICATOR"
( "DIMENSION_KEY" NUMBER NOT NULL ENABLE,
"DESCRIPTION" VARCHAR2(2000),
"INDICATOR_CODE" VARCHAR2(16) NOT NULL ENABLE,
"INDICATOR_STATUS" VARCHAR2(3),
"REVISION" VARCHAR2(7),
"ID" NUMBER,
"INDICATOR_NAME" VARCHAR2(100) NOT NULL ENABLE,
"FORMATSTRING" VARCHAR2(20) DEFAULT '999G999G990D99',
"FORMATSUFFIX" VARCHAR2(1) DEFAULT '%',
"SCFA_SUBDOMAIN_ID" NUMBER,
"PLANNED_DELIVERY" VARCHAR2(20),
"PLANNED_DELIVERY_COMMENT" VARCHAR2(200),
"QIX_INCLUDE_REQUESTOR" VARCHAR2(100),
"INDICATOR_NAME_ARB" VARCHAR2(100),
"DESCRIPTION_ARB" VARCHAR2(2000),
"UNIT_ENG" VARCHAR2(100),
"UNIT_ARB" VARCHAR2(100),
"REMARKS" VARCHAR2(2000),
"SCFA_DOMAIN_ENG" VARCHAR2(100),
"SCFA_SUBDOMAIN_ENG" VARCHAR2(100),
"SCFA_DOMAIN_ARB" VARCHAR2(100),
"SCFA_SUBDOMAIN_ARB" VARCHAR2(100),
"CREA_USER" VARCHAR2(30),
"CREA_DATE" DATE DEFAULT sysdate,
"MODI_USER" VARCHAR2(30),
"MODI_DATE" DATE DEFAULT sysdate,
"AGGREGABLE" VARCHAR2(1) DEFAULT 'N',
"SORT_ORDER" NUMBER(5,0),
CONSTRAINT "DIM_INDIC_DIMENSION_KEY_PK" PRIMARY KEY ("DIMENSION_KEY") ENABLE
ALTER TABLE "DIM_INDICATOR" ADD CONSTRAINT "DIM_INDICATOR_STATUS_FK" FOREIGN KEY ("INDICATOR_STATUS")
REFERENCES "VPD"."ADM_INDICATOR_STATUS" ("INDICATOR_STATUS") ENABLE
CREATE OR REPLACE TRIGGER "DIM_INDICATOR_BFI"
before insert or update on dim_indicator
for each row
begin
IF inserting AND :new.dimension_key IS NULL THEN
select seq_indicators.nextval into :new.dimension_key from dual;
:new.id := :new.dimension_key;
END IF;
IF inserting THEN
:new.crea_user := nvl(v('APP_USER'),USER);
:new.crea_date := sysdate;
END IF;
IF updating THEN
:new.modi_user := nvl(v('APP_USER'),USER);
:new.modi_date := sysdate;
END IF;
end dim_indicator_bfi;
ALTER TRIGGER "DIM_INDICATOR_BFI" ENABLEAt the same time in the same page i have to make a tabular form (We wan to use tablular form here because we will get the functionality of add rows here) which will ask the user to fill the DESCRIPTION_ENG and DESCRIPTION_ENG columns which will update in ADM_INDICATOR_PROVIDER table whose structure is like this.
CREATE TABLE "ADM_INDICATOR_PROVIDER"
( "INDICATOR_PROVIDER_ID" NUMBER NOT NULL ENABLE,
"INDICATOR" NUMBER NOT NULL ENABLE,
"DATA_SOURCE" NUMBER NOT NULL ENABLE,
"EQUATION_ENG" VARCHAR2(2000),
"EQUATION_ARB" VARCHAR2(2000),
"DESCRIPTION_ENG" VARCHAR2(2000),
"DESCRIPTION_ARB" VARCHAR2(2000),
"CREA_USER" VARCHAR2(30),
"CREA_DATE" DATE DEFAULT sysdate,
"MODI_USER" VARCHAR2(30),
"MODI_DATE" DATE DEFAULT null,
CONSTRAINT "ADM_INDICATOR_PROVIDER_PK" PRIMARY KEY ("INDICATOR_PROVIDER_ID") ENABLE,
CONSTRAINT "ADM_INDICATOR_PROVIDER_UQ" UNIQUE ("INDICATOR", "DATA_SOURCE") ENABLE
ALTER TABLE "ADM_INDICATOR_PROVIDER" ADD CONSTRAINT "ADM_INDICATOR_PROVIDER_IND_FK" FOREIGN KEY ("INDICATOR")
REFERENCES "DWH"."DIM_INDICATOR" ("DIMENSION_KEY") ENABLE
ALTER TABLE "ADM_INDICATOR_PROVIDER" ADD CONSTRAINT "ADM_INDICATOR_PROVIDER_PROV_FK" FOREIGN KEY ("DATA_SOURCE")
REFERENCES "DWH"."DIM_DATA_SOURCE" ("DIMENSION_KEY") ENABLE
CREATE OR REPLACE TRIGGER "ADM_INDICATOR_PROVIDER_TRG"
BEFORE INSERT OR UPDATE ON adm_indicator_provider
FOR EACH ROW
BEGIN
IF inserting AND :new.indicator_provider_id IS NULL THEN
SELECT adm_indicator_provider_seq.nextval
INTO :new.indicator_provider_id
FROM dual;
END IF;
IF inserting THEN
:new.crea_user := nvl(v('USER'),USER);
:new.crea_date := sysdate;
END IF;
IF updating THEN
:new.modi_user := nvl(v('USER'),USER);
:new.modi_date := sysdate;
END IF;
END;
ALTER TRIGGER "ADM_INDICATOR_PROVIDER_TRG" ENABLE
/NOTE : Here the DIMENSION_KEY column of DIM_INDICATOR is same as INDICATOR column of ADM_INDICATOR_PROVIDER
So at the same page i have to show two forms,1st for dim_indicator table and other is for adm_indicator_provider table. Once the user clicks the submit button my procedure should check that 1st form is filled and ask him to fill the fields of 2nd form before updating in both the tables.(dim_indicator and adm_indicator_provider)
I know its a big one favor i am asking for...but i am really looking for a kind reply from someone who could help me out to achieve it for sure
Regards
AdiHello,
I don’t think you’ll be able to find a simple wizard solution for your restrictions, especially not using tabular forms. One reason is that when you add rows to the tabular form you actually submitting the page. Any validation errors in the first table will reset all the updated/new information on the tabular form, and in case of more than one description to a single indicator you might create temporary inconsistency in your database, that might not be acceptable by your application logic restrictions, not to mention potential problems in multi-user environment.
You should design your form manually, and consider using a view that reflects both your tables. For the long run, it will probably take you less time than forcing the wizards to do what you want (if it's even possible).
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More -
Tabular and normal form on same page
Hi all,
need some advice as how to submit both tabular form and a normal form on click of submit button. The tabular form is based on a different table and the normal form and like i said i need to get them to insert into their adjacent tables at the same time..
thanks guys...Hi Stefan,
You might find it useful to review the behaviour of the Detail page in the Master-Detail form within the APEX Sample Application, where the modifications made to the Forms region (based on Master table) and the Tabular form region (based on Detail table), are saved by clicking one button. If you're working with APEX 4.0, install the Sample Database Application, run it and then select the "Orders" tab. The Orders page, pg 4, is the Master page, displaying information on customer orders. If you click on the edit link for one of the rows, say for example the customer 'Bradley, Eugene', this will branch to the Detail page, pg 29 of the Sample Application. The "Save Changes" button will save changes made to both regions of the page. The Form region changes are saved via an Automatic Page Processing (DML) process, and changes to the Detail region are done via Multi Row Update (MRU) and Multi Row Delete (MRD) processes.
I hope this helps.
Regards,
Hilary -
Error updating two reports on same page! Could you have a look please?
Hey guys!
I have the following situation :
two updateable reports on one page with IDs 'DATE_REPORT' and 'WORK_REPORT'
two pl/sql processes on submit after c.... named 'SUBMIT_DATE' and 'SUBMIT_WORK'
two buttons named 'SAVE_DATE' and 'SAVE_WORK'
Finally, the insert and update processes are conditioned to Request = Expression 1 where for the 'DATE_REPORT' it is set to 'SAVE_DATE' and for the 'WORK_REPORT' it is logically set to 'SAVE_WORK'. There are no extra button conditions.
My problem: No matter which button I press, the array is build up from the columns of the first report and continues to add rows of the second report.
For instance: 'DATE_REPORT' has 11 rows and 'WORK_REPORT' has 9 rows. In the debug mode I can see that the array is build up using the 'DATE_REPORT' although 'SAVE_WORK' was accepted as the request. The same problem vice versa for the other update.
......column CNT_ARBEIT_CRIT_DATE mapped to WWV_Flow.g_f02
......column LNG_ARBEITSSCHRITT mapped to WWV_Flow.g_f03
......column STR_ARBEITSSCHRITT not mapped - not stateful.
......column DATE_GP_X_START mapped to WWV_Flow.g_f04
......column DATE_GP_X_END mapped to WWV_Flow.g_f05
......column DATE_R_X_START mapped to WWV_Flow.g_f06
......column DATE_R_X_END mapped to WWV_Flow.g_f07
......column LNG_GEBIET mapped to WWV_Flow.g_f08
......column CS not mapped - not stateful.
...array has 20 row(s). Used f08 to count.
Validate report columns(ApexLib_TabForm.validateColumns)
Row 12 has checksum error. ORA-01403: no data found ORA-01403: no data found ORA-01403: no data found
...Row 12
...LNG_ARBEITSSCHRITT
...CNT_ARBEIT_CRIT_DATE
......is not required
...LNG_GEBIET
......is not required
...DATE_GP_X_START
......is not required
...DATE_GP_X_END
......is not required
...DATE_R_X_START
......is not required
...DATE_R_X_END
0.00: A C C E P T: Request="SAVE_WORK"How can I make sure the arrays are made up from the reports that are subject to the update???
Many thanks for reading this post and giving some help if you have an idea!
Regards,
Seb
Edited by: skahlert on 13.03.2010 10:57Hi Peter! Thanks for your answer. Well, this is what I already assumed! Two updateable reports with different data sources on one page will not work taht easily.
Both reports have different amounts of columns in my case! I might create some pseudocolumns in the first report to match the columns in the second one. Hence I could try to build up the array like that.
However, I believe it will not work as I can't use the primary key for the insert procedure in my second report. This is due to the design of the report.
My initial idea was to somehow deactivate my report regions before running the update resp. insert procedure.
I thought of using the htp.p statement with 'hideShow(''DATE_REPORT'')' and 'hideShow(''WORK_REPORT'')' to deactivate the regions and run the dml processes afterwards. Of course hiding the regions depending on the requested dml process. My question is if it will actually work like that. My try to hide the regions failed. The DATE_REPORT was indeed hidden but the update was still unsuccessful. I believe hiding the region is not sufficient.
Do you have a hint how I can completely disable or deactivate the reports using javascript from pl/sql?
Many thanks and have a splendid sunday!
Regards,
Sebastian -
Error when trying to create 2 Forms on same page on 2 tables with ID as PK
Hi all,
here's the error message I get: "ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" has same name as existing application-level item. ORA-0000: normal, successful completion"
What am I trying to do:
I try to create 2 forms on the same page, each one based on tables that have PK column named "ID".
From what I understand, HTML DB is trying to create for both forms the same "P1_ID" (P[no_page]_[column_name], right ?) hidden item in order to keep the value of the pk column...
I think this is not right...what do you think ?
Thanks,
AndreiYou cannot use multiple automated row fetch or automated DML processes on the same page where any table column names are in common between them.
Scott -
On button click to fill out form on same page as report
Hi,
I have a report that contains a name that I want to pass in to a field in a form on a different region on the same page.
My button located on the report is has its own column called ADD_LINK. Here is the button. <button id="apexir_btn_ADD" class="apexir-button" type="button" value="Add" onclick=""><span>Add</span></button>
Once that button is clicked, I have the form region fade in. The region is called Add Tag to Employee, which has P4_ROWID, P4_EMPLOYEE_ID, and P4_TAG_ID.
Once the region is displayed, I want the #NAME# to show in the P4_EMPLOYEE_ID.
I did copy this form from another page, where I had it working before. It made more sense to move it to this page for interface purposes, so maybe that tidbit will help as well.
If anyone has an answer to that, awesome. I am new so thanks for the help.
Thank you.
JeremySimilar to that, except I have a button on the right-most column that I want to use. There is a button for each row, and I want that to send the name on that row into the form, so it is very similar. Also the region I am sending it to is hidden until the button is clicked, which I created a dynamic action to show it on click.
ID Name Skills Add_Link Delete_Link
1 Jeremy Java [Add] [Del]
That's what 1 row of data would look like..
So when the [Add] button is clicked the Employee_Add form should update the P4_Employee_ID with the name corresponding with the button on that row.
Edit: It turns out that since my form item P4_Employee_ID was a popup LOV so when I changed it to a Display Only, it seems to have worked.
Now I am just having trouble getting this form on the same page to submit the data, by clicking Create on the form. The name is showing, but then I select a Skill and then Create, and it doesn't update my table.
It is probably because I am not getting a rowID in my form, but I am not sure.
Thanks
Jeremy -
Link to Two js files same page
I need to link to two js files on the same page.
How do I get them to both work? one is for a togler.js and
the othe for a
menu .js
<script src="../js/togler.js"
type="text/javascript"></script>
<script type="text/javascript"
src="../js/p7exp.js"></script>
First time I tried this.
Thanks
Dave
Look Dave, I can see you're really upset about this. I
honestly think you
ought to sit down calmly, take a stress pill, and think
things over
I took my pill first.:-)Sorted
<body onLoad="P7_ExpMenu();toggler()">
I took my pill first.:-)
The pill must have worked -
I used the wizard to create a report and form on a table. When the user hits the edit link on the report, it brings up the form (so they can edit) on a new page. Instead of this, I want the form to show on the same page as the report. What is the best way to do this? Should I create 2 regions on the same page (1 for the report and 1 for the form)?
Bob,
take a look at
Re: How to get a form to appear on the same page when a button is clicked?
at the end you can login to a (my) workspace to see how it's done.
Leo -
Good morning all,
first of all, im not sure if this should be posted here, or
on the
dreamweaver forum, so I thought I'd try here first.
I want to put a gradient background and drop shadow on the
same page, but am
really not sure how technically you can do that.
This is a picture of what Im trying to reproduce
www.fionahayward.com/test.html
Ive google searched but have come up with nothing so far.
Regards
Fiona HaywardFiona wrote:
> Good morning all,
>
> first of all, im not sure if this should be posted here,
or on the
> dreamweaver forum, so I thought I'd try here first.
>
> I want to put a gradient background and drop shadow on
the same page, but am
> really not sure how technically you can do that.
> This is a picture of what Im trying to reproduce
> www.fionahayward.com/test.html
>
> Ive google searched but have come up with nothing so
far.
> Regards
> Fiona Hayward
>
>
Hi,
Yes you can do this using CSS (an gradient image slice - you
might want
to try varying heights to get it just so!) a bit like
so......
body {
background-color: #FFFFFF;
background-image:
url(yourimgefolderhere/bg_bodygradient.jpg);
background-repeat: repeat-x;
background-position: left bottom;
and then use a container div which will use your drop shadow
image slice
(which is best perhaps transparent in the middle) like so -
assuming you
want to accommodate viewers using 800x600 resolution and that
you want
the container centered.....
#container {
margin: 0 auto;
width: 760px;
background-color: #FFFFFF;
background:
url(yourimgefolderhere/bg_dropshadowwithtansparency.gif);
background-repeat: repeat-x;
background-position: left top;
and then your content fits inside the container div.
HTH
chin chin
Sinclair
Maybe you are looking for
-
DEEMED INVOICE : Not able to create deemed invoice when the excise invoice
Hi guys, when i create an excise invoice in background .and try to create ARE-3 in J1IA301.I am getting a error (081091004/2009 excise invoice is meant for normal invoice). when i create excise invoice manually and click on goto - utilizatio
-
Have Officejet j5780. Replaced #74 black ink. Did cartridge alignment. Pressed OK button. Hear cartridges aligning. j5780 begins to print. Then suddenly, the words, "turn off and then turn on" are on and power button is flashing on j5780's screen. Re
-
Material consumption report for workcenter in REM
Hi, I am using REM. Is it possible to get report on materials consumption for a work center in Repetetive manufacturing. If possible.Please explain me how. thanks and regards Murugesan
-
Ram clarification...
I am a little confused about the whole ram stuff and timings... did a lot of research but couldn't quite understand it... just want someone to let me know if my settings are at optimal without any overclocking or anything... I ran the CPU-Z and I g
-
Expired Password Custom JAAS LoginModule
Hello, We need to be able to determine how long till a user's password expires. We are authenticating with ldap / Microsoft AD. We have attempted to create a jaas login module which causes the login to to be forwarded to the changePasswordPage.jsp