Validation on Application Level?
Hi,
is there the possibility to define a validation on application level? Couldn't find anything.
I thought about a validation on page 0, but page 0 doesn't allow to create validations...
Purpose: I want to validate the Apex_Application.g_fxx arrays. The validation will be the same for all pages.
Thanks for your help
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Hi Vikas,
thanks for the help. Just tried it out, didn't work :-(
It does the redirect, but doesn't show the error message. I assume the g_validation_ids_in_error and g_item_ids_in_error has also to be set. But the redirect isn't good in my case anyway, because the tabular form entries are lost.
But I just found out that APEX_Application.show_error does exactly what I was looking for!
Thanks for your help
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com
Similar Messages
-
No WSDL Validation at Application Level for Enterprise Web Services
Hello community,
We are building Enterprise Web Services in our application running on Netweaver 7.40 and have built several service definitions through the Enterprise Service Builder tool. Ultimately the WSDL file that the builder creates is mapped to Java skeleton classes which define the API for the service endpoints thanks to Netweaver Developer Studios' 'Generate Java Bean Skeleton' functionality. What we noticed was that during the processing of requests, the application was ignoring all validation imposed/defined in the WSDL definition.
We're assuming that this type of validation is part of an operating Web Service implementation on any J2EE Application Container - including Netweaver - and the Container would be responsible for early validation stages of request processing, utilizing the Service definitions.
Is it not part of the JSR-921 specification that compliant applications include a SOAP Processor that parses and validates a SOAP request that is submitted? Where It is part of the responsibility of the SOAP processor upon receiving a Service request to validate and THEN relay the request to the appropriate Service method?
We could potentially validate our own but we have 100's of objects to manually validate against which becomes a very tedious and hard to maintain exercise. It seems redundant and common behavior that should be handled at the Service layer by the SOAP processor within the Container should it not?
Validation capabilities seem to be provided by other vendor products such as Oracle AS and WebSphere. Does anyone know if Netweaver offers this and if so how would we go about implementing it through configuration or otherwise?
Thank you!
HanifHi,
If WSNavigator is not asking for password then endpoint is not configured for user/password so go ahead and use this wsdl in .Net application, it should work fine,
Just make sure that session is not stored in WSNavigator and that's why it is not asking for user/password. I believe if you open wsdl with binding it should ask for user/password.
Regards,
gourav -
How to define a application level (or page 0) plsql validation
I have a selection region on page 0, which I use on a lot of pages. I want to define plsql validation for the items in that region.
I have already a database package with the validation code.
Now I want to define each validation only once and not on each page.
How can I do this.Funny thing happened to me on the way to creating my scenario on the apex.oracle.com site. I actually got it to work there. Once I attempted to simplify my scenario to reproduce it on apex.oracle.com, I figured out a simple step (hack?) that I was missing. I put that back into my site and it's working there now as well.
If it's useful for others who attempt to do something like this, I needed to create a page-level process which doesn't really do anything except have a "NOT NULL" condition of the APP_ERROR_MSG application-level item and then use the "&APP_ERROR_MSG." syntax in the "Success Message" of that process. In essence, I'm telling the process to display the error as a success message when the APP_ERROR_MSG item is not null.
I feel this is a hack because I would prefer to have this error message processing at the application level rather than at the page level. I was forced to put this process at the page level rather than at the application level because (as of ApEx 2.2) application-level processes do not have a "Success Message" option, only an "Error Message" option, while page-level process have both.
Maybe my "fix" is truly a hack and I would love to hear that in order to get a better solution, that is more generic and application-level based. My sample app is at http://apex.oracle.com/pls/otn/f?p=32483:1 with the username of "devguest" and the same as the password.
I look forward to hearing some thoughts. -
Work status at application level
Hi Team
Can any one explain purpose of keeping dimension members in work status settings where dimensions are not relevent for work status at application level?Hi Miguel,
You are comparing work status and the validation rules. However, these 2 are completely different functionalities.
For maintaining validations, please take a look at the below links from help.sap:
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/72/027eddf803405eb131738b655408ce/content.htm
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/d9/7e49e5b686462a9f2a2d38c98b8446/content.htm
For work status, please refer to the below links from help.sap:
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/f8/d51b881cfa4c5992de481ccfa05db3/content.htm
http://help.sap.com/saphelp_bpc75_nw/helpdata/en/75/712b5c7be845cbb1e76cfe78650343/content.htm
Hope this helps. -
%1 is not a valid Win32 application
Hello,
I'm trying to compile and run a tutorial using PKCS11 for tokens. Here's the code I'm using
import iaik.pkcs.pkcs11.Module;
import iaik.pkcs.pkcs11.Slot;
import iaik.pkcs.pkcs11.Token;
import iaik.pkcs.pkcs11.TokenException;
import iaik.pkcs.pkcs11.TokenInfo;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
## Special License Rights - Contract #
## WARNING: Do not use, modify or deliver without written permission
## from Harris Corporation
* FILE: SmartCardTutorial.java
* Copyright (C) 2011 Harris Corporation. All rights reserved.
* CLASSIFICATION: Unclassified
* @author <a href="mailto:[email protected]">kjones34</a>
public class SmartCardTutorial
private Module pkcs11Module;
public static String DLL = "C:\\Windows\\system32\\acpkcs211.dll";
public SmartCardTutorial(String librarayPath)
try
pkcs11Module = Module.getInstance(librarayPath);
pkcs11Module.initialize(null);
catch (IOException ex)
Logger.getLogger(SmartCardTutorial.class.getName()).log(Level.SEVERE,
null,
ex);
catch (TokenException ex)
Logger.getLogger(SmartCardTutorial.class.getName()).log(Level.SEVERE,
null,
ex);
public Slot[] getTokenSlots()
throws TokenException
return pkcs11Module.getSlotList(Module.SlotRequirement.TOKEN_PRESENT);
public void printTokenInfos()
throws TokenException
Slot[] slots = getTokenSlots();
if (slots.length == 0)
{ // No tokens connected
System.out.println("Sorry, Couldn't find any token");
else
// Let's get the first slot
Slot selectedSlot = slots[0];
// Let's get the connected token
Token token = selectedSlot.getToken();
// Get the token infos
TokenInfo tokenInfo = token.getTokenInfo();
System.out.println("Token : " + tokenInfo.getLabel());
System.out.println("Vendor : " + tokenInfo.getManufacturerID());
System.out.println("Serial Number : " + tokenInfo.getSerialNumber());
* @param args
public static void main(String[] args)
SmartCardTutorial sct = new SmartCardTutorial(DLL);
try
sct.printTokenInfos();
catch (TokenException e)
// TODO Auto-generated catch block
e.printStackTrace();
}and here's the error I get:
Jun 22, 2011 3:35:21 PM SmartCardTutorial <init>
SEVERE: null
java.io.IOException: %1 is not a valid Win32 application.
C:\Windows\system32\acpkcs211.dll
at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.connect(Native Method)
at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.<init>(PKCS11Implementation.java:166)
at iaik.pkcs.pkcs11.wrapper.PKCS11Connector.connectToPKCS11Module(PKCS11Connector.java:75)
at iaik.pkcs.pkcs11.Module.getInstance(Module.java:202)
at SmartCardTutorial.<init>(SmartCardTutorial.java:39)
at SmartCardTutorial.main(SmartCardTutorial.java:89)
Exception in thread "main" java.lang.NullPointerException
at SmartCardTutorial.getTokenSlots(SmartCardTutorial.java:59)
at SmartCardTutorial.printTokenInfos(SmartCardTutorial.java:65)
at SmartCardTutorial.main(SmartCardTutorial.java:92)I'm not familiar with this error and I'm not sure where to start looking to fix the problem.
Has anyone encountered this before?Hi,
You should check the DLL you have. As far as I can tell, this error is coming from the Win32 LoadLibrary call in the iaik native code that is loading the P11 library. I have tried the following code on my system and it works fine.
import iaik.pkcs.pkcs11.Module;
* @author sfarmer
public class SCardToken {
private final static String DLL_PATH = "./acpkcs211.dll";
private Module p11;
* @throws Exception
public SCardToken() throws Exception {
p11 = Module.getInstance(DLL_PATH);
p11.initialize(null);
System.out.println(p11.getInfo());
public static void main(String[] args) throws Exception {
new SCardToken();
}Output:
Cryptoki Version: 2.11
ManufacturerID: ActivIdentity
Library Description: ActivIdentity Cryptoki Lib SDKThis is where you are getting your IOException from:
* Load the PKCS #11 DLL
hModule = LoadLibrary(libraryNameStr);
if (hModule == NULL) {
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
0, /* Default language */
(LPTSTR) &lpMsgBuf,
0,
NULL
exceptionMessage = (char *) malloc(sizeof(char) * (strlen((LPTSTR) lpMsgBuf) + strlen(libraryNameStr) + 1));
strcpy(exceptionMessage, (LPTSTR) lpMsgBuf);
strcat(exceptionMessage, libraryNameStr);
throwIOException(env, (LPTSTR) exceptionMessage);
/* Free the buffer. */
free(exceptionMessage);
LocalFree(lpMsgBuf);
return;
}Cheers,
Shane -
How to keep an application level object running with SunIDM?
We are working on intergrate a gmail project with SunIDM. We need an application level object running with SunIDM so it will maintain a token generated from Gmail side. In anther servlet project, I had this object saved in the attribute of the ServletContext, then other session level servlet could share this attribute anytime. Is there a way to store attribute in Servlet Context and have it shared by different user session in SunIDM? I have been reading documents and searched this forum, haven't find any topics related how to maintain an application level object live. Hopefully that I can get some hint here.
Thank you so much.Paul, Thank you so much for the further explaination. I don't think it will work since the token generated from gmail will expire every 24 hours.
We are using the gdata library published from by gmail people, and I create a new UserService object and have it run in the application level. The UserService object will generate a token and renew it every 24 hours behind the scene. Here is how I implement it in my Servlet project:
//to have a UserService object running at the application level:
public class GmailUserService extends HttpServlet {
public void init(ServletConfig config) throws ServletException{
super.init();
userService = new UserService(myApplication);
config.getServletContext().setAttribute("gmailUserService", userService);
//to access this UserService object from other servlet in each user session:
UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
Gmail will trigger an error if we create a new UserService object for each user. They recommend to have all the user to share one UserService object. I am looking for similar approach in SunIDM.
Thank you again, Paul, for trying to help. -
Session time out when working in application level
Hi
We are upgraded our PROD environment from 11.5.10.2 to R12.1.3
When end user working at application level then it is throughing the session time out error, end user is not idle state he active and working on application level
I have checked the profile ICX:Session Timeout it is 30
Thanks
ShaikHi;
Please see:
ICX:SESSION TIME OUT
Re: Inccreasing the timeout parameter for the Oracle R12 session
Also see:
How AutoConfig sets ICX: Session Timeout [ID 307149.1]
How To Manage Timeout at Responsibility Level [ID 412224.1]
Regard
Helios -
Need help for icloud photo stream, have activated ps on iphone 4 and set up icloud back up for email, contacts, iwork, and find my ihone. Need to find photos that we thought were being saved/shared as well but evidently not. Found on another search that I may need the icloud control panel so tried to download it but when try to install i get, C:\Users\Downloads\icloudsetup.exe is not a valid Win32 application. I am using a Toshiba laptop with windows 7, which the system requirements are met. I am new to Apple stuff, so any and all help would be greatly appreciated.
It suggests the installer is getting damaged during the download.
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/quicktime/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
How to set a page template as an "application level default template"?
Hi,
For some reason, my default application level page template is not 'default' anymore. is there a way to set that? Thanks.See Home>Application Builder>Application 999999>Shared Components>Themes>Create / Edit
Jeff -
Error message, not a valid win32 application
Please help if you can, because I am new to computers. I have downloaded itunes (setup), which is only 11 meg, but it should of been 56 meg. When I click on it now, it say's run, then itunes setup exe is not a valid win 32 application.
I have tried this about 4 or 5 times, even deleting the whole file and re-installing several times. Please help, many thanksHave you had a look at this troubleshooting page? It may be of some help: iTunes: Windows reports that iTunesSetup.exe is not a "valid Win32 application"
-
ITunes set up gives an error message saying not a "valid win32 application"
I am using Windows 7 and trying to download iTunes, but when I try to open the iTunes set up it gives an error message saying that it is not a "valid win32 application". It does the same for downloading quicktime. I have no idea what this means or what to do about it.
That suggests that the installer is getting damaged during the download.
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
When ntrying to istall itunes on my windows 7 computer I get the error message pop-up "itunes setup is not a valid 32bit application" . Can anyone help please?
Let's try the following document with that one:
iTunes: Windows reports that "iTunesSetup.exe is not a valid Win32 application" -
it says that the download for the new itunes is not a valid Wn32 application. what do i do?
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
When I downloaded the Firefox 4 installer and tried to install the software, an error message appeared that the application was not a valid win32 application. have deleted the file, re-downloaded it but with same effect. Therefore I cannot install Firefox 4
I have Windows 7 Ultimate 64 bit, 4 GB internal memory,
Intel i7 processor. language EnglishIt is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.
Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
See "Disable virus scanning in Firefox preferences - Windows"
* http://kb.mozillazine.org/Unable_to_save_or_download_files -
I have switched offices and computer. may I still access my old tunes? next, I get an error when trying to download Itunes to my new compuet: c:\DocumentsandSettings\aabugattas\desktop\itunessetup.exe is not a valid Win32 application How can i download it?
In the course of your troubleshooting to date have you worked through the following document?
iTunes: Windows reports that "iTunesSetup.exe is not a valid Win32 application"
Maybe you are looking for
-
Can no longer play Google Play Movies on tv
Prior to the 4.4.2 update to the Xperia Z tablet, I had no issues connecting and viewing Google Play Movies on my tv, using the MHL adapter. Now, it gives me an error: Premium content can't be played on this screen because it is not secure. Does anyo
-
Yosemite for iMac 21.5 - When exactly?
Hello. First of all, I know I should never pay attention to anything on YouTube. However, I was there, and I did see that "Yosemite is finally here." I doubt this is so, because I do not see anything saying so on the Apple website. Does anyone hav
-
My requirement is to convert Spool to PDF then send as mail attachment. I am using function module SO_DOCUMENT_SEND_API1 to send the email. Email functionality is working fine.. But I have issues in the PDFu2026 My spool output is more than 255 chara
-
Jframe seticonimage; what is this error?!
java.net.URL imgURL = this.class.getResource("images/FD.jpg"); if (imgURL != null) { this.setIconImage(new ImageIcon(imgURL).getImage()); } else { System.out.println("not found"); }THE ERROR \DefaultFra
-
IPhoto "importing" spurious non existing photos
iPhoto constantly tries to "import" 2 non existing photos every time it opens. I tried import as an answer to the - do you wish to import? question as well as No in answer to the annoying start-up question, but all to no avail. How do I stop this ann