Expand my Community achievements bar.

SOLVED

Automatically data populating problem

Avatar

Level 5

When I insert number into cell2 of row2, this value automatically appears in cell3 of row2.

when I increase row by clicking Add row button, I wish the value of cell2 of row3 will be appears in cell3 of row3.

Now the value of cell2 of row3 (after increasing row) is going into cell3 of row2 (not row 3)

How can solve it?

I have attached the file.

http://www.mediafire.com/file/c2a9w24qq2fviur/Automatically%20data%20populating%20problem.pdf

1 Accepted Solution

Avatar

Correct answer by
Level 10

In the exit event of Cell2 replace the code with the below.

Cell3.rawValue = $.rawValue;

The code that you had placed earlier will always refer to the Cell3 in first Row.

Thanks

Srini

View solution in original post

8 Replies

Avatar

Level 10

Some how the site is getting blocked..

Can you share the file using below steps so I can have a look at it.

1. Go to URL http://Acrobat.com

2. Create an account if you don't have one.

3. Then login to the website.

4. In top left corner you will see a button called Upload.

5. Click on browse and select the file you want to upload.

6. After Uploading, mouse over on the uploaded file. Click the down arrow button and choose Share document.

7. Then you will be prompted a popup window at the lower left corner. Choose "Publish it" option.

8. In the next pop up window choose "Copy Link" option.

9. You can paste the link in the forum thread.

Thanks

Srini

Avatar

Correct answer by
Level 10

In the exit event of Cell2 replace the code with the below.

Cell3.rawValue = $.rawValue;

The code that you had placed earlier will always refer to the Cell3 in first Row.

Thanks

Srini

Avatar

Level 5

Another one is how I can set up variables (just like document level function)

I think you will be clear to see following image.

variables.jpg

Avatar

Level 10

To create variables, you need to goto File menu -> Form Properties and choose Variables tab.

Thanks

Srini

Avatar

Level 5

Would you tell me how I can place the script just like example in Image?

I have wrote in value field but nothing in script editor.

Thanks for your kind help.

Avatar

Level 10

Once you create a variable in the variables tab, you can read / write value to the variable like below.

//To set the variable value at run time

variable1.value = "New Value for Global Variable";

 

//to get the current value of the variable

xfa.host.messageBox("" + variable1.value);

Thanks

Srini