Feature of table rows with data and instances

My form is as follows:

I have several boxes superimposed on an image. Each box will have several actions related to it (more on that in a moment).

I have a Table that will be in some data depending on which checkboxes are checked and unchecked.

Several things are are as follows:

A table is set up with the following headings and the respective lines - vial #(txt), rental (txt), area (txt), amount (dropdown), price (dropdown), cost (calculated - eval(amount * price)).

When a check box is selected, follow the following actions:

location and area are filled with the values of text [Condition: when FR0 box is checked;]  [Result: the value of location to be text, the value of the amount to be text, set vocus on amount]

When a check box is disabled, follow the following actions:

all fields are set to null.

NOTE: this works very well with the first box.

Now, the issue:

When the following check box is selected, what should happen is the following: a new instance of the lines should appear, location and size should be automatically filled in same way as above and focus should be set on the amount.

What happens is the following: a new instance is created, the focus is set on the amount, but the 2 fields are not met as in the example above.

Next: The other checkbox is not selected, the following should happen: the last instance should disappear and all the cell values in last instance must be null.

What happens is this: the last instance will carry but all the raising on original line (text only) are also set to null.

Now, I know this Setup is just a problem with how I have my Table setting and subforms. So here's the configuration of the form (also note images):

Row1 undergoes a subform Values_subsection. Type: use all subforms in the order / Binding: repeat section for each data element

Row1 has: allow page with content breaks / Binding: repeat rows for each data element

So where I'm going wrong?

Img1.PNGImg2.PNGImg3.PNG

Img4.PNGimg5.PNGImg6.PNGImg7.PNGImg8.PNG

Thanks for all the help and suggestions in advance

Shai

Hi Shai,

I think that what you're trying to do is not supported by the manufacturer of the action.  But can be done with your own scripts, I added a script object that contains a custom script that will do what you want, I call it "Script" (see image below).  Select this object, then "all events" under display in the script editor (ctrl-shift-f5) to see what I did. "

This means that each event box change needs the following JavaScript code;

Script.Change (this.rawValue, 'EN 1', 100);

The first parameter is the value of the box (1 for selected, 2 for non selected), the second the location and the third the amount).

The funtion of change in the Script object looks like

function change (newValue, location, amount)

{

If (newValue is '1')

{

var newRow is Patient_info. Table1._data.addInstance (1);

If (xfa.host.version< 8)="">

XFA. Form.Recalculate (1);

}

newRow.loc.rawValue = location;

newRow.amt.rawValue = amount;

xfa.host.setFocus (newRow.amt);

}

on the other

{

var lines = Patient_info. Table1.resolveNodes ('Data [*]');

for (var i = 0; i)< rows.length;="">

{

var line = rows.item (i);

If (row.loc.rawValue is location)

{

Patient_info. Table1._data.removeInstance (Row.index);

break;

}

}

}

}

You should see a similarity with this generator of action produced.

I only did the first row of boxes (the first four), but here's my version of the form that I modified to check the code above worked.

https://workspaces.Acrobat.com/?d=7j8MuoO37xAttiE8Q0N69Q

You may need to reselect the face image although it was not included in the form you have downloaded.

