Copy Instance Info - Help Niall

My form has repeating instances. In some cases the addes instance is almost exactly like a previous instance. I would like an addInstance that would add the instance with the information from this.parent.index field if that is possible.
So when clicking on add instance it would prompt the user for the line number to be copied. If that's not possible, then copying the last line entered would be the workaround.
This is the last major piece of the puzzle for this form. The add instance I'm using now looks like....
this.resolveNode('Subform3.Subform2._Subform1').addInstance(1);if  (xfa.host.version < 8) {xfa.form.recalculate(1);}
Thanks -pc

I actually figured the one index myself belive it or not...
I've tried to extrapolate your example on copying a line but can't get it to run...am I close? I know my subform naming is causing this to be more difficult than it is probably....and the fact that I'm not very good at this (yet) doesn't help either...here is where I am....
form1.Subform4.Button3::click - (JavaScript, client)
// set up the question, based on the current number of rows
var 
vQuestion = "Select which row you want to copy. \n\nEnter a number between 1 and " + Subform3.Subform2._Subform1.count + ". \n\nClick Cancel if you do not want to copy an existing row.";
// add the new row
// '_' is shorthand for instanceManager, eg '_Row1'
Subform3.Subform2._Subform1.addInstance(
true); 
// ask which row the user wants to copyvar vTarget = xfa.host.response(vQuestion, "Copy a row") - 1;
// new rowvar vNewRow = Subform3.Subform2._Subform1.count - 1;
if (vTarget >= 0 && vTarget < Subform3.Subform2._Subform1.count){
// copy the value of the dropdown in the selected row
 var oItem = xfa.resolveNode("form1.Subform3.Subform2.Subform1[" + vTarget + "]").description.rawValue; 
// set the value of the dropdown
xfa.resolveNode("form1.Subform3.Subform2.Subform1["+ vNewRow + "]").description.rawValue = oItem; xfa.resolveNode("form1.Subform3.Subform2.Subform1["
+ vNewRow + "]").description.execEvent("exit");}
else if (vTarget == null || vTarget == -1){
// do not copy, but also do not give audio feedback
}else{
xfa.host.beep("1");// warn the user if number is outside range

Similar Messages

  • How to copy the Info structure?

    I would like to  copy the info structure (s950) to customer namespace.If I go to MC21,MC22 Copy option is not there.Already I have one Info stuccture s950 .I like to copy this info structure to some other name..kidly help me on this..

    Execute this program
    <b>RSWBO052</b>
    ---> R3TR TABL  S810
    >Execute
    >Double Clieck on line , here it will give option to change.
    Regards
    Prabhu

  • PR values copy to PO (PR creation manual) PR is MRP then copy from Info

    Hello
    We have Two types of Purchase requisation in Business
    One is created from MRP run..... this PO is having the values in valution tab.
    While creation PO from PR...the values should copy from PR at first time. and system updates
    the Info record here for the material and vendor combination.
    while second time i have created the PR from manualy, and i have changed the PR value
    then system should go for release,
    while creation of PR to PO the system will copy the Price from Info record(last purchase order)
    then what is the need to release the PR.
    Bcz the Last PO price was having the 100Rs
    the new created the PR is having the 200Rs..... it should copy from the PR here in manulay
    created PR
    while in PR values copied to PO once while in fresh PR.(I,e MRP generated PR)..
    after that it should copy from Info record.
    sapmanman

    I don't get your questio clearly.....
    But as per my understaing of your que
    The PR generated from MRP or Manual creation-- when you convert the PR to PO system will pickup the price from inforecord and info record can not be created automaticaly by the system for psicing
    the inforecord will be cretaed first time when you create the PO from PR but it will not have pricing it is just updating the PO number in the info record
    so you have to create the info record.
    now suppose you want to copy the PR price to the PO than there is a funcitonlaity you have to activate
    tcode is OMET
    go here and check the adopt price check box than system will populate the button in the PR on valuation tab where you can select as gross price or net price than system will take this price in the Po.
    in you case if suppose system is copying the last PO price to new Po becuse in your system the setting for defualt value for buyers is active that;s the reason you see that system copy the last po price.
    if you dont want this than go to
    SPRO-MM-Purchasing-environment data-defien defualt value for buyer
    here on Price adoption tab you will see always copy
    now if you dont want than copy the 01 to blank value and remove the always copy
    Now use of PR release is not for the pricing but there is many other reqs for release procedure
    noramly the PO would have release process activated if you have concern for pricing.
    hope this will give you a clear picture

  • My AppStore wont update my apps because my old iTunes account keeps coming up and asks for billing info HELP!!!

    My AppStore wont update my apps because my old iTunes account keeps coming up and asks for billing info HELP!!!

    Apps are always associated with the Apple ID that was used to purchase them. This cannot be changed. To avoid getting the request you are seeing delete all apps that request the former Apple ID and download them again.
    Any apps for which you paid a fee will require that you purchase them again.

  • Copy  purchase info record

    Hellow!
    I am looking for a way to copy  purchase info record from one vendor to the other. Vender has changed the company but all prices and material  numbers are the same.
    Is it possible  to copy  info record without devepoping Z report?
    Andrey Garshin.

    Hi,
    Unfortunately there's no such option in SAP. In general, unlike MMR, VMR & other master data, Inforecord stores information specific to particular unique combination (Vendor, Matl, P.Org & Plant), so you must enter each Inforecord manually.
    You have one option of create Inforecord automatically from PO. but these will be without pricing conditions.
    Also you have mass maintenainance transactions to maintain certain data in collectively T;code: MEMASSIN. Thanking you.
    Edited by: Padmasri Garapati on Oct 13, 2011 9:48 AM

  • When i roll over a photo i get a box ..save, copy, print, info, folder

    all of a sudden i have a new version of firefox now when i roll over a photo i get a small pop up, asking save, copy, print, info, folder, it is annoying

    Hi, Shilo, could you provide me a screenshot of it?

  • I have downloaded a book purchased on ebooks and I cannot get it transferred onto my nook - I get a message saying "ce copy not allowed. No permission to copy book. Help please

    I have downloaded a book purchased from ebooks and I cannot get it transferred onto my nook.  get a message saying "ce - copy not allowed. No permission to copy book. Help please.

    I have the same problem

  • Lost ALL MY PASS WORDS N BOOKMARKS WHEN FIREFOX UPDATED TODAY FEB 2015. I had 10 yrs of info HELP

    Lost ALL MY PASS WORDS N BOOKMARKS WHEN FIREFOX UPDATED TODAY FEB 2015. I had 10 yrs of info HELP
    firefox 32 or 34 it said and I am REALLY UPSET ABOUT THIS. CAN ANYONE HELP ME PLEASE.

    Look on your desktop. Do you see a folder called; '''Old Firefox?'''
    '''https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile'''
    '''https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles'''
    These can't get your data back, but will help in the future.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
    Import/Export extension preferences

  • When syncing my iphone 5 with iTunes it keeps 'copying diagnostic info' but doesn't copy my music or films to or from iTunes? Anyone help out there please?

    when syncing my iPhone 5 to my computer I keep getting a message "copying diagnostic information" and then determines apps &amp; tracks to sync but doesn't seem to copy anything followed by "waiting for changes to be applied" which seems to take at least 10 minutes. I have tried turning my computer off and on and iPhone off and on but no luck! Can anyone help please

    You need to be running itunes 10.7 on your computer....

  • Copying Table Info From One Database to Another

    I am trying to copy data from a database instance on one server to an identical database instance on another server. I have a BC4J application module that I would like to use on both servers. I am relatively new in the BC4J area and would appreciate help from those of you who have done this type of thing before. How do I set up the connections in my client code to accomplish copying the data?

    Table may be copied with the
    expdp and impdp utilities.
    http://www.oracle.com/technology/products/database/utilities/index.html

  • Cannot Connect to iTunes OR Download New Copy.  Please Help!

    I was trying to update my account information earlier today when I noticed I couldn't log into my account info or the iTunes store. I figured it was a temporary problem, but no luck as of a moment ago. I get an error message saying the session timed out and I should check my connection. Well, my connection is fine on Safari and Firefox, so I figured I'd simply reinstall iTunes from a freshly downloaded copy.... except I can't download iTunes either! I tried using both Safari and Firefox several times, reset my computer, reset Safari (in the vain hope it might be that simple). Still no go.
    Is anybody else having a problem like this - or does anybody have a potential solution? I am running no antivirus, and no firewalls beyond what is packaged with OS X. Thanks for your help in advance.

    Hi - I'm having exactly the same issue. All other internet apps are running fine, but iTunes store is giving the message that you're getting. I've gone through the troubleshooting support website with no results, so have the feeling it's not my computer but an issue with the store itself. I was able to purchase a song late last night, so it's only a recent thing for me, and I haven't changed any settings since then, so I can't think what else it could be.
    I guess we just need to wait and see... Good luck!

  • Automation Folder, Automation Event Editor, Automation copy and paste help

    Hello. I have been reading the copy and paste automation threads and I still have a few questions. First, thanks to whoever posted the option double-click on track background to select all visible automation for that track. Also, thanks to whoever posted the option click an automation node to select all following visible automation nodes.
    Now, how do you select the middle 10 automation nodes in a track with 30 nodes? Many people have stated that the answer is a rubberband selection. This does not work for me. When I click and drag on the track background using the pointer Logic thinks I'm trying to create a new automation node. When I click and drag on the track background using the marquee tool Logic selects the audio and automation data. Then it only pastes the audio only even though I have "move automation with regions" set to ask.
    Some people have recommended the automation folder. When I open the Automation Event Editor and click on the tiny rectangle in the upper left corner I just get a short list of the automation data. Is this right? If so, how do I select the data I want and paste it to another track? Because when I select the automation data for a track and copy nothing seems to happen when I paste.
    Any automation gurus out there willing to help? Please and thank you in advance.

    Hello Pete. Thanks again. It's odd that something so potentially useful is so hard to get to. I guess that is what people are referring to when they say that Logic has a steep learning curve. Is there another way to get to the automation folder? I think that it should have it's own item in the windows menu instead of sharing it with the arrange window and being contextual.
    The copy and paste in the automation folder (automation arrange seems more appropriate as I cannot figure where the folder is) does not work as I expected. For instance, when I select volume automation from a track then option drag it to the pan automation of another, it still copies it to the volume automation. I then have to command click volume then switch to pan and select copy and convert, which makes it MIDI, which you say is not recommended. Will you tell me why TBA (and I assume RBA) is preferred over MIDI based automation? What is the difference exactly? Thank you so much for your assistance.

  • For Statement on a table using add.instances - need help

    Hi,
    I made this table in an acrobat form.   The table uses java script to add rows .   The code I used is:
    _detail.addInstance(1);
    There are two fields on this table that I want to evaluate 1)  an index named index1    
    and 2) the value named numAmount
    The script I am using to evaluate these to fields is as follows:
    if (form1.Page1.Subform1.Capital1.Capital1.detail.index1.rawValue ==2)
        then
        $.rawValue = form1.Page1.Subform1.Capital1.Capital1.detail.index1.numAmount.rawValue 
        endif
    My problem is that I need to nest this if statement inside some kind of a loop.    I want the program to look at my table, determine how many instances the user has added,  scroll through the table and look at index1,  if index 1 = 2 then i want it to return the value in numAmount.
    I just can't get the syntax to work in either form calc or javascript.
    I am trying to write this code using the calculate method on a fourth field located on form1.#subform[2].Table5.Row5.NumericField1
    I have attached the file if it helps.   The table is on page one of the form and the display field is on page three. 
    Any help would be much appreciated!!!

    This is an Acrobat Forms JavaScripting forum, you might find more help in one of the LiveCycle Designer forums.

  • Hi... some code displays when i open a web page... i copied the info... can i submit and ask what is happening?

    150129... this has been displaying often when i open a webpage in firefox... i have to close the page & reopen it to get it to display without this... whats going on??
    In address bar: https://sc1.checkpoint.com/dev/abine/scripts/inject.js
    Displayed:
    (function () {
    // tell toolbar that inject was successful
    dntPageEvents("hello");
    // return if already injected
    if (window.dntToolbarClicked) return;
    function sendPageEvent(action, params, callback) {
    var documentElement = document.documentElement;
    var element = document.createElement("DNTPDataElement");
    element.setAttribute("action", action);
    if (params) {
    element.setAttribute("param", "[\"" + params + "\"]");
    element.style.display = 'none';
    documentElement.appendChild(element);
    var fn = function () {
    if (callback)
    callback(element.innerHTML);
    element.parentNode.removeChild(element);
    if (!document.addEventListener) { // IE8
    documentElement.DNTPPageEventResponse = 0;
    var listener = function(event){
    if (event.propertyName === 'DNTPPageEventResponse') {
    documentElement.detachEvent('onpropertychange', listener);
    setTimeout(fn, 0);
    documentElement.attachEvent('onpropertychange', listener);
    var triggerEvent = function (retry) {
    var triggerElement = document.getElementById('DNTPPageEvent');
    if (!triggerElement) {
    if (retry < 40)
    setTimeout(function(){triggerEvent(retry+1)}, 50);
    return;
    triggerElement.setAttribute('element', element);
    triggerElement.click();
    triggerEvent(0);
    } else {
    if (document.all) { // IE9
    element.onclick = fn;
    var evt = document.createEvent("CustomEvent");
    evt.initCustomEvent("DNTPPageEvent", true, true, null);
    } else { // all other browsers
    element.addEventListener('click', fn, true);
    var evt = document.createEvent("Events");
    evt.initEvent("DNTPPageEvent", true, false);
    setTimeout(function () {
    element.dispatchEvent(evt);
    }, 50);
    function iconChange(e) {
    e = e || event;
    var target = e.target || e.srcElement;
    var data = target.innerHTML;
    var timer = setInterval(function () {
    try {
    if (typeof dntPageEvents == "function") {
    clearInterval(timer);
    dntPageEvents(data);
    }catch (e) { }
    }, 50);
    var listener = document.createElement('div');
    listener.setAttribute('id', 'zaIconChangeListener');
    listener.setAttribute('dntpIgnore', 'true');
    listener.style.display = 'none';
    document.documentElement.appendChild(listener);
    if (listener.addEventListener)
    listener.addEventListener('click', iconChange, true);
    else if (listener.attachEvent)
    listener.attachEvent('onclick', iconChange);
    window.dntToolbarClicked = function (pos) {
    sendPageEvent('toolbarClicked', pos);
    sendPageEvent('refreshIcon');
    window.dntUpdateIcon = function () {
    sendPageEvent('refreshIcon');
    sendPageEvent('refreshIcon');
    })();

    ''james_s [[#question-1044118|said]]''
    <blockquote>
    150129... this has been displaying often when i open a webpage in firefox... i have to close the page & reopen it to get it to display without this... whats going on??
    In address bar: https://sc1.checkpoint.com/dev/abine/scripts/inject.js
    Displayed:
    (function () {
    // tell toolbar that inject was successful
    dntPageEvents("hello");
    // return if already injected
    if (window.dntToolbarClicked) return;
    function sendPageEvent(action, params, callback) {
    var documentElement = document.documentElement;
    var element = document.createElement("DNTPDataElement");
    element.setAttribute("action", action);
    if (params) {
    element.setAttribute("param", "[\"" + params + "\"]");
    element.style.display = 'none';
    documentElement.appendChild(element);
    var fn = function () {
    if (callback)
    callback(element.innerHTML);
    element.parentNode.removeChild(element);
    if (!document.addEventListener) { // IE8
    documentElement.DNTPPageEventResponse = 0;
    var listener = function(event){
    if (event.propertyName === 'DNTPPageEventResponse') {
    documentElement.detachEvent('onpropertychange', listener);
    setTimeout(fn, 0);
    documentElement.attachEvent('onpropertychange', listener);
    var triggerEvent = function (retry) {
    var triggerElement = document.getElementById('DNTPPageEvent');
    if (!triggerElement) {
    if (retry < 40)
    setTimeout(function(){triggerEvent(retry+1)}, 50);
    return;
    triggerElement.setAttribute('element', element);
    triggerElement.click();
    triggerEvent(0);
    } else {
    if (document.all) { // IE9
    element.onclick = fn;
    var evt = document.createEvent("CustomEvent");
    evt.initCustomEvent("DNTPPageEvent", true, true, null);
    } else { // all other browsers
    element.addEventListener('click', fn, true);
    var evt = document.createEvent("Events");
    evt.initEvent("DNTPPageEvent", true, false);
    setTimeout(function () {
    element.dispatchEvent(evt);
    }, 50);
    function iconChange(e) {
    e = e || event;
    var target = e.target || e.srcElement;
    var data = target.innerHTML;
    var timer = setInterval(function () {
    try {
    if (typeof dntPageEvents == "function") {
    clearInterval(timer);
    dntPageEvents(data);
    }catch (e) { }
    }, 50);
    var listener = document.createElement('div');
    listener.setAttribute('id', 'zaIconChangeListener');
    listener.setAttribute('dntpIgnore', 'true');
    listener.style.display = 'none';
    document.documentElement.appendChild(listener);
    if (listener.addEventListener)
    listener.addEventListener('click', iconChange, true);
    else if (listener.attachEvent)
    listener.attachEvent('onclick', iconChange);
    window.dntToolbarClicked = function (pos) {
    sendPageEvent('toolbarClicked', pos);
    sendPageEvent('refreshIcon');
    window.dntUpdateIcon = function () {
    sendPageEvent('refreshIcon');
    sendPageEvent('refreshIcon');
    </blockquote>
    REPLY TO ANSWERS:
    yes, i use blur and a couple of other security and ad blocker add-ons.
    actually, just now, it was the "firefox help" screen that always displays the code.
    based on info provided by cor-el, i started disabling add-ons... I use zonealarm firewall and antivirus which installs its own toolbar... when i disabled blur & other add-ons in turn, the problem continued... when i disabled the zonealarm toolbar, the problem stopped.
    so im going to surmise that its the zonealarm toolbar causing the problem... ill uninstall it
    great product in firefox... been using it for years... like everything about it... and now the support too!
    thank you for the help.... cheers!!

  • NO songs being copied to iPod-HELP!

    (This probably isn't a simple, obvious fix—I'm a pretty technical guy.)
    Okay, so I have a 4th generation 64 GB ipod touch running iOS 6.1.3, and a 2011 15" MacBook Pro running OS Lion (10.7.4) and iTunes 10.6.3.  I have about 20 GB of music, all of which I keep synced onto my iPod (except a couple unchecked songs).  I have a huge iPhoto library out of which about 6 GB gets copied to my iPod.  I have around 70 GB of movies, out of which I had synced around 20 GB to my iPod.  Plus I had about 8 GB of audiobooks.
    All of this was already on my iPod and was working fine.  Occasionally slow, but no particular glitches and all the music and videos were THERE.  My iPod only had about 1.5 GB of free space.
    (If it makes a difference, I always sync via cable, never via WiFi, and I don't use iCloud.)
    A couple days ago, for no obvious reason (no changes I could recall), the "other" category of usage on my iPod, as seen via iTunes, jumped from around 1.8 GB to about 47 GB.  Then iTunes complained that it "couldn't sync" with my iPod, because there wasn't enough space.  (I hadn't added anything, except for having updated a couple small apps on the iPod directly via WiFi.)
    I didn't bother trying to fix it until I found that my music on the iPod was all messed up—nothing showed up under "artists", "albums", "audiobooks" and all "playlists" were empty—there was just a full list under "songs".  But when I tried shuffling, only 360 songs showed up instead of the 4000-some I had.  (And to make things weirder, when I tapped on another song in the list, I then had 361 songs in shuffle.)
    I looked online in several places and finally concluded the giant "other" usage might have been from an interrupted sync.  (Although I don't recall interrupting any sync—whatever.)  So I unchecked all my music, videos and audiobooks (just with the big, overall checkboxes on the iPod syncing panels in iTunes).  The "usage" chart on iTunes then showed that the iPod would be nearly filled with the "other" data (47 GB or so) but it wouldn't be over capacity.  I clicked "apply", and after around a 15 minute sync, the "other" came back down to about 2 GB.
    This is where things went south.
    When I rechecked the music (skipping the videos and audiobooks because I was in a hurry to get my music on there), first iTunes recopied all my photos one by one—not sure why; I never actually deleted them (although I had unchecked the box and checked it again while seeing how to free up space for "other").  Then, nothing.
    I've tried about 8 more times to sync all my music, or just part of my music, or any of my videos.  iTunes goes through the whole sync process but copies nothing.  Says "sync complete" or whatever it says.  No music or video on my iPod.  I tried restarting my computer and restarting my iPod, after closing all active apps.  No go.  I even tried restoring the iPod from the last backup—(which, of course, was a backup from after the trouble had started, since iTunes doesn't give me a choice to keep earlier backups when it syncs).  That affected exactly nothing.
    I am at a total loss for what to do here.  Any ideas at all?  Or any details I should add (ha ha)?
    Please help!

    An "other" that large usually indicates that the "other" includes corrupted files.  Usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

Maybe you are looking for

  • Error  while parsing JSF jspx page when including javascript  loops

    Hi All, I have a jspx document which contains jsf tags including trinidad tags. I have added a javascript function in the page, which contains a for loop statement, however when I run the page I get an error com.sun.facelets.FaceletException: Error P

  • Photoshop cc2014 thumbnails in finder window

    Hi, I've just got off a chat with Adobe about the problem of displaying tiff thumbnails generated by Adobe Photoshop CC2014.  Previous versions of Photoshop gave lovely thumbnails with a white border, and after editing they went slightly greyed out a

  • My podcast has a channel, and one episode in the channel, but my second episode is only accessible via a search and doesn't appear in my channel

    So I've recently submitted a podcast, and my channel is up and running with my first episode, but now that I've submitted my 2nd episode its not showing up when you view my podcast BUT when you search my podcast name both episodes show up in the sear

  • Is my display too dark?

    I bought a refurb macbook. The display seems kind of (actually quite a bit) dark compared to my iMac. I know they are of different makes so my question is, how do I tell if the display is functioning properly without the use of a light metre?

  • MSS KEY_FIGURE_MONITOR

    Hi, I have implemented ESS & MSS. Our systems are ECC 6.0 EP 7 SP 15 ESS & MSS 1.0 XSS 600 SP 6 BP for Common Parts I have full authorization for the user in both ECC and Portal system and most of the performed post installation MSS configuration. Th