Urgent Pls... Textfield validation
Hi All,
In a textfield its should accept two conditions i.e.,
1) It should accept 10 digits or
2) In a field it should accept two chars and 5 digits. or than that its should pop up an alert.
I have tried setting patterns and worte the script in exit event:
if(this.rawValue == this.formattedValue)
xfa.host.setFocus(this.name);
But the setFocus is going again and again.
Patterns: text{AA99999}|text{9999999999}
Please help.
Thanks in advance
Regards,
Apurva
Hi Apurva,
You need regular expression for this. Remove all the validations of the text field first i.e display,edit,validation,data.
In the exit event of the field put the following script.
var vPattern = /^([a-zA-Z]{2}[0-9]{5})$|^([0-9]{10})$/;
var result = vPattern.test(this.rawValue);
if (result == false)
xfa.host.setFocus(this.name);
Thanks,
Bibhu.
Similar Messages
-
I have a MacBook Pro 13.3 OS- MAC OS X LION.
Whenever I am staring the computer, it says You need to restart your computer by pressing the power button.
I did this number of times and everytime it freezes to the same screen.Solution needed urgently pls.
Thank you for any help in this regard that comes fast.The details of the kernel-panic report is as follows-
Interval Since Last Panic Report: 1458653 sec
Panics Since Last Report: 6
Anonymous UUID: 70BA6A**************************************************
Sun Sep 16 23:00:13 2012
panic(cpu 0 caller 0xffffff80002c4794): Kernel trap at 0xffffff8000290560, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000800028, CR3: 0x000000000a509005, CR4: 0x00000000001606e0
RAX: 0x0000000000000001, RBX: 0x0000000000820000, RCX: 0xffffff801122dc40, RDX: 0x0000000000020501
RSP: 0xffffff80ef3d3da0, RBP: 0xffffff80ef3d3dc0, RSI: 0x000000002b1d78b6, RDI: 0xffffff800342d280
R8: 0xffffff80ef3d3f08, R9: 0xffffff80ef3d3ef8, R10: 0x000000010d901000, R11: 0x0000000000000206
R12: 0xffffff800342d280, R13: 0x0000000000000000, R14: 0xffffff8011cd6500, R15: 0x0000000000800000
RFL: 0x0000000000010206, RIP: 0xffffff8000290560, CS: 0x0000000000000008, SS: 0x0000000000000000
CR2: 0x0000000000800028, Error code: 0x0000000000000000, Faulting CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff80ef3d3a50 : 0xffffff8000220792
0xffffff80ef3d3ad0 : 0xffffff80002c4794
0xffffff80ef3d3c80 : 0xffffff80002da55d
0xffffff80ef3d3ca0 : 0xffffff8000290560
0xffffff80ef3d3dc0 : 0xffffff800026c9c3
0xffffff80ef3d3f40 : 0xffffff80002c3fbb
0xffffff80ef3d3fb0 : 0xffffff80002da481
BSD process name corresponding to current thread: fsck_hfs
Mac OS version:
11E2620
Kernel version:
Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012; root:xnu-1699.31.2~1/RELEASE_X86_64
Kernel UUID: 25EC645A-8793-3201-8D0A-23EA280EC755
System model name: MacBookPro9,2 (Mac-6F01561E16C75D06)
System uptime in nanoseconds: 4850001132
last loaded kext at 1796984176: com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.7f2 (addr 0xffffff7f80e16000, size 57344)
loaded kexts:
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.7f2
com.apple.driver.AppleUSBTCButtons 227.6
com.apple.driver.AppleUSBTCKeyEventDriver 227.6
com.apple.driver.AppleUSBTCKeyboard 227.6
com.apple.driver.AppleIRController 312
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.2.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCISerialATAPI 2.0.3
com.apple.iokit.IOAHCIBlockStorage 2.0.4
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AirPort.Brcm4331 560.7.21
com.apple.driver.AppleSDXC 1.2.2
com.apple.driver.AppleUSBHub 5.0.8
com.apple.iokit.AppleBCM5701Ethernet 3.2.4b8
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleAHCIPort 2.3.0
com.apple.driver.AppleUSBEHCI 5.0.7
com.apple.driver.AppleUSBXHCI 1.0.7
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.3
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.driver.AppleUSBBluetoothHCIController 4.0.7f2
com.apple.iokit.IOBluetoothFamily 4.0.7f2
com.apple.driver.AppleFileSystemDriver 13
com.apple.driver.AppleUSBMultitouch 230.5
com.apple.driver.AppleThunderboltDPInAdapter 1.8.4
com.apple.driver.AppleThunderboltDPAdapterFamily 1.8.4
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.5
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.driver.AppleUSBMergeNub 5.0.7
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.driver.AppleThunderboltNHI 1.6.0
com.apple.iokit.IOThunderboltFamily 2.0.3
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IO80211Family 420.3
com.apple.iokit.IOEthernetAVBController 1.0.1b1
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.iokit.IOUSBFamily 5.0.8
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.5
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4 -
Global_attribute20 field in ap_payment_schedules_all table - Urgent Pls
All,
Version: 11.5.10.2
I created an invoice, from the 'Scheduled Payments' tab I checked the 'Hold' flag. After the flag is checked in the UI, I noticed the global_attribute20 field in the ap_payment_schedules_all updates to 'EP' along with the hold_flag='Y'. I want to know the significance of global_attribute20 and what are all the other possible values of this field like 'EP'??
this is quite urgent, pls help.
rgds
senHave you tried to enable trace on this form to find out how this column gets populated?
FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1] -- 3. How does one enable trace in the Oracle Application screens / forms?
Can you reproduce the issue with other invoices?
Do you have any other instance where you can try the same and see if the issue is reproducible?
Thanks,
Hussein -
Routine in Bex - urgent pls.
I have 2 columns A and B in the report:
A B C
1234 1234 1234
5903 0 5903
0 3287 3287
I want to get the column C.
So, the condition for the column C would be :
if A<>0 and B <>0 then A
else if A==0 then B
else if B==0 then A
I heared that this can be done by routines . I need the code to do this . Also let me know where to put the code.
This is urgent pls.
VaishaliHi,
No need to write coding.....directly u can get these by unsing formula as told in the above forum....there u get all these conditions in Boolean operators. so just make use of them..
Thanks & Regards -
UI Datepicker and Spry textfield Validation
Hi, I am having a problem with using the UI Date picker and Spry textfield Validation together. I have created a sample form: 2 input boxe, the test box has the datepicker and spry validation and test2 has the date picker only,one submit button and some php code that echos the boxes values on submit.
My date picker is date formated as 'yy-mm-dd' for four digit year. My spry validation is formated 'yyyy-mm-dd' with validate on submit.
Now when I click on the test input box the datepicker comes up normally and i select a date. I then select the date on test2. Once I click the submit button the test field with spry validation come back saying a value is required and nothing else happens.
I was playing around and trying other things to get it to work and I noticed that when I select the test inputbox and the calander pops up if I enter some numbers into the text box then select a date from the datepicker then enter a date in the test2 inputbox and hit submit it works.
So it appears to me that the validation is not reading anything in the test field when I just select a date. Why is that? When I select a date it shows a date in the inputbox. It makes it hard to use the datepicker on a form.
Any help would be a preciated. Code is below.
Thanks Winrol
<?php echo "Test box 1 value = ". $_POST['test']. "<br/>" ?>
<?php echo "Test box 2 value = ". $_POST['test2'] ?>
<!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=UTF-8" />
<title>Untitled Document</title>
<script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet" type="text/css" />
<link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet" type="text/css" />
<link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet" type="text/css" />
<link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2137022: #datepicker */
#datepicker .ui-widget {
font-family: inherit;
#datepicker .ui-datepicker {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
#datepicker .ui-datepicker-title {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 1.1em;
color: #000;
font-weight: normal;
line-height: 1.8em;
#datepicker .ui-state-default, .ui-widget-content .ui-state-default {
border-color: #e6e6e6;
background-color: #e6e6e6;
color: #555555;
#datepicker .ui-state-default, .ui-state-default a {
color: #555555;
#datepicker .ui-state-highlight, .ui-widget-content .ui-state-highlight {
border-color:#FCEFA1;
background-color:#FCEFA1;
color:#363636;
#datepicker .ui-state-active, .ui-widget-content .ui-state-active {
border-color: #FFFFFF;
background-color: #FFFFFF;
color: #212121;
#datepicker .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus
border-color: #5F5F5F;
background-color: #5F5F5F;
color: #212121;
#datepicker .ui-widget-header
border-color: #5F5F5F;
background-color: #808080;
border-width: 1px;
/* Text attributes for the Days of Week Text */
#datepicker .ui-datepicker table th
font-size: .8em;
color: #000;
font-weight: bold;
/* EndOAWidget_Instance_2137022 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2137022" binding="#datepicker" />
</oa:widgets>
-->
</script>
<script type="text/javascript">
// BeginOAWidget_Instance_2137022: #datepicker
$(function() {
$('input').filter('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
// EndOAWidget_Instance_2137022
</script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-color: #FFC;
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>
<label for="test">test</label>
<span id="sprytextfield1">
<input name="test" type="text" class="datepicker" id="test"/>
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
<p>
<label for="test2">test2</label>
<input name="test2" type="text" id="test2" class="datepicker" />
</p>
<p onclick="<?php echo $_POST['test'] ?>">
<input type="submit" name="submit" id="submit" value="Submit" />
</p>
</form>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"yyyy-mm-dd", hint:"yyyy-mm-dd"});
</script>
</body>
</html>This does work
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet">
<link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet">
<link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet">
<link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet">
<link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet">
</head>
<body>
<form action="" method="post">
<span id="sprytextfield1">
<label for="mydate">Date:</label>
<input id="datepicker" name="mydate" type="text">
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
<div id="datepicker" class="ui-glass-gradient ui-80TopTo0Bottom-gradient-header"></div>
<input name="mysubmit" type="submit">
</form>
<script src="SpryAssets/SpryValidationTextField.js"></script>
<script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js"></script>
<script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js"></script>
<script>
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"mm/dd/yyyy", validateOn:["change"], useCharacterMasking:true});
$(function() {
$('#datepicker').datepicker({ showOtherMonths: false });
</script>
</body>
</html>
Gramps -
i have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier
I have recently started having this problem in PSE8. The Adobe workaround
did work, but I don't fancy having to re register each time I use it.
What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
Hope this helps -
Hi, how can I modify this code for the spry textfield validation.js file? My text field is set to yyyy-mm-dd. When I enter a date and hit the submit button all works well but, how can I modify this portion of the .js file so the date yyyy-mm-dd is not less than today's date?
===================
'date': {
validation: function(value, options) {
var formatRegExp = /^([mdy]+)[\.\-\/\\\s]+([mdy]+)[\.\-\/\\\s]+([mdy]+)$/i;
var valueRegExp = this.dateValidationPattern;
var formatGroups = options.format.match(formatRegExp);
var valueGroups = value.match(valueRegExp);
if (formatGroups !== null && valueGroups !== null) {
var dayIndex = -1;
var monthIndex = -1;
var yearIndex = -1;
for (var i=1; i<formatGroups.length; i++) {
switch (formatGroups[i].toLowerCase()) {
case "dd":
dayIndex = i;
break;
case "mm":
monthIndex = i;
break;
case "yy":
case "yyyy":
yearIndex = i;
break;
if (dayIndex != -1 && monthIndex != -1 && yearIndex != -1) {
var maxDay = -1;
var theDay = parseInt(valueGroups[dayIndex], 10);
var theMonth = parseInt(valueGroups[monthIndex], 10);
var theYear = parseInt(valueGroups[yearIndex], 10);
// Check month value to be between 1..12
if (theMonth < 1 || theMonth > 12) {
return false;
// Calculate the maxDay according to the current month
switch (theMonth) {
case 1: // January
case 3: // March
case 5: // May
case 7: // July
case 8: // August
case 10: // October
case 12: // December
maxDay = 31;
break;
case 4: // April
case 6: // June
case 9: // September
case 11: // November
maxDay = 30;
break;
case 2: // February
if ((parseInt(theYear/4, 10) * 4 == theYear) && (theYear % 100 != 0 || theYear % 400 == 0)) {
maxDay = 29;
} else {
maxDay = 28;
break;
// Check day value to be between 1..maxDay
if (theDay < 1 || theDay > maxDay) {
return false;
// If successfull we'll return the date object
return (new Date(theYear, theMonth - 1, theDay)); //JavaScript requires a month between 0 and 11
} else {
return false;
======================
Thanks WinrolV1 Fusion wrote:
> Yes you can use regular expessions:
>
> function validatePhone(value){
> return
>
/^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?
>
\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3})
> )?$/.test(value)
> }
>
> var custom = new Spry.ValidationTextField(id, "custom",
{validation:
> validatePhone, validateOn:["blur", "change"]})
>
> regexp from
http://regexlib.com/
Excellent, thank you, that will get me in the right
direction. Its not
100%, but I think I can tinker with an expression to get what
I want.
The number is couldn't handle is +44 (0)113 255 7666 but its
not an
approved format anyway, but lots of companies still do it
this way, so I
want to ensure I get it right.
Thanks again!
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
Depreciation Posting in AFAB (urgent Pls)
Hi All,
pls let me know y the depreciation posting is not hapenning when it is showing Document created in Test run. It is not showing any errors nor is it posting. urgent pls.
Chatura.Hi,
Thanks for replying. It did not create any RABUSH Session .
1) I created an Asset and gave the Depreciation Start date as 01.09.07.
2) then i posted an entry in F-90 with transaction type 100, on 01.09.07.
3) The periods are kept open only.
4) The number Ranges for AF Document exists.
5)i did an unplanned posting run for 1 to 8 periods. for 9th period i did the Repeat run . It generated an accounting entry with AF document type.
6) now if i'm trying to do the test run for 10 th period it shows that the Document is created but in the repeat run it is neither posting the document nor is it showing the error.
I was not able to analyse the reason.
Pls help me out. Also pls let me know where to select the direct FI posting in asset accounting. Points will be awarded infull if the issue is solved.
Regards,
Chatura. -
I need one recurcive(unended loop) pl/sql example, its very urgent pls
Hi,
I need one recurcive (unended loop) pl/sql example, its very urgent pls
Thanks,
Sathis.I suppose you'll want to know how to get out of your undended loop too (although that does stop it being unended).
Example...
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 v_cnt NUMBER := 0;
3 BEGIN
4 LOOP
5 EXIT WHEN v_cnt = 1000;
6 v_cnt := v_cnt + 1;
7 END LOOP;
8* END;
SQL> /
PL/SQL procedure successfully completed.
SQL> -
Error in TextField Validation Widget reset() method
There appears to be an error in the Textfield Validation
Widget's reset() method. When I set the widget to "real" or
"custom" validation, the reset() method is throwing an error when
it reaches the line "this.oldValue = this.input.defaultValue;"
I seached the code and it appears that
"this.input.defaultValue" is not set anywhere else. Is there a
missing option, or is this line incorrect and copied over from
another widget that uses "defaultValue"?It looks as though you're trying to use main-content as a CSS selector. If it's a class, it should begin with a dot (period) like this:
.main-content
If it's an ID selector, it should begin with a hash:
#main-content -
Its urgent pls help me .
how can i call a portal from webdynpro application
my requirment is
i was created webdynpro application.
in that i was created one view . in that i was created one button (go).
if i click that button i want move some other portal.
how can i acchive pls help me.
its urgent.
pls send any example programe
Message was edited by:
madipadiga nagaraju
Message was edited by:
madipadiga nagarajuhi,
there is no direct tcode for going to webdynpro component/interfaces in ecc 6.0.
but u have se58 in ecc 5.0,as webdynpro convertor.u give ur program name and click web dynpro convertor button then it takes u to se80 .but this wda(webdynpro abap) component comes as in application tree hierarchy .
i can say in wda component refers a class .if u select webdynpro component/interface,it ask u to create a class or interface.
after that it automatically generate component controller(it is also a class),
interface view and windows.all these 3 are classes.for every window one interface view will be created.ie.. window is internal visible where as interface view is external visible.
u create view and embed these views in windows.by going to the window layout,right click on the window name and click embed view.u can enbed as many view as u wish.in order to navigate from one view to other view ,click "create navigation" by right clicking the view plugs.
by default windows and view have inbound plugs.this is literally a event of that class.
if u want to navigate from view1 to view2 ,create outbound plug for view1,the click outbound plug of view1 and right click the click create navigation the select inbound plug of view2.
then create a application .this is simillar of creating an object.
click on this object and test .this will open in browser.
for deploying u have use "sap webdynpro iview". -
TextField Validation in swings
Hello friends,
i got a problem. i am doing textfield validation using KeyListener.
i can able to detect the keys except Tab key.
When i am pression TAB key the KeyListener is not catching the event.
Actually validation should be in such a way that,
in account number field if i press anyotherkeys otherthan numeric ,del,backspace keys it should not allow to enter.
also it has to give error if user tries to move from that field without entering anydata by pressing TAB or Mouse.
Here exactly getting problem with focus.
Please give your advise
thanks in advance
regards
shashiTextField Validation in swingsOk, you know its a Swing question, so it should be posting in the Swing forum.
if i press anyotherkeys otherthan numeric ,del,backspace keys it should not allow to enter.You should be using a JFormattedTextField
it has to give error if user tries to move from that field without entering anydata You could try an InputVerifier. -
Telnet connection---urgent pls
each time i try to telnet using my LAPTOP.I get command not recognised.can somebody help me out now.Other PC works except mine.This is very urgent pls.
Download Putty
Search on google " Putty ".... using putty telnet.
You can open Hyperterminal and choose TCP/IP option instead of COM1.
Click on OK
You will telnet into device.
Putty use is very good very secure.
Regards,
Dharmesh Purohit -
hi ,
i want to validate FileAttachment If i give some junk data in IE7 It is not executing that page but it's working fine in IE6 And if i give more than 2MB,it is not enter inside the if loop ( if(attachmentFileName != null {...... }) at all .this is my code
if(attachmentFileName != null){
try{
InputStream inputStream = new FileInputStream(attachmentFileName);
if(attachmentFileName.length() > ApplicationDefs.TWO_MB){ addActionError("Sorry your file is size is greater than 2 MB");
return;
if(inputStream.available() == 0){
addActionError("Invalid file format");
return;
if(!isValidFileFormat(attachmentFileName)){
addActionError("Invalid file format");
return;
}catch(FileNotFoundException fne){
addActionError("Uploaded file not found");
return;
}catch(IOException io){
addActionError("Unable to read the uploaded file");
return;
}//end of try-catch
}//end of if
showing the following errors
15:36:47,339 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
15:36:52,839 ERROR [FileUploadInterceptor] the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
please any one help me
sreenu
Thank YouI looked at the sample code, (getCategory() == null ). I wasn't sure if it's ok for me to validate the contentType sheet in the ActionForm, it's not a String. I moved the validation to the Action after its not working. I placed the code back to the ActionForm and debugged the code and ti worked. Thanks.
-
Invoice Validation status check in Invoice base tables - urgent Pls..
All,
Version:11.5.10.2
After the invoice is validated in Invoice workbench (AP), where the validation status got stored. I came across ap_invoices_v table and AP_INVOICES_PKG.GET_APPROVAL_STATUS package can be used to check the status. But I've seen in ap_invoice_distributions_all table, match_status_update flag gets updated with flag 'A' after validation of invoice.
I want to know which option(view,package or ap_invoice_distributions_all table) Oracle recommends to check the status of invoice.
rgds
senMetalink note 301806.1 tells how the validation status is generated (it is not a field in a table for sure) which is different from approval_status.
I have taken the note and came up with this function to determine it and works well so far.
FUNCTION getvalstatus(p_invoice_id IN NUMBER) return VARCHAR2
IS
p_dist_count NUMBER;
p_dist_valid_count NUMBER;
p_dist_nevvald_count NUMBER;
p_dist_needs_revald NUMBER;
p_hold_count number;
p_status varchar2(25);
BEGIN
SELECT count(*) INTO p_dist_count FROM
ap_invoice_distributions_all WHERE invoice_id=p_invoice_id;
SELECT count(*) INTO p_dist_valid_count FROM
ap_invoice_distributions_all WHERE invoice_id=p_invoice_id
and match_status_flag='A' ;
SELECT count(*) INTO p_dist_nevvald_count FROM
ap_invoice_distributions_all WHERE invoice_id=p_invoice_id
AND (match_status_flag='N' OR match_status_flag IS NULL);
SELECT count(*) INTO p_hold_count FROM ap_holds_all
WHERE invoice_id=p_invoice_id
and release_lookup_code is null;
IF (p_dist_count=p_dist_valid_count and p_hold_count=0 and p_dist_count <>0) THEN
p_status:='Validated';
ELSIF
p_dist_count=p_dist_nevvald_count THEN
p_status:='Never Validated';
ELSIF
p_hold_count >0 THEN
p_status:='On Hold';
else
p_status:='Needs Revalidation';
end if;
RETURN p_status;
end getvalstatus;
Maybe you are looking for
-
BAPI for purchase order TA Me27
Hi, I´m looking for a BAPI to create purchase orders like in TA ME27. I don´t have the vendor... So I think, BAPI_PO_CREATE is not working because the vendor is mandatory... Thank You!
-
Hi, This is the standard function module (Bapi_Vendor_Create) to create the vendors. DATA: verbuchter_lieferant LIKE lfa1-lifnr, msgv1 LIKE sy-msgv1. SET PARAMETER ID 'LIF' FIELD vendorno.* CALL TRANSACTION 'XK01'. Wurde der Verbucher aufgerufen? Par
-
Urgent - multiprovider/modeling questions
i have a scenario where i have an ODS containing all vendors for a given article-site relationship, and there's a flag in there indicating which one of the vendors is fixed. i also have an infocube that contains material movement data, which has the
-
My stocks app just stopped working. All the stocks that were in the list, as well as, the exchanges got erased. When I added back the dow jones and nasdaq back in, they still don't show any info. Just a green line.
-
I bought an Iphone in USA and when i arrived at my home i realise that the dock conector is not working, Apple send me a new one?