Querystring is lost when form validation failes
I have a form that uses form validation and <i>@jpf:validation-error-forward name="validation-failure" return-to="currentPage"</i>.<br><br>
When the validation of the form failes it returns to the current page as it is supposed to but it looses the querystring that i use to show the correct content in the form. :-(<br><br>
I have tryed to find a way to also send the querystring but without success so far. Any ideas anyone?
Can the query string be stored in pageflow scoped variable? That way it will exist as long as the portlet instance exists.
--SJ
Similar Messages
-
Is their way to prevent a form data from being lost when a validation fails
Is their way to prevent a form data from being lost when a validation fails?
So I would use APEX_COLLECTION (there is some information in APEX documentation).
Read all data you need to keep after submit and save them to your collection. Then, if validation fails, show report with data not from base, but from your collection. You have to create process, which creates collection, and you need to modify your report definition to get data not only from DB but also from collection.
If you have any questions feel free to ask.
Regards,
Przemek
Edited by: Przemek on 2009-01-10 17:47 -
How do I return to the top of a form when input validation fails?
I have a form that I am using spry input validation that I
would like the user to be returned to the top of the page when
validation fails. If that can't be done somewhat easily, can I have
a message appear next to the submit button that says "Errors found.
The field(s) marked in red need to be corrected" when there are any
errors that prevent the form from submitting.The break statement in Java is similar to last in Perl.
The continue statement in Java is similar to next in Perl. -
Automatically displaying the error text for a form field when the validator fails?
Hi,
Flex 2 has a very nice feature to display custom text next to
a form field whose validation failed. But the user has to move the
mouse over the form field to display the text. Is there a way to
invoke this feature programmatically?
What I would like to do is validate form fields on submit and
- if validation fails for a form field - set focus on that form
field and automatically display the custom error text in the red
blurb. Focusing works fine but I cant' get the text to render...
MarkusThanks Bregent.
Weirdest thing...I just tried a Google search for a solution to this problem and came across another thread on this forum. By the time I got to the bottom of it I realised one of those taking part was myself from years ago! Jeesh, been here before or what!
Changed my recordset to...
<%
Dim rsPROP__MMColParam
rsPROP__MMColParam = "0"
If (Request.Form("categoryID") <> "") Then
rsPROP__MMColParam = Request.Form("categoryID")
End If
%>
<%
Dim rsPROP__MMColParam1
rsPROP__MMColParam1 = "1"
If (Request.Form("categoryID") <> "") Then
rsPROP__MMColParam1 = Request.Form("categoryID")
End If
%>
<%
Dim rsPROP
Dim rsPROP_cmd
Dim rsPROP_numRows
Set rsPROP_cmd = Server.CreateObject ("ADODB.Command")
rsPROP_cmd.ActiveConnection = MM_cs_STRING
rsPROP_cmd.CommandText = "SELECT prodid, product, categoryID FROM dbo.products WHERE ISNULL(?,0) = 0 OR categoryID = ?"
rsPROP_cmd.Prepared = true
rsPROP_cmd.Parameters.Append rsPROP_cmd.CreateParameter("param1", 5, 1, -1, rsPROP__MMColParam) ' adDouble
rsPROP_cmd.Parameters.Append rsPROP_cmd.CreateParameter("param2", 5, 1, -1, rsPROP__MMColParam) ' adDouble
Set rsPROP = rsPROP_cmd.Execute
rsPROP_numRows = 0
%>
...and it works fine.
Appreciate the help. I would have taken your advice and done an If Else on the WHERE clause to acheive the same.
Thank you.
NJ -
Conditional formatting (colour) lost when form is saved and reopened?
Hi All
This one has got me confused! I have set drop downs to change color depending on the selection using the following code:
if ($.boundItem(xfa.event.newText) == "1") {
this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "153, 204, 0";
if ($.boundItem(xfa.event.newText) == "2") {
this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "255, 153, 0";
etc
I have this in the 'Change' event and the 'Layout Ready' event, I have also tried it in the 'Initialize' event but with no success. The issue is this: the colour changes fine as the user fills in the form however is lost when they save and reopen (the selection values are fine just the color coding is lost)
BTW I am saving the PDF with 'Extended Features' as I thought maybe this could be a 'licence' related issue with Adobe Reader
Does any one have any idea of where to look to solve my problem please?
Many thanks
EllisHi - yes Iv'e tried in in several events inc 'Initialize' anbd 'Layout Ready', 'Doc Ready' - just cant seem to get it to work.
Here is the troublesome portion of the form, if you add some impact ratings the color will change, then save and close the form, reopen and the color formatting is lost
Dropbox - BIA Impacts for forum.pdf
Any help appreciated
Thanks
E -
Using ADF BC I wnat to customize error message when entity validation fails
Hi,
I am using ADF BC for model.JSF for view-controller
I want that when entity level validation fails during update of record the error massage should be generate accourding to the values inputed by the user.
how can i add programatically generated error message.
Please if possible provide some example.
Thanks
ajitTry this:
http://download-west.oracle.com/docs/pdf/B25947_01.pdf
9.3.3 How to Create an Entity-Level Method Validator -
Submit by email not working as form validation failed.
Ive created a form with mulitple pages. Three pages require form validation.
Each page is a unique process so I'm trying to use the "Submit button" to only submit that
particular page. I've created dummy fields as defaults to cure the validation problem but
can't seem to get the e-mail button to work. I also created a email dummy button with the
scripting:
EmailSubmitButton.execEvent("click");
I did this to try to force the the form to be sumitted via PDF. I am a novice at this so please
help. I'd be happy to send the form as well for reviewYou may need to enable usage rights in your form. You must have version 8 to do this. Open the form in Acrobat Pro (not Livecycle), click on Advanced tab, then select "enable usage rights in Adobe Reader"
-
Create alert when content validation fails
How can I create an alert (with email subscription) when content fails to validate on a distribution point or distribution point group?
born to learn!AJM
Did you come up with a solution for this? We are using SCOM to monitor the SMSDPMON.log on our DP's for a string of "Failed to evaluate package".
Also, I have built a custom SQL report to query the SCCM database for this information and it is sent to me once a week, the day after content validation runs on the DP's. Below is the SQL code I am using, use it to build your own custom SCCM report.
select LastUpdateDate, MessageID,vSMS_DistributionDPStatus.PackageID,v_package.Name as PackageName, vSMS_DistributionDPStatus.Name as DistributionPoint
from vSMS_DistributionDPStatus,v_package
Where vSMS_DistributionDPStatus.PackageID = v_package.PackageID and MessageID = 9517
-Tony -
How can use a button when a validation fail
Hi,
This is my 'scenario'
In a form I have a button that call a LOV and an Item_code field.
The Item_code field is validated from a trigger with a code like this:
select Desc into Item_desc from Table1 where Table1.Id = Item_code;
exception when no_data_found then
DISPLAY_MESSAGE('Error Code', 'Not Found') ;
raise form_trigger_failure;
All work fine, but I am not be able to use the Search button. The focus is on the Item_code field and if I try to click on the button a message error is displayed.
Please, how can resolve this problem ?Just do the following:
If :Item_code is not null then
select Desc into Item_desc from Table1 where Table1.Id = :Item_code;
end if;
exception
when no_data_found then
:Item_code := NULL;
:Item_desc := NULL;
DISPLAY_MESSAGE('Error Code', 'Not Found') ; -
Adding Data through LOV when LOV validation fails to bring row
Question on Adding data to LOV:
Just like in form 5(Professional Forms), Is there a way to dynamically insert the row to add data if the data entered is not in the LOV? I have searched forum and looked at Dev Guide but didn't find any notes. One way is making "AutoValidation" false so LOV will not fire and validate, THEN upon SAVE just commit trx. Will this work? or Is there a better thought. ThanksSet the Disable Validation property of the LOV Item to "True"
Thanks,
Kumar -
Data is lost when form is completed under Firefox or Chrome
I have an interactive pdf, created with Acrobat X Professional, with user rights extended so that form data can be saved using Reader. The intent is for users to complete an online form in their browser and be able to save the data to their local disc. This works under IE, Opera and Safari. However, Firefox and Chrome appear to have default pdf viewers which do not recognize the Reader extension. The pdf can be saved, but the form data is lost. Is there a remedy for that?
Until there is a better solution, I am using javascript to detect whether the user's browser has the Adobe Reader plugin enabled. If not, a different version of the pdf is served, which does not tell the viewer that form data can be saved, and does not include other features which Chrome's pdf viewer can't accommodate.
-
How to stop attribute level validation when entity validator fails?
Hi,
Can you suggest any way to achieve the desired behaviour on the following scenario.
Table contains the following columns
1. Grade
2. Grade Rate
3. Status
Constraints:
1. Grade and Grade Rate together must be unique.
2. Grade and Grade Rate are mandatory fields.
Implementation:
1. Have Mandatory validator at attribute level for Grade and Grade Rate by default.
2. Alternate key is defined based on Grade and Grade Rate and added the same as Entity validator.
User operation scenario:
User adds a row in a table, entered 'GradeOne' as Grade, tabbed out and then entered '5 %' as Grade Rate (Existing row of the VO has a row with similar data already). When user try to navigate to other row, both validation at attribute level and entity level fires and gives the following error messages.
Error Msg 1. Grade and GradeRate should be unique.
Error Msg 2. Attribute GradeRate is required.
Expected behaviour:
I can understand the reason why ADF throws both the errors (coz it didn't consider the invalid value of GradeRate posted into attribute), but the error messages confuses the user. It would be great if he get only one error message in this scenario (i.e. Unique validation alone)
Question:
How can I restrict in such a way that only one error validation happens in a request (i.e. either attribute level or entity level or in a particular order}
Thanks in Advance.Hi,
the reason ADF does this is for performance. What if you create a custom error handler in the DataBindings.cpx file and use this to suppress all other errors?
See
Decompiling ADF Binaries: Customizing Business Components Error Messages
:http://www.adftutorials.com/adf-custom-error-handler-to-display-custom-message-to-user.html
Frank -
Dynamic field inputs lost when form is emailed
Hello,
I am relatively new to LiveCycle and have been using it off and on to build a series of forms, learning as I go. All work is being done in Designer ES.
I have a form built with several dynamic fields (text fields that display contingent upon a radio or dropdown selection, table rows that are added using a button with addInstance, etc). The form also contains an email submit option which emails the completed form to me (for now), for testing purposes.
I just started testing the form this morning. Locally it tests fine: fields display when they should, table rows are added with all the cell contents that should be there, everything can be completed. When I use the email submit button to send it to myself, then view the attachment, all dynamic areas are missing. They aren't just blank - they don't even appear. So the "root" yes/no/other dropdown appears, but the textfield tied to "other", which I completed prior to emailing, is not visible once emailed.
Any ideas?Hi,
First try going to File > Form Properties > Defaults tab.
There set the "Preserve script changes" to automatic:
This should help.
You may wish to check that each of the objects are set to Name/Normal binding in the Object > Binding palette (global binding will also work, if you want to use thsi for certain fields). I don't think that this is the issue, but have a look anyway.
Hope that helps,
Niall -
Client-side form validation fails
Hi guys,
Below is a very simple form with some client side validation.
on submission it takes me to the results page with out popping an
error. I checked it in both IE and Firefox. I checked the source
after displaying the page and there are javascript elements built.
I am testing this on my local box, with coldfusion mx 7 on
apache.
Is there anything special I have to do with the server
settings, or browser settings or there something else.
Thanks,
Frank
<cfform action="save.cfm">
<p>
<cfinput type="text" name="first_name" required="yes"
message="enter your first name" validateat="onsubmit">
: First Name<br />
<cfinput type="text" name="last_name" required="yes"
message="enter your last name" validateat="onsubmit">
: Last Name<br />
<br />
Do you love me?<br /><br />
<cfinput type="radio" name="love" value="yes">
Yes<br />
<cfinput type="radio" name="love" value="no">
No<br />
<cfinput type="radio" name="love" value="Maybe">
Maybe<br />
<br />
How should we contact you?<br /><br />
<cfinput type="checkbox" name="contact" value="email">
Email?<br />
<cfinput type="checkbox" name="contact" value="paper
airplane">
Paper Airplane?<br />
<cfinput type="checkbox" name="contact" value="can
phone">
Can Phone?<br />
<br />
<cfquery name="temp" datasource="hrp">
SELECT distinct department.department_name
FROM department
</cfquery>
What department do you work for?<br /><br />
<cfselect name="dept" size="1" query="temp"
value="department_name" display="department_name">
</cfselect>
<br /><br />
<cfinput type="submit" name="submit" value="submit">
</p>
</cfform>Odd, indeed. The validation Javascript works on my PC,
showing an alert. I only replaced your query with mine. There might
be something wrong with your installation of the Coldfusion system
folder, /CFIDE/scripts/. -
Report shows "No data found" when validation fails
Hi folks,
I'm new to the OTN and have a short question regarding validations/report pagination.
We are using Apex 4.0.2.00.07.
I have a page containing a report with three columns.
First column is a checkbox (f30), the second one a date picker and the third one is a value field (f34).
I'm trying to build a validation for the value field (should only allow numeric values, but is varchar2) and used a validation with "Function Returning Boolean".
The PL/SQL code is:
DECLARE
vrow BINARY_INTEGER;
v_number FLOAT:=0;
BEGIN
FOR i IN 1 .. APEX_APPLICATION.g_f30.COUNT
LOOP
BEGIN
vrow := APEX_APPLICATION.g_f30 (i);
v_number := to_number(APEX_APPLICATION.g_f34(vrow));
RETURN TRUE;
EXCEPTION
WHEN OTHERS THEN
RETURN FALSE;
END;
END LOOP;
END;
The validation works fine, but every time I enter a non numeric value and the validation fails (error message is displayed correctly as notification) I get a "report error: ORA-01403: no data found" in the pagination area of the report.
Tried to disable pagination completely, but the error still displays when the validation fails.
Any help would be appreciated.
Thanks in advance and regards
SandroContent of the checkboxes is ok, debugging showed
1:7
2:8
(records 7 and 8 where ticked)
Debugging console also shows:
0.10900 0.00000 Processing point: Before Box Body
0.10900 0.00000 Region: Shareclassinformation
0.10900 0.00000 Item: P59_IS
0.10900 0.00000 Item: P59_NA
0.10900 0.00000 Item: P59_CO
0.10900 0.00000 Region: Attribute Selection
0.10900 0.00000 Item: P59_LO
0.10900 0.00000 Item: P59_ID
0.10900 0.00000 Item: P59_IDAH
0.10900 0.00000 Item: P59_IDAT
0.10900 0.00000 Item: P59_SHO
0.10900 0.00000 Item: P59_UTD
0.10900 0.00000 Item: P59_X NA
0.12500 0.00000 Region: Attributes
0.12500 0.23400 Item: P59_NOT
0.12500 0.00000 show report
0.12500 0.00000 determine column headings
0.12500 0.00000 parse query as: DB
0.35900 0.14100 binding: ":P59_LOV_AT"="P59_LOV_AT" value="64"
0.35900 0.00000 binding: ":P59_IDT"="P59_IDT" value="51"
0.50000 0.01500 print column headings
0.50000 0.00000 rows loop: 20 row(s)
*0.51500 0.01600 report error: ORA-01403: no data found*
0.51500 0.00000 Computation point: After Box Body
...
Maybe you are looking for
-
Save as Word working in Standard but not Pro
Hello, Our firm runs Adobe Professional 9.0 and Adobe Standard 10. We have a scanned PDF with paragraph text. In Standard, we can save it as a Word Document and the text in Word is editable. In Professional, we save it as a Word Document and Word sho
-
Hi All! I want to write following type of query in PL/SQL How can I write one which will work. <B> SELECT count(1) INTO v_count2 from TRJ_TRAN_REJ_T a and PEU_PUR_ENRL_UNT_T b where a.TRJ_CVRG_PER_DATE IN (b.PEU_EFF_DATE AND b.PEU_END_DATE) AND a.pur
-
Can't change video via Javascript
Hi all, I know this has been covered, but I've tried those solutions and things just aren't working. I think the issue is that I can't obtain the Strobe playback object. Here's the code I'm embedding: <video width="460" height="260" class="video" co
-
I've had some problems with DVD player either crushing or stopping and the DVDs being stuck in the drive just recentely after months of working without problems. I tried to repair permissions and verify disk (HD). Permissions are ok but when verifyin
-
Greetings all- Is there a way to re-order podcast entries? I am creating a sequence of podcasts in iWeb. Having created them in random order and wishing to publish them in a particular sequence, I am unable to discover a way to re-order them. Is ther