Always fill out the very last row of a table (which can expand)

Hi, I'm having problems with a button in table A that adds a row to another table (table B) and then automatically fills out some of the table row data (table A) into the newly created row of the other table (table B)
Here's my code (on click of button in a row of Table A) - I should also mention that Table A has a button to add more rows to itself:
This almost works - however, it only works if the amount of rows in each table match - which they don't necessarily as the user may or may not opt to add the row from table A to table B. eg. Table A could be 4 rows deep, but table B may only contain 2 Rows.
tableB.row.addInstance(0);
var vCol1 = this.resolveNodes("tableA.row.cellA");
var vCol2 = this.resolveNodes("tableB.row.cellA");
var vCol3 = this.resolveNodes("tableA.row.cellB");
var vCol4 = this.resolveNodes("tableB.row.cellB");
for (var i = 0; i < vCol1.length; i ++) {
             vCol2.item(i).rawValue = vCol1.item(i).rawValue;
             vCol4.item(i).rawValue = vCol3.item(i).rawValue;
I'm new to scripting (learning on the fly) so my question is, seeing that the first command is to add a new row to table B, can I alter the code so that var vCol2 and vCol4 always relate to the very latest row that has been created? In that way, any previous rows that have been added will shunt down the list and will not be affected but the new button click? Or is there a better way of doing this.

Hi,
I think the key here is that the addInstance method returns the row it has just added.  So your add can be something like;
var button = xfa.host.messageBox("You are about to ADD this entry to Table B. Do you wish to proceed?", "Add to Table B Section", 1, 2);
if (button == 4)
   var newRow = tableB._tableBrow.addInstance(0);
   newRow.cellA.rawValue = cellA.rawValue;
   newRow.cellB.rawValue = cellB.rawValue;
I'm not sure how you want the table A remove button to work?  Should it remove the first table B row with a matching cellA and cellB?
Regards
Bruce

Similar Messages

  • TS1135 Cannot process the Photo Book; it fails always at the very last stage with "error occurred while uploading on of your files. Pls check your network connection and click Retry..." Tried at 12 times and no joy!  Can anyone help?

    Can anyone help with the Photo Book process?  I have tried at least a dozen times and the Photo Book always fails at the very last stage of the process.  I ordered Buy Book, it assembles the book and files are transferred until the very last moment... it says " An error occurred while uoloading one of your files.  Please check your network connection and click Retry to resend your files."   It fails every time, any advice?  My server is TalkTalk which may explain everything !! ??   Help.

    Boot into Safe Mode, Mac OS X: Starting up in Safe Mode, and order from there. 
    Also make a PDF file of your book according to this Apple Document, iPhoto '11: Preview a book, card, or calendar before you order or print it, before you order to check for errors.  Keep that file to compare with the printed copy when it arrives.
    OT

  • Form Action Mailto email address specified in text box from the user filling out the form??

    I am very new to Dreamweaver and this is likely a very basic question, but never the less, I can't find the answer on Google or in the Help. I want the form below to always be e-mailed to [email protected] and also to the e-mail address supplied by the user filling out the form. The user supplied email address will be in the text box id "SalesEmail" listed below. How can I accomplish this? The user filling out the form would be my salesman, so they need the information, as do I.
    Thanks,
    David
    <form action="mailto:[email protected]" method="post" enctype="text/plain" name="form1" id="form1">
      <p>
        <label for="Name">Name</label>
        <input name="Name" type="text" id="Name" tabindex="1" size="30" maxlength="30" />
      </p>
      <p>
        <label for="CompanyName">Company</label>
        <input name="CompanyName" type="text" id="CompanyName" tabindex="2" size="40" maxlength="40" />
      </p>
      <p>
        <label for="Address1">Address 1</label>
        <input name="Address1" type="text" id="Address1" tabindex="3" size="40" maxlength="40" />
      </p>
      <p>
        <label for="Address2">Address 2</label>
        <input name="Address2" type="text" id="Address2" tabindex="4" size="40" maxlength="40" />
      </p>
      <p>
        <label for="City">City</label>
        <input name="City" type="text" id="City" tabindex="5" />
        <label for="State">State</label>
        <input type="text" name="State" id="State" tabindex="6" />
        <label for="Zip">Zip</label>
        <input type="text" name="Zip" id="Zip" tabindex="7" />
      </p>
      <p>
        <label for="Cell">Cell</label>
        <input name="Cell" type="text" id="Cell" tabindex="8" />
        <label for="Office">Office</label>
        <input type="text" name="Office" id="Office" tabindex="9" />
        <label for="Email">Email</label>
        <input name="Email" type="text" id="Email" tabindex="10" size="40" />
      </p>
      <p>
        <label for="SalesEmail">Your Email</label>
        <input type="text" name="SalesEmail" id="SalesEmail" tabindex="11" />
      </p>
      <p>
        <label for="Notes">Notes or Special Requests</label>
        <textarea name="Notes" cols="80" rows="10" id="Notes" tabindex="12"></textarea>
      </p>
      <p>
        <input name="Submit" type="submit" id="Submit" tabindex="13" />
      </p>
    </form>

    Really needing to finish this before a deadline.  Can anyone help?  Thanks!!

  • Image size to fill out the IE window

    Hello,
    I have a view with a menu on the left and a view container on the right side.
    In the view container a linked another view.
    That only constist of an image. I want this image to fill out the whole space available in the IE.
    if somwbody has a low monitor resultion, it should be rezised to fill out everything and if somebody has a high resultion its the same. I dont want any "scroll bars" in the IE because the picture is to big nor I want empty space because the picture is displayed smaller than the window of the IE.
    I have tried everything out. I put the image in a transparent container with "stretch", i set high and width for the transparent container and the picture to 100% but nothing really works.
    As soon as I set high of the image to 100% it zero pixel. But if I set an value with px, em or ex I define the size and rezising is not done. And I cant see what the option "adjust image size" really does. I cant see any difference by (un)-checking it.
    Is there any way to tell an object to be exactly that size the IE has? Is webdynpro able to recognize the monitor resolution and render an object to exactly that size?
    Thanks for your help!

    Thanks for the quick answer!
    It does not work.
    I can only see a very thin horizontal like. The image gets "compressed" to about 3 pixel and the line is as long as the image is wide (so no vertical sizing as well).
    I tried it with WinXP SP3 and IE8.
    I tried it with WinXP SP3 and IE6.
    I tried it with my own PC via VPN to make sure its no nasty setting to our company desktop and I have only Windows, Office, SAP GUI on it. Nothing else.
    Always the same result. As soon as I set the height of the image to 100% I get only a thin horizontal line.
    You were able to accomplish. So I tried FireFox portable - and it works!
    My lesson learned is that a picture can only be re-sized to a smaller size but not expanded. Thats no problem, I could use a 1600x1200 pixel graphic and then its made smaller.
    But we have to use IE because thats the companies standard and SAPs as well.
    We have the application running on a NetWeaver 2004s BI 7.0 machine. No EHP1. System got latest patches 3-4 month ago.
    I cant believe that the SAP machine is the problem, because FireFox renders the graphik the same as your screenshots show.
    Do you have any idea what the problem could be? Or could it be some kind of customizing/parameter problem within SAP? I have the problem since over 1 year and always thought its just a bug getting solved somewhen by a patch...

  • HT2736 I'm trying to send a tune as a gift but, every time I fill out the info, and press "continue", I get a message that my session has "timed out".

    I'm trying to send a tune as a gift but, every time I fill out the info, and press "continue", I get a message that my session has "timed out". I didn't take me over a minute to fill out the form. How fast does one have to be!?

    Well, first, why are you running such ancient versions of Firefox as 3.6? i would immediately update to Firefox 15.0.1 as Firefox 3.6.28 is no longer supported and is critically insecure.
    As for the dreamweaver thing, I'm not sure this is a Firefox issue, so I'd check again after updating Firefox.

  • PLEASE HELP!! I've used iWeb to create multiple sites, all published to third party servers.  The very last site I made changes to is showing up in any domain file I open - despite their different names and locations on my iMac.  I just switched to Lion.

    Please HELP!!  I just switched to Lion.  I have created multiple websites using iWeb  3.0.4 and despite my having saved their 'domain' files in various locations and using different filenames, upon opening the domain files I keep getting the very last site I published.  All the sites were published to third party servers.  The domain files (still have a preview that look correct and have different file sizes) but keep going back to the last site published. HELP ME PLEASE!! Are the old files still available?!!

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • A word document was emailed to me.  I can open the document without a problem.  Is there a way for me to type on the document.... to fill out the form?  When I click the fields, the virtual keyboard does not appear.

    A word document was emailed to me.  I can open the document without a problem on my iPad 2.   Is there a way for me to type on the document.... to fill out the form?  When I click the fields, the virtual keyboard does not appear.

    If you want to edit a word document then you will need an app on your iPad that supports word so that you can copy them to it via 'open in' e.g. Apple's Pages app or a third-party app such as Documents To Go or QuickOffice HD

  • Open pdf says "please fill out the following form" when I attempt to apply redactions, I get an error message.  How do I "turn off" the form portion of the document?  I assume that is the problem since I have not had this issue with any of the other files

    I am attempting to redact a large pdf file.  When I open the file, it has a bar across the top with the message "please fill out the following form".  I can mark redactions, but when I attempt to apply them I get a message saying, "In order to proceed Digital Signatures must be removed and the document must be fully authorized.  Do you want to make these changes and continue?"   I click "ok".  Then I get a message saying, "an internal error occurred."  How do I get around this problem?

    You cannot redact a signed document. This is because one of the things signatures guarantee is access to the OLDER document (i.e. there will be an unredacted copy in there).
    In general you cannot remove signatures, but sometimes you can. Look under the Signatures tab (right click on left vertical bar if there isn't one) to see if it is removable.

  • How can I find out the first intial row in VA02-output transaction??

    How can I find out the first intial row in the screen which appears during sales order change (VA02) >>enter the sales order number >>after the first screen appears >>in the menu bar go to EXTRAS>>OUTPUT>>HEADER>>EDIT??
    I have to find out the first row in the OUTPUT column which is empty,then populate it with some data using BDC.
    usefull answers will be rewarded.
    regards,
    Shashank .

    Pass the sale order number in the object key of NAST table,
    if u get 3 entires, then u need to place ur entry in the fourth row in that table control thru BDC.
    I think u got the logic.
    Regards,
    Sujatha.

  • TS2516 an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    This user talked to Apple Support personnel and confirms what Larry is suggesting:
    crowland1066
    Re: book upload fails
    Nov 30, 2013 3:02 PM (in response to pablo123)
    Just got off the phone with apple support.  If the photo book completes the assembly process but fails during the upload process the problem is in their overloaded servers.They just started a free shipping promotion for the holidays which has increased the traffic dramatically. I bought a calendar a week ago and it went right through. I'm going to try again during less peak times.
    Happy Holidays

  • "I received a PDF File via email,I can fill out the text box but I cannot save the file."

    I sent a PDF file to someone via email, they were able to fill out the form but they cannot save the file to send back, I have checked the security properties and there were no restrictions. Do I need to save the PDF a specific way? I have sent it to others that have Acrobat Pro and are able to save but those without Acrobat are unable to save. Please advise!
    Thank you!

    Hi MSMistry1,
    Users with Adobe Reader 8 and later will be able to save form data if you save the form as a Reader Extended PDF with Enable Additional Features selected. See http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7e0d.w .html
    a 'C' student

  • Is there anyway those who are filling out the form preview it before submitting (online)?

    I have a form currently open and users are giving me feedback to enhance the process. I was asked if there was anyway for the user (the person filling out the form) to preview the form before submission to check for typos and such. I have looked around and I don't see anything that discusses this ( I could have missed it). Can anyone let me know if this is possible or not?
    Thanks,
    Ashley

    Ashley,
    We don't have an explicit review step in the submission process, however it is possible for form fillers to page/scroll back through the form to look at the entries they have made.
    Andrew Yarborough

  • Should my iPhone 1 (iOS 3.1.3) with Bluetooth 2.0 (Handset HSP?) work with wireless earbuds with BT 4.0 and the Headset (and Handsfree, A2DP, AVRCP) protocol? They pair and connect; status bar looks good. But audio always comes out the speaker. Thx.

    Should my iPhone 1 (iOS 3.1.3) with Bluetooth 2.0 (Handset HSP?) work with wireless earbuds with BT 4.0 and the Headset (and Handsfree, A2DP, AVRCP) protocol? They pair and connect as expected (with a PIN); status bar looks good and shows Bluetooth active, and I even see the iPhone displays the battery levels of the wireless earbuds. But audio always comes out the speaker. (If I plug in wired headphones into the headphone jack then audio comes into the wired headphones, as expected.) I have rebooted the iPhone; I have had it forget about the wireless earbuds, and repaired and reconnected; I have reset all network settings. Thx in advance.
    PS: I understand that more recent versions of iOS have a way to choose where audio output goes (speaker, headphone jack, Bluetooth device). Does this older version of iOS? I could not find an option or setting.

    I've noticed this lately as well, with my iPhone 4. I couldn't confidently pin it directly on any particular iOS update, but my iPhone used to automatically connect up via Bluetooth with my Prius's handsfree feature, and now it doesn't. I work with a CE-based device at my job, with Bluetooth capability, and I used to test out that feature by having it discover my iPhone. This no longer works either.
    What I have found (not really a solution, but it does work and may be a clue for Apple) is that if I simply go to the Settings app then the General -> Bluetooth screen and let it sit there, it will pair right up with my car within a few seconds. Bluetooth is always on, and always says "Now Discoverable" at the bottom of the settings screen.

  • I am using Adobe Reader X on a laptop with Windows Vista OS and Adobe Reader XI on an older laptop with Windows XP OS.  While filling out the same form on each computer, I have found that I can save info on the older laptop, but not on the newer one.  Thi

    I am using Adobe Reader X on a laptop with Windows Vista OS and Adobe Reader XI on an older laptop with Windows XP OS.  While filling out the same form on each computer, I have found that I can save info on the older laptop, but not on the newer one.  This is a big problem.  I must be able to save on the newer computer.  Do I need to buy a new computer with a more up-to-date OS?  Please help.

    Adobe Reader X can only save reader-enabled forms. Adobe Reader XI can save all forms.

  • I reloading LR onto a new lap top.    I have the orginal LR 1 disk with correct Serial #.   I have downloaded it,  every time I try to open the program I get the "Do you want to buy or I have a Serial Number Page".    I fill out the page include the seria

    I reloading LR onto a new lap top.    I have the orginal LR 1 disk with correct Serial #.   I have downloaded it,  every time I try to open the program I get the "Do you want to buy or I have a Serial Number Page".    I fill out the page include the serial # accept terms and enter.   All fine and good seems normal.  When I try to open LR I get the damn "Do you want to buy" page.   I do I get past this BS?

    What version of LR are you trying to activate? A serial number for LR 1 will not activate LR versions 2 - 5, but it will enable you to purchase LR 5 at the upgrade price and activate it.

Maybe you are looking for

  • Design View Hanging CS3

    When working in Design View in DW CS3 the page takes an age to change when highlighting links or placing my cursor over text. The only way that i can fix this is if everytime i move my mouse to where i wish to be in design view I click F5 to refresh

  • Different Order Types within a Collective Order

    Dear PP Gurus, I have a requirement for having different order types with in a collective order. For example, in a BOM of 3 levels, the order type for each assembly should be different say ZPP1, ZPP2 and ZPP3. For this, I have maintained separate pro

  • Installation/Config Problem with Sun Directory Server Control Center (6.0)

    Hi All, I have recently attempted an installation of Sun Directory Server EE 6.0 on a x86 Solaris 10 machine. I have selected to install Core Directory Server and Sun Directory Server Control Center with my installation. After installation, if I chec

  • Breaking up of, One IDoc to many IDocs & combing Many IDocs into one IDoc?

    Does anybody have any sample code of: Splitting an IDoc into multiple IDocs and Combining many similar IDocs into one IDoc Any pointers will be appreciated. Regards Mahesh

  • Application deploy name cause JMX counter can't being fetched

    Hello all, I'm a fresh newer in WebLogic. When I using WebLogic, I deploy a application named "WORLD" in side a managed server, the archive version of this WORLD is 1.0.0, then after I fix some bugs and re-deploy this application with archive version