Need To:  Keep Script Objects Unique to Specific Forms

We create xdp's and then allow users to 'stitch' these together forming one complete PDF.
These form's code check data entry, completeness, calculations, etc. One of its biggest features is that it highlights required fields (not the built in required field highlight) and conditionally required fields as needed.
Global Functions (using a script object) works wonders onimmediate form feedback to the user. However, when we combine 2 or more xdp's together, the script objects disappear - leaving the first form's script object only.
We need the script objects to stay unique to each form without 'dropping off' after stitching forms together.
Any ideas??

I would probably use a TreeMap that referenced the counter.

Similar Messages

  • Script Objects Disappearing when 2 or more XDP's are stitched together

    We use Adobe Form Server.
    We would like to use Script Objects in our forms. Unfortunately, when we stitch two or more forms together, only the first script objects [contained in the first form] remain. The other script objects [in each additional form] fall off.
    The script objects are unique to the form and are named differently (ie. "GlobalFunctions_8190" vs "GlobalFunctions_200878").
    How can we correct this? Is it how the Form Server was set up?
    Please help.

    Just in playing with it, I added an extra ${endif} at the end of the network section and the error went away.   Since I only have one network connection, I don't know if it breaks something else or not.

  • Keep an object around for the life of the server?

    I need to keep some objects around for the entire life of the server.
    However would I make sure of that? In other words, how do I prevent them
    being gc'd?
    TIA,
    Bill

    Say I have a singleton. If it wasn't in a app server, I can, for example,
    have it instaniated in the main and hold the ref there. But in the app
    server, wouldn't such a singleton subject to gc since no one is holding the
    ref if no one is using it at the moment? If so, the re-instantiation can be
    quite expensive. How can I make sure that doesn't happen?
    "Philip Strube" <[email protected]> wrote in message
    news:[email protected]..
    Hi Bill,
    Bill wrote:
    I need to keep some objects around for the entire life of the server.
    However would I make sure of that? In other words, how do I prevent them
    being gc'd?same way as singleton instances are usually kept: in a static variable.
    If you hot-deploy your application, but you don't want your mentioned
    objects to be destroyed, put the classes in a jar in the server classpath.
    If they are in your application's ear or war, they will be destroyed and
    re-created on hotdeploy.
    If you don't hot-deploy, you don't need to care about.
    TIA,
    BillViele Grüße ;-)
    Philip

  • Calling a Script Object

    I'm having some trouble calling a function with arguments froma a radio button click event in the main form. How can this be done?
    This is the way i'm trying to do this now:
    -Script Object code (path: xfa.form.variable.fun1):
    function ex1(var1,var2){....}
    -Call from the radio button click event:
    xfa.form.form1.variable.fun1.ex1(var1,var2)
    Thanx!

    Hi,
    What seems to happen when you remove a form object that has code that is currently executing is that it can't find the next line.  You might want to put all your code in the script object.
    so in the click event you have;
    SOremove.fxremove(this);
    Then your script object will start
    function fxremove(button) {
        button.resolveNode('fifteenSubform._CorrectiveActionWrapper').removeInstance(button.parent.index);
        if (xfa.host.version < 8) {
            xfa.form.recalculate(1);
        console.println("The SOremove.fxremove fired");
    Regards
    Bruce

  • Why does Livecycle Designer need to lock scripting on objects with children that are fragments??

    Can someone tell me why Livecycle need to lock scripting on objects with children that are fragments??
    I mean, just because I have a fragment (which you can't edit the script for), why does Livecycle need me to NOT edit say the initialise event on the Main form.
    Yes, I can remove my fragments, edit and reinsert.  Also if the event already has a script, I can edit the xml.  But neither of these are terribly convenient.
    Couldn't there be a better way?

    The purpose of the fragment is to create re-usable or standard components. In most cases the fragment is not created by the same person designing the form and they do not want the from designer to modify any part of the fragment (it is a separate XDP file). There may be code in that fragment that relies on the structure that exists. If you have the rights you can always edit the fragment and when your PDF is created the changes will be picked up.
    If you want to be able to modify the fragment while it is in Design mode sounds to me like you want to add a component to the object library. This will allow you to have a reusable piece of a form that you can modify on a form by form basis. To do this simply build the piece that you want. Lasso the entire form and drag it onto the Custom library. When you release it a dialog will pop up allowing you to name your component. Now on any form design you can drag your new component onto the canvas and all methods/properties and code will come with that component (allowing you to modify it for that form as you see fit).
    Note that you can create your own libraries to hold your components if you see fit. Also if you put your libraries on a shared drive, you can share components between Designers.
    Paul

  • I am tryin to update my itunes and it keeps tellin me i need a preupgrade script

    I just got a new ipod touch. it is a 4g and i need to upgrade my itunes but am not able to cuz it keeps tellin me i need a preupgrade script... can anyone help

    This is true.
    All of your content should be on your computer in itunes.  If it is not, then transfer it there, so you can sync it back.

  • Insert Script Object?

    In Acrobat Pro you can create a document script as follows:
    function Hello()
    app.alert("Hello World")
    And call this Hello.
    If you create button on the page then create an action on Mouse Up Run a JavaScript which looks like this:
    Hello();
    A message box appears saying Hello World click OK and press the button and it keeps coming back.
    Now in Designer this is a little different.
    I create a new page, insert a script object rename it to Hello and type:
    function Hello()
    app.alert("Hello World")
    I then create a button and on the mouse up action type;
    Hello();
    If I try this I get the following mesaage:
    TypeError: Hello is not a function
    1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
    Why is it so?
    Even removing the script object and going to the Form properties Variables tab and entering the function script there does not seem to work.

    Thanks Steve,
    It works without a hitch. Im still getting my head around JavaScript and 2 weeks, 6 hours a day of reading and testing and reading is slowly getting clearer I think.
    Just to make sure Im getting this clear in my head. The way I had the script before was when it was applied to the field that showed the value it was referring to this as the field itself. So it worked not worries because it was point to the itself.
    When I tried to apply the same script in a script object field (variables) that the whole documents can reference it was only in as a variable. The line form1.variables.setTotals.Totals(); did not do anything because it did not see the totals as a function and refer to it, and as a result nothing would appear in the filed. By adding obj to the script it tells the form that its an object and the objects formula is spei1 + spei2. This now means that the script can be applied to any filed and that is where form1.variables.setTotals.Totals(this); comes in. It tells the filed apply the object (Totals [spei1 + spei2] ) to this filed.
    Does this mean that any script placed in the Variables field needs to be referred to as objects?
    The reason I was taking this approach was to resolve a problem posted earlier.
    I thought by having the script as a script object that was applied to the document rather than the field it would update the other fields that refer to it. Which I now realize will not happen. Could you suggest a conditional statement that I could put in to:
    If special item 1 = $12.00 the result in the total = $12.00. If I then click on one of the fields in the special column say in Monday for example the result should be $12.00. If I then decide to enter another $12.00 in special item 2 the total will now be $24.00 but the Monday result will still say $12.00.
    Is there a way to have it check that it the figure which may appear in the Special column, to update that result as well?
    Should I be look at a message box instead telling the user there is a difference and for them to re-click on the Monday field to update it?
    Any suggestions would be appreciated.
    Regards, John.

  • Scripting objects in Illustrator - JavaScript

    Hi i am new to use Javascript in Illustrator.
    I can create new layers easy :-)
    but i like to select objects with a specific fillcolor
    All those objects should be moves to a specific layer
    And have an other fillcolor.
    Is this possible with JavaScript
    if yes HOW
    Thanks

    Firstly to answer your question… Yes this is all possible using JavaScript… A tip for a scripting new comer… Don't confuse script with the GUI there is NO need to select objects in order to move or change them… It's generally better NOT too and only deal with selection when you want user defined input… It is far less simple with script you will need to check every item in the document and if it's color matches a set of values move it else leave where it is… Don't forget when you move objects from one container to another you may have to account for the order reversing…

  • Powershell - Select-Object -Unique vs Group-Object

    Hi,
    I have the following problem with powershell.
    I have a list of strings call it $machine_list which
    I know there are duplicates.
    The following  code produces the following output:
    $machine_list.count -- 15375
    $a = $machine_list | Select-Object -Unique
    $a.Count -- 12134
    $b = $machine_list | Group-Object -NoElement
    $b.Count -- 12082
    I am trying to get a unique list and looking at different
    ways of doing it.
    So in my example above why are the counts different?
    Should they not be the same - $a.Count -eq $b.Count?
    I am hoping somebody can explain this in more detail to me.
    Also is there a way I can compare the results to see how they
    differ? (Comparing $a with the Name Values of $b).
    Thanks,
    Ward.

    Dirk - another way to think this out.  "group" means that each named group has a unique name.  In a list of strings the group name and object are identical so the list of group names is the list of identical strings.
    Select -unique and sort -unique produce an identical set of lists.  Select -unique, however, does not necessarily produce a sorted output although the output is guaranteed to be unique.  What you may be mixing up is that many learned to add sort
    in PowerShell V1 because they did not get a sorted output from a unique operation.  As I posted above, this issue has come up constantly as people start to learn databases.  A company that I used to work for wrote its own 'uniquing' code.  It
    always produced a sorted output as a byproduct of the method.  When we implemented SQL database technology the programmers could not understand why select unique in SQL did not produce a sorted output.  They constantly complained that it was a bug.
    In most cases we would like a uniquing operation or not sort the results.  Suppose I have a result set order a specific way.  Now I want group it on a column but I do not want the order of the records changed.  Grouping and select unique should
    not change the order.  There are many discussions in the database field as to why this needs to be.  I am not sure which set of standards PS follows.  In PS1 it appeared to follow the industry standard.  Maybe I will test it later.
    ¯\_(ツ)_/¯

  • Cmsdk 10G - need to export Clas Object/attributes into XML

    I am running CMSDK 10g, and need to export Class Object and attributes (metadata) for a document into XML. Specifically the Class Object and attributes that I created. I am thinking I can either use an API to export the Class object and attribute data, or I can go directly into the DB and pull the data from the table into XML.
    1) Is there an API available?
    2) What user is the owner of the Class Objects and attributes?
    3) What table contains the Class Object and attributes names and data?
    Thanks,
    Bilal

    Hi Bilal,
    I think the CUP (command line utility) will do the hard job for you.
    1. Find the ID of the wanted classobject
    (find CLASSOBJECT "name='WHATEVER'" -attrall)
    2. Cat the definition with:
    cat -id &lt;the id&gt;
    You will get the description in xml. You can run the commands as script and with a XSL or CCS you will be able to transform the output into html for your doc.
    Hope it helps
    Regards
    Gunther

  • Script object in fragment not working?

    I have a fragment that contains a script object and a text field. The text field's initialize event handler calls a method in my fragment's script object. Everything works fine in preview mode of the fragment.
    When I create a new file and use the fragment in that file, the initialize event handler in my fragment is invoked just fine, but the method I'm trying to call in the script object in the fragment never fires. What I have looks like this:
    File
    - fragment
    Fragment
    - script object "Foo"
    - someMethod()
    - xfa.host.messageBox("Foo");
    - text field::initialize
    - xfa.host.messageBox('hello');
    - Foo.someMethod();
    When I preview the fragment, I get "hello" and "Foo" message boxes.
    When I preview the file, I only get the "hello" message box.
    Is what I'm trying to do possible?
    Thanks,
    Andy

    When calling the script object that is embedded in the fragment you have to path specifically to that object. The scriptobjectName.method is not enough to find what you want. You would need FragmentName.ScriptObjectName.Method()
    I tried it here and it worked.
    You may want to use a script Fragment instead of using an embedded script object on a fragment. The script fragment would run in the form root context and would behave like you are expecting.

  • Unsupported script object error

    I haven't been able to play any of my games today. They keep telling me I need to update my flash player, but my Windows 8 does it automatically. Sometimes they tell me I need to enable Flash, but it is already enabled. I use IE 10, but I also tried Firefox and Chrome browsers. I also re-booted my PC to no avail. I tried deleting history and allowed all add-ons. I now get a Java script object error. My Active X is disabled and my Shockwave object flash player is enabled. Can you walk me through all my settings and fix this issue?

    Javascript errors are usually caused by the website offering Flash content.
    Different browsers use different Javascript engines.  Do you get the same errors when using Firefox or Chrome?

  • Need a shell script to backup archive log daily

    Hi All,
    We need a shell script to backup the archive logs daily after shutting down the concurrent manager and once the backup is completed, needs to start the concurrent manager through the script itself, if you have any ideas or sample scripts, please provide and help us.
    The objective is to backup the daily archive logs with out any loss of data.
    Thanks,

    I do not have a similar script to share, sorry. However, you may review the following links/notes:
    Note: 137181.1 - RMAN Backup Shell Script Example
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=137181.1
    Recovery Manager (RMAN) Manuals
    http://www.oracle.com/pls/db102/homepage

  • How do I count objects of a specific type in a Vector? Java 1.3 source.

    How do I count the objects of a specific type in a Vector?

    isInstance may allow too much for your needs as it allows any object which can be typecast to 'type' while you seem to want to limit to objects which are exactly of the type 'type'. In such a case you could do this:
    for (Enumeration e = attachmentTypes.elements(); e.hasMoreElements();)
      Object check = e.nextElement();
      if (check.getClass().equals(type)) {
        counter++;
    }Javadoc of the isInstance() method:
    http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Class.html#isInstance%28java.lang.Object%29
    (I link to the old Javadoc given you mentioned Java 1.3 compatible source)

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

Maybe you are looking for

  • JDeveloper-Questions

    Hello,iam new in JDeveloper(10.1.3) and iam facing some problems during the transition of an application to the web.I will be graceful if somebody could help me. My questions are: 1)How can i display my error or information messages (that i have stor

  • W530 w/ Series 3 Dock - Driving Three 4K Monitors

    Hey All, Interesting question for you... My normal monitor configuration on my desktop machine is 3 Monitors in landscape + 1 in portrait. I am considering upgrading my 3 landscape monitors to either 2560x1440 screens or 4k. I use a W530 with a Serie

  • File to be stored in application server

    Hi all Can anybody provide me sample code for storing file on application server. very urgent. regrd Mona Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:17 PM

  • Saving search engines results

    hello , I have desgined a user interface using jsp and servlet that reformulate the query and send it to the search engine. I have a question how to save those results in a text file for further processing. thanks Edited by: [email protected] on Nov

  • Can't check aol email in ios7

    When I updated to ios7 it says i have the wrong username or password. Does anyone know how to fix this? Thanks.