Help V1.5 Validation Gone!
Two problems since doing the upgrade to 1.5
Old forms which looked fine now show the spry messages when
you view them in the browser.
This form which I carefully worked over so it appears correct
in DreamWeaver 9 will not validate any filed no color coding shows
up at all. Like it can't find or use the CSS.
In IE you see the color coding but now validation happens in
Firefox neither. And of course IE still has the display problem
with Selects that no one ever responded to.
You can access the page at
The
Become A
Member
I really need help with this I am basically stuck on
something I thought was almost done.
OK I havenarrowed it down.
If I remove this
var state = new Spry.Widget.ValidationSelect("state"
{validateOn:["change"]});
it works fine
This is supposed to go with this select
<tr id="state">
<td bgcolor="#FFFFFF">State:</td>
<td bgcolor="#FFFFFF"><div
spry:region="states"><span id="states">
<select name="state" spry:repeatchildren="states">
<option value="{@abbreviation}">{@name}</option>
</select>
<span class="selectRequiredMsg">Please select a
State.</span></span></td>
</tr>
So what am I doing wrong?
Similar Messages
-
Need help in date Validation Urgent
Hi ,
We need help in Date Validation.
we have 2 Date fields on the form Start Date, End Date
The requirement is: End Date (May not be greater than 30 years from the start date).
I have written following script on End Date Exit event. But the problem is its calculating 30 years from the Current Date not from the Start Date
var tDate = util.scand("mm/dd/yyyy", new Date());
var M = tDate.getMonth();
var D = tDate.getDate();
var Y = tDate.getFullYear();
var SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );
//app.alert(SRes)if (SRes <= this.rawValue){
app.alert("May not be greater than 30 years from the start date")
xfa.host.setFocus(
this);}
can someone please help me
Regards,
JayHi,
You'll need to get javascript date from LCD field, and calculate & compare with the future date in javascript date.
try following script;
var sDate = StartDate.rawValue;
var wkStartDate = util.scand("yyyy-mm-dd", sDate);
var nYear = wkStartDate.getFullYear();
var nMonth = wkStartDate.getMonth();
var nDay = wkStartDate.getDate();
var wkFutureDate = new Date(nYear + 30 , nMonth, nDay);
sDate = EndDate.rawValue;
var wkEndDate = util.scand("yyyy-mm-dd", sDate);
if (wkEndDate.getTime() > wkFutureDate.getTime()){
xfa.host.messageBox("May not be greater than 30 years from the start date");
xfa.host.setFocus(this); -
Can you please help me with validation logic for Events in Table maintenance generator
Can you please help me with validation logic for Events in Table maintenance generator,i.e if i enter record in 1st internal table then automatically 2nd internal table should be updated.
Hi Glen Anthony,
Thanks for replay,
I used foreign key relationship between those 2 internal tables....
I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
Thanks Glen. -
Help with date validation on input boxes.
I need some help with date validation on input boxes.
What I�m trying to create is a form where a user inputs dates and then the rest of the form calculates the other dates for them.
i.e. � A user inputs 2 dates (A & B) and then a 3rd date which is 11 weeks before date B is calculated automatically.
Is this possible and if so how do I do it ???
ThanksHi,
to get third date try this:
java.util.Date bDate = ...;
Calendar yourCalendar = new GregorianCalendar();
yourCalendar.setTime(bDate);
yourCalendar.roll(Calendar.WEEK_OF_YEAR, -11);
java.util.Date cDate = yourCalendar.getTime();Regards
Ldinka -
Help Pls -- Simple Validation Script not working
-- yet another form I am working on --
I have a numeric field and the entry number can't be no larger than 7 -- I have tried different variations of the script, and I don't know why it isn't working. I know it's something simple..just can't see it!
Please help!
----- topmostSubform.Page1.NumericField12[0]::exit: - (JavaScript, client) -------------------------
if topmostSubform.Page1.NumericField12[0].rawValue >= 8
xfa.host.messageBox("Invalid Number Must be 7 or smaller");Thanks..you helped me before.....thanks a million...
I got it to work with the validation feature also...
I'm gonna take this opportunity to solve another problem -- a real one this time..
Fields A and B - read only numeric fields (calculated)
new field C - requires Field A divided by Field B and then check to see if correct radio button is checked and if not then put an asterick beside number in Field C! Hope this makes sense...
Field C - a/b I get an arithmetic overflow/underflow message...
Please help again! -
PLEASE HELP! Itunes library gone but music still on iPod
I recently have started organising my 'my music' files and deleting folders with more than 3 copies of songs, I have a lot of music 2500 songs and opened up itunes and all music I have imported (not bought) has gone, my music is still on my ipod though but I'm too scared to sync it in case all my music has gone, I still have my original music in 'my music' file but it's not shown up on library as usual PLEASE HELP!
See Recover your iTunes library from your iPod or iOS device.
tt2 -
I did the update last night and it looks like my iphone 4 didnt back up. I did a restore but my latest backup was 3 months ago and now my phone has reverted to that. Is there anyway to get back my phone as it was before the update and restore or are my photos, videos, messages gone for good? Also all my apps are still showing in itunes but havnt synced back to my phone. How do i do this as I select to sync them back and it wont work? Does this also mean I have lost my game progress such as in angry birds etc.? Please help....
Music and apps are in iTunes. You can either resync the info from iTunes, or from iCloud.
-
Hi,
I am new to dreamweaver and I need to create a site for the
cafe I work for. I tried to make a form for making reservations
online. I made a table and put the fileds inside it. It looks
great. However, when I preview it in the browser, a javascript
error message pops up and tells me that all the forms are required
AS SOON AS I CLICK THE FORM TO START TYPIng. ALl forms ARE required
but I want the message to come up only after clicking submit.
Please help.
Also, if anyone has an easy way to send the form infomation
via email, it would be greatly appreciated.
Thanks,
Aaron
Norfolk, VACheck the behaviors panel, your validation script is probably
set to fire onFocus, in design view click on the form button, then
set the 'Validate Form' behavior to onClick, you can select it from
the menu. When you set the behavior most of the time DW changes to
onFocus evan though you select onCLick.
What scripting language are you using ASP PHP CFM, there are
lots of products you can buy for emailing form data or look at some
tutorials online. -
Hi,
I am a newbie in XML schema territory.
I generates a xml using 'SELECT XMLQuery( ...)' -- This finally works after upgrading to 10.2.0.3!
1) What methods do you recommend to validate the query result agaist the schema? The query result is first returned as 'XMLType' type, and then
I turned it into a CLOB.
At the end, I save the output into a file (via CLOB to String).
2) How do I register the schema in DB? Can I install the schema on the file system, instead? I am not sure which way is simpler and easier. I'd yearn for any simpler method, if any --- a common complaint from any beginner, I guess.
A few pointers will help me a great deal.
SunSun,
You can take a look at an FAQ thread on this topic: How does XML DB handle XML Schema Validation ?
Regards,
Geoff -
Help Required regding: Validation on Data Loading from Flat File
Hi Experts,
I need u r help in the following issue.
I need to validated the transactional data loading to the GL Cube from Flat file,
1) The transactional data to the Cube to be loaded <b>only if master data</b> record exists for the <b>0GL_ACCOUNT</b> info object.
2) If the master data record does not exits then the record need to be skipped from the loading and after the loading the system should throw a message saying that these many records have been skipped (if there are any skipped records.).
I would really appriciate u r help and suggestions on solving this issue.
Regds
HariHi, write a <b>start routine</b> in transfer rules like this.
DATA: l_s_datapak_line type TRANSFER_STRUCTURE,
l_s_errorlog TYPE rssm_s_errorlog_int,
<b>l_s_glaccount type /BI0/PGLACCOUNT</b>,
new_datapak type tab_transtru.
refresh new_datapak.
loop at datapak into l_s_datapak_line.
select single * from /BI0/PGLACCOUNT into l_s_glaccount
where CHRT_ACCTS eq l_s_datapak_line-<b>field name in transfer structure/datsource for CHRT_ACCTS</b>
and GL_ACCOUNT eq l_s_datapak_line-<b>field name in transfer structure/datsource for GL_ACCOUNT</b>
and OBJVERS eq 'A'.
if sy-subrc eq 0.
append l_s_datapak_line to new_datapak.
endif.
endloop.
datapak = new_datapak.
if datapak[] is initial.
abort <> 0 means skip whole data package !!!
ABORT = 4.
else.
ABORT = 0.
endif.
i have already some modifications but U can slightly change it to suit your need.
regards
Emil -
JTA Transaction--please help-----Xid not valid
HI,
I am writing a small application which i am posting at the end.This is decription of my application.I am writing a jsp.Later on i will be using in some other way.
I am using Oracle XA implementation to communicatewith my RM which oracle8.1.7 .
I am creating two XAConnection with two data instances 'test' and 'test3' .These two reside on my local machine in the same database server.
With the code which i am sending you i have tried two cases.
First Case
1)i use only one XAConnection object of say 'test'.
2)enlist its XADataSource with my transaction Object
3) get two connection objects and execute two sql's on themMy code works fine and maintains the transaction.
Second Case
1) I use create two XAConnection objects. one of 'test' and other of 'test3'.
2) enlist their XAResources with transaction object.
3) Now i take one connection from each of XAConnection and execute two sqls, oneon each of them.
It gives me exception while enlisting second XAResource with transaction objeectsaying that "The Xid is not valid".
below is the stackTrace.
javax.transaction.SystemException: start() failed on resource 'oracle.jdbc.xa.client.OracleXAResource':XAER_NOTA : The XID is not valid
oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
<----------------------CODE------------------------------------------------------>
<html>
<body bgcolor=tan>
<%@page session="true" %>
<%@page import="java.util.Hashtable,java.sql.*,javax.naming.*,javax.transaction.*,javax.sql.*,oracle.jdbc.xa.client.OracleXADataSource,javax.rmi.PortableRemoteObject,javax.transaction.xa.XAResource" %>
<%!
private static XAConnection getFirstXAConnection() throws java.sql.SQLException{
OracleXADataSource oxadsFirst = new OracleXADataSource();
String urlFirst = "jdbc:oracle:thin:@70.7.51.80:1521:test";
oxadsFirst.setURL(urlFirst);
XAConnection xaConnectionFirst = oxadsFirst.getXAConnection("scott","tiger");
return xaConnectionFirst;
private static XAConnection getSecondXAConnection() throws java.sql.SQLException{
OracleXADataSource oxadsSec= new OracleXADataSource();
String urlSec = "jdbc:oracle:thin:@70.7.51.80:1521:test3";
oxadsSec.setURL(urlSec);
XAConnection xaConnectionSec = oxadsSec.getXAConnection("scott","tiger");
return xaConnectionSec;
%>
<%
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
try{
ctx = new InitialContext(ht);
//javax.transaction.UserTransaction transaction = (javax.transaction.UserTransaction)ctx.lookup("java:comp/UserTransaction");
System.out.println("Before Lookup JNDI UserTransaction and TransactionManager......................");
//javax.transaction.UserTransaction userTx = (javax.transaction.UserTransaction)ctx.lookup("javax.transaction.UserTransaction");
javax.transaction.TransactionManager transactionManager = (javax.transaction.TransactionManager)ctx.lookup("javax.transaction.TransactionManager");
System.out.println("After Lookup TransactionManager......................");
try{
transactionManager.begin();
Transaction transaction = transactionManager.getTransaction();
System.out.println("Transaction Object ----------------------------->"+transaction);
XAConnection xaConFirst = getFirstXAConnection();
XAResource xaResourceFirst = xaConFirst.getXAResource();
System.out.println("xaResourceFirst Object ----------------------------->"+xaResourceFirst);
XAConnection xaConSecond = getSecondXAConnection();
XAResource xaResourceSecond = xaConSecond.getXAResource();
System.out.println("xaResourceSecond Object ----------------------------->"+xaResourceSecond);
if(!xaResourceFirst.isSameRM(xaResourceSecond) )
System.out.println("<-----------------BOTH THE RESOURCES ARE NOT SAME SMAE SAME----------------------------->");
boolean firstEnlistBool = transaction.enlistResource(xaResourceFirst);
System.out.println("firstEnlistBool ----------------------------->"+firstEnlistBool);
boolean secondEnlistBool = transaction.enlistResource(xaResourceSecond);
System.out.println("secondEnlistBool -------------------------> "+secondEnlistBool);
java.sql.Connection firstConn = xaConFirst.getConnection();
Statement stmt = firstConn.createStatement();
stmt.executeQuery("insert into dept values(60,'MARKETING','NEW DELHI')");
java.sql.Connection secondConn = xaConSecond.getConnection();//xaConFirst.getConnection();//
stmt = secondConn.createStatement();
//stmt.executeQuery("insert into account values(20,20)");
stmt.executeQuery("insert into salgrade values(10,10,10)");
if(Status.STATUS_ACTIVE == transactionManager.getStatus() )
System.out.println("Before committing status "+transactionManager.getStatus() );
transactionManager.commit();
System.out.println("After committing");
} catch(SQLException sqlE){
sqlE.printStackTrace();
catch(Exception e){
e.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
finally {
try {
ctx.close();
catch (Exception e) {
e.printStackTrace();
} // close finally
%>
<form method="post">
<input type="submit" name="submit" value="Call Transaction Bean">
</form>
</html>
<-------------------------------------------------------------------------------->
please help in this..I am stuck with this and dont kow how to move ahead to remove this problem..
Best Regards
Akhil NagpalHi,
Hi Vicky,
I think we are in different time zones. I am south
korea.I have tried your suggestion but it gives me
the same exception.Yes ,there is a difference of 3.5 hours , I am in India(Mumbai).
This is what i am trying to achieve.
My aim is to create some aplication to which i can
register my XADataSources and this application should
be able to handle the distributed transactions among
them.I will be using the TransactionManager of some
application server.SO i am using weblogic7.0.
For the testing purpose i have creaed a jsp as i
i posted the code. I am very new to this JTA and may
be i am doing wrong.Can you help me this but putting
insights into your experience may be that will
increase my enthusiasm :-) ....
please help me in this.
I am extracting the following from the docs
public interface TransactionManager
The TransactionManager interface defines the methods that allow an application server to manage transaction boundaries.
public interface UserTransaction
The UserTransaction interface defines the methods that allow an application to explicitly manage transaction boundaries
So as per your specs I can understands your application is trying to explicitily control the boundaries of the transaction, so you should use the UserTransction instance to begin the Transaction.My understanding says the TransactionManager will come in picture for declarative transaction and UserTransaction for the your case.I think you have tried that , I would have tried this out here but I dont work on weblogic.Do the things cooly and try to understand the concept.Let me know of the results.
Regards
Vicky -
Help need on Validations in inline-popup task flow
Hi,
I create a adf application, which refer ready only table and in toolbar, there are some button, which used to insert and edit records. For insert and edit i used a edit.jspx page which come as a inline poup in taskflow. In inline popup i used a button called submit, which used for two purposes.
1) To validate two fields(ex:- effectiveto should be greather than effectivefrom)
2) To close inline popup.
i have done the validaitons using a managedbean and facesconfig.xml validators. My problem is can i do this both requirements by pressing only submitt button, i mean if validation are passed then automatically close the popup.
Really appreciate if anyone can help me on this issue.
Yaham.Hi,
use the button "action" or "action listener" property to close the popup. Validation is processed after the apply request phase in the JSF lifecycle and thus comes before actions to be executed, which will be in invoke application phase.
Frank -
I have 5 errors on my page: http://www.healthquestpt.com/hpc/index.html and because these are related to working with an external javascript, I dont know how (or if I should) to fix them and have it all still work properly. Any help is greatly appreciated!
Thank you very much Mr. Powers. I got the ampersand taken care of as well as the upper to lower case issues. I still have one error that I cant figure out how to resolve. I actually have it 3x's but it's only flagging the first one.
<td class="tabnav" background="images/tab1.gif" width="120" height="25" valign="bottom">
<center><a href="hospitals.html"
onmouseover="jsfx.fadeIn('tvscreen','hospital')"
onmouseout="jsfx.fadeOut('tvscreen')"><b>Hospitals</b></a></center></td>
<td class="tabnav" background="images/tab2.gif" width="170" height="25" valign="bottom">
<center><a href="clinical.html"
onmouseover="jsfx.fadeIn('tvscreen','practice')"
onmouseout="jsfx.fadeOut('tvscreen')"><b>Clinical Practices</b></a>
</center>
</td>
<td class="tabnav" background="images/tab1.gif" width="120" height="25" valign="bottom">
It says "no background attribute" I tried using css to define the backbround image but it would cut them off.
Here is the full code of the table these are nested in:
<div class="col2">
<table width="412" align="center" class="style1">
<tr>
<td class="tabnav" background="images/tab1.gif" width="120" height="25" valign="bottom">
<center><a href="hospitals.html"
onmouseover="jsfx.fadeIn('tvscreen','hospital')"
onmouseout="jsfx.fadeOut('tvscreen')"><b>Hospitals</b></a></center></td>
<td class="tabnav" background="images/tab2.gif" width="170" height="25" valign="bottom">
<center><a href="clinical.html"
onmouseover="jsfx.fadeIn('tvscreen','practice')"
onmouseout="jsfx.fadeOut('tvscreen')"><b>Clinical Practices</b></a>
</center>
</td>
<td class="tabnav" background="images/tab1.gif" width="120" height="25" valign="bottom">
<center><a href="patients.html"
onmouseover="jsfx.fadeIn('tvscreen','patient')"
onmouseout="jsfx.fadeOut('tvscreen')"><b>Patients</b></a></center></td></tr></table>
<table width="412" cellspacing="0" cellpadding="0" border="1" align="center" bgcolor="#ffffff">
<tr>
<td background="images/window1.gif">
<img name="tvscreen"
src="images/window1.gif" width="412" height="217" class="imgFader" border="0" alt="" /></td>
</tr>
</table> </div>
Here are the related CSS classes:
.col2
float: left;
margin-left: 70px;
.style1
font-family: Arial;
font-size:14px;
font-weight: bold;
text-align: center;
.tabnav a
text-decoration: none;
font-family: "arial narrow";
font-weight: bold;
font-size: 14px;
color: #0052a4;
padding: 0;
.tabnav a:hover
color: #1e1e1e;
text-decoration: underline;
Since the W3 validation is only flagging Line 73 and not the other <td>'s do I need to worry about fixing it? If so, please help because everything I tried messsed it up.
Thanks!!!!!!!!!!!!!!! -
Any help on building Validation on Taxanomy.
Hi,
I am new to MDM, could any one guide me how to built validations on taxanomy?
There are 2 taxanomy tables and i have to check wheather a field value is same in both taxanomy tables.
It will be great help if some one forward some links where i can know abt building validation on taxanomy.
Regards,Hi Rajeev,
Assuming that the product table is link to the fields from both taxonomy tables...
You go to the validation tab in MDM data manager and from fields select your taxonomy1 field name and then from operators select '=' and then again from fields select taxonomy2 field name and you are all set. The expression should look like something this
Category [Name] = Category2 [Name]
This expression will return false if the values are not equal and true (no errors) if they are.
-Y -
Help for Focus problem (gone)
In a JDialog, there is a JButton. Clicking the button to popup a JPopupmenu with a JTree inside. clicking the tree node, the foucs is gone!
Please help!
Thank you very much!
--tcI think there's a set focus method
Maybe you are looking for
-
I have a MacBook Air (Intel Core 2 Duo) Mac OS X 10.6.8, I would like to update to Lion but I am not sure if I need the Snow Leopard, I am not sure if I have it, or if I can just download the Lion. Please help.
-
Can't switch back to 64bit mode in CS5!
I switched to 43 bit mode in CS5 clicking the checkbox in the info. section. I want to switch back but the check box is no longer visible! Where did it go and how can I switch back?
-
Hi, My requirement is to get the date(in scripts) like 20th May 2006 instead of 2006/05/20. How to get it? Can any one help me...
-
Unable to Hard Reset Lumia 800 - Phone Won't Turn ...
My phone won't get past the Nokia image when starting up. I have tried a soft and hard reset without luck. For a hard reset, instruction say that I should start with the phone off but whenever I turn it off, it starts back up again! Maybe this is wha
-
Hi I have one query with remuneration structure. as i have created remuneration structure without creating wage types. but when i assign this structure to employee in IT0008 it doesnt show pay scale group and level. pl find the following steps thr