|
so thanks a lot for your help ;
|
|
|
|
|
Hi all,
I am trying to execute javascript in a PDF that will allow the form to be submitted via email with a subject line that will pull a value from a field in the form. I am able to get the email portion to work, but I have not been able to customize the subject line to pull from the field. Below is the base script I am using to send the email without the customized subject line:
this.submitForm({
cURL: "mailto:aamos@lrrc.com?subject=TSC Form&body=",
cSubmitAs: "PDF"
});
The field I am wanting to pull from is labeled "Name". Below was one of my attempts, all of which have not worked.
Failed Script:
this.submitForm({
var Name = this.getField("Name").value;
cURL: "mailto:aamos@lrrc.com?subject=TSC Form (Name)&body= ) ",
cSubmitAs: "PDF"
});
Can some one point me in the right direction or help me with where I went wrong in the script? I am new to this, and glad I was able to execute the first script successfully but I feel I am in over my head with the customization.
Thanks in advance your your assistance.
AA
|
|
|
|
|
Member 13220732 wrote: javascript
javascript != java. You might have better luck asking in the appropriate forum.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
Thank you! As you can tell, I am a rookie. Googling only gets you so far. I have reposted, thank you!
|
|
|
|
|
UPDATE data SET
full_name = "SARA",
reg_num = "dawdawdaw",
note = "note",
price = 15,
date = 2017-05-17,
totalPay = 16,
expiration_date = 2017-06-16,
WHERE id = 1;
if I run this SQL statement it throws the following syntax error:
WHERE[*] id = 1 "; expected "identifier"; SQL statement:
What did I do wrong?
modified 15-May-17 4:09am.
|
|
|
|
|
Is this Java code? If so, then some of your variables look to be in the wrong format. Strings need to be bounded with double quotes. Not sure about those data values.
|
|
|
|
|
Thanks for your reply I edited the values of the String type with the double quotes
|
|
|
|
|
You have an additional comma after the last column to be set:
expiration_date = 2017-06-16, The parser expects another column to be set beginning with an identifier but it found the WHERE keyword.
So remove that comma:
UPDATE data SET
full_name = "SARA",
reg_num = "dawdawdaw",
note = "note",
price = 15,
date = 2017-05-17,
totalPay = 16,
expiration_date = 2017-06-16
WHERE id = 1;
|
|
|
|
|
Thank you so much it works now
|
|
|
|
|
Are you sure? I suspect you'll probably need quotes around the date values. Otherwise, 2017-05-17 will become 1995 .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
"it's working now" probably means no exceptions were thrown.
|
|
|
|
|
Dates are not handled this way.
This
date = 2017-05-17
translate as
date = 1995
Date Functions in SQL Server and MySQL[^]
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Dear Friends, When build MyFristApplicationAndroid, It appear error message below:
Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher
I choose struct project and repair.
I delete C:\Program Files\Android\Android Studio\jre
And I update C:\Program Files\Java\jdk1.8.0_131
And I have had the second error below:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugUnitTestApkCopy'.
> Could not resolve junit:junit:4.12.
Required by:
project :app
> Could not resolve junit:junit:4.12.
> Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Could not GET 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect
I HOPE YOU HELP ME REPAIR 2 ERRORS ABOVE. THANK YOU SO MUCH.
|
|
|
|
|
Cao Khả Tú wrote: Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect We cannot fix your internet connection.
|
|
|
|
|
|
How do we make responsive software??? ;)
|
|
|
|
|
The same way you make any type of software.
|
|
|
|
|
A small Off Broadway Theater is opening in Manhattan. The theater consists of an orchestra section and a balcony. The manager purchased a computer for its automated ticket system; and you’ve been awarded the contract to program the test system that will assign seats for the Opening Night of “String Man”.
Your program should display the following choices: Please enter 1 for orchestra and 2 for balcony. If the person types 1, your program will assign a seat in the orchestra section (rows 1-10, 20 seats per row). If the person types 2, your program should assign a seat in the balcony section (rows 11-20, 15 seats per row).
Use a two-dimensional irregular array of primitive type boolean to represent the seating chart of the theater. Initialize all the elements of the array to false to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is no longer available.
Your program should never assign a seat that has already been assigned. If either the orchestra section or the balcony becomes full, your program should display a message indicating that section is full; and ask the user if they would like a seat in the remaining section. If the user responds, “no”, your program should display the string, “Next performance is in one week”. If both sections are full, your program should display the string, “Sorry, Opening Night is Sold Out”.
When a seat is assigned, your program should print out a ticket indicating the row and seat assignment.
|
|
|
|
|
Member 13189964 wrote: and you’ve been awarded the contract to program the test system That's you, not anyone here. This site is not here to provide free code, or to do your homework assignments.
|
|
|
|
|
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
As programmer, your job is to create algorithms that solve specific problems and you can't rely on someone else to eternally do it for you, so there is a time where you will have to learn how to. And the sooner, the better.
When you just ask for the solution, it is like trying to learn to drive a car by having someone else training.
Creating an algorithm is basically finding the maths and make necessary adaptation to fit your actual problem.
The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com[^]
That's not the same thing as "have a quick google and give up if I can't find exactly the right code".
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
it could not print the message like bellow
/*
this is the first program
*/
only print
/*
*/
package javaapplication5;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* BufferedReader and Scanner can be used to read line by line from any File or
* console in Java.
* This Java program demonstrate line by line reading using BufferedReader in Java
*
* @author Javin Paul
*/
public class BufferedReaderExample {
public static void main(String args[]) throws IOException{
//reading file line by line in Java using BufferedReader
FileInputStream fis = null;
BufferedReader br = null;
//String line;
try {
fis = new FileInputStream("E:/Sum.txt");
br = new BufferedReader(new InputStreamReader(fis));
String line;
while((line = br.readLine()) != null){
if(line.contains("/*") || line.contains("*/")|| line.contains("//")){
System.out.println(line);
}
else
System.out.println("");
}
br.close();
}
catch(IOException e){
System.out.println("file could not read");
}
}
}
|
|
|
|
|
When I tried to run a code, an error occurred. Please explain why error occurred and how to fix it, thanks.
Here is my code:
import java.util.ArrayList;
class Demo
{
public static void main(String[] args) {
ArrayList<String> list1 = new ArrayList<String>();
ArrayList<String> list2 = new ArrayList<String>();
int index = 0;
list1.add("ahio");
list1.add("bro");
list1.add("higoodbye");
list2.add("hi");
list2.add("goodbye");
for (String x : list1) {
for (String y : list2) {
if (x.contains(y)) {
index = list1.indexOf(x);
list1.set(index, x.replaceAll(y, y.replaceAll("[a-zA-Z]", "*")));
}
}
}
System.out.println(String.join(" ", list1));
}
}
Here is my error:
Warning\Error
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:418)
at java.util.ArrayList.set(ArrayList.java:446)
at Demo.main(Main.java:20)
|
|
|
|
|
The value of index is -1 , which indicates that the element was not found in list1 . You need to check the values of all the variables to see why.
[edit]
In the last case x contains "higoodbye" and y contains "hi" . The search succeeds and the contents of the element in list1 is modified. On the next iteration of list2, y contains "goodbye" so it matches x, but the element in list1 has been modified so the indexOf method returns -1.
[/edit]
modified 1-May-17 3:31am.
|
|
|
|
|
I am trying to use third party sdk or restful api to enable Biometric Authentication in our web based application.
Currently I am checking which will be best and fits the requirement.
Any suggestions please?
|
|
|
|
|
What biometric device will you be using, and how will the user be able to access it?
|
|
|
|