SetFocus on a object in a copied subform

Hello!
Inside a subform I have a "Copy" button that copy the entire subfom.
What I want: when user press "Copy", except for coping the subform, I want to set focus on a object (any object) inside newly copied subform.
Is it possible?

Hi,
Yes you can, you just need to count the current number of instances of the subform (data) and then set the focus to a field in that instance:
_data.addInstance();
var i = _data.count - 1;
xfa.host.setFocus(xfa.resolveNode("data[" + i + "].firstName"));
The underscore before the name of the subform is shorthand for "instanceManager".
Sample here: https://acrobat.com/#d=2pAry7PSy7HdLPidEU2XHQ
Hope that helps,
Niall

Similar Messages

  • Xfa.host.setfocus -- to an object e.g. picture or static text etc?

    I can get the setfocus to target another input field - but can work out how (or if it can) to get it to focus the screen to an image or static text component.
    The path selecton tool in the script panel just stays that impassive red circle
    issue arises as selections from radio group opens largish subform with focus set to it's first field - and given layout radio list is lost out the top of the screen (as it were) so we put in a "made the wrong choice? click here to go back" style of button on the top of each subform -
    as the radio button selection displays the subfields using the radiobuttons as the target does not work (get into an event loop)
    so we need something else to target off the go back - i was hoping the title graphic image or static text but cant work it out
    i though the documentation said focus could do images but i cant get it to,
    thanks for any pointers/code line

    Hi,
    I don't think you can focus on static objects (static text, static images).
    I think the down and dirty workaround is your best option. Maybe make the button very small (0.01in) and you can always place a static image (icon) over it to mask the button.
    N.

  • Business Objects Homogeneous System Copy for [PCM - VENDAVO - Dataserver ]

    I am looking for any SAP supported process/method to perform system copies or transports with these products to set a standardized landscape where N1 (DEV) -> N1 (QA) --> [ Block Point ] --> N (DEV) --> N (QA) --> N (Pre-Prod) --> N (Prod).
    With ECC, BI, CRM, etc its all solid and proven processes for doing this.  However with the products from everyone else's bag of tricks without SAP standards, we are wondering how do we integrate it into the development streams for Unit Test, Integration Test, System Test to deploy.
    If anyone knows of a method for performing a homogeneous system copy from one box to another for the following, I would truely like to see it.
    1. PCM (Windows - App) - PCM (Windows - Web) - PCM (Windows - DB / SQLServer )
    2. Vendavo (Windows - APP ) -- Vendavo (LINUX - DB / Oracle)
    3. BOBJ XI Dataserver (LINUX - DB / Oracle)
    I have seem some info on the BOBJ XI side of using a biar file but I don't know if that also applies to the Dataserver piece.  At this point the message is that we build new and everyone rekeys data which flys like a lead ballon.
    If anyone has places to look, please let me know.
    Thanks
    Rick

    Hi,
    by default, BOE doesnt have such a option to copy your System like BW has.
    You could proceed as follows:
    1. setup your new BOE Server
    2. Copy thr FRS from the old to the new BOE Server
    3. Copy the CMS DB using cmsdbsetup.sh (UNIX) or the CCM from the old DB to the new DB
    4. Run the "Update Objects" option
    5. Login to the CMC of the new BOE to delete the old Server entries under "Server"
    Regards
    -Seb.

  • BI Content Original objects vs. Copy

    Hi,
    is there a SAP recomentation (white paper) how to use the SAP business content:
    Original infoobjects or copies
    Original infoproviders or copies
    Original infosources or copies
    etc.
    What are your recomentations regarding this issue?
    Thanks, Klaus

    Hi,
    To add to the comments already made,its always a good idea to copy std objects and then modify them. Its a SAP recommended best practice not to touch std objects unless you have to, but copy them over to another and then customize it.
    The disadvantage is during the version upgrades and patch upgrades. You don't know how the customized objects will work with std code. The more the customization, the more the testing.
    So, its basically a balancing act.
    Cheers,
    Kedar

  • Business Objects homogneous system copy

    Dear Gurus,
    We need to perform BO system copy from one server to another, but no standard migration or system copy guide for BO.
    Can you advice me from your practice experiences what is the best practice for system copy of BO systems?
    Thank You
    Best Regards
    Jakub

    Hi,
    by default, BOE doesnt have such a option to copy your System like BW has.
    You could proceed as follows:
    1. setup your new BOE Server
    2. Copy thr FRS from the old to the new BOE Server
    3. Copy the CMS DB using cmsdbsetup.sh (UNIX) or the CCM from the old DB to the new DB
    4. Run the "Update Objects" option
    5. Login to the CMC of the new BOE to delete the old Server entries under "Server"
    Regards
    -Seb.

  • Business Object Icon on Copy Company Code screen

    Hi,
    After sccessfully copying Company Code, on the screen of Tcode:EC01, theres an icon of BO, I would like to know what is this for???
    when I click on that icon, it takes me to screen that has Object tree structure. Please explain what type of configuration does it lead to???
    Thanks

    hi
    you can use Business Objects in your process also that is why it shows BO
    Edited by: AP on Apr 6, 2009 6:51 AM

  • Find element by object styles  and copy it

    Hello, I would like to create a script.
    Find element by object styles :
    Outside of document, I create on block with the object style "reference". This will be unique.
    After selected, I want to put it on CLIPBOARD or just do a copy.
    If selected by object styles isn't possible, how i can make a id on my element?
    Can you help me?
    Thancks a lot!

    Thank a lot!
    So, I have a find/change with a grep code.
    I copy an element, and I launch the search. My requete says "when you find this, paste".
    I use a javascript which do all my find/change like this :
    var myTextFrame = app.selection[0];
    var myStory = myTextFrame.parentStory;
    app.loadFindChangeQuery ('PuceSimple_enPuceCouleur_Courant', SearchModes.grepSearch);
    myStory.changeGrep();
    This work very well, so If I select my element, I copy, I select my texframe, I run the script all is OK.
    But I would like that script do this :
    I select my texframe and run my script : it copy element (it find by label or object style) and run the find/change grep.
    I put it some shots :
    1 : you see that my element is selected, it has a object style name, a label name. I think that it will be outside the page. I copy it.
    2. I run the find/change
    3 it's work !
    Do you understant what I want to do in scripting ?

  • IW36 sub -order OBject tab not copy

    Hello:
    I use IW31 create order and on Object list tab, I put many funcation location.
    Then I create IW36 with ref to IW31 , the object list tab not copy to sub-order.
    any configuration on this ?
    BR,
    Manthana

    Hi,
    As far as my uderstanding, it will not copy object list,
    because you are creating sub order for these objects,if they appear in order then there is no meaning of sub order(mean to say both superior order & same order be same)
    Kapil

  • Referencing an object in a repeating subform

    I'm trying to have the value of a text field in a repeating subform (lets call it the “Identify” subform) of my form to be set to the value of “TextField18” in the corresponding subform instance of the “Groups” subform.
    In more detail:
    In the form I ask the question - how many groups do you have? The number for that answer is the number of instances of the "Groups" subform that I have. Within that subform is a text field ("Text Field18")  where the user would enter the name of the group.
    Later, in a completely different section of the same form, I have a subform called "Identify". I have figured out how to set the number of instances of "Identify" to match the number of instances of "Groups". What I would like to do is have a field in "Identify" display the name of each group (as entered in "TextField18" in the "Groups" subform) - one per instance of the subform.  So if the groups were Orange, Red and Purple as entered in instances 1-3 respectively of the "Groups" subform. I would want the field in instance 1 of the "Itentify" subform to autopopulate with Orange, and the field in instance 2 to autopopulate with Red, and so on.
    Is this possible?  Any advice is appreciated!

    Hi,
    Your repeating subforms, Groups and Identify, will have an index property to identify their occurance.  So in the calculate event of the textfield in Identify using JavaScript place the following code;
    xfa.resolveNode("Groups["+Identify.index+"].TextField18").rawValue;
    This will return the corresponding value in the Groups subforms.  Note you may have to adjust the SOM expression if Groups and Identify are not at the same level.
    Bruce

  • Copy all subform data and paste into another subform

    Need: I would like to have a button within a subform that allows you to copy all the data (many fields) and then paste it into an empty copy of the subform. Of course the info pasted would fill in all the fields etc.
    Reason: We routinely need to move subform data from page 3 in the document to page 11 (example). Currently we insert a new subform and copy/paste each field from 3 to 11 and then delete 3. It would be great to press a copy button in 3 and insert a new subform and paste.into 11.
    Is this possible?

    Steve's advice is good if this is a runtime question - how a user, filling out a form, can copy data from one section of the form to another.
    If this is a buildtime question - how a developer can duplicate a subform to be used elsewhere in the same form or in a different form, you have the following options:
    Duplicate and move. For one off tasks, select the subform in the Hierarchy pallet, and click Ctrl-D. This creates a copy of the subform, with all its contents, which can then be dragged in the hierarchy to its new position.
    Cut and paste. For one off tasks, select the subform in the Hierarchy pallet, and click Ctrl-C. Select the new position in the Hierarchy and then in the Design View (it seems odd to select the same object twice in different pallets, but this is required for the copied subform to be pasted into the right place). Click Ctrl-V
    Fragment. When the exact same subform is going to be used several times in the same and different forms, create a fragment by selecting the subform in the Deisgn View and drag to the Fragment Library pallet. This creates a fragment XDP file. By dragging the fragment onto forms, you are creating links back to the fragment XDP file. Change the fragment and next time you open a form in Designer it will inherit the changes. Fragments cannot be customised for a specific form.
    Common Object. Similar to fragments, you create a common object by selecting the subform in the Deisgn View and drag to the Object Library pallet. The difference is that when you drag a common object onto a form, it is inserting a copy of the subform. The inserted subform is not linked to the common object and so it can be customised for that form and will not inherit changes to the common object.
    Ben Walsh
    www.avoka.com

  • Copying objects from Illustrator CS3 to FreeHand 11.0.2

    Working on a Mac in OSX 10.4.11, I was able to select and copy objects in an open Illustrator CS2 file and paste them into an open FreeHand 11.0.2 file, where they would be fully editable. After migrating to OSX 10.6.2 and upgrading to CS3, this no longer works - the objects selected and copied from Illustrator either do not appear (only corner indicators are visible) or a pale version appears as an uneditable low-rez image with funny colors....
    Because there are so many missing features in Illustrator, it's important for me to be able to work back and forth between the two apps.  Has anyone been able to achieve this (formerly) simple interactivity?

    I got the following post from Danny Haas:
    If you go to Edit>Special>Paste Special and then select AI/EPS from the list
    it should paste just fine. It works well for me.
    Worked for me too, although text was not imported as editable text.  To do
    that had to special paste the text separately as unformatted text, and then
    reformat in FH.
    From: Judy_Arndt <[email protected]>
    Reply-To: <[email protected]>
    Date: Wed, 13 Jan 2010 17:19:27 -0700
    To: PETER AGOOS <[email protected]>
    Subject: Copying objects from Illustrator CS3 to FreeHand 11.0.2
    I skipped AICS3, but now use AICS4 for some tasks.
    The only solution I've found is to save the AI CS4 file as AI 8, open that
    in FHMX and copy from there.

  • How open and copy smart object

    Hi,
    I read topics about smart objects but i not found solution on my problem.
    1. I need open smart object layer
    2. copy all layers from the smart object to another file
    Thanks

    I think you may be better off just copying the smart object layer from the source document into the target document.  There may be several different resolutions involved and other complexities.  Within a smart object layer there is a copy of the original object. So how the smart object layer was created determines what the imbedded object is.  A smart object may be many thing. Could be a copy of a raw file, a copy of a layered file, contain a group of layers created from within the source document. There is a transform associated with smart object layers.  When you open a smart layer into Photoshop so you can edit the embedded smart object it opens at the resolution and size of the object which may be different then the document its  a layer in. The transform is only associated the layer not the object. Once open into Photoshop you can of course dupe the layers into the target document.  It may be a bit complex for some layers may have layer mask and perhaps other layers clipped to it or be within a group then there is the layers visibility state. If you have both the source document and target document open in Photoshop it is easy co copy a layer from the source document to the target document. If the source layer is a smart object the associated transform will also be copied to the target document however it easy re transform the smart object layer in the target document.  In the source document target the smart object layer the use menu Layers>Duplicate Layer... in the Duplicate Layer dialog in the destination section use the pull down menu to select the target document You can use the scriptlistener plugin to capture the action manager code to do that.
    // =======================================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc24 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref14 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref14.putEnumerated( idLyr, idOrdn, idTrgt );
        desc24.putReference( idnull, ref14 );
        var idT = charIDToTypeID( "T   " );
            var ref15 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref15.putName( idDcmn, "Untitled-2" ); <====================================== target document
        desc24.putReference( idT, ref15 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc24.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc24, DialogModes.NO );

  • When a Method Returns an Object, does it return a copy or a pointer?

    When you have a method that returns an Object, is the Object returning a copy of the Object returned inside
    of the Method or is it an Actual pointer to the Object inside of the method's coresponding Object?
    so say you have an object ...
    Class Something {
    JLabel myLabel = new JLable("myLabel");
    public JLabel getLabel() {
    return myLabel;;
    Something something = new Something();
    JLable theLabel = something.getLabel()
    theLable.setString("theLable");
    so when I setString on the Object theLabel , am I going to change the value of myLabel inside of the Object something?

    Yes, it returns a pointer.

  • Copying database objects and data from one server database to another server database in AG group

    Hi,
    I am still trying to wrap my head around sql clusters and AGs and I have a project that requires I take a vendor's database and restore it weekly so its available on the production server which is clustered.
    The vendor's database on the cluster is in an AG group and encrypted.
    Right now, I plan to restore the database on a sql staging server and use the SSIS Transfer SQL Server Objects Task to copy the table structure and data from Stage to the Production database of same name and I would first drop the objects in production
    database using the same task.
    I am concerned that this might cause issues with the passive cluster due to "logging" from active to passive. The database is about 260 MBs and I am not sure how many tables.
    Has anyone run into this type of scenario before or have a better solution?
    Thanks
    Sue

    IF I understand anything about clustered sql and logging, the sql server should take the log file and recreate the same scenario on the passive side of the cluster.
    Is that correct?
    Hi Sue,
    Yes, for AlwaysOn Availability Group, the transaction log is basically replayed from the primary to all of the secondary's.
    Besides, from my point of view, as we cannot directly restore a database that is part of an Availability Group, it is a good way using SSIS task to drop and recreate all tables then transfer data from the restored database to the primary replica. Schema changes
    and data changes will also happen on the secondary  replica.
    There are some similar links for your reference.
    http://dba.stackexchange.com/questions/21404/do-schema-changes-break-sql-server-2012-alwayson-or-are-they-handled-transpare
    http://blogs.msdn.com/b/sqlgardner/archive/2012/08/28/sql-2012-alwayson-and-backups-part-3-restore.aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Can Multiple Objects be copied into Sales Order??????

    Hi,
    I have created three charecteristics and assigned to a class of class type 001. In the classification view of material master for each material i assigned the class.This assignment is done for calling the object at sales order level.
    I am able to find the multiple objects for single characteristics in sales order but multiple objects are not copied into sales order..only single object is copied into sales order...when i try to copy multiple objects system is throwing warning message as "You can only copy one object in this mode".... Is it possible to copy multiple objects ?? Any answers will be highly appreciated.
    Ramagiri.

    Hi,
    But what's the purpose behind that.Material Class 001 is just only for information purpose only to search the materials with help of class and characterstic.
    If your material is configuable one then you have to use Class type 200 - Material (Configurable Objects) and for the same you have maintain the characterstic value during sales order creation.
    Regards,
    Dhaval

Maybe you are looking for

  • SHOW LOV IN ENTER_QUERY MODE BY USING WHEN_BUTTON_PRESSED TRIGGER

    HI ALL... I HAVE A CANDIDATE BLOCK. IN ENTER QUERY MODE BY PRESSING f9 KEY I AM ABLE TO SEE THE LOV BUT WHEN PRESSING THE PUSH BUTTON ITS NOT COMING BY USING SHOW_LOV BUILT IN.. PLEASE HELP ME.. ASAP

  • [JS] CS6+   executeMenuCommand

    Hello together, since CS6+ there is possible to executeMenuCommand (menuCommandString: string) Executes a menu command using the menu shortcut string. Question 1: Who knows a way to read all the available commands? Question 2: At the time I need 'Cle

  • Adding a clip to same multitrack

    I used to be able to do this in the older versions of Audition. Basically I am editing a lot of clips from one long wave form and want to add each clip to just one single track in the multitrack view. So essentially each clip will line up one after t

  • Can't open .mov files for iMovie editing; can't even view in QuickTime, etc

    Our band recently had a videographer record our performance using two panasonic hd cameras: AG-HVX200 and HPX170. Both were set to hd 720 X (?) at 30 fps. All files were saved as .mov files. We can't see them at all. We were told that they were desig

  • How to install SDK com into Delphi 7

    Hello All, I am a freshman about SBO, now I try to install the SDK com into my Delphi7, how to do? who can provide a sample? thanks for your help in advance.