Large field even after validation transform
Hi, I am working on BODS 4.0 with Oracle 11.2 as Repo. I am using validation transform to calculate the length of the string . Validation will fail if record length is greater than 60. I am sending pass records to table temp1 and send failed records table temp2. I have defined the field length to 60 in temp1.
After this when I run Job then I get error on table temp1 that record length is 65 and field is of 60. I am working with Russian data. Russian is multi byte character CYRILLIC data.
Now if SAP has field defined as varchar(60) then how can I make sure that only records with length 60 or less are send.
Even though I am checking length 60 in validation but inactual it is taking more space and can not be inserted into field of length 60.
Thanks,
Hi,
I've done the same test on BODS 3.1 ver and didn't see any error messages and Job run successfully with correct results.
I've given one field as 90 chars.
Please let me know if you need any further help . My emails is mohan.salla at telegraph.co.uk
cheers
Similar Messages
-
Popup is closed when command link is pressed even after validation exceptio
Hi Techies,
I am using JDeveloper 11.1.1.4. I have a sample .jspx page which has a table, a command link and a popup. When the user clicks the command link, the popup gets shown.
The popup contains af:panelWindow as a direct child. panel window as a panel group layout which contains input box and a command link. The input text has a validation. Now my problem is even though the validation fails If i click the command link in the popup, the popup gets disappeared. Thankfully it is not updated in the database (Infact, the action and actionlisteners themselves are not getting called since the validation fails. Hope this is the expected behaviour) But my question is: could somebody tell my how to prevent the popup from hiding when i click the command link in popup once after the validation fails?
Regards,
V. PraveenHi Praveen,
Can you try with partialSubmit for the command link?
Also use required partialTriggers as you want to refresh. Do not refresh the popup in your bean code.
-Prasad -
Changing a fields type after validation
I am having an issue with trying to figure out how to change a fields type (i.e. User Entered - Required) after I validate a test sheet that the user filled out. It is basically an interactive answer sheet that grades itself when the user is finished answering the questions, I just need to know how to make that field read-only after the user has finished the test. Any ideas on how to go about doing this?
Thanks,
Ryan CrockerNo, it would be
GradeTest.access = "open";
You can see the Object Model reference guide at: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
Chris
Adobe Enterprise Developer Support -
Retain all form field values after input text field validation failure
Hi,
I have a form with 1 input text field, one Command button and one h:selectManyListbox. when User enteres some values in input field and clicks on command button named Add, the value is validated. If input is invalid, then an error message appears next to the field. If input is valid, then the value is added into h:selectManyListbox. Adding to list box is done using Ajax4Jsf.
Probelm:
Let's assume user entered 3 valid values one after another and all are added into the list box. When he enters a wrong value, and error message appears. however, the entered values in list box goes away. Is there a way to retain the values even after validation failure.
Code is given below;
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<h:panelGroup>
<h:outputLabel for="inputEmailId1" value="Email Id: " />
<t:inputText value="#{bean.newEmailId}" id="inputEmailId1" maxlength="100" size="40" immediate="true">
<t:validateEmail message="Enter a valid Email Id." />
</t:inputText>
<t:message for="inputEmailId1" styleClass="errorStyleClass" />
</h:panelGroup>
<t:panelGroup style="text-align: left;" >
<a4j:commandButton value="Add" styleClass="buttonsSub" action="#{bean.addSharedEmails}"
reRender="inputEmailId1, selectedSharedEmails" />
</t:panelGroup>
<t:panelGroup style="text-align: left;">
<h:selectManyListbox id="selectedSharedEmails" size="8" style="width:100%;" immediate="true">
<f:selectItems value="#{bean.sharedEmails}" />
</h:selectManyListbox>
</t:panelGroup>
Thanks in advance,Use the attribute "binding" instead of a "value". This will remember the value. You can also make sure that you dont have anything in your constructor or class level that initialises that value to "" or null. Because if JSF is remembering your value but your initialization that gets triggered before the page loading resets it to default values then you need to change that part of the code.
-
hi, when i am sync my books from my mac to ipad even after 24 hours sync, itunes show "wait for items to copy" and the books in ipad are still not fully loaded.
how do i fix this, i have a large collection of books around 12000 booksNobody knows? Not even administrators?
Please it would be really nice to have help on that to take all the benefit of the remote app.
Thank you very much in advance. -
Fields are still in EDIT mode even after Saving the Transaction in UI
Hello Experts ,
We are facing one problem in UI .
We have added the BLOCK " Subject" in Complaint transaction ( BT120H_CPL) .
We are able to fill the data in the fields for subject block like " Code, Code Gruppe etc, but even after saving the transaction these fields are in Edit mode .
Can anyone give some pointers/solution to this ?
Regards
VBHello,
if the fields are in Edit mode or closed is controlled by the attribute VIEW_GROUP_CONTEXT of the controller class (*IMPL).
There are also methods to change this VIEW_GROUP_CONTEXT depending on the requirement like "DISABLE_VIEW_GROUP_CONTEXT".
But as i understood you correctly you do not have a own developed view but a SAP standard view. In this case i would create a OSS-Message for the issue.
But feel free to do some debugging on this VIEW_GROUP_CONTEXT.
Best regards
Manfred -
Form holding old fields and data even after deleting
Hi all:
I've been searching but can't find anyone else having this problem. I have a form that was created (a set of 3 fillable vouchers). The users decided to just have one voucher per page and had me delete all the fields in the first 2 vouchers. The crazy part is even though the fields are gone, if i do an EDIT -> SELECT ALL it highlights all the old fields even though they are gone now. What is even worse, if I then copy and then paste into a word document, you can see all the data that used to be in those fields. Surely there must be a way to purge all that out of there? Anyone have any ideas? It's pretty scary to think of a form holding all that data in there (and it isn't just grabbing it from my cache as I tested it on several different pc's and it does the same on all of them).
Thanks!
JohnSee this item
http://feedback.azure.com/forums/267889-azure-operational-insights/suggestions/6519218-purging-non-reporting-servers-configuration-asses -
Hi All,
I have noticed that after Submitting (Approving) a request, manager or role owner can still modify the user details (field are editable) like role validity date etc in a request. This is quite weird!
Although, after submitting a request by a requester, all field are disabled.
Has any one encountered with this problem? How can I control this?
Please advise.
Regards,
FaisalAlessandro,
Thanks for your reply.
Yes, I got it and that is why I got confused.
This EUP I have defined and the desired fields are visible and editable and seems to be working fine.
However, the problem is, even after submitting a request, manager and role owner is able to edit the values in the fields which is incorrect!
Actually, once a request is submitted, I believe request should be only display mode!
You know what, this is working absolutely fine with requester. Meaning, once a requester submits a request, then all fields are disabled and values in them can not be modified any more.
But I am not sure why this is not happening with managers/role owners.
Please advise.
Regards,
Faisal -
CK40N - Still open even after applying the note
Hello Everyone!
Greetings!
Experiencing issues in the costing run. SAP ECC 5.0
After the marking job completion observed that there are some u2018Still Openu2019 items. After some research found the SAP notes u2013 0000542790, 0001321242 & 0001402978.
SAP note 0000542790 is not applicable to us as the client is on SAP ECC 5.0. For the short term fix, as per the note 542790 have executed the command u2018=cksuu2019. It worked.
To apply the notes 0001321242, 0001402978 was testing in the test systems and I still see the u2018STILL OPENu2019 items even after implementing the SAP notes 0001321242 and 0001402978. Both the notes have been sucessfully implemented and also verified the corrections.
Any suggestions/advice, please. Thanks in advance !
SatishHi Satish,
There can be valid reasons for the 'still open' Materials.
The following are reasons for 'still open'
1. the materials were included in another costing run so there was an
overlap in released cost estimates
2. there was already a released cost estimate for those materials so
the system did not allow for another one - this could have been costed
manually and released manually (ck11) rather than in ck40n
3. there was a stop in the job that ran to release them (you mentioned
periods were closed). After the restart, some of the statistics could
have been incorrectly updated.
Furthermore, please see the note:
542790 Inconsistency correction: Costing run statistics
If need need to find the 'still open' Materials.
If you run tCode 'SE16' and view the table table KALM which contains
the entries for all materials costed within the costing run.
Field 'KALM-FEH_STATUS is the cost estimate's status after step costing.
1) Find cost estimates created originally within cstg run
So, you have to select all entries of KALM for the specific costing
run which are having KALM-FEH_STATUS = 'KA'.
This is the number of cost estimates which should have been marked in
the later marking step.
2) Find cost estimates released successfully
The set of released cost estimates is given by selection of table
KEKO: specify KALAID and KALADAT and FEH_STA = 'FR'.
3) Find missing cost estimates
Compare the results of 1) and 2):
Which material/plant have an KALM entry, but not a released cost
cost estimate ?
> this will be the set of cost estimates you are looking for...
Regards,Declan -
Invoice not updated even after rebate recalculation
Hi,
I am facing issue with 14 invoices which are not being updated with Rebate even after rebate recalculation.
Below screenshot of one of those invoice, where it says that agreement exists.
the entry is present in VBOX as well.
Agreement validity period dates are also ok.
And after SDBONT06, the agreement still shows the message that "sales volume is not current"
Kindly check that what could be the issue here which is stopping the invoice and agreement to be updated.
Regards,
Aayush Jain
SAP SD ConsultantHi Aayush
The message 'condition record exists but has not been set' just means that currently in the document the condition is not present but if you created the same document item now pricing would find a valid condition. SDBONT06 normally would do a new pricing of the rebate conditions with pricing type I and in these circumstances you should expect that it would find this condition if it falls within the validity of the agreement.
So you issue here is why SDBONT06 does not find the condition.
The field 'business group' in your access sequence.
Is it a standard field fomr KOMG that is filled in standard or is it handled in a user exit ?
It would seem likely that this field is filled in the billing transactions VF01/VF02 etc but it is not
filled in VBOF ?
Check how it is filled.Have a look at note 391314 this descibes what you have to consider regarding the internal tables for Z fields when using custom fields in your access sequences.
I hope it helps you further
Kind regards
Brian -
Reset the form to Null or Reload the page using reset even after a submit
Hi ,
This is the scenario:
I have two button - Submit and Reset
Submit is used for validation and after validation is passed it passes it to another form to enter into database.
Bascially the reset works fine if I use it before using the submit button in the form. For instance,if on submit there is some error as the values have not passed a validation. There is a error pop up message shown and the values are retained in the field and Now if I use reset , all the values of the field do not go back to null.
I am new with form validation. I checked online and it said that reset will not clear if we have used submit and we need to use javascript to do it.
So I made reset into a button which onclick event calls the reset() function and clears the form but I am sure that the code is not right as it is not working, I tired putting a alert message in my function to reassue that the function is being called but I think it is not.
Posting my code
<INPUT id=reset1 name=reset1 type =button value=Reset onClick="reset()">
<Script>
function reset()
alert ("all values shall be cleared now");
document.frmUser.name.value = "" ;
document.frmUser.uservalue = "" ;
document.frmUser.contactNumbervalue = "";
document.frmUser.emailvalue = "" ;
</Script>
I am not sure if its the best way to do it.
I want the whole form to refresh/ reload every time reset is clicked and all the fields to have no values.
Thanks for the help in advance.
SumantHi .
I got break on this issue by following the code snippet
<script >
function clearForm() {
document.getElementsByName('foo')[0].value = '';
document.getElementsByName('bar')[0].value = '';
document.getElementsByName('baz')[0].value = '';
</script>
<html:button value="Clear" onklick="clearForm() />
thanks,
Sumant K -
I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
Dim intCnt As Integer = 0
Do
ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
ThxMugsy,
Consider this as food for thought, even if you don't use it.
If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
Public Class MyImages
Private _bmp As Bitmap
Private _name As String
Private _sourceFilePath As String
Private Sub New(ByVal bmp As Bitmap, _
ByVal name As String, _
ByVal filePath As String)
_bmp = bmp
_sourceFilePath = filePath.Trim
_name = name.Trim
End Sub
Public ReadOnly Property Bmp As Bitmap
Get
Return _bmp
End Get
End Property
Public ReadOnly Property Name As String
Get
Return _name
End Get
End Property
Public ReadOnly Property SourceFilePath As String
Get
Return _sourceFilePath
End Get
End Property
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
ByVal imageName As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
Throw New ArgumentException("The name of this image cannot be null or empty.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
Optional ByVal removeFilePathAlso As Boolean = False)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
From mi As MyImages In miList _
Where mi.SourceFilePath = imageFilePath
If findInstance.Count <> 1 Then
Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
"image file path is not in the collection.")
Else
Dispose(findInstance.First)
If removeFilePathAlso Then
My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
End If
miList.Remove(findInstance.First)
End If
End If
Catch ex As Exception
Throw
End Try
End Sub
Private Shared Sub Dispose(ByVal instance As MyImages)
If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
instance._bmp.Dispose()
instance._bmp = Nothing
End If
End Sub
End Class
When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
I tested it with a simple form:
Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
Option Strict On
Option Explicit On
Option Infer Off
Imports System.IO.Path
Public Class Form1
Private miList As New List(Of MyImages)
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim desktop As String = _
My.Computer.FileSystem.SpecialDirectories.Desktop
Dim imgFolder As String = _
Combine(desktop, "Images")
PictureBox1.BorderStyle = BorderStyle.FixedSingle
For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
MyImages.AddNew(miList, imgFilePath)
Next
btn_RemoveFirstImage.Enabled = False
CheckBox_RemoveSourcePath.Enabled = False
End Sub
Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_ShowFirstImage.Click
Try
If miList.Count >= 1 Then
With PictureBox1
.SizeMode = PictureBoxSizeMode.Zoom
.Image = miList(0).Bmp
End With
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
End If
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_RemoveFirstImage.Click
Try
If miList.Count >= 1 Then
MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
End If
PictureBox1.Image = Nothing
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
End Class
Running it is straightforward:
Now when I click to show the first one:
A different image is shown because that first one no longer exists - either in the collection or in the folder.
Closing/disposing all references is the key and the order matters.
Something to consider the next time around. :)
Still lost in code, just at a little higher level. -
I am trying to e-mail a graphics pages document I made as a PDF file. After trying to resize the file, the photo's quality is compromised (really blurry) even after choosing "Best" quality. What am I doing wrong. As a regular full sized file (PDF) it's fine, but when it gets reduced, it's bad and it needs to get printed from the e-mail copy I'm trying to send. HELP! Please.
If there are a lot and/or large images the file will inevitably be large, no matter what.
You can reduce them down as far as possible by cropping and scaling them to the final size before creating the pdf. You can do this by opening the images in Preview .app and using Menu > Tools to reduce the resolution and to crop.
If you have used transparency effects eg shadow, reflection, transparency, 3D charts, OSX will by default render these at 72dpi in the pdf.
Peter -
I'm trying to burn my audiobooks on CDs. Got through three books just fine, then my CD/DVD drive "disappeared." I rebooted and got it back, but iTunes says, even after I un- and re-installed it, that it doesn't have the registries to burn CDs. How can I retrieve this capability? My audiobooks are from Audible.
I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
iTunes for Windows: "Registry settings" warning when opening iTunes -
Why is the Lightroom preview folder so big, even after purging the 1:1 previews?
1:1 or full-size previews take up a large amount of HD space, often many 10's of GB's. This is why building them on demand is an alternative to building them up front, and why you have options for auto or manually purging them. That said, it may not always be possible to delete 1:1 previews - more later.
Standard-sized previews are based on the pixel size option you chose in Catalog Settings. You have 4 choices: 1024, 1440, 1680 and 2048. If all you want is standard-sized then choose a size equal to or greater than your screen size. Lr also builds smaller versions at the same time. These are used for the thumbnail, 1:2, 1:3 and 1:4 zoom levels. Adobe call this the "preview pyramid".
1:1 previews will not be deleted unless your chosen standard-sized preview is less than half the size of the full-sized preview. For example, you have images with pixel dimensions of 3072 by 2048 pixels (6MP camera such as Canon 10D) and have selected 1680 pixels for standard-sized previews. Since a 1680 pixel preview is more than half the size of the original the full-sized preview will be kept, even after using the purge 1:1 preview command. Had you chosen 1440 pixel for standard-sized previews then the full-sized would have been purged (i.e. 3072/2=1536, which is greater than 1440). Now take the example of a larger camera, say a 8MP camera such as the Canon 1DMKII with an image size of 3504 by 2336 pixels. With the standard-sized set at 1680 pixels the full-size will again be purged (i.e. 3504/2=1752 pixels, which is greater than 1680 pixels).
Another thing worth mentioning - Lightroom will usually delay purging previews for deleted images until after the application has been closed and reopened, even then it might take a few minutes to clear the purged previews. The idea here is to ensure the previews don't get deleted whilst there's still a chance that they may be needed (e.g. you removed images by mistake then use Undo command to reinstate them).
Hopefully above explains why Lightroom doesn't behave as you expect. If it makes your head spin, think how much mine spun when writing it.The chance of an answer is inversely proportional to the length of the posting. ;)
You do not indicate what your preview setting was while you accumulated a 12Gb preview folder. Nor do you indicate how many images are in your catalog.
Given your screen size of 1280 (laptp?) I would set the preview size to 1440 since this is still far less than half of your D3 images.
Cropping - I'll safely guess - has no effect on your preview size choices.
I confess that preview sizing and purging is confusing. I avoid the confusion by shouting "more disk, mama".
Maybe you are looking for
-
Status report template activation and assignment
Hi, when I try to create Status report after selecting the Document folder and clicking the New Status report in Status Report tab of cproject, an error message is appearing as 'No templates for status reports have been entered for the project t
-
Possible to increase the total size of a software raid set?
Hi, I need to increase the size of a software raid set which is internally in one of the Xserves - originally it had 2x 400G drives. I've swapped drives into the raid so they are both now 500G drives. diskutil info drive XX (ie raid set) shows that t
-
Quota between inhouse Manufactured & external procured materials in APO
Hello All, Scenario is like this: I have semi-finished material. Suppose it is 'AX'. Now this 'AX' material I am manufacturing & procuring from external sources also. Material 'X' is APO material(MRP Type='X0'). Now I transferred MM scheduling agreem
-
Reader 9 cannot open catalog index created by Acrobat 9 (action)
I am making a CD of a collection of PDFs. I have created a catalog index (.pdx) with Acrobat 9. I have also created a title document with Acrobat 9 with a button which runs the action "Execute menu item" which opens the .pdx index file for searching
-
Hello, I received a new iMac for Christmas. The iBook I have has all the purchased items listed under the "purchased" menu in iTunes. Since setting up the iMac and using the same iTunes account on the new iMac, the purchased items do not appear liste