Hope this helps

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Make XY graph from the string with date and time data

    1 all sorry for my English.

    I have files with data. In this array of strings, I have 2 columns with date and time. I want to show these data to the XY Chart with time and date on some of the DBL and X on Y.

    I tried to do it by myself, but cannot add to time on X axis.

    Hi olderon,

    you date string is something like "30.01.2014" but looking for "%d//%m %y. Spot the problem?

  • Working with date and time of the request for help from acrobat JavaScript...

    This coming from

    Working with date and time in Acrobat JavaScript (part 1 of 3)

    The following code adds five days to the current date, and then prints the new date in the console window.

    Get the date and time

    var rightNow = new Date();

    Get the value of millisecond

    Article date

    var msRightNow = rightNow.getTime ();

    Calculate in milliseconds, of 5 days

    5 days x 24 hours/day x 60 min / h x 60 s / min x 1000 ms/s

    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Do the calculation of var CFAbsoluteTime = msRightNow + challenge;

    Create a new Date from the calculated value

    var theNewDate = new Date (finalTime);

    In the actual work on a form code, you'll want to place the

    the object of a field value. But since this is test code, we will

    Print the result to the Console window (great for debugging)

    Console.println ("5 days from now is:" + theNewDate.toString ());

    The foregoing is the exact code (cut and paste)

    The error I get here is;

    ReferenceError: theNewDate is not defined

    1:Console:exec

    undefined

    To get the "undefined" question a lot... it seems to me, learn to distinguish the undefined 'of type' undefined 'variable' and undefined 'value '.

    in this case 'theNewDate' seems to be defined as a variable equal to the current date plus 5 days... BUT I am now "educated" enough to 'see' Why am I getting the error...


    Any thoughts... Any who...

    You need to highlight all the text that you want to run.

    You have not set the rightNow variable before you can apply a method to the variable.

    You can just add a new variable as msRightNow name. Why not use rightNow.

    Executes the code that you provided with a new departure of Acrobat, I get the following error messages:

    rightNow.getTime is not a function

    1:Console:exec

    TypeError: rightNow.getTime is not a function

    1:Console:exec

    undefined

    What you are showing probably works because your previous attempts have left behind them a variable "rightNow" and as long as you do not have the object of time date change too much, you will not notice the error.

    Cleaning of your code:

    get the number of milliseconds of the date object.

    rightNow var = (new Date()) .getTime ();

    define 5 days in milliseconds;
    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Add 5 days to the value of this moment and assign the result to the last time;
    var CFAbsoluteTime = rightNow + challenge;

    convert finalTime value in a date object.
    var theNewDate = new Date (finalTime);

    display the result;
    Console.println ("5 days from now is:" + theNewDate.toString ());

    Have you tried the code that I provided, it is another way to add days to the date object.

  • Copy the table with data and constraints

    Hi all

    I need to create a stored procedure that creates a table and copy a table with its data and constraints. We use it for backups. Y at - it all stored procedures out there who can do it, im pretty new to this and I need to create a stored procedure that can achieve this.

    any help will be much appreciated

    Thank you
    K

    Hello

    The procedure that you created is invalid

    Recompile it, and then type

    show error
    

    Rectivy the error until the procedure becomes valid.

    Concerning
    Anurag

  • How to activate the historical record with date and time in EBS

    All,

    I created a custom form in 11.5.10 instance. The table on this form has all those which columns in it, and it is filled in the table of database as well as the date and time. But, when I go to the EBS and open the form and click on "Historical Record" it just shows the date of creation/update, but not this time.

    Can someone please give me an idea how to display time as well in the history of record?

    -VRDida

    The Important thingbis the type of data in the forms. If only one date, the part of hour is missing. If the Datetime, the timepart is there. Have you tried to check the values during execution by using the feature review?

  • Display an empty table row of data when the data is not present

    Hello

    Can u please tell me How to display a row of data empty table when the data is not present?

    in my case the column header appears as the code below.

    <? If: SD_Type_Data_ID3 = 'KH '? > <? If: SD_SpecialHandlingCode_SPHD_ID17 = 'H '? > <? for each: Supplemental_Data_S17? > <? end if? >

    can u pls help me.

    Thanks and greetings

    Sylvie Kumar

    You can insert a fictitious line. Have an if condition in it, to show only when condition does not satisfy.

  • Joining tables plus with php and sql

    Hello

    I am familiar with the join of two tables, but recently need to join the three tables and find hard to do.


    This is my code:

    $sqlconnect = mysql_query ("SELECT Friends.frinum, Friends.userid, Friends.friendid, Experiences.expid, Experiences.userid, Experiences.title, Experiences.Dateofexpi, Experiences.description, Experiences.datetime
    OF experiences INNER JOIN friends on Friends.userid = Friends.friendid
    UNION

    SELECT Users.id, Users.username, Users.profilepic, Friends.frinum, Friends.friendid, Friends.userid OF friends INNER JOIN users on Friends.userid is '$id' ");

    I tried the Union to incorparate I'm not familiar with and experience problems when you try results.

    The three tables are users, experiences and friends.

    If anyone can help.

    The selection list of all requests in a Trade Union must have matching data types. Your union query is not valid because your fields do not match. Why do you think that you need a Union? A simple join is probably all you need.

  • I recently updated my iPhone to iOS 9.3 6s and now my data and wifi are in place. Now I can't open the apps and send messages with data and barely on the wifi. I've tried everything, and it still does not work.

    I updated my iPhone to iOS 9.3 6s today and now my data and wifi are in place. Whenever I try to open an app or send text messages with data it does not at all. And with wifi, it just works. I tried just like turn roaming off and off and other lte but nothing seems to work at all. Can someone please?

    I have this same problem too, it really gets me upset

  • How can I save my browser history, with dates and times included?

    I need save my history of the browser with the date and hours included. I tried to do the backup, but it saves to a JSON file and I do not know how to open that. Copy and paste into Notepad do not record the dates and times.

    Firefox is not a way to export the history to a text file. JSON in the bookmarkbackups folder backups store only bookmarks and not history.

  • Passport problems of blackBerry with date and time on the passport of Blackberry

    Hello!
    I have problems with my passport for Blackberry.
    For the couple in a day time, it changes itself. So my hub doesn't work, I get no new messages, I can't send messages! The last time I did correct settings did not help. If everything is correct or hub or messages do not work. I tried to make different adjustments, tried to restart the hub, tried to restart the phone. but it does not work. I really need your help because I can't use my phone and nobody can connect with me.
    I didn't drop the phone. I know that these problems are related to the date and time because since the first problem with hub and messages has occurred, I saw that the date and time were bad, changed to correct and everything went well. I don't understand why he doesn't now. Can you tell me what to do?
    OS 10.3.2.2836
    1 January, I received this phone and it worked allright until some of the OS updates, can't tell which exactly because I have auto update.

    For those who have the same problem: I deleted the contact of my mother on the phone. I deleted the messages displayed as January 27, then I added my mother to local contacts and new messages started coming

  • Facing problem with date and time.

    * - Original title - BIOS

    Mr President.

    I have Compaq CQ2100IL Desktop pc for awhile I was faced with the problem of the date and time, so I posted this question to Microsoft, so they gave me a solution change my CMOS battery, so I did it, but despite this I get this error again then I tried and got answer to update my BIOS , I tried to find a version update on the HP site but did not find, so please help me in this matter.

    Hi Vikas,

    You can contact HP here: http://h10025.www1.hp.com/ewfrf/wc/contacthp?cc=us&dlc=en&lc=en&os=4062&product=3890751&sw_lang=

    Warning in the BIOS: BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • Scheme, with data and submit

    Hello guys,.

    I would like to help here.

    I have designed a form with a defined schema, an example of XML data file and now it is pre fill a DropDownList control with data from XML (say 50 points). But when I send the form in XML format, presents the complete list of 50 items as well as selected.

    Is it possible to show only the selected item?

    To be more precise, how can I choose the fields that I need to be submitted?

    Thank you

    Hi Diego,.

    Here is the link to a sample form and the XML data.

    https://Acrobat.com/#d=jC13e8CLueyxcEU7LWM84A

    https://Acrobat.com/#d=BFnSDSzIVY65BgDSf3KN0Q

    The form is pre-loaded XML. You can find in the drop docReady event how it works. In the button submit I am remove the nodes of the XML that I'm disguising, so that it only exports the value present in the field. I guess you can also do it by removing the script from the docReady event, but not sure you can give it a try.

    Thank you.

    Sidonie.

  • resize the text field or table row, column data

    Hi all

    I am facing a problem, not able to display all the data in the table when the data is larger than the height and width of the cell

    Is it somehow so that the line and deposited text get automatic size according to the data.

    Thank you

    Abhijit

    Usually, you must expand to accommodate for the height and width of the TextField. If you check this box, the textfield will be autosize, itself based on data at run time.

    Thank you

    Srini

  • retriving records with date and time stamps

    I need to get all records that have been updated between 08:36:06 and 08:36:09 12/15/2009

    I use this application it gives me the numbers on the right (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I want something more
    using the stamp date and time with dates
    12/15/2009 08:36:06 AM
    12/15/2009 08:36:07 AM
    12/15/2009 08:36:08 AM
    12/15/2009 08:36:09 AM
    select * from GURMAIL
    where 
    PERMAIL_CPLN_CODE = 'UGAP'
    AND TO_CHAR(PERMAIL_ACTIVITY_DATE,'MM/DD/YYYYHH24:MI:SS AM') >= '12/15/2009 08:36%'
    Thank you

    face-> Office (while exclaiming in despair "¿Dang, now how could I miss that?")

    Yes, Max, you're right, thanks for being there!
    When I never learn never to post a reply, unless I ran the code me first? ;)
    In any case: bed here now, ciao!

  • Table row with loop for each group to set the variable.

    HI: There is probably a simple answer for this, but I don't the have not found...

    I have a single row table to move through a group to set a variable containing a sum running. I'm not display the amount in the table but when I saw the report, I see that the table is expanding (add lines) for each loop.

    The only line table has 3 columns.

    1st column
    <? for-each: AC_GROUP? >

    2nd column
    <? xdoxslt:set_variable ($_XDOCTX, 'xAmtVar', xdoxslt:get_variable($_XDOCTX,'xAmtVar') + CURRENT_AMOUNT)? >

    3rd column
    <? end foreach? >

    Can I use <? for each group? > or something else. My requirement is to set the value of the variable with the total running, but because the loop is adding lines for each value he travels (though not displayed), it's also affecting other areas of the presentation of the page.

    Hope it makes sense. Thanks in advance.

    You can do it many ways.

    No need to loop
    You can create a variable and specify the amount of the sum directly to that.

    
    

    or

    loop through, then add as you do.

    
    

    give any space or enter characters in a word between them, just put it in a single form field will be

    But as I said, I'd definitely go with the first option.

Maybe you are looking for