How to redirect a workfow to another page after it initiated through a post in a form html?
have this but it isn't work...
<form action="/etc/workflow/instances" method="post" enctype="multipart/form-data">
<input type="hidden" name="_charset_" value="utf-8"/>
<input type="hidden" name="model" value="/etc/workflow/models/buy-album/jcr:content/model"/>
<input type="hidden" name="payload" value="${currentAlbum.currentNodePath}"/>
<input type="hidden" name="payloadType" value="JCR_PATH"/>
<input type="hidden" name=":redirect" value="/content/discostore/en/homepage/discDetailPage/californication_red_hot.html" />
<input type="submit"/>
</form>
Where are you putting this code? In a Before Header section?
I can see there are some possible compilation issues with the code. I think you'd better use:
BEGIN
IF APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=> 'Customer')
THEN
htp.init;
owa_util.redirect_url('f?p=&Custlogin.:1:&APP_SESSION.');
END IF;
END;
Anyway, I would use branches to achieve what you need in your page. One branch for each type of user you would like to redirect... so, for example sending user to page "x" if condition above is met:
-Condition Type=PL/SQL Expression
-Expression=APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=> 'Customer')
Edited by: Kleber M on May 23, 2013 12:00 PM
Similar Messages
-
How can i insert to word number pages after 6 pages but considering the pages before
how can i insert to word number pages after 6 pages but considering the pages before.
I assume this is Microsoft Word, and you want the first six pages to have no footer, subsequent pages to have a footer showing the page number.
1. Insert a section break after the first six pages.
2. Insert page numbers. This will add a footer with page numbers to both sections.
3. Unlink the section 2 footer from the section 1 footer. [Click in the footer area, uncheck Link to Previous in the Header and Footer toolbar.]
4. Delete the page number from the section 1 footer.
Your document will now show page numbering on all pages starting with section 2. -
How do I spot a command in pages after the app has locked up?
how do I spot a command in pages after the app has locked up?
I am not sure what you mean by "spot a command" but in any case this question would likely be better lodged in the iWork Discussion.
-
How can redirect the errorPage to another frame?
Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
<form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
Any suggestions? Thanks in advance!Here's an idea. Have your error page (in the hidden frame), look something like this:
<%
String strErrorMessage = ... // get your error message text here
%>
<html>
<head>
<script language="JavaScript">
parent.mainframe.location = "ErrorPage.jsp";
</script>
</head>
</html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
I hope that gives you some ideas!
Michael -
How can I call AM from another page
Hi,
I have come across a situation which I am not sure how to solve it. Here is the issue. I have a custom requirement to add another page to an already existing custom page. The first page used to hold the data and commit buttons however because of requirements, we want users to add some comments on the second page and then save the data. In other words the save button is now suppose to move to the second page.
The dilemma I have is that the method that used to be called from the PFR CO of Page 1 was linked to page 1 AM which had that commit method.
I still want to re-use the method from the Page 1 AM since there is a lot of logic involved. How can I call that method while I am in my second page from my CO?
I am using setForwardURL and I am retaining AM from page 1.
Also, if this is not feasible what are other alternatives. Any ideas would be appreciated.
Edited by: user501998 on Jan 7, 2010 12:21 AMHi,
Can you give me an example? I mean do I just call the AM like in the example below...in my PFR...of Page 2 Controller. I thought this would be giving me an error method not found or something since it would be looking at the AM of my current page. I will try it and see but if there is another syntax can you please provide it.
Thanks
Partial code from PFR of Page 2
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if(eventName.equals("save"))
if ( respName.endsWith("Admin") )
am.invokeMethod("commitTransaction"); --- This is the AM Method in Page 1...
} else
throw new OAException("Shipper successfully updated.", OAException.CONFIRMATION); -
How to propagate an event to another page.
Hi guys,
I have a page (say Main.jsp), which will instantiate another page(say Sub.jsp) when is loaded on screen. Means at the same time user can see both Main.jsp & Sub.jsp on the same screen. (Sub.jsp is called by Main.jsp). There is a button on Sub.jsp and
I want to handle the �onclick� event in Main.jsp in stead of in Sub.jsp.
On the other words, I want to propagate the button clicked event from Sub.jsp to Main.jsp Any idea for this?
ThanksYes this a button click, which is suppose to handle by
java script on another page.
Here is sample code from both Main.jsp & Sub.jsp and
i did what you suggested(as follow) but didn't work and received an error.
Sub.jsp
<HTML>
<input type="button" id="BtnEnter" onclick="BtnEnterClicked()">
</HTML>
Main.jsp
<HTML>
<form name="formMain">
</form name="formMain">
<SCRIPT>
function BtnEnterClicked(){
alert('Button ENTER in Sub.jsp is clicked');
</SCRIPT>
</HTML>
Please let me know if i missed something. -
How to clear the data in my page after user enter submit button
hi......
how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.Hi Nazeer,
Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
One more thing if you will clear on the second click of a button how will you update your record??
Regards,
Reetesh Sharma -
How do you bypass the Welcome\Registration page after a Netinstall complete
Hi all,
I am currently trying to use Snow Leopard server 10.62 to deploy Snowleopard to a number of MacBooks.
I have a list of apps to go in to the build but for now i need to get past the first stage.
first stage being, It is possible to bypass the Welcome \ Registration pages after a Netinstall deployment.
i wish to use a clean image with a computer name given from the SIU and bind in to AD
all this seems to fail but i can get an automated build but then i have to go through all the pages of registration...how do i get around this?
I have also played about with NetRestore images but in the Define NetRestore Source in the SIU i have not idea what that ASR:// URL should be so it instantly failsI have had success with the following SIU 2 workflow:
- Define Image Source (select a master hard drive to be cloned)
- Create Image (Netrestore type)
Note that I am using "Define Image Source" NOT "Define NetRestore Source".
Neither "Apply System Configuration Settings" nor "Enable Automated Installation" are currently functional in Snow Leopard. Do not go there.
Good luck. -
I don't want Firefox to recover pages after a sudden power outage causes the computer to shutdown - how can I stop it?
See:
*http://kb.mozillazine.org/Session_Restore
*https://support.mozilla.org/kb/Session+Restore -
How to auto log out of a page after a minute
I have a page with a webcam, the webcam streams in flash
where I cannot really set it to stop after a certain time. So if
someone wants they can leave it running all day etc. I'd like to
set it that the page will wait about a minute or 2 and then it will
auto forward to another page which will give the option for going
back to the original page to view the cam etc. this way if someone
leaves the computer or page open they will not chew up all the
bandwidth of the cam.
What would be the best way to do that?
Also for extra credit, is it possible in CFMX to encrypt the
source code of the flash player so that users cannot copy and paste
the code of the cam on their website?
Thanks
YankeeThanks guys you really helped me! And I changed my password
Chris I figured that but just wanted to double check. My cousin once logged in on my iPod and when I tried to download something for myself(he was still logged in) it immediatrely asked me for HIS password. Gave me NO CHANCE.
As a reward guys here's the rest of the story:
I am AGAINST posers and showoffs so when I walked into the store and saw a picture of a stereotypical thug posing and flipping off the camera in the iPhone's Camera Roll I decided to have some fun. He was trying to look tough and disrespectfully had his middle finger in the foreground of the pic.
I downloaded Glow Draw app and loaded his pic. I then wrote "nerd" on the pic and saved it back to the Camera Roll. So next time a customer see's the "thug" they will laugh. I was in a hurry and ran out of the store.... leaving me in the curremnt predicament.
Foolish? maybe. Karma? IDK. -
How to redirect user on or before page load
Hi,
what is best practice for redirecting a user when he opens a specific page.
I have a solution with a custom master page and several webparts. When a user opens my solution (every page based on the same master).
What i need to do now is, when the user opens the page i have to check before rendering the page and the webparts some criteria. When the user is not allowed to open the page i need to redirect him to another location.
How could q redirect a user in a sharepoint solution?
I thought about some ways:
- develop a webpart (without any rendering) and put in onprerender event the check and the redirect
- create a codebehind for the masterpage
- create an httpmodule
What would you prefer? How could i solve it?
Best Regards
Bog
Developers Field Notes | www.bog1.deHi,
In SharePoint on-premises, I suggest you use HttpModule and HttpHandler to achieve it.
http://sharepointgotchas.wordpress.com/tag/httpmodule/
http://zoomsharepoint.blogspot.com/2009/09/redirect-page-using-http-module.html
In SharePoint online, JavaScript is a better choice, we can add some JavaScript code in the master page.
http://sharepointtipsntricks.blogspot.com/2009/06/redirect-to-another-aspx-using.html
Best Regards
Dennis Guo
TechNet Community Support -
IS IT POSSIBLE TO REDIRECT THE OUTPUT TO ANOTHER PAGE?
Hi all,
Is it possible to redirect the output when I excute my query in iSQL*plus to another predifined html page?
If yes how do I do this?
Thanks a millYou could do this..just read on..
It would generate a html page for you...and..so on..!
In addition to plain text output, the SQL*Plus command-line interface enables you to generate either a complete web page, or HTML output which can be embedded in a web page. You can use SQLPLUS -MARKUP "HTML ON" or SET MARKUP HTML ON SPOOL ON to produce complete HTML pages automatically encapsulated with <HTML> and <BODY> tags.
By default, data retrieved with MARKUP HTML ON is output in HTML, though you can optionally direct output to the HTML <PRE> tag so that it displays in a web browser exactly as it appears in SQL*Plus. See the SQLPLUS MARKUP Options and the SET MARKUP command for more information about these commands.
SQLPLUS -MARKUP "HTML ON" is useful when embedding SQL*Plus in program scripts. On starting, it outputs the HTML and BODY tags before executing any commands. All subsequent output is in HTML until SQL*Plus terminates.
The -SILENT and -RESTRICT command-line options may be effectively used with -MARKUP to suppress the display of SQL*Plus prompt and banner information, and to restrict the use of some commands.
SET MARKUP HTML ON SPOOL ON generates an HTML page for each subsequently spooled file. The HTML tags in a spool file are closed when SPOOL OFF is executed or SQL*Plus exits.
You can use SET MARKUP HTML ON SPOOL OFF to generate HTML output suitable for embedding in an existing web page. HTML output generated this way has no <HTML> or <BODY> tags. -
How to redirect to a server busy page when under heavy load
Hello,
I have been doing extensive load testing of a web application using Weblogic
5.10 sp 06. I have found a point where under extremly heavy load the server
just does not respond anymore. Fair enough.
What I want to do is at a certain load level (before it stops responding) I
want to redirect users to a "Server Busy - try again later" page. Is there a
setting in weblogic that allows me to do this ? Or do I need to have other
monitoring software to take care of this ?
Thanks and Regards,
Nick H
Cameron Purdy <[email protected]> wrote:
> Hi Nick,
> Unfortunately, last I check there was no such processing. Weblogic maintains
> a big (2^16) queue that it puts requests into and (if I remember correctly)
> it doesn't gracefully handle overflow. I believe the architecture should
> have been a smaller queue with the overflow condition being
> protocol-specific (such as HTTP doing a "too busy" error).
It is possible to create and use your own execute queue in 6.1 and specify it's
length, so I expected this to happen when queue length reaches this number, but
it didn't.
> Peace,
> --
> Cameron Purdy
> Tangosol, Inc.
> http://www.tangosol.com
> Tangosol: How Weblogic applications are customized
> "NH" <[email protected]> wrote in message
> news:[email protected]...
>> Hello,
>>
>> I have been doing extensive load testing of a web application using
> Weblogic
>> 5.10 sp 06. I have found a point where under extremly heavy load the
> server
>> just does not respond anymore. Fair enough.
>>
>> What I want to do is at a certain load level (before it stops responding)
> I
>> want to redirect users to a "Server Busy - try again later" page. Is there
> a
>> setting in weblogic that allows me to do this ? Or do I need to have other
>> monitoring software to take care of this ?
>>
>> Thanks and Regards,
>>
>> Nick H
>>
>>
Dimitri
-
How to Redirect Customer to a Account Page
I am trying to set up a user log in page where after the user logs in using their user name and password they are then redirected to a User Page where they can update their profile. How do I get the submit button to redirect to a new page?
Thanks!You specify a secure zone landing page in admin under secure zone details.
When customer logs in they'll be taken to that page.
Cheers,
Mario
www.twoblokeswithapostie.com - Talk to us before you tell your clients:
"No, Business Catalyst can't do that." -
How to add a link to another page
Hello,
I am new to Adobe Designer 7.0, I'm liking it so far, I had a question though, I was wondering how I could make a link from one page to another. For instance, I want to have a table of contents and I want the user to be able to click on the word whatever that may be and for it to go to the page which they chose.
I appreciate your responses!!
Mac MendezMac, the best way to do this is use a Button and change it to look like a hyperlink (color, etc.). Add a setFocus JavaScript on the Click event to a field on the page you want it to go to; e.g.,
xfa.host.setFocus("Page3.TextField1");
If there is not a field on the page, make a hidden field for it to jump to.
Maybe you are looking for
-
I cannot update the new software. I receive an error message each time I try to update it I have an iPhone 5, iPad 2, and a windows based PC None of them will allow me to update. My apps are mostly stuck in update status, and even though I have tri
-
This may not work for everyone, but I have been experiencing some slow speeds both wired and wireless in my office. I fixed it by doing the following: 1. Open up a windows pc to the command prompt (start -> run -> cmd )and type: ipconfig -all 2. Make
-
Migrating an Exchange 2010 Generated OAB to Exchange 2013
Hello, I'm trying to find some information on how to migrate the offline address book from Exchange 201o to Exchange 2013, but I'm having a lot of trouble finding anything at all that is of any use, so I was hoping the experts here might be able to o
-
How to use functions in back camera in ipad2
Below is the tech spec for "Back Camera" of iPad2 however there is no info or discussion I could find on "how to use zoom function in still mode", can you help? Back camera: Video recording, HD (720p) up to 30 frames per second with audio; still came
-
How do I import NEF (Nikon RAW file) to iphoto? It fails every time.
When I put my SD in my card reader, iphoto can preview the files on it. They are NEF format- RAW files from my Nikon DSLR camera. But when I try to import them, the import fails. How do I convert each file to JPG's without doing them separately and c