Protecting multiple instances in a subform

Working on a form which I want to access protect various subforms with a password that the user creates.
The script works ok apart from the AM11H.sfContent.sfRows subform, where it only protects the first instance. All other instances are unprotected.
var pword = AM11H.sfContent.sfPassCode.txtConCode.rawValue
if (AM11H.sfContent.sfPassCode.txtConCode.rawValue == pword) {
        AM11H.sfContent.sfProperty.access = "protected";
        AM11H.sfContent.sfNoAccess.access = "protected";
        AM11H.sfContent.sfRowHead.access = "protected";
        AM11H.sfContent.sfRows.access = "protected";
        AM11H.sfContent.stCompletedBy.access = "protected";
Can anyone help me with the script to lock all the instances of the AM11H.sfContent.sfRows subform. There are some 15 fields in the subform.
Thanks. 

You need use this for example:
var numInst = AM11H.sfContent.instanceManager.count;
if( numInst > 1)
     for( var i = 0 ; i < numInst ; i++ )
          xfa.resolveNode("AM11H.sfContent[" + i + "].sfProperty").access = "protected";
else
     AM11H.sfContent.sfProperty.access = "protected";
ZAMPAZAMPA

Similar Messages

  • Can policy agent protect multiple instances of app server

    I created multiple instances of Sun ONE App server 7.0, and one web-app in each instance. But When I am installing Policy Agent 1.1 for the second instance of App server, it told me that I HAVE had it installed.
    How can I protect multiple instances of App server?

    I see another thread on this subject. Thanks.

  • Insert a value in a table with a multiple instanced row in a multiple intanced subform

    First a little background on my problem.
    A part of my form is designed to show how the lamp units for our produkt should be built.
    There could be 0 to 4 lamp units on the product and each lamp unit can have 2 to 6 lamps.
    So when they fill in the amount of lamps I create that same amount of instances of the subform "LampUnits" and another table where they can fill in the amount of lamps per unit.
    As soon as they fill in the qty for a lamp unit that qty(instances) of rows for that specific lamp unit is made. See picture.
    this is how far I have managed to get.
    but what I need to do now is to fill the id fields of the lamp units.
    at this moment I have the following script behind the exit event of the lamp unit quantity cell:
    DataSheet.TechnicalInformation.Lamps.QtyUnitsDiffer.TQtyLamps.rQtyLamps.nfQty::exit - (JavaScript, client)
    var qtyinstance = xfa.form.DataSheet.TechnicalInformation.Lamps.QtyUnitsDiffer.TQtyLamps.rQtyLamps.resolveNode("xfa.form.DataSheet.TechnicalInformation.Lamps.QtyUnitsDiffer.TQtyLamps.rQtyLamps["+ this.parent.index +"]").nfQty.formattedValue;
    xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable.resolveNode("xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable["+ this.parent.index +"]").TQtyLamps._rQtyLamps.setInstances(xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable.resolveNode("xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable["+ this.parent.index +"]").TQtyLamps._rQtyLamps.occur.initial);
    xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable.resolveNode("xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits.LampTable["+ this.parent.index +"]").TQtyLamps._rQtyLamps.setInstances(qtyinstance);
       var t=1;
        for (var i=0; i < qtyinstance  ; i++)
            // var node1 = "xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits["+this.parent.index+"]"
            // var node2 = "xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits["+this.parent.index+"].LampTable.TQtyLamps.rQtyLamps[" + i +"]"
            xfa.form.DataSheet.TechnicalInformation.Lamps.LampUnits[nfQty.index].LampTable.TQtyLamps.rQtyLamps[i].tfId.rawValue= "lamp" + t;
           t++;
    And now i'm stuck on line 12 of the script. how do I get the correct values in the correct cell in the correct subform?
    does anyone have any suggestions?
    b.r.
    Simone

    In the example you posted, should the lamps be named lamp1 - lamp9? or are you looking for something a little more specific for each lamp?
    Best I could make up without having more knowledge of what you want here:
    the first box for quantity (which I'm calling nfLampUnits) gets this exit event:
    sfLocations.tbLocations.Row1.instanceManager.setInstances(this.rawValue); //set the number of rows in the first table
    sfQuantity.tblQuantities.Row1.instanceManager.setInstances(this.rawValue); //set the number of rows in the second table
    for (i=0; i<this.rawValue; i++){
        xfa.resolveNode("sfLocations.tblLocations.Row1["+i+"].tfLampUnit.value.#text").value = "Lamp unit "+parseInt(i+1);
        xfa.resolveNode("sfQuantity.tblQuantities.Row1["+i+"].tfLampUnit.value.#text").value = "Lamp unit "+parseInt(i+1);
    sfOverview.instanceManager.setInstances(this.rawValue);
    Then, in the Quantity table, the box for quantity (nfQuantity) gets this exit event:
    xfa.resolveNode("sfOverview["+this.parent.index+"].tblOverview.Row1").instanceManager.setInstances(this.rawValue); //set the number of rows for the nth table wrapped in a subform
    for (i=0; i<this.rawValue; i++){
        xfa.resolveNode("sfOverview["+this.parent.index+"].tblOverview.Row1["+i+"].tfLampUnit.value.#text").value =
            xfa.resolveNode("sfLocations.tblLocations.Row1["+this.parent.index+"].ddlocation").rawValue+" "+parseInt(i+1); //name the rows by their location and then an index
    Of course, your field names appear to be different, but maybe this will at least serve as a guide.

  • Inserting Multiple instances into a databse

    I am using MySQL to capture the form data. In the form I have a Driver License section which can have multiple instances.
    In the workflow I am using the "Execute SQL query" module to insert data. Initially I can insert information from the non-repeating subforms, successfully. However, workflow inserts no information from repeating subforms. Below is an example of the XPATH used.
    /process_data/xfaform/object/data/xdp/datasets/data/App/DriverLicense/drvlicstate
    Is the above format correct ? How can I insert the second and third instances ?
    Thanks
    Aditya

    Yes you can and will have to set up a loop in your process. Use an integer process variable as your loop increment start it at 1 (I'm pretty sure the indexing begins at 1...could be 0). You'll have to use the count() XPath function to count the number of nodes. Something like...
    count(/process_data/xfaform/object/data/xdp/datasets/data/App/DriverLicense/drvlicstate)
    Compare that number with the index value to know if you've looped through every node (and inserted each, one at a time) or if you need to loop again. Email me and I'd be glad to discuss this further with you if need be. It's not as complicated as it sounds.
    Hope this helps!
    Ryan D. Lunka
    Cardinal Solutions Group
    [email protected]

  • How to create multiple instance on same database

    Hi ,
    I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
    Any how if some one can help me with this and can give me links of this it would be great help for me.
    Thank you for reading my problem and helping me !
    Amil
    please if possible mail me on [email protected]

    How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
    I m new to this field....
    Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts

  • Multiple instances of Weblogic on NT

    Is is possible to run two instances of WebLogic on an NT server as
    services? Specifically, I want to set up web server clustering on two
    machines, but I am also going to be running another custom Weblogic
    app that will access a backend database. I need to set up a separate
    weblogic server for the database app outside of the clustering
    weblogic webservers?
    Thanks
    Steve

    yes u can run multiple instance of the service.
    There is a parameter in install.exe where you can specify the name of the
    service and in this manner you can have as many services as you want
    Chuck Karish wrote:
    [email protected] wrote:
    Is is possible to run two instances of WebLogic on an NT server as
    services?No. The NT support programs aren't set up to handle the multiple
    registry keys that would be needed, and they aren't set up to
    allow for setting different names for the several services.
    Specifically, I want to set up web server clustering on two
    machines, but I am also going to be running another custom Weblogic
    app that will access a backend database. I need to set up a separate
    weblogic server for the database app outside of the clustering
    weblogic webservers?
    Thanks
    Steve--
    Chuck Karish BEA Systems
    [email protected] San Francisco, CA
    (415) 317-0182 (cell) (415) 364-4692

  • Multiple instances of FileOutputStream

    Hi, I'm learning how to use Java's multithreading features. I created a class called "ObjectMaker". An instance of this class serializes some objects into a file, using a FileOutputStream (inside an ObjectOutputStream) for writing. In the mean time an other object of another class deserializes those objects reading from the file. Each concurrent access to the file (for writing,reading) is synchronized. Here's the problem:[ u]if each writer has its own FileOutputStream, then the concurrent writing on the file doesn't work (despite of every writer is synchronized on the same object), and the reader aren't able to read anything from the file; if the FileOutputStream is static (every instance share the same FileOutputStream reference) everything works. I read on Documentation that some OS "allow a file to be opened for writing by only one FileOutputStream (or other file-writing object) at a time" .But it also says that I would recive an exception from FileOutputStream if I try to open a file for writing that is already open by another FileOutputStream....and It doesn't happen, no exception are thrown.Then here is the problem:It's possible to manage Multiple instances of FileOutputStream linked on the same file?

    Hello Joseph,
    Have u been successful on the installation.
    There were no replies after yours.
    Can you please let me know about installing 2 MDS instances on the same host.
    If you have any document you followed please mail me to [email protected]
    It will be more helpful as the dead line to this is killing me.
    Regards,
    VishnuM

  • Problem running multiple instances of Creme JVM on Compaq IPaq

    I have Creme JVM installed on my Compaq iPaq, along with the JVM plugin for Pocket IE registered.
    I am running a socket server program on the Creme JVM on my PDA which listens on a particular port and outputs some response.
    The client to this server is an Applet which is being run from the Pocket IE browser.
    The problem is as the server program is already running on the Creme JVM, the applet is unable to start and says "Another instance of JVM is already running".
    If i stop the server program and then start the applet, it runs fine.
    I have tried running the server program with the option "-mi" which instructs the JVM to run in multiple instance mode, but to no avail.
    Any pointers ??
    TIA
    Harish

    Ok, maybe in 3.22 it was not yet solved, if you download the latest CrEme, this should work. If not, contact NSIcom support: [email protected]

  • Multiple instance of a class

    I have written a class, called Board. In my program, I need to create multiple instances of this class. e.g. Board1, Board2, Board3 etc.
    Board Board2 = new Board();
    Board2 = Board1;
    However, when I change some parameters in Board1, the parameters in Board2 also get changed. Is there a way to prevent this?
    I tried using the Object.clone() method, but I can't seem to invoke it due to its protected nature. If this is indeed the solution, does anybody know how to invoke it? Thanks!
    Perd

    I am interested in your alternative solution of
    implementing clone() as a public method. However, I
    don't really understand what do you mean by that.
    I tried something like this:
    class Board extends Cloneable
    but it still doesn't work.
    Can you please explain in greater detail what do you
    mean? thanks!Read this: http://java.sun.com/docs/books/tutorial/java/javaOO/objectclass.html

  • Support for Multiple instance of Portal2005Q1 on Weblogic8.1sp4

    Has anyone installed multiple instances of Portal server 2005Q1 on a Weblogic container ?
    We were unable to set up multiple instances of Portal2004Q2 on the Weblogic container. Looks like this issues is addressed in 2005Q1.
    This is posing serious concerns to our architecture scalability. Would greatly appreciate if you could let us know the issues you faced for setting up Portal2005Q1 on Weblogic8.1SP4,if any.

    There should not be a significant negative performance impact. The biggest
    issue will probably the amount of memory the 10 instances will use, not any
    CPU impact. On larger SMP systems, it is not uncommon to run several
    instances of WLS in a cluster (perhaps one for every 2 - 4 CPU's) to
    improve performance.
    "Raj" <[email protected]> wrote in message
    news:3da75672$[email protected]..
    >
    Hello,
    Is there a significant degradation of performance when using multipleinstances
    of weblogic on 1 Box. Example what would be the difference between running10
    instances each hosting 1 application on 1 box versus 1 instance hostingall the
    10 applications. Division into multiple domains is required formaintaining independence
    between the administrators of the application.
    Further let me add if those applications are mostly IO intensive and alsothe
    load on those applications is not more than 1 hit per second would thisstrategy
    cause problems.
    Raj

  • Multiple instances of weblogic pointing to same public_html

    Hi,
    I am using Weblogic 5.1 and have successfully set it up to start multiple instances
    of weblogic from one weblogic server(each instance has its own unique port).
    Currently I have multiple instances of public_html (one for each instance). Does
    anyone know what I have to do to point all instances of weblogic to a common public_html?
    Many thanks in advance
    Dipen

    create a symbolic link that is called public_html that points to the common
    docroot.
    "Dipen" <[email protected]> wrote in message
    news:3b7cf1bf$[email protected]..
    >
    Hi,
    I am using Weblogic 5.1 and have successfully set it up to start multipleinstances
    of weblogic from one weblogic server(each instance has its own uniqueport).
    Currently I have multiple instances of public_html (one for eachinstance). Does
    anyone know what I have to do to point all instances of weblogic to acommon public_html?
    >
    Many thanks in advance
    Dipen

  • Multiple instances of messaging server, iMs 5.1

    Hi,
    Do you Know how to create a new message instance in iMS 5.1 on
    a single machine? iPlanet documentation talk about it but I don't find the
    instructions that explain how to do it.
    Thank for help.
    Regards

    You can create multiple domains in a single instance of messaging....
    or multiple instance but with a cluster
    "Oriol Rubies" wrote:
    Hi,
    Do you Know how to create a new message instance in iMS 5.1 on
    a single machine? iPlanet documentation talk about it but I don't find the
    instructions that explain how to do it.
    Thank for help.
    Regards--
    /\ Hugo Brenes Hernandez
    \\ \ Soporte y Servicio / Sun Microsystems - IPlanet
    \ \\ / Lantech (Costa Rica)S.A.
    / \/ / / Costado Este de Periodico La Republica
    / / \//\ Barrio Tournon, San Jose
    \//\ / / San Jose , Costa Rica
    / / /\ / Phone: (506) 295-8000 Ext 8071
    / \\ \ Fax: (506) 221-5105
    \ \\ E-Mail: [email protected]
    \/

  • Using .vit for multiple instance

    Hi,
    I have a main vi, uses rendevous to run multiple subvis at the same time, that needs to be opened separately per user which need to open the same vi multiple times.
    I tried to use .vit, changed main vi to vit. Created new vi that calls this main.vit. However this doesn't run multiple times, only opens the first window. Then I used subVIs as vit. This even creates a bigger problem. The sub vi's that opened doesn't run.
    I think I'm missing some basic concepts of using vit. I searched the forum, found some articles but I can't find what I'm doing wrong.
    Should main vit calling several sub vit's work?
    Any tips, comments would help.
    Thank you very much.

    "CoastalMaineBird" <[email protected]> wrote in message news:[email protected]..
    VIT is not for multiple instances, it is a TEMPLATE. That means you open it up, but when you go to save it, it pretends that it's untitled, and you have to give it a new name.
    That's useful - for example, I have a TIMING TEMPLATE. When I want to time something. I open this VIT file. I insert the code I want to time into a certain frame, and run it. I usually don't save it, but if I do, I have to give it a new name.
    That way, the next time I open it, it's fresh again.
    If you want to run the same VI multiple times in parallel, you must:
    - Understand what RE-ENTRANT EXECUTION means.
    - Set the VI to use re-entrant execution.
    - Use the VI Server to open each instance dynamically.
    - Use the VI Server to CLOSE each instance dynamically.
    - Be very careful about getting data into and out of the VI in question.
    HTH
    VI Templates can also be used to run multiple instances of the same vi. If you open a .vit dynamically several times, you'll end up with several instances of the vit. Actually, this is an intended use of the vi templates. And it works great. The great benefit over reentrant vi's is that the vi templates have front panels of there own. So it's great to use vit's when you want several similar panel, without copying the code. Reentrant vi's where not intended for this. Before 8.0, reentrant vi's didn't even have panels that updated properly, so you had to use a vit.
    Regards,
    Wiebe.

  • Re: Running weblogic multiple instances on different ports

    Hi,
    I am planning to run multiple weblogic instances on different ports on the
    same machine.
    Is it possible ? If so, how ?
    Details:
    I am using IIS on the same machine. I am currently running weblogic on
    7001 and 7002(ssl).
    I dont how to run multiple instances. Please help me or guide me where I
    can get documentation.
    These two instances have to refer two different set of code bases ...
    Please point me where I can more details.
    Thanks in advance.
    Sreedhar V

    Is it possible for the two instances on the same machine to participate in
    the same cluster? I believe servers in a cluster must share the same port
    (which is also used for multicasting). Does a virtual IP address need to be
    configured?
    "Per Jessen" <[email protected]> wrote in message
    news:[email protected]..
    >
    >
    Sreedhar Vankayala wrote:
    Hi,
    I am planning to run multiple weblogic instances on different ports on
    the
    same machine. Is it possible ? If so, how ?Assuming you are using WLS6.x, simply define as many servers as needed andgive
    them different ports to listen to. This is easily accomplished using theWLS
    Admin Console.
    Then start individual weblogic processes using this config file.
    regards,
    Per Jessen, Zurich.

  • Running Multiple Instance of indesign server using com calls

    Hello All,
    I am new to this community , can anyone help me in understanding how can i run multiple instance of indesign server using com calls.. i am using jacob library in java for com calls ..
    Thanks

    Hi Soni,
    Web colsole --> your domain --> your server --> configuration -->
    general --> Listen Port / Listen Address
    Regards,
    Slava Imeshev
    "Soni " <[email protected]> wrote in message
    news:3dcfbbcb$[email protected]..
    >
    Hi:
    Is it possible to run two seperate instances of WebLogic server 6.1 onsame the
    server both listening on port 80?
    Details about the instances:
    Instance 1
    Domain names : fasnets
    Server name: envext
    Listen Address : 155.x.x.1
    Listen Port : 80 :
    External DNS : www.acme.com
    Instance 2
    Domain names : fasnets1
    Server name: envext1
    Listen Address : 155.x.x.2
    Listen Port : 80 :
    External DNS : www.acme1.com
    Thanks,
    Soni

Maybe you are looking for

  • 'Plugin Check' wrong?

    Firefox 4 on Windows XP I've used the Firefox 'Plugin Check' page and it tells me that my Adobe Acrobat plugin is outdated, even though I've updated twice via the 'update' button on that page. I've also been reminded about it twice direct from Adobe

  • Using Maps 2.0 3D satellite view how to capture JPEG or PDF?

    Right, I'm on a late 2012 27" iMac with 32GB RAM 3.4 GHz I7 & running Yosemite. I'm using Maps 2.0 and I have an interesting 3D satellite view of a part of los angeles that I would like to capture in JPEG or PDF for future reference. How to do this?

  • DataDirect and Oracle Connection Manager

    Quick Question - Has anyone made the Plumtree Portal running on Oracle using the built in DataDirect drivers work with an infrastructure that uses Oracle Connection Manager (OCM). Due to security and performance reasons, using Oracle Connection Manag

  • Passing function value into another procedure

    Hi From this package the value returned by the function " FIRST " needs to pass into another procedure as parameter in the same package, how could i do that in a better way.Oracle Version 8.1.7.4.0. CREATE OR REPLACE package body PKG_CUST_CHECK is FU

  • @relative acting strange in business rule

    We have a planning form that is supposed to run a business rule when we hit 'save'. we have the following code inside the business rule: FIX (&ThisYear, "Forecast", [<GV1>], @RELATIVE([<GV2>],0) GV1 and GV2 are global variables referring to dimension