How do I iterate through a subform structure ?

  I have subforms which have individual fields which I have to set access either open or protected.  Instead of listing each single field, is there a way I can use a for loop to iterate through the subform and set each field access as needed?

That’s unfortunate because we aren’t using Acrobat/Reader to read the forms.  We’re using a product called FormStream Filler.  Anyway, I stumbled onto a technique used in a previous form here.  I don’t understand everything about it, but I was able to replace enough code to get it to work with my form.  Suffice to say it has a lot to do with nodes. 
Thanks for  answering.

Similar Messages

  • How do you iterate through a string?

    Hi! How do I loop through a string of characters. My program needs to iterate through a string in order to do some calculations. Here is an example:
    <item>1</item>
    <description>This is an example.</description>
    How I iterate through description one character at a time.
    Thanks for your help!

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
    <xsl:template name="add-X">
    <xsl:param name="string" select="." />
    <xsl:if test="$string">
    <xsl:text>X</xsl:text>
    <xsl:value-of select="substring($string, 1,1)"/>
    <xsl:call-template name="add-X">
    <xsl:with-param name="string"
    select="substring($string, 2)" />
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    Create an file named TEST.xsl with the above code.
    <aaaa>ABCDE</aaaa>
    Create an file named TEST.XML with the above code.
    Create an RTF template with form field valus as
    <?import: file:///C:\Desktop\Sample RTF\TEST.xsl?>
    Note : here you have to point the xsl path where your TEST.xsl is located.
    Then create another form field with value
    <xsl:call-template name="add-X"> <xsl:value-of select="." /> </xsl:call-template>
    When you merge the xml and RTF , you will find the no of "X" equivalent to length of the string in <aaaa> tag in xml

  • How Do I iterate through a TIFF image in an ImageField?

    Does anyone know of a method to iterate tiff images inside an ImageField?
    If I load a Tiff image which constitute of multiple pages/images only the first image available on the imageField.

    In JavaScript you'd do something like:
    var nodeList = xfa.resolveNodes("MytxtBox[*]");
    for (i = 0; i < nodeList.length; i++) {
    xfa.host.messageBox(nodeList.item(i).access);
    I haven't tried the script, so there may be some syntax errors, but that's how you do it.
    FormCalc would be something like:
    for i = 0 upto 2 do
    $host.messageBox(MytxtBox[i].access)
    endfor
    Chris
    Adobe Enterprise Developer Support

  • How can I iterate through the TextObjects of a Report object?

    Post Author: EMoscosoCam
    CA Forum: Other
    Hello(Using Crystal Reports XI Release 2 and Visual Basic 6)I have the name of a TextObject as a string. I would like to make something like this:Dim objReport As CRAXDRT.Report' once initialized from an RPT fileobjReport.TextObjects(strName).Supress = TrueOf course, there is not such a thing as a TextObjects collection. Is there a similar way to do what I want? Consider that the TextObject's name to be supressed is a string, and that I do not have it before-hand.Thanks a lot.

    Post Author: JonathanP
    CA Forum: Other
    Hi;
    You can loop through every section, then through every object, and check to see if it is a TextObject or not.
    ie:
    Dim I As IntegerDim X As IntegerFor I = 1 To Report.Sections.Count    For X = 1 To Report.Sections.Item(I).ReportObjects.Count        If Report.Sections(I).ReportObjects.Item(X).Kind = crTextObject Then            Report.Sections(I).ReportObjects.Item(X).TextColor = vbRed        End If    Next XNext I
    Regards,
    Jonathan

  • How do i iterate through this html document.

    I trying to read in an html file which looks like this
    <ID>1</ID>
    <BODY>blah bal blah
    blah bal blah.
    </BODY>
    <ID>5</ID>
    <BODY>blah bal blah
    blah bal blah.
    </BODY>
    <ID>7</ID>
    <BODY>blah bal blah
    blah bal blah.
    </BODY>
    Problem is i need to record the id numbers and do stuff with the text in the body.
    So my final result should be one file with each id # followed by the manupulated text in each body. so far i cant find any examples on iterating through html docs.
    ...ANY IDEAS??
    tx in advance :)

    I used the tokens....
    FileReader file = new FileReader("problemFile.txt");
    StreamTokenizer inputStream = new StreamTokenizer(file);
    // read into Vector caled vec.
    int tokenType = inputStream.nextToken();
    for(int index = 0; tokenType != StreamTokenizer.TT_EOF;)
    AStrVarable = inputStream.sval;
    if (name != null)//ommiting the numbers.numbers returns null for sval
    vec.add(AStrVarable);
    tokenType = inputStream.nextToken();
    but this just treats the file as one big block. im need to loop through all instances of "<ID>1</ID>" ids, return the id number and then for each id process the contents (bla bla bla)of the "<BODY>bla bla blah </BODY>" bodies.
    thanks for ur suggetions

  • Iterate through RichTable with custom cells

    Hi.
    I create a RichTable by drag and drop a view in DataControls. View is from table xxx and table contains only one column, binding description field in the table.
    This description is shown in an OutputText UI component.
    Then, I add a column with a SelectOneRadio component (to check Yes/No).
    Finally, I add another column with an Input Text to write comments.
    So, when I click one button, I capture the action event and want to process table content. But, how can I iterate through this table?
    How can I get each row, and each cell in its row (each radio, each text)?
    My JDeveloper version is 11.1.1.7.0
    Thanks in advance. Best regards
    EDIT: _________Final solution_________
    Add two transient attributes and iterate the VO object is very easy.
    For the specific issue about radio button, add a switcher and bind the radio group with the transient attribute.

    Hi,
    You could do something like
                   <af:switcher id="s1" defaultFacet="input" facetName="#{row.type eq 0?'radio':'input'"}>
                    <f:facet name="input">
                        <af:inputText id="it2" value="#{row.answer.inputValue"}/>
                    </f:facet>
                    <f:facet name="radio">
                        <af:selectBooleanRadio id="sbr1" value="#[row.answer.inputValue"}/>
                    </f:facet>
                    </af:switcher>
    -Arun

  • Iterate through table rows

    Hi Experts ,
    JDEV 11.1.2
    how can we iterate through Richtable rows one by one......?
    if we have a 5 rows in a table , i need an iteration thorugh all 5 rows in order to check attribute values......how can i implement this?
    please give me some rference code...
    PMS
    Edited by: pms on Apr 4, 2012 2:40 PM

    Hi
    getAllRowsInRange() method in the DCIteratorBinding will help you to get the number of rows and u can perform the check of attribute values inside the loop.
    Example:
    DCIteratorBinding dcib1 = (DCIteratorBinding) bindings.get("ViewObjectIteratorName");
    DCIteratorBinding dcib2 = (DCIteratorBinding) bindings.get("ViewObjectIteratorName");
    for(Row r1 : dcib1.getAllRowsInRange){
    for(Row r2 : dcib2.getAllRowsInRange){
    regards,
    KR

  • Iterate through filtered rows

    I have a table (af:table) with a filterable column. How could I iterate through the rows after the filter was applied?
    Thanks in advance
    jleon
    (JDeveloper 11.1.2.4.0)

    Have you tried to get the iterator in the bean method and iterate over it?
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            //access the name of the iterator the table is bound to. Its "EmployeesVOVIIterator"
            //in this sample
            DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("EmployeesVOVIIterator");
            //access the underlying RowSetIterator
            NavigatableRowIterator rsi = dciter.getNavigatableRowIterator();
            while(rsi.hasNext()) {
                Row row =rsi.next();
                // work with the roe
            }Timo

  • Iterate through a subprocess

    Hi,
    How do i iterate through a subprocess until a condition is met?
    Thanks,

    You can try this..
    Intialize i=0 and assuming roles is a list containing a list of roles.
    <Activity id='1' name='initialize'>
    <Action id='0'>
    <expression>
    <set name='role'>
    <get>
    <ref>roles</ref>
    <ref>i</ref>
    </get>
    </set>
    </expression>
    </Action>
    <Transition to='getroleinfo'/>
    </Activity>
    <Activity id='2' name='getroleinfo'>
    <Action id='0'>
    <!--call ur sub process here -->
    </Action>
    <Action id='1'>
    <expression>
    <set name='i'>
    <add>
    <ref>i</ref>
    <i>1</i>
    </add>
    </set>
    </expression>
    </Action>
    <Transition to='intialize'>
    <lt>
    <ref>i</ref>
    <length><ref>roles</ref>
    </lt>
    </Transition>
    <Transition to='end'/>
    </Activity>

  • Iterate through HashMap and .....

    Hi friends,
    I have a HashMap with say following entries..
    (ad_key1 , value1)
    (ad_key2 , value2)
    (ad_key3 , value3)
    (ad_key4 , value4)
    (hk_key1 , value1)
    (hk_key2 , value2)
    (hk_key3 , value3)
    (hk_key4 , value4)
    Now my requirement is that i have to iterate through the hashmap and get all the values for the keys starting with ad_ , and not just that whils storing it in some other place remove that ad_ part and store the remaining. so removing the other part od_... and storing it is fine, i will do that.
    But the problem is how do i iterate through the HashMap in a way that i retreive first key then check if it is starting with ad_ , then retreive second key and check that whether it is starting with ad_ and so on .
    please do help,
    thanks in advance

    import java.util.Iterator;
    import java.util.HashMap;
         public class IteratorExample
              public static void main(String args[])
                   HashMap hashMap = new HashMap(); // Constructs a new empty HashMap
                   hashMap.put( "One", new Integer(1) ); // adding value into HashMap
                   hashMap.put( "Two", new Integer(2) );
                   hashMap.put( "Three", new Integer(3) );
                   System.out.println("Retriving all keys from the HashMap");
                   //     retrive iterator from keySet of the hashmap
                   Iterator iterator = hashMap.keySet().iterator();
                   while( iterator. hasNext() )
                        System.out.println( iterator.next() );
         }

  • How to split a string into tokens and iterate through the tokens

    Guys,
    I want to split a string like 'Value1#Value2' using the delimiter #.
    I want the tokens to be populated in a array-like (or any other convenient structure) so that I can iterate through them in a stored procedure. (and not just print them out)
    I got a function on this link,
    http://www.orafaq.com/forum/t/11692/0/
    which returns a VARRAY. Can anybody help me how to iterate over the VARRAY, or suggest a different alternative to the split please ?
    Thanks.

    RTFM: http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#sthref1146
    or
    http://www.oracle-base.com/articles/8i/Collections8i.php

  • How to iterate through files in a directory in real time?

    I have a program where users can write RPN equations into txt files so that the number and type of equations are completely customizable at run time.  I need to be able to iterate through .txt files in an Equations folder to load the equations into memory.  How can I do this in real time?
    I know I could make the files eq 1.txt through eq 2.txt and iterate through until one doesn't exist, but my standard method has been to name the filename the same as the equation name.  Either way works.
    Thank you.
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute

    Hi Michael,
    You could also use the GetFirstFile and GetNextFile functions that come built into CVI. These functions should allow you to iterate through the files in a directory.
    GetFirstFile: http://zone.ni.com/reference/en-XX/help/370051Y-01/cvi/libref/cvigetfirstfile/
    GetNextFile: http://zone.ni.com/reference/en-XX/help/370051Y-01/cvi/libref/cvigetnextfile/
    Hope this helps,
    Kevin

  • How to iterate through multiple records read from a file adapter?

    I am reading multiple records from a file using SyncRead file adapter.
    I want to iterate through the records to perform some action on every record. How to do this?
    I found few threads related to this..but did not get the solution.
    Please note that I am using Jdev 10.1.3.4
    Thanks

    For count expression, I am getting following error:
    <Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:subLanguageExecutionFault</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <code>XPathExecutionError</code>
    <summary>XPath expression failed to execute. Error while processing xpath expression, the expression is "ora:countNodes(bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection'))", the reason is FOTY0001: type error. Please verify the xpath query. </summary>
    </detail>
    </Fault>
    I hard-coded count, in order to proceed. Then I got following error
    <Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:bindingFault</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <code>null</code>
    <summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELProcess4_1.0_dc4a703c46a242f69d6cea305b2df3a3.tmp/WriteDA.wsdl [ WriteDA_ptt::insert(VbEmpCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: Mapping Not Found Exception. The mapping [C1] for descriptor [class bpel___localhost_default_BPELProcess4_1_0__MD5_ad2539e1386433a9e059bcc969732f11_.WriteDA.VbEmp] could not be found. The input xml record had an element [VbEmp/C1]. ; nested exception is: ORABPEL-11627 Mapping Not Found Exception. The mapping [C1] for descriptor [class bpel___localhost_default_BPELProcess4_1_0__MD5_ad2539e1386433a9e059bcc969732f11_.WriteDA.VbEmp] could not be found. The input xml record had an element [VbEmp/C1]. Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping. </summary>
    <detail>null</detail>
    </detail>
    </Fault>
    The bpel code is as follows (I can share entire BPEL project..But not sure how to attach to the thread :( )
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed Feb 03 18:00:26 IST 2010
    Author: administrator
    Purpose: Synchronous BPEL Process
    -->
    <process name="BPELProcess4"
    targetNamespace="http://xmlns.oracle.com/BPELProcess4"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns4="http://TargetNamespace.com/InboundService"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/BPELProcess4"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFA/"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/WriteDA"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/WriteDA/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:BPELProcess4"
    myRole="BPELProcess4Provider"/>
    <partnerLink name="WriteDA" partnerRole="WriteDA_role"
    partnerLinkType="ns2:WriteDA_plt"/>
    <partnerLink name="ReadFA" partnerRole="SynchRead_role"
    partnerLinkType="ns1:SynchRead_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="inputVariable"
    messageType="client:BPELProcess4RequestMessage"/>
    <variable name="outputVariable"
    messageType="client:BPELProcess4ResponseMessage"/>
    <variable name="Invoke_2_insert_InputVariable"
    messageType="ns2:VbEmpCollection_msg"/>
    <variable name="Invoke_3_SynchRead_InputVariable"
    messageType="ns1:Empty_msg"/>
    <variable name="Invoke_3_SynchRead_OutputVariable"
    messageType="ns1:EmpCollection_msg"/>
    <variable name="Invoke_3_SynchRead_InputVariable_1"
    messageType="ns1:Empty_msg"/>
    <variable name="Count" type="xsd:integer"/>
    <variable name="iterater" type="xsd:integer"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess4.wsdl) -->
    <receive name="receiveInput" partnerLink="client"
    portType="client:BPELProcess4" operation="process"
    variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <invoke name="Invoke_3" partnerLink="ReadFA" portType="ns1:SynchRead_ptt"
    operation="SynchRead"
    outputVariable="Invoke_3_SynchRead_OutputVariable"
    inputVariable="Invoke_3_SynchRead_InputVariable_1"/>
    <assign name="Assign_1">
    <copy>
    <from expression="1"/>
    <to variable="iterater"/>
    </copy>
    <copy>
    <from expression="1"/>
    <to variable="Count"/>
    </copy>
    </assign>
    <while name="While_1"
    condition="bpws:getVariableData('iterater') &lt;= bpws:getVariableData('Count')">
    <sequence name="Sequence_2">
    <switch name="Switch_1">
    <case condition="bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection/ns4:Emp/ns4:C4') = &quot;Pune&quot;">
    <sequence name="Sequence_1">
    <assign name="Assign_3">
    <copy>
    <from expression="bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection/ns4:Emp')[bpws:getVariableData('iterater')]"/>
    <to variable="Invoke_2_insert_InputVariable"
    part="VbEmpCollection"
    query="/ns3:VbEmpCollection/ns3:VbEmp"/>
    </copy>
    </assign>
    <invoke name="Invoke_2" partnerLink="WriteDA"
    portType="ns2:WriteDA_ptt" operation="insert"
    inputVariable="Invoke_2_insert_InputVariable"/>
    </sequence>
    </case>
    <otherwise>
    <sequence name="Sequence_3">
    <empty name="Empty_1"/>
    <assign name="Transform_1">
    <bpelx:annotation>
    <bpelx:pattern>transformation</bpelx:pattern>
    </bpelx:annotation>
    <copy>
    <from expression="ora:processXSLT('Transformation_3.xsl',bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection'))"/>
    <to variable="Invoke_2_insert_InputVariable"
    part="VbEmpCollection"/>
    </copy>
    </assign>
    </sequence>
    </otherwise>
    </switch>
    <assign name="Assign_2">
    <copy>
    <from expression="bpws:getVariableData('iterater') + 1"/>
    <to variable="iterater"/>
    </copy>
    </assign>
    </sequence>
    </while>
    <reply name="replyOutput" partnerLink="client"
    portType="client:BPELProcess4" operation="process"
    variable="outputVariable"/>
    </sequence>
    </process>
    From the process flow, I can see that the array element expression works and the first employee record is correctly assigned to the Invoke_2_Input_Variable.
    However Invoke_2 is erroring out.
    Thanks
    Edited by: user8645981 on Feb 5, 2010 2:44 AM

  • How do I get the reference numbers for cursors in a waveform graph (other than through an event structure)?

    I want to control cursors in a waveform graph programmatically.  I've tried using the "Cursor list" property, modifying the cursor clusters and writing the results back to the cursor list property, but this only works sporadically.  Modifying the cursors by ref number works well, but you have to get the refnumbers  from an event structure during a cursor event.  Is there any way to get cursor reference numbers aside from through an event structure?
    Thanks!

    Hi barryinbo,
    On the controls pallette, go to refnums> Control refnum>Control. Then right click the refnum and point to select vi server class>Generic > and you will see a cursor there. This will be a "loose typed refnum" but you can right click the refnum to include data type. An alternative is to drag a cursor to the refnum, this will make it strict typed.
    Hope this helps
    Chris Co.

  • Can anyone tell me how to iterate through a cmponent tree in JSF

    HI,
    I am new to JSF.Can any one help me in iterating through a component tree.
    For eaxmple , i have a JSF page.When i send a request for the first time for a page ,
    it will build the component tree.So i want to iterate through that component tree.
    Actullay my requirement is that in my page, i will have a datatable and some command buttons.
    when i select a row in a datatable,it should be highlighted.But again onpage load, highlighting is missing.
    So i want to save the id of the element, which i selected in the table in the request object.
    Pls help me out....

    The view root is available by FacesContext#getViewRoot(). Its getChildren() returns a List<UIComponent>. For every UIComponent you can get the children by UIComponent#getChildren() which on its turn also returns a List<UIComponent>. You can easily write a recursive method for that.

Maybe you are looking for

  • Airplay audio from Apple TV via Express and Video to TV

    All: I am hoping to play video to TV via HDMI and at the same time use the Airport Express connected to better speakers to play the audio via airplay. Not using the optical out for audio as my speaker system does not have the optical input. I only wi

  • VGA DVI conversion?

    I have the iMac G5 with the VGA out, and I was bummed to discover that it was VGA ONLY! So I bought the mini-VGA cable anyway, and ordered and VGA>DVI adapter. After re-booting I noticed both monitors showed up in the Finder's Display Menu(at top of

  • QS DP800 shuts down without warning and increasingly fequently

    I have a DP800 Quicksilver which has taken to arbitrarily and without warning just shutting down completely in the middle of a variety of tasks and applications making it hard to attribute the problem to software. It does this with increasing frequen

  • Hide Button "Delete " Using Customizing

    Dear Experts I need hide the button Delete of the services of ESS . Is posible using customizing? Thanks

  • HT1338 how can i download 10.5 for mac? from where, i can download free?

    please tell me, from which websit i can download mac os x 10.5 for my mac, because 10.8 mac os x mountain lion becoming a big problem for me, my mac too much slow from that day when i did that. please help me.