Redirecting from edit page
I have 4 pages that go to one page to handle edits.
My pages are getting confused how to return to the original page after it done the edit.
How do I get the edit page to go back to the page they click the edit after they hit the save button on the edit page?
I think this is the way to approach it.
Thanks.
Lloyd
While using a link to get to the edit page, you can set a hidden item to a value (page number of that page). Create four branchings with branch to your four pages depending on the value of the hidden item - if hidden item is 2 then the branch will go to that page after processing is done.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------
Similar Messages
-
Update query not working from edit page
Next incident with the guestbook saga:
Successful execution of gb_entry_mstr_det_e.cfm with URL:
http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=14 all have database current info...this is good, but:
textboxes
Problem 1:
the SELECT field does not does not reflect/display the correct option I know exists in the database
the database field whence this SELECT object is supposed to display is a number, not text.
now,...
Problem 2:
Clicked on "Update Your Entry" button at bottom of edit page (to update by going to gb_confirm_update.cfm)
<INPUT
TYPE="submit"
NAME="submit"
VALUE="Update Your Entry">
then, arriving at the gb_confirm_update.cfm page, ...
Got an error (below) executing the page: gb_confirm_update.cfm with resulting URL:
http://www.benoitsystems.com/ww/bd/gb/gb_confirm_update.cfm?call_number=#gb_entryID#
--- snippet from template gb_confirm_update.cfm
<CFQUERY DATASOURCE="9130.ww" NAME="ww_gb_ud">
UPDATE gb_entries
SET
gb_entry_stts_='form.gb_entry_stts_',
gb_entry_nm_f='form.gb_entry_nm_f',
gb_entry_nm_l='form.gb_entry_nm_l',
gb_entry_nm_l_dspl_x=form.gb_entry_nm_l_dspl_x,
gb_entry_tce='form.gb_entry_tce',
gb_entry_tce_dspl_x=form.gb_entry_tce_dspl_x,
gb_entry_cy='form.gb_entry_cy',
gb_entry_stt='form.gb_entry_stt',
gb_entry_instr='form.gb_entry_instr',
gb_entry_m='form.gb_entry_m',
gb_entry_del_x=form.gb_entry_del_x
WHERE gb_entryID=form.gb_entryID
</CFQUERY>
--- end snippet ---
=================================================
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4.
The error occurred in E:\benoitsystems.com\wwwroot\ww\bd\gb\gb_confirm_update.cfm: line 2
1 : <!--- <CFUPDATE DATASOURCE="9130.ww" TABLENAME="gb_entries"> --->
2 : <CFQUERY DATASOURCE="9130.ww" NAME="ww_gb_ud">
3 : UPDATE gb_entries
4 : SET
SQL UPDATE gb_entries SET gb_entry_stts_='form.gb_entry_stts_', gb_entry_nm_f='form.gb_entry_nm_f', gb_entry_nm_l='form.gb_entry_nm_l', gb_entry_nm_l_dspl_x=form.gb_entry_nm_l_dspl_x, gb_entry_tce='form.gb_entry_tce', gb_entry_tce_dspl_x=form.gb_entry_tce_dspl_x, gb_entry_cy='form.gb_entry_cy', gb_entry_stt='form.gb_entry_stt', gb_entry_instr='form.gb_entry_instr', gb_entry_m='form.gb_entry_m', gb_entry_del_x=form.gb_entry_del_x WHERE gb_entryID=form.gb_entryID
DATASOURCE 9130.ww
VENDORERRORCODE -3010
SQLSTATE 07002
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Remote Address 71.233.234.226
Referrer http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=14
Date/Time 21-Jul-10 03:11 PM
=================================================
I have every NAME of each object matching, verbatum, in the UPDATE query, and every database field name correct in teh query also.I was encouraged to send snippets in an another submission, and now I believe it is best that I "lay my cards on the table"
Here's my hand:
Pages in question for your review:
http://www.benoitsystems.com/ww/bd/gb/gb_mstr.cfm click on the pencil (the toilet will delete the record.
http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=21 go to bottom of webpage and click “Update Your Entry”
http://www.benoitsystems.com/ww/bd/gb/gb_confirm_update.cfm?call_number=#gb_entryID#
In your review of the above (should you choose) before clicking on the pencil, look at the status on the master listing record you will be editing, and feel free to edit. Most statuses will be “Hold”
Two dummy MS Access database tables:
Table 1: "gb_entries" (Guestbook)
field 1: gb_entries_ID (Autonumber - Long Integer)
field 2: gb_entries_dt (date/time)
field 3: gb_entries_nm_f (Text)
field 4: gb_entries_nm_l (Text)
field 5: gb_entries_nm_stts_ (Number field - Byte (not bit)) (fed by gb_sttsID)
couple other text fields
field 6: gb_entries_em (Text)
field 7: gb_entries_cy (Text)
field 8: gb_entries_stt (Text)
field 9: gb_entries_nm_l_dspl (Yes/No or True/False)
field 10: gb_entries_m (Memo type)
Table 2: "gb_stts_rf" (Guestbook Status Reference)
field 1: gb_sttsID (Autonumber - Long Integer)
field 2: gb_stts (Text)
Two Templates:
This is the edit page (where a person with administrative access may edit the status or change the spelling for someone, etc.):
<!--- This query fills the form with the chosen record data (except for the darned SELECT object) ---> <CFQUERY NAME="edit_entry" DATASOURCE="9130.ww"> SELECT * FROM gb_entries WHERE #call_number#=gb_entryID </CFQUERY>
<!--- This query is for the select dropdown of guestbook status options (set to default on “Hold” from gb_nw.cfm) ---> <CFQUERY NAME="q_stts" DATASOURCE="9130.ww"> SELECT * FROM gb_stts_rf </CFQUERY>
<HTML>
<HEAD>
<TITLE>Woodwindology Guestbook Entry Edit Page</TITLE> <CFOUTPUT QUERY="incl_css_bd">#incl_code#</CFOUTPUT>
</HEAD>
<BODY
BGPROPERTIES="fixed">
<DIV ALIGN="center">
<IMG
SRC="<CFOUTPUT>#baseurl#</CFOUTPUT>md/img/ut/ttl/pg/guestbook.gif"
BORDER="0">
<BR>
<IMG
SRC="<CFOUTPUT>#baseurl#</CFOUTPUT>md/img/ut/ttl/sub/edit_entry.gif"
BORDER="0">
<BR>
Developer View
</DIV>
<TABLE>
<TR>
<TD>
<TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="5"
CELLSPACING="0">
<TR>
<TD VALIGN="top">
<FORM
NAME="f_gb_entry_mstr"
ACTION="gb_confirm_update.cfm?call_number=#gb_entryID#"
METHOD="post">
<CFOUTPUT QUERY="edit_entry">
<B>Entry ID:</B>
#gb_entryID#
<INPUT
TYPE="hidden"
NAME="gb_entryID"
VALUE="#gb_entryID#">
<P>
<B>Entry Date and Time:</B>
#DateFormat("#gb_entry_dt#","mmmm d, yyyy")# #TimeFormat("#gb_entry_dt#","h:mm tt")#
<P>
<B>Entry Status:</B>
<SELECT
NAME="gb_entry_stts_"
VALUE="#gb_entry_stts_#">
</CFOUTPUT>
<CFOUTPUT QUERY="q_stts">
<OPTION VALUE="#gb_sttsID#">#gb_stts#</OPTION>
</CFOUTPUT>
</SELECT>
<P>
<CFOUTPUT QUERY="edit_entry">
<B>Guest's First Name:</B>
<INPUT
TYPE="text"
NAME="gb_entry_nm_f"
VALUE="#gb_entry_nm_f#">
<P>
<B>Guest's Last Name:</B>
<INPUT
TYPE="text"
NAME="gb_entry_nm_l"
VALUE="#gb_entry_nm_l#">
<BR>
Display Last Name:
<INPUT
TYPE="radio"
NAME="gb_entry_nm_l_dspl_x"
VALUE="Yes">
Do Not Display Last Name:
<INPUT
TYPE="radio"
NAME="gb_entry_nm_l_dspl_x"
VALUE="no">
<P>
<B>Your Email Address:</B><BR>
<INPUT
TYPE="text"
NAME="gb_entry_tce"
VALUE="#gb_entry_tce#"
SIZE="40"
MAXLENGTH="40">
<BR>
Uncheck the box to keep email private:
<INPUT
TYPE="checkbox"
NAME="gb_entry_tce_dspl_x"
VALUE="#gb_entry_tce_dspl_x#">
<P>
<SPAN CLASS="emph01">*</SPAN> Your City:
<INPUT
TYPE="text"
NAME="gb_entry_cy"
VALUE="#gb_entry_cy#"
SIZE="30">
<P>
<SPAN CLASS="emph01">*</SPAN> Your State:
<INPUT
TYPE="text"
NAME="gb_entry_stt"
VALUE="#gb_entry_stt#"
SIZE="30">
<BR>
<B>Instruments Played:</B>
<BR>
<TEXTAREA
COLS="45"
MAX="50" -
How to hide navigator/builder links from edit page
Hi All,
I need to know if there is a way to hide the Navigator and Builder links from the edit page. Anybody can help me?
Best regards,
JV.There are two masterpages Site & System. When your on the regular site you are seeing the site masterpage when you are on the all items & lists you see the system masterpage.
-tom daly -
Published page different from edit page
I have been using this program for a while and it has
happened many times.. i have tried many ways and usually i have to
just give in to a webpage that is not as aligned as i would like.
When i finish doing changes on the editing page everything looks
great. Aligned and in order. I click publish and then the page that
pops up for my finished product is off... photos that are supposed
to be centered are back to left alignment... some of the boxes end
up looking much larger than they were before.?????
What can i do... is there a update i need.. can someone help
me with this prob.
thanx
DDo a malware check with a few malware scan programs.<br />
You need to use all programs because each detects different malware.<br />
Make sure that you update each program to get the latest version of the database before doing a scan.
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]] -
Hello
I cannot delete the 'LIKE' BUTTON icon from the 'edit' section of the user-interface in ADOBE CONTRIBUTE, can anyone please help?
I can delete anything else from the page but the 'like' icons remain static and cant be moved or deleted, very bizarre, anyone know how to remove them?
ThanksDid you look in that forum?
http://forums.adobe.com/community/contribute -
Redirecting from one page to another
hi
my question is that i have a grid which is displayiing some tag information. I want to design my bls in a manner that when i click on column name in grid i should be redirected to another page? Please provide some help?Hi,
in addition to what Manoj said, you can use the [ColumnSelectionEvent|http://help.sap.com/saphelp_mii121/helpdata/EN/44/cf19ac3afb6f1ee10000000a155369/frameset.htm] to catch a click on the column header and call the new page.
Michael -
I cannot edit a page on our website because it states that I
am already editing it on another computer. How can I clear this or
go around it to edit this page?You might have already placed this page in edit mode in some
other machine, that's why you get this info bar. If you are the
administrator of this site browse to the .lck file of that page in
Contribute and Select File->Actions-> Delete Page. This will
remove the lock.
Hope this helps you. -
Hi,
I am facing a problem in JSR-168 JSF protlet while redirecting from the Page Bean constructor. I am using the following code:
getFacesContext().getApplication().getNavigationHandler().handleNavigation(getFacesContext(), null, "case2");The same code works fine when used in the click event of the button.... but I want to do it on load the page.
The scenario is: I want to show my own login page when the portlet is loaded, so on load I check a value of a flag from session if it is 0 then go to login page otherwise open the same page.
Any idea how to solve this issue?i try to handle with it in that way
FacesContext context = FacesContext.getCurrentInstance();
UIViewRoot view = UIViewRoot)context.getApplication().getViewHandler().createView( context, "/exception.jsf");
context.setViewRoot(view);
context.renderResponse();but it's still not working correct. i go to this page by <t:commandNavigation2 value="Manage" action="managePersons"/>. page even this is displayed. when i click comand nawigation again page is redirecting. when i refresh page from browser redirect not working.
the same was doing with
FacesContext facesContext = FacesContext.getCurrentInstance();
facesContext.getExternalContext().redirect("databaseexception.jsf");
facesContext.responseComplete();any idea? thanks form help. -
Browse-edit pages based on procedures : how to refresh browse page ?
Hi,
i have i browse page based on procedure
to edit record's data i use a separate edit page based on procedure.
how can i refresh data on browse page when back from edit page?yes, no argue , this is a straightforward decision...
i've created VOs on both procedures, then connected them via VL: master for browse , detail for edit, both are single record views
does it change anything? any auto-requery, or something without explicit java call? -
How to redirect from list edit form to another page using jquery in sharepoint 2013
hi friends i have been trying to find a way to redirect from list edit form to another page using javascript and jquery
i found lot of codes online but non of them are working for me.
what i need is i have to save the data in the form and after that it has to redirect to another page. it has to get the url from hyperlink field of the item.
please help me in this regardsNot sure if you have gone through below links:
http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPRedirectWithID
http://blogs.askcts.com/2013/02/18/using-spservices-and-jquery-to-perform-a-redirect-from-a-sharepoint-list-newform-to-editform/
Please ensure that you mark a question as Answered once you receive a satisfactory response. -
How to make a redirect without auto-redirect from the portlet "edit" mode?
How to make a redirect without auto-redirect from the portlet "edit" mode?
I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?Heay.....this worked for me.
I am able to change the mode programatically from edit to show.
HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
Thanks
~Neeraj Sidhaye
Try_Catch_Finally @ Y !
ExtremePortal @ Gmail Dot Com -
How to pass on variables while redirecting from BSP to HTML page.
Hi all,
I have two BSP pages - BSP1, BSP2. When I click a submit button on BSP1, it should call BSP2 wherein BSP2 will work silently behind the scenes and redirect some variable values through hidden form fields to BSP1 back.
User will not see BSP2 in fact. He just deals with BSP1, but when he clicks the submit button on BSP1, it silently calls BSP2, and then BSP2 will process something behind the scenes and sends back values through hidden form fields to BSP1 by means of redirection. After redirection from BSP2 to BSP1, I am not getting the hidden fields in BSP1. From the BSP1, I am trying to get the hidden fields of BSP1 using:
Here is how my code in BSP2 (redirecting to BSP1) looks like:
<b>BSP2 : Layout:</b>
<input type="hidden" name="hf1" value="vicky">
<b>BSP2 : OnInitialization:</b>
response->redirect( url_BSP1 ).
navigation->response_complete( ).
But when I am doing this, the hidden form fields from BSP2 are not being passed to BSP1 back.
I am trying to get the form values <b>in BSP1</b> as below:
<b>BSP1 : Layout:</b>
<%
data: hfield type string.
hfield = request->get_form_field('hf1').
%>
I even tried the above code in onRequest, and onInitialization sections. But I am getting nothing.
Please give me some ideas on how to deal with the redirection and get the hidden values out of that.
Thanks in advance.
Cheers,
Vicky.Hi,
There are different ways to do it, but let's pick this one. It closes the popup. If you need additional things to be done, you can make a form with all hidden fields, submit that form, do the same close and do whatever you need in the inputprocessing
<html>
<head>
<title>title</title>
<script language="javascript">
function init() {
<%if count eq 1.%>
opener.document.form.F<%=field%>.value = '<%=value.%>';
close();
<%else.%>
<%endif.%>
</script>
</head>
<body onLoad="init();">
</body>
</html> -
I am running OS10 on a MAC and every time I go too another web site (most of the time) a new tool bar pops up that says " Firefox prevented this page from automatically redirecting to another page" and on the other end I must hit the button ALLOW because it is usually screwing me up and Iwant to disable it or use another browser
Options > Advanced > General, un-check "Warn me when web sites try to redirect or reload the page"
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.''' -
When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
"Firefox prevented this page from automatically redirecting to another page...[Allow].
How can I stop this?# Press Alt+T
# Select Options
# Select Advanced Panel
# Select General Tab
# You will see option "Warn me when websites try to redirect or reload page"
# Uncheck it as given in the screenshot.
<img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.'' -
Ever since the last update, I'm having problem accessing my e-mail account. I keep getting an annoying bar at the top of the screen "Firebox prevented this page from automatically redirecting to another page." I have to keep hitting the allow button, sometimes twice. And when I do get into the accounts the bar jumps in and out every time I open a new e-mail, or delete and old one.
How do I get rid of this. I've had this account for years, with a very reputable private e-mail provider. This is nuts.See:
*Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
See also:
*https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
*http://kb.mozillazine.org/accessibility.blockautorefresh
*http://kb.mozillazine.org/Accessibility_features_of_Firefox
Maybe you are looking for
-
Error while Activating a process chain
Hi, I have just modified the existing process chain with the new info package for loading into ODS and then delta update into the Info Cube. when i am clicking on the option schedule and activate. Its giving error as : "InfoPackage ZPAK_49RJW545FSO2M
-
PURPOSE OF RV_PRICE_PRINT_ITEM
WHT IS THE PURPOSE OF FUNCTION MODULE RV_PRICE_PRINT_ITEM? CAN I USE IT IN REPORTS OR ONLY IN FORM PRINTING.
-
Getting an error in while transfer the data to SAP
Hello Everyone, I am getting an error <SAP:Category>XIServer</SAP:Category> <SAP:Code area="MAPPING">JCO_COMMUNICATION_FAILURE</SAP:Code> <SAP:P1>Error opening an RFC connection.</SAP:P1> when i was transfing the data to SAP R/3. But i found th
-
Hi all, in a scenario I have to do some complex summarizations and mappings and so on. Therefore I implemented an ABAP Mapping within a class. For the conversion I use a simple Transformation to have the data after it in an internal table. Then I'm d
-
Storing ROWID in a ROW_ID field.
I'm attempting to restore a ROWID after an import/export and i'm unsure if this is the correct way to it. As well i think there may be something wrong with my function that restores the poper ROWID's. Is there a better way to do this? Is my function