Date of birth validation using java script-very urgent
hi all,
i am new to javascript. i need to validate the date of birth entered by the user.date entered should not be greater than today's date.help me out with the code.i need to display only error messages without using alert boxes.
user Date() function in javascript...
This link wld help you in getting some idea on date functions..
http://www.w3schools.com/js/js_obj_date.asp
regards
Shanu
Similar Messages
-
How to pass parameters to a page invoked using java script.--- Very Urgent.
Hello,
I have an advanced Table in my page. In the first column there is a
messageChoice. In the second column there is link item.On the link item i have set the following value for destination uri.
javascript:var a=window.open('OA.jsp?page=/AutoSales/oracle/apps/per/auto/webui/AutoSurrogatesPG&retainAM=Y','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbar=yes'); a.focus();
The user selects a value from the message choice and when he clicks on the link item, the value selected from the list should go to the new page invoked using java script as a parameter. I need the value selected from choice to generates few fields in the new page. I have preferred java script because i need the base page and a model window should open. I have tried using setForwardUrl() and setting '_blank' and new window for target frame property on the link item. But it isnt working. The new page is opening in the same window.
I have also tried putting the value in a session.
Please help with any kind of suggestions or solutions.
Thank you.Uma,
You need to
- Have a PPR Action on the messageChoice (this would trigger a form submit to populate the underlying View Attribute)
- Either
- Retrive the value from the View Attribute in the pop-up page (as I could see that you are retaining the AM)
- Use a SPEL in the link (on the modal page) to use the value from the View Attribute as the parameter value (in the form ${oa.current.<ViewAttributeName>)
HTH -
Migration from Crystal IX to BO-XI using java sdk-- very urgent
Post Author: Pranav.Sharma
CA Forum: Migration to XI R2
Need help in migration from Crystal Report IX to BO-XI.
Currently we are using CR IX and Java SDK to access reports from J2ee application. These reports reside on remote server where we have shared access to that directory.
We are accessing these reports through our j2ee application.Can anyone please elaborate whether we can use same SDK here with slight change in code probably in authentication related to CMS etc and calling mechanism or we have to go for BO java SDK alltogether. Is anything we are missing here?
Can anyone please help as we have to complete migration in 1-2 days.The first thing you will want to do is to publish all of your reports to Business Objects XI and make sure they all still work. Obviously they won't have the dynamic parameters anymore but you should just ensure they all work and are able to connect to their databases. You can use a tool like the publishing wizard to help you.
All the reports should now be available inside of XI.
Unfortunately you will need to manually modify all of the 400 reports to use the business objects Dynamic Cascading Parameters DCP.
There should be some DCP info in the Business Views documentation.
I hope this helps
Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju. -
How to do Front End Validation for JSP Forms using Java Script with 9iJD...
How to do Front End validation using 9iJD. Any wizard is there. We need to do the val. using Java Script. If its not available, please include that in the Production Release.
Thanks a lot. When is the Production Release is scheduled. Please tell us whether itll be available for Free Download. Bec, we couldnt buy. Bec, if its working fine with all the options without any bug only, we can ask our company to buy 9iJD by stating the advantages. Just explain us.
-
Hi ...
i have a tabular form
have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the 2nd column by using
java script
eg:
1st column empno-----by selecting the empno the related empname has to be popup
dept no....by selecting the deptno the related deptname has to be popup
thanks in advance,
kishoreThis is a very common question, see
https://forums.oracle.com/thread/2359498 -
Hi ,
I am trying to build a dynamic calculator in WAD which is as similar to one in Executive view in Cognos. The problem i am facing is, i can able to build a normal calculator by using java script but i am unable to read the key figure values from the analysis item on from the data provider in to by calculator by using on click function. I wanted to get the all the values in to a internal excel , so that my calculator can read the values from that. can any one help me on getting values in to internal excel by using java before the executing the web template ?...
Thanks in advance....
Jhon.
Edited by: sap bw on Jul 31, 2008 5:51 PM
Edited by: sap bw on Jul 31, 2008 5:52 PMI might not be understanding your question completely since you mention WAD and then Excel, but if you are asking how to get the key figure values using Javascript in WAD, you can go to the Dataprovider properties and enable 'Output Result Data'. This will embed an XML element into the HTML output that you can then parse using standard Javascript DOM navigation.
Hope this helps. -
How to pass values to variables in WAD 7.0 using java script
Hi.,
My requirement is based on WAD 7.0.
The sales value has to displayed in WAD using graph with various chart types.
I have created variables for plant and material group in a query.
I have created drop down box for plant with all plants in it, check box for material group and a Submit button in WAD in FORM tag of HTML coding.
Once all the values are set in drop down box, checkbox and if the user clicks on submit button, the values has to captured by the variables for which I have created and the graph has to be aligned to the new values in variables.
Kindly help me how to use java script to get the values from FORM and pass it to variables.
Regards,
SelvaHi Selva,
You do not need to use Javascript for this. Instead you can achieve this by using API Commands in WAD 7.0.
Please configure Action on the ButtonGroup webitem to use 'Commands'.
->Choose Command 'Set Variables Values / SET_VARIABLES_STATE' under Commands for Web Templates
->Set Display Variable Screen setting to OFF
->Choose Query Variable for Plant, Select Variable Type as 'Binding Type', Binding Type as 'Data Provider Selection', Data Provider as the one you have assigned to the Dropdown webitem, Characteristic as 0PLANT or as that assigned to the Dropdown webitem
->Repeat above steps for Query Variable Material Group
Now when you make a selection from the Dropdown webitems, the Chart output will change accordingly. Let me know if this helps.
--Priya -
Adobe Form : detect page break using java script
Hi,
How can we detect a page break at a runtime using java script? I need to display a data in internal table at header and unique for a document number. i've 10 order list which has multiple items, each of the orders are printed in a new page and i wanted to know this event using a java script which could help me to add some additional logic at header.....pls can someone help on this?Hello Prabhu,
From your doubt, what I understand is that, You have designed a header in Master Page. You need to fill this header using the Item table which is already designed in the design view(body page). Means you want to fill the Item details(which are in body page) into the header(which is in the master page).
To read the contents from body page into master page, you need to write Javascript code on the header fields(which is in the master page) in the Layout Ready Event.
For example, if you want to fill the field Order_description in header(master page) from the column Order_Description which is in the Item table(body page)
In the form layout, select the order_description field and in the event READY LAYOUT write the below JavaScript code.
var currpage = xfa.layout.page(this);------> Get the current page
var fields = 0;------> Variable to store the number of fields in that page.
fields = xfa.layout.pageContent(currpage-1, "field", 0); ------> Get the number of fields
for ( i=0; i<= fields.length-1; i++ ) ------> Loop on each field on the page
if ( fields.name == "ORDER_DESCRIPTION" ) ------> Check if the corresponding field is in the Item table
this.rawValue = fields.item(i).rawValue; ------> Assign that value in the Header field
Repeat the same steps for other fields in the Header. This will work for all Purchase Orders spanned across multiple pages. -
Read Text file using Java Script
Hi,
I am trying to read a text file using Java Script within the webroot of MII as .HTML file. I have provided the path as below but where I am not able to open the file. Any clue to provide the relative path or any changes required on the below path ?
var FileOpener = new ActiveXObject("Scripting.FileSystemObject");
var FilePointer = FileOpener.OpenTextFile("E:\\usr\\sap\\MID\\J00\\j2ee\\cluster\\apps\\sap.com\\xapps~xmii~ear\\servlet_jsp\\XMII\\root\\CM\\OCTAL\\TestTV\\Test.txt", 1, true);
FileContents = FilePointer.ReadAll(); // we can use FilePointer.ReadAll() to read all the lines
The Error Log shows as :
Path not found
Regards,
MohamedHi Mohamed,
I tried above code after importing JQuery Library through script Tag. It worked for me . Pls check.
Note : You can place Jquery1.xx.xx.js file in the same folder where you saved this IRPT/HTML file.
<HTML>
<HEAD>
<TITLE>Your Title Here</TITLE>
<SCRIPT type="text/javascript" src="jquery-1.9.1.js"></SCRIPT>
<script language="javascript">
function Read()
$.get( "http://ldcimfb.wdf.sap.corp:50100/XMII/CM/Regression_15.0/CrossTab.txt", function( data ) {
$(".result").html(data);
alert(data);
// The file content is available in this variable "data"
</script>
</HEAD>
<BODY onLoad="Read()">
</BODY>
</HTML> -
I am trying to find a sort of tutorial on how to use java scripts for pdf files, particularly in setting up repetitive links between several pdf files.
Here is a very nice website that has tons and tons of stuff for pdf using java script. Enjoy!
http://www.planetpdf.com/forumarchive/forum34.htm -
Can we use Java Script in SAP BusinessObjects Web Intelligence 4.1?
Can we use Java Script or any other Script in BI 4.1 Web Intelligence? If possible please do let me know the method/process
Hi Kranthi,
You have option to read a cell content as html. else you will have to go for SDK. I think you will get better suggestions, if you can explain your requirement in a little detailed manner.
refer below links for more details about SDK.
http://bukhantsov.org/2013/04/how-to-create-a-webi-document-using-java-report-engine-sdk/
Regards,
Nikhil Joy -
How to read a data from USB port using JAVA
hi all,
i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
Advance Thanks!!You can do this. Please use this link
[http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
What research did you do of your own? Have you done some testing application and tried yourself?? -
Hi,
I am trying to fetch properties of all lists of "Survey Type" from my site collection in SharePoint 2013 using script editor web part. I am able to fetch properties of one list by mentioning its name explicitly in code but not all survey
list.
My task is to display Survey name , description ,Time created and URLs of all survey lists using java script in script editor web part.
And let me know , if there is any other OOB feature of SharePoint 2013 to achieve the same.
Here is the code :
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
function sharePointReady() {
GetSurveyList();
function GetSurveyList() {
var spListTitle = " List Name";
var clientContext = new SP.ClientContext.get_current();
var oWeb = clientContext.get_web();
this.surveyList = oWeb.get_lists().getByTitle(spListTitle);
clientContext.load(surveyList);
clientContext.executeQueryAsync(Function.createDelegate(this, this.GetListProperties),Function.createDelegate(this, this.onFailure));
function GetListProperties() {
$("#SurveyList").text("");
var surveyTable = "<table border=1>";
surveyTable = surveyTable.concat("<tr><td>Survey Name</td>");
surveyTable = surveyTable.concat("<td>Survey Description</td>");
surveyTable = surveyTable.concat("<td>Time Created</td>");
surveyTable = surveyTable.concat("<tr><td>" + surveyList.get_title() + "</td>");
surveyTable = surveyTable.concat("<td>" + surveyList.get_description() + "</td>");
surveyTable = surveyTable.concat("<td>" + surveyList.get_created().format("MM/dd/yyyy hh:mm tt")+ "</td>");
surveyTable = surveyTable.concat("</table>");
$("#SurveyList").append(surveyTable);
function onFailure(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
<div id="SurveyList"></div>Shifa,
Please use search result webpart or content query webpart to list all survey list.
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Display pop ups in the jsp by using Java script
Hi
can any body say ,how to display pop ups in the jsp by using Java script ?that's correct. You can use the below code for AJAX request.
<script type="text/javascript">
var httpObject = getHTTPObject();
//create XMLHttpRequest object
function getHTTPObject() {
var xmlhttp;
if (window.XMLHttpRequest) // if Mozilla, Safari etc
xmlhttp = new XMLHttpRequest();
else if (window.ActiveXObject){ // if IE
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
catch ( e ){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
catch ( e ){}
return xmlhttp;
//define the function to send the request
function sendRequest(){
var currDesc = document.getElementById("description").value;
var URL = "manageMaintAction.do"; //action mapping in your struts-config
var queryString = "currDesc="+escape(currDesc); //get the currDesc value in your action class like request.getParameter("currDesc")
httpObject.open( "Post", URL, true );
httpObject.onreadystatechange = cbFn;
httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded");
httpObject.send(queryString);
//callback fn
function cbFn() {
if (httpObject.readyState == 4)
if (httpObject.status == 200)
var result = httpObject.responseText;
alert(result);
</script>
Maybe you are looking for
-
How much EJB I should to know?
Hi Experts. Hi i am making Guest house management system for a company in SAP netweaver and backend is oracle 10g. i learned basics of sap webDynpro like -->Navigation between views. -->Context programming -->Internationalization -->Basic UI componen
-
What do I do if a download is incomplete due to loss of internet connection?
I bought a song and it started to download, but then my interenet conncetion went out and it won't finish the download. What do i do? Do I have to buy it again?
-
Laptop crashed and lost info in iWeb...
Almost everything was wiped clean so now when I open iWeb everything is blank, no site, no pages but my website is still on the net and on my idisk. How do I get all my pages from my site back into iWeb so I can edit and publish them? Thanks.
-
Bound autosuggest only displays selective results?
I've been stumped by this issue and hope someone here can point me in the right direction: I have a autosuggest field that is bound to a component. When I call the component directly, it works as intended... when I try and use the component through t
-
I have several folders setup in my Safari. However, when I try to add a website to them, it never appears. When I add a folder and add a website to it, the website appears. Help?