A manual sorting of repeating subforms?

I want my user to be able to change the order of a form of void repeated manually. I came across an announcement some time while looking for another question, providing a script to add an 'Up' and 'Down' buttons that allow this option.  I can't find this post again. Can you tell me the link or help me with script thanks.

Here you go

Create dynamic tables | Ensure the dynamics of development of dynamic solutions of LiveCycle and Flex

Tags: Adobe LiveCycle

Similar Questions

  • Any way to restore last manual sort order or prevent to be overwritten accidentally?

    Help!

    I'm constantly accidentally overwrite created carefully manually sort order (sometimes hours but more often months of accumulated work) in folders with file numbering up to 1,000, when I have, however, in short, switch to another sort order (size, date modified etc.) to check something, forget immediately that I am in a different sort order and without thinking (actually, I guess I think about a lot of other things) drag a file to another position, it destroyed immediately after hand sorting, I established, overwhelming with this new hands-on inadvertently.

    I tried CommandZ (modif cancel) but that only cancels my latest rating or labelling, I rushed to force quit bridge through the montior activity in the hope I will catch him before his crushed, but obviously I'm not as fast as a computer, and I don't think it has always worked.

    Is there a way or any script that someone wrote to officially record a manual sort order? Is there something that I missed in an attempt to restore? Has anyone, foiled repeatedly by the present, writes something that could give a warning and I will confirm say for example, if I tried to drag or move a file while in a different sort order (this seems to be something that must have existed the minute has been given the opportunity to create an organisation manual). Anyone would be willing to?

    Seriously, forget me almost everytime won't change and more dilapidated, it has even happened when I didn't spend anything that clumsy momentarily while in a different sort order. I think that most people could forget because that (in the context of the computer), we are conditioned to expect one caveat if something that we just created is about to be overwritten or discarded, and since there is no option to save a manual ranking officially we just created.

    Also, if it was in the real world, moving a single file would not overhaul everything on your desktop. If I had the ability to save a manual organization officially I WON'T forget to do and would use, I wanted one every time I spent some time rearrange files. Knowing how easy, it is every hour (much less months and years of cumulative work) for organization's work can be accidentally lost makes working within unpleasantly anxious bridge.

    I am literally ready to do anything , including the installation of some scripts from 3rd party summary (but honestly I have no idea what that means or how to do it). Extentively, I use and rely heavily on this feature, so it is the heel of a pretty serious Achilles. It's like watching your team meticulously built collapse of the House of cards with a sigh imprudent, but innocent, or as having the equivalent of a cat not even charming dance on your keyboard for a live concert, etc etc...

    Also it is not usually appropriate, given the context, batch rename all to preserve a control sequence numbers w manual, etc. Often the names of files are significantly (but necessarily, to evoke significant differences) since a long time already and when I have to rearrange things in the future would be obliged to do that every time, etc., etc., for even more heavy filenames which had no background information at the beginning. I'm looking for a way to make this function (manual sort order), well, more functional, safe and stable, workarounds I considered as cause too many additional problems.

    I thank in advance for any help, you may be able to offer, and as this is my first attempt to use forums that I vivre living on a boat without a regular net access, appreciate all corrections forum etiquette and excuses for misspellings, Dyslexic and spell check doesn't seem to work in this interface. next time will change in program external wordprocessing beforehand,

    Li ' l mc szpf

    P.S. I'm on a mac w 27 "CS4 Design Premium, w up to the minute BONES (10.6.8) and the Adobe software updates installed recently (I don't often move the monster but this week has been housesitting w net access, so she had all recommended shots and vaccinations...)

    PPS I know that most of you all could run the newest and later of everything, but I'm fairly certain that it is still a problem in recent versions, as has happened to me at school where all Macs are running cs5. But if it is remedied somehow in cs6 update suite together just to fix this a Bridge. I tried a lot of research and found nothing relevant or does not bother the considerable expertise and resources of an official forum, was extremely reluctant to ask (dreaded is broken in for pinout unintentionally etiquette forum), but it truly is the bane of my existence of significant bridge, so was willing to risk the imaginary censure and opprobrium...

    Post edited by: PECourtejoie

    It of a good question, for it requires two functions and a reboot of the bridge all done automagically

    Copy and paste the script in ExtendScript Toolkit
    It is installed with Photoshop and you will find: -.
    PC: C:\Program Files\Adobe\Adobe utility
    MAC: /Applications/Utilities/Adobe utilities

    Starting point
    PC: Edition - Preferences - Startup Scripts
    Mac: Startup menu - Preferences - Adobe Bridge Scripts

    At the bottom, click on the 'reveal' button it will open the folder where the script should be saved.

    Close and restart Bridge.
    Accept the new script.

    To use:
    Tools - backup sort manually
    It backs up the hidden file manually sort. BridgeSort to. BridgeSortSave

    Tools - restore manually sort
    This copierait the. BridgeSortSave back to BridgeSort and will close and restart of the bridge so that the manual sorting is restored.

    if( BridgeTalk.appName == "bridge" ) {
    var backUpManSort = new MenuElement( "command","Backup Manual Sort", "at the end of Tools" , "backupms" );
    var RestoreManSort = new MenuElement( "command","Restore Manual Sort", "at the end of Tools" , "restorems" );
    }
    backUpManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(fileSave.exists) fileSave.remove();
    fileSort.copy(fileSave);
    fileSave.hidden=true;
    }
    RestoreManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
     if(!fileSave.exists){
     alert("No backup file exists");
     return;
     }
    app.document.sorts = [{ type:"string",name:"document-kind", reverse:false }];
    if(fileSort.exists) fileSort.remove();
    fileSave.copy(fileSort);
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    }
    

    I hope it works for you.

  • I have rearranged the bookmarks (by keywords) and I lost my manual sorting original, crucial who left their jobs?

    I create clusters of related bookmarks within each file, each set out from separations. For the first time, I have sort by key words, and when I went to manually sort name / my site, all the work was gone. It is all sorted by alpha now. I guess that cannot be undone, but I hold no hope.

    Have you tried organize > Cancel in the Manager of bookmarks (library)?

    If you did not close Firefox again then see if you can use "organize > Cancel ' in the Bookmark Manager (Bookmarks > show all bookmarks) to cancel this action and restore the bookmark (s).
    Hold the button is the first of three buttons next to the back and forward buttons on the toolbar in the library (Bookmark Manager).
    If it does not work so that you can restore bookmarks from a JSON backup in the folder bookmarkbackups.

    • Bookmarks > show all bookmarks > import and backup > restore

    This will replace all current bookmarks and you lose the favorites that have been added since the backup was created.
    See:

  • Why the possibility to manually sort the files in folders has been deleted?

    Why have removed the ability to manually sort the files and folders? Having the ability to rearrange the files and folders is common sense and the need in some of my work. This removed feature cost me an hour or two of extra work that week you can reorganize all links/shortcuts in any order they wish, but to actually move files and folders around is more can be made. I would never have bought Windows 7 if I knew took it this feature away from me.

    Why have removed the ability to manually sort the files and folders? Having the ability to rearrange the files and folders is common sense and the need in some of my work. This removed feature cost me an hour or two of extra work that week you can reorganize all links/shortcuts in any order they wish, but to actually move files and folders around is more can be made. I would never have bought Windows 7 if I knew took it this feature away from me.

    Hi bcwups

    Whenever you ask the question 'why', the only possible answers you will get on a support forum are just speculation or conjecture.

    The only people who can answer the question are people who take design decisions, and they don't usually respond to questions here.

    If you wish to submit your comments and thoughts on the design of Windows 7, you can use the following online feedback form.

    Windows 7 comments - talk us at Microsoft

    There are places you can go to get some insights into the 'why' of individual decisions are made. Many Microsoft Windows developers have their own blogs where they publish articles that are sometimes very transparent and revealing. Here is a link to the parent for these items.

    Home - MSDN Articles

    Another good resource is the blog that Windows developers used during the beta of Windows 7. If you look at the archived articles, (more than 60) they described the 'why' of a large number of features that have been changed/added/removed from Windows 7.

    Engineering Windows 7 home

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Hidden visible repeatable subform based on drop-down list selection.

    LiveCycle - hidden repeatable subform becomes visible when a "MO" is selected. However, if "MO" is replaced by "KS" or any other State in the expandable lines, visible subform should back to hidden.

    Hello

    to be able to do so, you should have your drop-down list in a repeatable subform which should be considered your main earthquakes Canada, so you can have 5 drop-down lists with each subform respectively 1 comes with it.

    So let's say that your drop-down list in a repeatable subform, and you have another subform linked to this drop-down list below

    in your drop down list exit event list, you should have if statements to determine what value is chosen, and then according to the selected value display you or hide the subform

    This.parent.index is the index of the subform you want to hide, if your combo is directly in the subform repeat you to the other subforms you hide / show

    If (this.getDisplayItem (this.selectedIndex) == "MO") {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "visible";

    } else {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "hidden";

    }

    I hope this helps!

  • Create a secondary named calculation in a repeating subform based on a drop down list?

    Hi all

    I need a little crazy script. Not sure it is even possible.

    What I have:

    1. repeating subform SummarySub amounts
      1. calculation at the end of the form TotalOver field gives the total dollar amount of all iterations of SummarySub

        so far, so simple. but then:
    2. I need another, repeating the SubRow subform at the end of the form to give to other total:
      1. based on the drop-down list the name of the originator in SummarySub
      2. and break out the totals of all iterations of SummarySub based on payer such as chosen by the user names.

    Ideally, the subform (the principal totals) (B) at the end of the form would add instances as the user leaves the field name of the payer. I was not able to find a way to make and to keep the value in the field (name of the payer) of the additional instance.

    All this makes sense?

    I'll appreciate any help.  I'm trying to learn more about JavaScript in LC, but my bills just keep coming...

    Thank you very much

    Laura

    Dropbox - AFBS_OverpaymentReport_121914.pdf

    Hi Laura,

    Take a look at the modified version of your form, https://sites.google.com/site/livecycledesignercookbooks/home/AFBS_OverpaymentReport_01011 5.pdf? attredirects = 0 & d = 1.  I added a subform called PayerTotals, which has a summary of insurance created in his event to calculate.  The code looks like.

    var oFields = xfa.resolveNodes("SummarySub[*]"); 
    
    var nNodesLength = _SummarySub.count; 
    
    var nSum = 0; 
    
    var insuranceCompanies = {}
    
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) { 
    
     var item = oFields.item(nNodeCount);
    
     if (!item.InsuranceCompany.isNull && !item.OverpaymentAmount.isNull) {
    
     if (insuranceCompanies[item.InsuranceCompany.rawValue]) {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] += item.OverpaymentAmount.rawValue
    
     else {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] = item.OverpaymentAmount.rawValue
    
      nSum += item.OverpaymentAmount.rawValue; 
    
    totalover.rawValue = nSum;
    
    _PayerTotal.setInstances(0);
    
    for (var insuranceCompany in insuranceCompanies) { 
    
     var payerTotal = _PayerTotal.addInstance();
    
     payerTotal.InsuranceCompany.rawValue = insuranceCompany;
    
     payerTotal.totalover.rawValue = insuranceCompanies[insuranceCompany]; 
    

    Hope this helps

    Bruce

  • Conditional break - first rather than repeating subforms

    I have a repeated subform (new instances added by a button). It is sunk and content page breaks are allowed. Pagination is located at following previous/ongoing Parent of filling. I want to all instances of the subform to start on a new page, with the exception of the first instance.


    I think that this is possible by specifying a conditional break. I put in 'Break before', but what can I specify as a condition When? I tried When condition of:


    higherlevelforms._mysubform. Count > 1


    This causes all subforms start on a new page, but how do I add "except for the first instance of mysubform" on the condition that the first instance of mysubform does not start a new page?


    Thank you.

    All I had to do was test for this.index:

    higherlevelforms._mysubform. Count > 1 & this.index > 0

  • How to successfully reset the fields in a repeating subform

    Hello

    I'm more and more frustrated just trying to create a form dynamic xml () with lifecycle designer.

    As a test, we build a form that contains a repeating subform.

    We want to reset the fields in the current subform and only the current subform using the following snippet:

    var som_kdnr = this.parent.somExpression + ".." Kopfzeile.Kundennummer ';

    xfa.host.resetData (som_kdnr);

    But instead of reset the field "Kundennummer' in the current subform, copy the following code resets this field in all subforms.

    And to make this behavior even more "interesting" than that happens only if we use Adobe Reader XI - if we use Foxit Reader, the script does the job...

    How can we get this running in two players?

    You should not add a string to the somExpression, you must Access the Kundennummer field and then use the somExpression instead of do it yourself.

    this.resolveNode("Kopfzeile.Kundennummer").somExpression;

  • XML schema to generate data from the table of data from a repeating subform

    Hi all, I would like to have a check box that when checked, allows you to hide a quote form and make a purchase order form visible, carrying a part of the field of the form of citation data in a new table on the order form. I have attached to this form to https://workspaces.acrobat.com/?d=pqpsXx5VPi * LkMeVKrX57w if you want to take a look. If the check box is cleared, he hid the PO form and to make quite visible.

    The idea behind this is that my client will create his quote and send t to his client. Once the customer accepts the quote, he simply click a button to generate its purchase order send it to its supplier.

    It seems that I have buttons to add lines on the submission form that the problem is more complex. I would be able to do it myself if the table has a fixed number of lines and I was able to use global fields, and naming each cell something different, but because it's a single repeating subform, I can't operate at all.

    I understand that, because it's a repeating subform that I need to create an XML schema to do this, but also can not know for the life of me how to create the schema. I read tons of tutorials, but no idea how to apply it to my specific needs. I've been able to find only info on how to bind the data source once it's been created.

    I would be eternally grateful if someone could help out me.

    Thank you!

    I edited your form and put it here.

    Here's what I did:

    • Script inserted into your box renamed someone who mask/displays the purchase order / sales quotation
    • I have included a script object with a function I wrote to transfer data from as named fields/subforms from one section to another
    • Inserted a few fields in your table of purchase order

    What you need to do is to complete the development of your purchase order table. Make sure that the common fields between the quote and purchase tables have the same name in order to transfer data.

    No necessary schema.

    Kyle

  • Do some required fields in a repeating subform - verified/validated on preSubmit

    I have a form that contains a repeating subform - sense, there is only one subform (Western flowed) with binding set to repeat a 1 Min and Max of 15 (subform extensible so dynamic).

    In the subform are 5 fields (example below):

    First name

    Family name

    Email address

    Age

    Sex (radio button for men and women)

    If the user enters a value for the first name, then the name, the age and the gender option button should become "necessary". Similarly, if the first name value is empty/null, then the fields first name, age and sex radio button should be optional.

    I understand that this can be achieved quite easily if the subform was not repeat:

    If (!) ((this.isNull))) {//if FirstName field is not null

    LastName.mandatory = 'error ';

    Age.Mandatory = 'error ';

    etc.

    }

    else {//if field is null

    LastName.mandatory = "disabled";

    Age.Mandatory = "disabled";

    etc.

    }

    However, how this is achieved in a repeating subform?  If the above script is placed in the repeating subform, it affects ALL repetitive lines in the subform group once rendering. Instead, I need the mandatory conditional status treated on a basis of single instance (online).

    Thanks in advance

    Hello

    I do not see a problem to make this work even with repeated subforms.

    Here's a sample for you.

    https://files.Acrobat.com/preview/7dc1e4aa-5160-4058-a59e-77b77dbf658f

    I hope this helps.

  • Delete the blank page with repeated subforms

    Hi all!

    I have a form for the statements.

    Each statement must be set on a new page.

    I solved this with a repeating subform.

    And in the repeated subform properties variable "After" a "go to the next Page.

    This works well with only one drawback. In the end, an empty page is also be created.

    I would like to get rid of this blank page.

    But how is that possible?

    Kind regards

    Anton Pierhagen

    (1) select your repeating subform and add a conditional Break (object > paging > Edit...).

    (2) enter this script: this.instanceManager.count > this.instanceIndex + 1

    (3) select Pause: after and to: top of Page

    4) click OK

    Kyle

  • I'm trying to set the value for a textfield to an another textfield instance in a repeating subform

    Hi all

    I try to set the value of a textfield in a repeating subform/table row to another textfield in a subform that is repeated with the corrosponding instance number.

    The user has entered a list of key activities in the first part: - KeyActivityRow is the repeating subform.

    xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow.Cell2')

    -KeyActivityRow is the repeating subform-

    Who fills the corresponding occurrence of: -.

    xfa.resolveNode ("form1. #subform. ActivityTable.HeaderRow.Table1.HeaderRow.Cell1')

    -ActivityTable is the repeating subform-

    Kevin

    In the event of form1 calculate. #subform. ActivityTable.HeaderRow.Table1.HeaderR OE. Cell1 enter this script in any language: JavaScript:

    this.rawValue = xfa.resolveNode ("form1. #subform. KeyActivities.Row1.Table2.KeyActivityRow ["+ ctivityTable.index +"]. Cell2") .rawValue

    Kyle

  • Fill color for repeating subforms

    I have a repeating subform with subforms County max 5.

    Is it possible the 4th and 5th expandable lines to have a different fill color?

    Here is the script that I use for the button Add an Instance:

    _Item.addInstance ();

    Thank you

    Here is the script I use to remove button Instance:

    If

    (_Item.count > 1)

    _Item.removeInstance (this.parent.index);

    Item is a line in a table.

    Hello

    First of all, I would be disinclined to appoint an object/subform 'point'. It is very near a reserved word 'point'.

    Also in the addInstance() method, you must pass a parameter. The default value is true.

    Only way would be to use the layout event: loan of the repeating subform. It is not very effective, because the layout event: loan fires so often when the user interacts with the form. However, it will deal with situations where the lines are added and removed.

    if (this.parent.index >= 3) {
         this.fillColor = "255,129,129";
    }
    

    This might give you a start,

    Niall

  • Value of the field in a repeating subform

    I have a repeating subform with text for City, State, and Zip fields. I want to take everything that the user enters in the first (or only) instance fields and automatically put this information in a city, State or Zip field in a completely different section of the form.  I just need to copy on the first instance of these fields if there are multiple instances.  I can get this to work if the user adds an instance of the repeating subform and add a second city, State and/or Zip, but I can't make it work if there is only one instance of the repeating subform.  It does not work if the user adds an instance but does not come to the city, the State or the Zip.  I need to run regardless of the number of instances.

    For example, here's what I put in the case of 'change' of the city (inside the repeating subform) field and it works if there is another instance added:

    Form1. Page3.CityOther.RawValue = form1. Page1.SubformRepeat [0]. . RawValue City [0]

    (It's using FormCalc. I couldn't JS to work).

    I would put in the case of page layout: loan of form1. Page3.CityOther (in formcalc):

    If (form1. Page1.SubformRepeat [0]. . IsNull City [0] == 0) then

    $ = form1. Page1.SubformRepeat [0]. City [0]

    endif

    In this way, it has nothing to do with the instance manager and just make an equal to another if there is a value in the first.

  • referring to an object in a repeating subform

    Trying to get the value of a text field in a repeating subform (lets call it the subform "Identify") of my form to be set to the value of "TextField18" in the corresponding instance of Subform subform 'groups '.

    In more detail:

    In the form, I ask the question - groups how do you have? The number of this answer is the number of instances of the subform 'Groups' that I have. Within this subform is a text field ("text Field18") where the user will enter the name of the group.

    Later, in a completely different section of the same shape, I have a subform called "identify." I understand how to set the number of instances of "Identify" to match the number of instances of 'groups '. I want to do is have a field 'Identify' display the name of each group (as he entered "TextField18" in the "Groups" subform) - one per instance of the subform.  So if the groups were in Orange, red and purple entered instances of 1-3 respectively on the subform "Groups". I want the field 1 of the "Itentify" subform to autopopulate with Orange and the field in case 2 of autopopulate pending with red and so on.

    Is this possible?  All advice is appreciated!


    Hello

    Your repeated subforms, groups and identify, will have a property index to identify their appearance.  Thus, in the case of calculation of the object textfield to identify using JavaScript place the following code;

    xfa.resolveNode ("groups [" + Identify.index +"]. TextField18") .rawValue;

    This will return the corresponding value in the subforms of groups.  Note You may need to adjust the SOM expression if the groups and identify them are not at the same level.

    Bruce

Maybe you are looking for

  • Icons of track where they are stored?

    I have 2 Mac under my MBP and my main MacPro logic...  I started to use icon to help speed up searching for tracks etc.  but when I open the same song on my MBP icon are missing. is there a file system with these in I can move copy?

  • Satellite A200 - AH1 Wont Boot up

    I have a Satellite A200-AH1 (PSAE0C-AH106C), the desire for portable power on but the screen remains empty. I tried to take out the battery and let it sit. I also tried reinstalling the RAM and HARD drive.I tried to boot with no RAM at all and didn't

  • I use data when you use my appletv?

    I use data using the AppleTv?

  • Testo 176 - Serial initialization problem

    I'm trying to get the 176P 1 talk with labview Testo 2011. I downloaded the TestoToolbox and also got an update for German help with an installer of Toolbox2.exe. In any case I can't pass the initialization process with the tcddka.dll of the Testo (V

  • failure of the printer

    my printer hologram of stopped for some unknown reason, and I can ' t get "er's"