Is it possible to calculate the number of two or more in the same field?
What is trying to do is to caculate a number of pages of the book for a copy.
For example I want to copy pages from 25 to 30, then the user will write 25-30
the number of copies will be equal to sum = "30-25 + 1".
and if the user write only a single number, the number of copies is equal "sum = sum + 1.
Thus, user input will be like that "25-30, 45-60, 65, 67.
I think using a table and one ',' split
var sumArray = new Array(); sumArray = sum.split(",");
Y at - it all possible ways to do this?
Thanx
Hi, I think you can use a regular expression, but I would use a split as well, something like;
var pageNumbers = TextField1.rawValue.split(",");
var sum = 0;
var isValid = true;
for (var i = 0; i)< pagenumbers.length;="">
{
var pages = pageNumbers [i].split("-");
Check for all elements of number
If (! pages.every (function (element) {return (element == parseInt (element, 10)) ;}))}))
{
xfa.host.messageBox ("Please enter list separated by commas in number of pages, with a range separated by a dash, for example, 25-30, 45-60, 65, 67");
isValid = false;
break;
}
If (pages.length > 2)
{
xfa.host.messageBox ("Please enter a range of pages separated by a dash, e.g. \"45-60\ "" ");
isValid = false;
break;
}
If (pages.length == 1)
{
sum ++;
}
on the other
{
var start = parseInt (pages [0]);
var end = parseInt (pages [1]);
If (end<>
{
xfa.host.messageBox ("Please enter a valid page range separated by a hyphen with the start page in the first place, for example \"45-60\ "" ");
isValid = false;
break;
}
sum += (end - start + 1);
}
}
If (isValid)
{
App.Alert (Sum);
}
Might need some more error handling but I hope will help you get started.
Concerning
Bruce
Tags: Adobe LiveCycle
Similar Questions
-
What is the possibility of obtaining the same repeated random number?
I would like to generate a random number of 5 digits;
Select round (dbms_random.value (10, 999990)) twice;
The query above seems pretty good, but what is the possibility of obtaining the same repeated random number? I'm fine with repetition until it spreads not less than a second. Is there such a guarantee?
Thank you
VINET983902 wrote:
I would like to generate a random number of 5 digits;Select round (dbms_random.value (10, 999990)) twice;
On my laptop, I can call trunc (dbms_random.value (0,100000))-which allows a random number to range form 0 to 99 000 - 100 000 times per second. The probability of repetition in a second depends on the number of calls per second, but in my case that the worst cases are a value that appeared 8 times and 18 445 values appeared twice.
From what you have said so far, I'd probably use a column of date and a sequence in a column number (10) - possibly with a separate strain by table - for a high volume system.
Concerning
Jonathan Lewis -
Hello
Is it possible to have the same display of the content as one of the batteries (Dock) to any folder (found in the Dock)?
I think that the question is quite clear
I mean it is coded somehow for chimneys, is it possible to apply it to a different folder?
I like the idea of click once, choose the file only I want without having to open/close, he
Thank you
You can only if you drag any folder to the right of the dock.
-
Is it possible to draw the same color for each curve automatically
Hello
Is it possible to draw the same color for each curve automatically. I use graphic XY basis with data set.
Lol you'll either need to set the properties through the dialog box. Or use the nodes property of the graph to adjust the Active plot and then set the color of the plot. This can be done in a loop For.
-
Is it possible to configure the same user for 500 systems that run under XP & Win7?
Hello
About 500 systems are run under Windows XP & Windows7, is it possible to use the same user for all 500 systems?
Hi SupportRI,
Windows Live family safety is no longer manages the accounts of children using Windows Live ID Windows Live ID on behalf of the child is essentially used for the feature of managing contacts (restrictions on the use of Hotmail and Messenger). Currently, parental control can manage Windows users; However, if you have already configured a Windows Live ID account before the update, it will be always available. You can see the thread below for more information.
Where is the function of the safety Contact family management?
If you intend to use Windows Live Family Safety for all users of 500 to restrict the Internet connection, please note that parental control does not restrict the Internet and Web sites. You also have the option in the list of content filtering Web to apply the rules to all users under the Family Safety.
For more information on how you can install Windows Live Family Safety, please visit the link below.
Protect your kids with parental controls
Thank you!
-
Is it possible to keep the same e-mail account but change the Windows Live ID
Change hotmail (Windows Live ID)
HelloI just wanted to know - is it possible to keep the same e-mail account, but change the Windows Live ID. I know that the password can be changed but how do I change the ID and keep the same account. Thank you
Hello REMY Senguptta,.
The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:
Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.
-
Is it possible to use the same license on my PC and my laptop?
Hello
I have a PC where I installed Adobe cloud (CC PS and LR CC) and I bought a laptop now.
Is it possible to use the same license on my PC and my laptop? I have Yes, how do I use it?
Thank you
Erdogan
Yes. Your license allows you to have two signed in facilities as long as you only use one at a time for the subscription. Install the desktop application on the second computer, connect and install the applications.
-
Is it possible to use the same license on two computers; fixed and portable?
I have licensed Adobe Creative Cloud for PC. Is it possible to use the same license on two computers; my desktop and my laptop?
Hello
You can have the creative cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the Adobe using your Adobe ID website, download the desktop app from clouds, then download the software. Log on a computer that you will not use:
log in and log out of the desktop Adobe Creative Cloud application
Let us know if you have more questions!
-
How to apply different fonts to text (words) in the same field
Please help, how to apply different fonts to text (words) in the same field. I want to select text and apply the font, size and color on the selected text in the field, this code below, the setFont method changes all the text in a field (message) of a select statement to the police. Help, please
message = new AutoTextEditField("","",maxNumChars,editableStyle) { protected void layout(int width, int height) { super.layout(width, height); this.setExtent(550, 250); } }; message.setBorder(border); message.setMargin(xyEdgeForMargin); message.setPadding(xyEdgeForPadding); message.setFont(_menuFont);
Just write your edit as field
SerializableAttribute public class RichEditField extends BasicEditFields
{
int [] offsets = null;
Are police [] = null;
String text = null;
RichEditField (label As String, String text, int [] offsets, make police [])
{
Super (label, text);
This.Text = Text;
This.Label = Label;
Offsets = this.offsets;
This.font = do;
Add validation for offsets and text here
}
RichEditField (label As String, String text)
{
Super (label, text);
This.Text = Text;
This.Label = Label;
This.offsets = {0};
This.font = {g.getDefaultFont ()};
Add validation for offsets and text here
}
/ * Here is a method to add customization of fonts as
setFont (offset, length);
setFont (offset);
public void paint (Graphics g)
{
g, Clear ();
for (int i = 0; i)<>
{
calculate it according to x, y using offset
int length = 0;
g.setFont (do [i]);
If (i<>
length = offset [i + 1] - offset [i];
on the other
Length = Text.length () - offset [i];
g.drawText (text.substring (0, length), x, y);
Super.Paint (g);
}
}
This method is not compiled may have errors and may have many features according to your needs.
-
Digital signature in the same field or FreeType?
Hello
I have created a form for someone who wants to be able to use a digital signature or free type in the same field.
I tried to create a new combo box with the free type as the first option, but can't seem to find a way to get a digital signature as the second option.
Does anyone know if it is possible to get these two options in a field?
Thanks in advance.
No, it is not possible. You will need to use two different areas.
-
WebCenter spaces &; UCM - they both go in the same field?
I installed the two spaces & UCM and am at the stage where a domain is configured.
For installation vanilla, trying to keep things as simple as possible for a test environment, if all the spaces & UCM components light up on the same domain?
Or is there a reason I don't want to divide them?
(Yes, I clearly don't understand the domain part earlier!)
Thank youCertainly you want to put in the same field.
A domain does not mean that each component is deployed on the same server. A domain can have multiple servers.You can watch a domain as a collection of servers that need to work together.
When you want to use UCM + Webcenter spaces you want because they are in the same domain in this way, you can manage the WCS and UCM using the same enterprise manager and console weblogic. If you create a separate domain, you have two different enterrpsie managers and weblogic console. -
Hello
Can someone confirm if OSR 11.1. 1.6 is supported in the same field from SOA 11.1.1.7?
Y at - it no document indicating 11.1.1.6 & one 11.1.1.7 can coexist in the same area.
Thanks in advance,Vijaya
Hi Vijaya,
I suppose that there is nothing wrong with having the 11.1.1.6 SBA and SOA 11.1.1.7 as part of the same domain. These two products have the same supported version of i.e. of weblogic 11 GR 1 material WebLogic Server (+ 10.3.5).
How ever, there are some prerequisites that we must follow when installing OSR 11 g in the area and the same as Oracle SOA Suite 11 g Weblogic environment.
Here are some documents that will be useful
(1) the prerequisites provided in the release notes for the respective operating system. This is how we do for IBM AIX
http://docs.Oracle.com/CD/E28280_01/doc.1111/e14771/install.htm#ASRAX6165
(2) support Note Doc ID 1089793.1: installation OSR 11 g in the same Weblogic environment and area that Oracle SOA Suite 11 g PS1 and PS2
Requires the password and username of support Oracle
Please let me know if this is useful.
Best regards
Amandine
-
In the same field of text using several web fonts
I know that I can do something like that when you call more weight in a web font:
SYM. $("copier") .html ("< span style =" make-weight: 700;) "> </span > adobe | Who we are ')
And the word Adobe will be bolder than our subject. But what about using more than one font in the same text field? I tried this:
SYM. $("copier") .html ("< span style =" font family: "Open without", without serif;) "> </Span > UHLIG |" Who we are ')
Now it does not work and I get a SyntaxError: missing) after the argument list
I then tried
SYM. $("copier") .html ("< span style =" font family: "Open without", without serif;) "> </Span > UHLIG |" Who we are ')
and the text returned, but all that has been selected in the menu fonts was what that displayed.
Is there a way to get around this to display two different fonts, web fonts or not, in the same field?
Actually, I just found who. So instead of using the family of police at all, instead I did this:
SYM. $('tête') .html ("Heading1 |") Title2');
and then assigned a style called headEdge (or other) in an external style sheet that I used for other styles. Worked.
As we have said before, regardless of the path we can get!
-
several checkboxes show/hide the same fields
Hello
I use Adobe LIvecycle designer ES2. I have about 20 checkboxs need to show and hide the same fields. I can get it to show and hide the fields if the check boxes are selected. The problem lies when you uncheck a checkbox, allowing to hide the fields but if the original box is not disabled I would like this information to stay. How do I script for this
Hello
You have complete control over it.
Here are various approaches if you had four check boxes controlling the presence of a subform. All scripts are FormCalc and in the case of page layout: ready for the subform.
Where any box would display the subform:
If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) ge 1) then
.its presence $ = 'visible '.
on the other
.its presence $ = "hidden".
endif
Where all four box have to click it to show the subform:
If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) EQ. 4) then
.its presence $ = 'visible '.
on the other
.its presence $ = "hidden".
endif
Make sense?
Niall
-
Is it possible to have the same work performed several times using the jobs and Planner?
I was instructed to examine whether we can move all our DBMS and jobs table that are scheduled using submit next procedure of jobs in the job scheduler
There are several offers that concern them;
We run every 3 seconds - this work may take 20 minutes to complete and there may be multiple running simultaneously 8-9, both
so, my question is possible to use the Scheduler for simply helping employment and then 3 seconds we kickoff again?
or the first inning started three seconds ago should finish before the next could draw?
is there any solutions for this?
I thought maybe you could create a script that creates a new entry every 3 seconds which is named work differently so that they can run at the same time, however, I hope that there is a more simple solution
DB - 11g
Thank you
Thanks for the comments. It's a start. What I do for this work is to use a program. Since my job call the same routine with the same number of arguments. I create based on a program.
-
Is it possible to install the same recovery XP 2 times on 2 partitions
Dear people.
Is it possible to install the Recovery XP home 2 times on 2 partitions on my Satellite?
I want one as a desktop and one for music downloads.When I boot the second new system installed there say: installation is not complete, please reinstall!
Thanks in advance
What model of laptop you have exactly? As previous user written with former recovery media, it should be possible (I can't tell for sure) because the use of the expert installations you can choose the partition where the OS is to be installed.
If you have newer model cell phone with new software to recovery (RECO) something like this is not possible.
Maybe you are looking for
-
Hello I use the pc hp Pavilion dv6-6015tx laptop. I just bought a year ago. I now want to upgrade to Pro Windows7 HomeBasic Windows8. Is it safe to upgrade? I actually checked with the Assistant of Windows8 upgrade & it has just shown that some 6 to
-
A few days ago, I bought a mac mini and I transferred all my data and programs with time machine: all programs have been updated but iMovie (7.1.4)... However, it seems that, to update to the latest version, I have to pay to download on Appstore: is
-
High level VI execution control... What don't get me?
Hello all- I am writing an app that has controls on the front panel to access the calibration routines or collection of two subsets of channels on my data acquisition hardware (USB-6211)... called A Bank and Bank B. The problem is that, once I calle
-
Laptop will not go into sleep mode
Mode, Sony laptop Vaio VGN-FE855EIntel centrino Duo 1.67 Ghz2 GB RAM 667 Mhz Kingston120 GB HDDMobile Intel 945 Express Chipset FamilyAll the latest drivers as of April have been installed on the hardware.with Windows Vista SP1 After receiving the la
-
When I print USPS labels shipping on USPS web site, the date will be printed on the label. Did not do that when I used W2000, started when I went to XP. How can I stop it? original title: Date printing on labels