Enter Data into Two Fields At Once
This seems like it should be simple, but I can't find anything on it. I'm creating a fillable pdf, and I need the data from one text field to appear in another text field.
Example: The form has two sections, one for the applicant to fill out and one for office use only. There is a field for "Project Address" in both sections. The client wants the address entered in the first field to be automatically populated in the second address field.
How do I make that happen?
If you give both fields the same name, they will automatically have the same value. But if you want the second field to be editable independently of the first address field, you can use the following custom Validate script for the first field. It will set the second field's value to the same as the first if the second field is blank.
// Custom Validate script for text field
(function () {
// Get a reference to the second field
var f = getField("ProjectAddress2");
// Set the second address field to this field's value, if it's blank
if (!f.valueAsString) f.value = event.value;
Replace "ProjectAddress2" with the actual name of the field.
Similar Messages
-
How to insert data into two tables at once using XSJS
Hello Experts,
My requirement is to insert data into two tables at once. I have a XS JS app and want to update these tables via xsjs. How can I do this ?
Is there any mechanism like sql 'transactions' also in Hana ? If yes, how can I call it via xsjs ? If not, what are the ways to populate two different tables at once.
Please advice. Any help is really appreciated.
Thanks !There is nothing special about inserting into two tables at once in XSJS. Just issue two separate SQL Statements. Don't execute the COMMIT until after both commands. That way they are all one transaction.
-
Entering dates into two cells and then receiving a corresponding range to be formatted
I am new to VBA. I am trying to set up a reservation system using Excel. The rows are the different rooms and the columns are the dates. The tutorial that I am using to set up this system didn't go far enough for my liking. Using
the current code it will find use the "start date" from the data entry cell and show the name in a calendar type data range. What I need to add is an "end date" which will then show all of the dates for that booking. I'm not
sure how to put that into the code that the tutorial already had. Here is that code. Any help would be greatly appreciated.
sincerely,
Andy
VBA Code:
Sub Bookings()
Dim Rm As Range, Dt As Range, Myrng As Range, Sites As Range
Dim endCol As Range, StCol As Range, StRow As Range, endRow As Range
Dim Codei As Range, Col As Range
Dim Dws As Worksheet, Cws As Worksheet
Dim x As Integer
Dim LastRow As Long
Dim aCell As Range, bCell As Range, dCell As Range
Set Cws = Sheet1
Set Dws = Sheet2
Set StCol = Cws.Range("I5")
Set endCol = Cws.Range("K5")
Set StRow = Cws.Range("M5")
Set endRow = Cws.Range("O5")
LastRow = Dws.Range("C" & Rows.Count).End(xlUp).Row
Set Myrng = Dws.Range("C7:C" & LastRow) 'data sheet columns
Cws.Range("G12:AH31").ClearContents
Cws.Range("G12:AH31").Interior.ColorIndex = xlNone
For x = StRow To endRow
Set Sites = Cws.Cells(x, 6)
For Each dCell In Cws.Range(Cells(x, StCol), Cells(x, endCol))
If Not dCell Is Nothing Then
Set Dt = Cells(11, dCell.Column)
Set aCell = Myrng.Find(What:=Sites, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows,
SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not aCell Is Nothing Then
Set bCell = aCell
Do
Set aCell = Myrng.FindNext(After:=aCell)
If aCell.Offset(0, 1).Value = Dt.Value Then
Set Codei = aCell.Cells(1, 4)
Set Col = aCell.Cells(1, 3)
dCell.Value = Codei
Select Case Col
Case Cws.Range("AP9").Value
dCell.Interior.ColorIndex = 27
Case Cws.Range("AP10").Value
dCell.Interior.ColorIndex = 24
Case Cws.Range("AP11").Value
dCell.Interior.ColorIndex = 4
Case Cws.Range("AP12").Value
dCell.Interior.ColorIndex = 38
End Select
End If
If Not aCell Is Nothing Then
If aCell.Address = bCell.Address Then Exit Do
Else
Exit Do
End If
Loop
End If
End If
Next dCell
Next
On Error GoTo 0
End SubNot sure how you derive Actual Cost numbers, etc. but you can use the INDEX MATCH combination to solve a problem like this.
INDEX looks up a value from a range given a row number and column number.
MATCH can get the row number and column number you need.
Putting it all together here:
The formula in G2 of 'Table 2':
=INDEX(Table A::$A:$G,MATCH(A2,Table A::$A,0),MATCH(G2,Table A::$1:$1,0)+2)
This looks more complicated than it is. Breaking it down:
=MATCH(A2,Table A::$A,0) simply tells Numbers to take the value in A2 and find out where it occurs in Column A of 'Table A'.
=MATCH(G2,Table A::$1:$1,0)+2 tells Numbers to take the value in G2 and find out where it occurs in Row 1 of 'Table A'. Then it adds 2 because the way you have the table set up you need to shift over two columns to get the actual cost after the 'Retro Deal'.
=INDEX(Table A::$A:$G, <first MATCH expression>,<second MATCH expression>) looks up the results in the whole of Table A (here columns A through G).
SG -
I'm running on Mac OS X 10.7.4, Firefox 14.0.1. This issue didn't exist until this most recent Firefox update. Basically, a preference pane opens every time data is being entered into a field. It doesn't seem to be the same preference pane that you see when you open the preferences through the normal Firefox access ie. Firefox > Preferences. All of the choices listed in this particular preference pane are specific to Firefox though. I have a screen capture that I could include if wanted. When using 1Password the pane appears, when entering a search in the search bar near the address bar the pane pops up, when entering data into any field as I am now filling in this detail report the pane also pops up. It's quite annoying. Any advice? I'm going to systematically attempt to quit any add-ons and see if that makes a difference. I ave already tried doing a reinstall to no avail.
I think a screen shot would be helpful. There is a box below the compose area of a reply to upload files.
-
I am looking for a way to enter multiple dates into a field without the form becoming too long.
This will be used by an old school bookeeper who needs the form to fit on one page.
Any ideas?Hi,
If you don't need the field to provide a date picker, verify it's a date, or don't need to sort the dates in the table, you can just use a text area field, and have your form filler enter the dates comma separated. Otherwise you'd have to add multiple fields. However, you can lessen the space each field takes up veritically, by using the "Labels Left" option (in the toolbar).
Thanks,
Todd -
Insert data into multiple entities at once using a view object
Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)?Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)? Peter:
This is definitely supported and tested. Please send us the exception stack trace. You must running into other problems. A few things to note:
A) You have to mark the entities as both updateable (not read-only) and not reference-only.
B) If you're not seeing an exception stack, turn on diagnostic. Here is how:
To turn on diagnostic, go to the IDE,
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
You should now see a lot more output on the IDE's message window. Here you should see the exception stack trace.
If you invoking your app directly from command prompt, just add "-Djbo.debugoutput=console" after your "java.exe".
Thanks.
Sung -
Auto populate text fields with a trigger such as entering text into input fields in ADF
Hello all,
I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
its not working ..
is there any way to achieve it
Regards,
ShakirHi,
Always mention your JDev version.
The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
-Arun -
Why would entering data into a basic form be so slow?
We have a form created in Acrobat 8.0 that has about 30 fields. They are only fields to be filled in and then the form is printed.
Until we updated Adobe Reader to version 9.1.1, we had no issues entering data into the form. With versions 9.1.1 and above, data entry gets slower and slower as you move down the form.
Entering data into the first part of the form is rapid. When entering data into the middle part of the form, you can type characters and then watch as the characters slowly appear. When you get to the end of the form. the characters you type can take about 5 seconds each befor they appear.
Can't figure out why version 9.1.1 and higher cause data entry to get progressively slower as you move down the form.Hi,
I realize that you mentioned that it worked in 9.1, so perhaps the problem is not related to RDP performance. However, you still might want to have a look at Ericom Blaze, a software product that accelerates and compresses standard Microsoft RDP. Blaze accelerates RDP performance by as much as 10-25 times, and helps deliver higher frame rates and reduce screen freezes and choppiness.
You can read more about Blaze at:
http://www.ericom.com/ericom_blaze.asp?URL_ID=708
Or view a video demo at:
http://www.ericom.com/blaze_youtube.asp?URL_ID=708
Hope this helps.
Adam
Ericom -
Help needed with SQL to split huge data into two excel or text files.
Hi,
I have a table which has around 1850000 records. I want to split the data into two sets and import the data in .txt or execl file.
How can i break upthe records using rownum or any thing
select * from tablename where rownum<940000 fetched some records
but
when i gave select * from tablename where rownum>940000 it was not fetching records.
Guidemewhen i gave select * from tablename where rownum>940000 it was not fetching records.try this
select * from (select tablename.*, rownum rn from tablename) where rn >940000 -
Insert the data into two tables at a time.
Hi ,
i have these two tables
create table [dbo].[test1](
[test1_id] [int] identity(1,1) primary key,
[test2_id] [int] not null
create table [dbo].[test2](
[test2_id] [int] identity(1,1) primary key,
[test1_id] [int] not null
alter table [dbo].[test1]
add constraint [fk_test1_test2_id] foreign key([test2_id])
references [dbo].[test2] ([test2_id])
alter table [dbo].[test2] add constraint [fk_test2_test2_id] foreign key([test1_id])
references [dbo].[test1] ([test1_id])
I want to insert the data into two tables in one insert statement. How can i do this using T-SQL ?
Thanks in advance.You can INSERT into both tables within one Transaction but not in one statement. By the way, you would need to alter your dbo.Test1 table to allow null for first INSERT test2_id column
See sample code below:
CREATE TABLE #test1(test1_ID INT IDENTITY(1,1),test2_id INT NULL)
CREATE TABLE #test2(test2_ID INT IDENTITY(1,1),test1_ID INT)
DECLARE @Test1dentity INT
DECLARE @Test2dentity INT
BEGIN TRAN
-- Insert NULL as test2_ID value is unknown
INSERT INTO #test1(test2_ID)
SELECT NULL;
-- get inserted identity value
SET @Test1dentity = SCOPE_IDENTITY();
INSERT INTO #test2(test1_ID)
SELECT @Test1dentity;
-- get inserted identity value
SET @Test2dentity = SCOPE_IDENTITY();
-- Update test1 table
UPDATE #test1
SET test2_ID = @Test2dentity
WHERE test1_ID = @Test1dentity;
COMMIT
SELECT * FROM #test1;
SELECT * FROM #test2;
-- Drop temp tables
IF OBJECT_ID('tempdb..#test1') IS NOT NULL
BEGIN
DROP TABLE #test1
END
IF OBJECT_ID('tempdb..#test2') IS NOT NULL
BEGIN
DROP TABLE #test2
END
web: www.ronnierahman.com -
Error by inserting data into a field of datatype LONG
Hi,
When inserting data into a field of datatype long in oracle8 database via SQL Plus or SQL worksheet there occurs the following error message: "field in data file exceeds the maximum length".
If I access to the database from a selve written program via odbc there is no problem when inserting the data by the same sql statement.
So what can I do?
Thanks in advance!
JuergenWhat does your SQL statement look like?
-
I have manually inputted data into a blank spreadsheet and would like to use a form to enter data into that sheet !!! How do I do that please
Leigh,
After creating your table, Tap the Tab marked "+" and select "Form" - you will be asked which table to use. (You should get into the habit of naming your tables - if the table name isn't visible, select the table and tap the Styles (Brush) Menu > Table > Turn ON table Name, then double tap on the Table to edit it.)
Select the table you wish to to fill with a form and you will see a new form based on the header data.
The form will allow you to add one row at a time and when you get to the last row, there is an option at the bottom of the form to add a new row using the "+" button. At the top of the form is the row header which you can rename by double tapping.
You can also rename the form on the Tab by double tapping on the name.
Try it out. -
Is there a way to enter data into a numbers cell on the screen directly, no keypad?
Is there a way to enter data into a numbers cell on the screen directly, no keypad?
Using a stylus or finger?No. You have to use the built-in keyboard or a bluetooth connected external keyboard.
Cheers, Tom -
Is it possible to insert data into two Excel worksheets using Report Generation Toolkit?
I'm using the toolkit to insert data into two separate worksheets in Excel using named cells. The problem is that it tends to favor one sheet or the other. In other words, one sheet will have data and the other no data and vice versa. (Sometimes I get data in both sheets.) Is there something I can do to clear this up or is what I'm trying to do unreasonable? I would like to use two worksheets so one sheet receives text and data. The other sheet is used to format the data into a printable report. (i.e. using Excel's CONCATENATE function) The second (report) sheet is also used to receive plots (JPEG files) from LabVIEW. I'd send the plot images to the first sheet, but I can
not see a way to automatically transfer images from sheet to sheet. I'm using LV 7.1, Win2000 and Toolkit v.1.0.1Hi,
You can use the "Excel Get Worksheet.vi" under All Functions >> Report Generation >> Excel Specific >> Excel General to specify a particular worksheet as the current worksheet. Then, you can specify which worksheet you want to write to in your VI.
Let me know if you have any further questions and good luck!
Kileen C.
NI -
Using numberd buttons to enter text into a field
Hi all, was wondering if I had 10 seperate sprites acting as
buttons on a page, which will be numbered 0 -9, is it possible to
use them to enter text into a field. e.g.
If the user presses the sprite with a number 1 on it, would
it be possible to have a 1 displayed in an edit field. I need to
pretend as though im using a remote.
thanksYou can create a behavior that will allow you to set a
variable for each
button. When you assign the behavior to your button sprite,
it'll
prompt you to enter the ButtonNumber property. Haven't tested
this yet,
but something like this should work:
global gNumberEntered
property ButtonNumber
on getPropertyDescriptionList
description = [:]
addprop description, #ButtonNumber, [#comment:"Enter number
to assign
to this button", #format:#integer, #range:[1,10], #default:
1]
return description
end getPropertyDescriptionList
on mouseup
sprite(the currentSpriteNum).member = member("buttonOver")
gNumberEntered = ButtonNumber
cursor -1
end
on mouseEnter me
sprite(the currentSpriteNum).member = member("buttonOver")
cursor 280
end
on mouseDown me
sprite(the currentSpriteNum).member = member("buttonDown")
end
on mouseLeave me
sprite(the currentSpriteNum).member = member("buttonUp")
cursor -1
end
Maybe you are looking for
-
Time out error on Report builder
Hello, There is a report I built that pulls a lot of data understandably. However, when I run this report, it times out. I have set the time out value to be 0 and it still times out. The only error it brings is that, The operation has timed out.. Ple
-
Can't sign into iTunes Store since upgrading to 10.6.0.40 on Windows 7.
The iTunes 10.6.0.40 upgrade will not allow me to sign into the iTunes Store on my Windows 7 laptop. I did a uninstall and reinstall following the technote titled "Removing and reinstalling iTunes, QuickTime, and other software components for Window
-
Can PMAC be run Daily and Can we see the Batch Update Cost Daily?
Dear Gurus, My Client wants to see Daily Updated Cost each end of day Through PMAC. Is it possible to run daily and Can we also see the COGS too. Now we have a Requirement here : My Clinet During the Production Process uses : Boiler Fuel, Chlorine, E
-
Transporting Objects from Development to Quality
Hello Friends, I am working on a project where I have created Cubes, InfoObjects, DTP, Transformations and Open Hub Destinations in a Development Client. Now It's time to transport all these objects in to Q-Client. Can any one let me know the steps t
-
Shock from AV Adapter for iPad
Ive had a mild electric shock from apples AV Adapter for iPad, and can see it has developed a split in the rubber casing, which has blown out at one end. Ive tried to talk to apple about this, but had no real responce so far. Ive had it for about 15