Newbee: How to access fields with duplicated names?

How can i access fields where the name already exists (Like FieldName[0], FieldName[2],...) - and where else can i get answers to simple questions like this one?
Fieldname[n].thisValue does not work.
Thanks for help.

xfa.resolveNode("FieldName["0"]") etc.. I think should work

Similar Messages

  • Populating descriptive field with itresource name?

    Hi everyone,
    After my AD account is provisioned i need to update request description with resource name. but when i map the descriptive field it populateds descriptive field with key but not the resource name. How can we populate descriptive field with resource name?
    Thanks,
    doki

    ASAIK, you can not see the resource name in map descriptive field. But you can do a workaround like, create a hidden field(UD_ADCS_RESNAME) in AD Process Form and use pre-populate adapter to populate this field with your resource name.
    Now in Map Descriptive Field of AD Provisioning, select the field UD_ADCS_RESNAME under the Process Data. You will be done.

  • How to allow user to select pdf file on local machine and populate field with file name only

    Folks,
    I have a project requirement that I am stumped on.  I am admittedly a novice, so forgive questions that may seem obvious.
    My requirement is a form running on a client system where the user can click a button and select a PDF file name from a PDF on their local machine and then populate a form field with that file path & filename.  The file names vary between all machines, so there is no static list.  Note that the PDF is not embedded, nothing is executed, I simply need the file name.
    There are several of these on a form (20+), so manual name entry is too error prone.   I would like to use a 'browse' type dialog, but can not figure out how to implement it.
    I've looked at app.browseForFile, but the users can not install a javascript file in their adobe folder or any other files;  the functionality has to be integral with the original PDF. 
    Functionally, this is no different from the image object file browse, except that I need a PDF instead of an image file, so there doesn't seem like there should be a security issue that is any different from those surrounding the image object.
    I've been stumped on this for the entire week, and I have a deadline rapidly approaching, so any examples or suggestions (please remember I'm a novice) would be greatly appreciated! 

    Thanks for the reply Paul - do you have any sample code of how to attach the PDF?  Or how the user can select a PDF to open?  I might be able to attach it, retrieve the file name, and then un-attach it.
    Alternatively, do you know how to retrieve the file name from the imagePath object?  It will let you select PDF files, but I can't find info on how to retrieve the file name.   It should be the way you would retrieve the file name for an image.
    As a novice in this, thanks for your help and patience!

  • Predefault "User Name" field with Login Name

    Hi,
    Predefault in "LS Medical User Verification" BC does not work. I tried to do the following but all did not work:
    * Put a predefault value in the "User Name" field, System: Creator
    * Create a calc field "SCR Login", calc value: LoginName (). Set predefault of "User Name" field, Field: 'SCR Login"
    * Expose "SCR Login" in the applet. Field is blank in UI.
    We are using the vanilla "LS Medical User Verification Applet" for user verification and we want to predefault the User Name field with the current user logged in. How can I achieve this?
    Thanks,
    Jasmin

    Hi,
    I believe Predefault/Postdefault will only work with NewRecord even and since the User Verification Popup Applet does not go to that event on load that is why it does not work.
    Since the client wanted to default the user name with the current user logged in, we just removed the User name field from the popup applet and pass the TheApplication().LoginName() to the Authentication Business Service.
    Thanks,
    Jasmin

  • How to send file with original name through Mail adapter

    I have to send file with original name as attachment through Mail Adapter. I am picking the file from FTP server through File Adapter. I am not using message mapping because files do not have any standard format.

    Hi,
    Have you solve your problem ?...
    I have exactly the same scenario : pik up a file (file adapter) and send it in attachment by mail adapter without mapping (no IR)...
    I activated Adapter specific paramters properties in the File adapter sender and i can see the FileName tag in DynamicConfiguration section of SoapHeader in SXMB_MONI...
    I want to use MessageTransformationBean... BUT, how can i 'access' to FileName tag ???...
    Thanks...
    I setup modules like this :
    AF_Modules/DynamicConfigurationBean 1
    AF_Modules/MessageTransformBean rename
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
    1 key.0 write http://sap.com/xi/XI/System/File FileName
    1 value.0 message.FileName
    rename Transform.ContentDisposition attachment;filename=message.FileName
    rename Transform.ContentDescription message.FileName
    rename Transform.ContentType application/csv-tab-delimited-table;name=message.FileName
    But my file name attachment is message.FileName....
    Edited by: Emmanuel JORAND on Sep 29, 2008 9:23 PM
    Edited by: Emmanuel JORAND on Sep 29, 2008 10:25 PM

  • How to access XML elements by name in Extendscript??

    I'm almost done the script that I've been working on, but something has been nagging me since I started. When I did start, I looked at the JS Tools Guide CS5 that comes with the extendscript ide to check how to access XML elements, children, attributes etc. It says this:
    The XML object represents an XML element node in an XML tree. The topmost XML object for an XML file
    represents the root node. It acts as a list, which contains additional XML objects for each element. These in
    turn contain XML objects for their own member elements, and so on.
    The child elements of an element tree are available as properties of the XML object for the parent. The
    name of the property corresponds to the name of the element. Each property contains an array of XML
    objects, each of which represents one element of the named type.
    So basically it converts the XML into JSON. And you can access the properties like so:
    <book category="COOKING">
         <title lang="en">The Boston Cooking-School Cookbook</title>
         <author>Fannie Merrit Farmer</author>
         <year>1896</year>
         <price>49.99</price>
    </book>
    The Javascript statement bookstoreXML.book; returns the entire list of books.
    The statement bookstoreXML.book[0]; returns the XML object for the first book.
    The statement bookstoreXML.book[0].author; returns all authors of the first book.
    A couple pages down it talks about Retrieving contained elements using children(), elements(), descendants().
    So now I look through the XML Object properties and I see that I can use:
    xmlObj.child (which) which A String, the element name, or a Number, a 0-based index into this node’s child array.
    or
    xmlObj.descendants ([name])
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    or
    xmlObj.elements (name);
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    This is an excerpt of an XML I was working with:
    <ROW xmlns="http://www.filemaker.com/fmpdsoresult"
         MODID="16"
         RECORDID="11128">
       <Sign_Type>251.dr</Sign_Type>
       <fm:Location xmlns:fm="http://www.filemaker.com/fmpdsoresult" xmlns="">5-5024</fm:Location>
       <Line1>Zone
    Floor
    3
    Patient Rooms
    R532 - R436 even
    Patient Rooms
    R522 - R446 even
    Xavier Elevators
    Zone
    Patient Rooms
    R537 - 5757 odd
    Main Elevators
    Zone</Line1>
    </ROW>
    Extendscript will not give me an anything when I try to access elements by name. Instead I have to access by index, which works, but I'd rather search for names!
    Actually the console log returns: <![CDATA[]]>
    What am I doing wrong!?

    First, those E4X XML objects are definitely no JSON (plain data) - they have a multitude of methods, even for tasks that would easily be implemented as property (e.g. the length() function), and they also bind xml element and attribute names onto the objects, allowing to target a multitude of XML nodes with a single statement. Or did you mean your script with that "it"?
    Anyway, as you found out the ExtendScript XML object handles namespaces mostly by hiding them from you.
    You could play around with global namespace settings, see the JavaScript tools guide.
    You could also explicitly specify a namespace. This works for me:
    $.writeln(myXML["fm:Location"]);
    For simple use I had most success with a brute force approach that just strips the namespaces.
    function removeAllNamespace(xml)
              var ns =new Namespace();
              var d=xml.descendants();
              for (var i=0;i<d.length();i++)
        d[i].setNamespace(ns);

  • Hiding fields with same name

    Hi,
    I have a form built in ADOBE LC Designer ES. The form has multiple pages. I have some fields with the same name and distributed across subforms. Is there a way I can hide the fields using the common name or do I have to refernece each and every field to hide it?
    Thanks,
    Nakul

    Is the condition for hiding the fields the same in every case, i.e. a checkbox being checked? If it is, you could put the same script in each field:
    if (checkbox1.rawValue == 1){
         this.presence = "hidden";
    You would still have to either paste the script into each field or make it a function that gets referenced in each field, but at least it would be a copy - paste rather than having to type out the path to each field.

  • How to instantiate MovieClips with sequence names

    Hi all,
    I'm rewriting a game that came from AS2, and passing it to
    AS3.
    The problem is that I have several different MovieClips in
    the Library, with a sequence name ("s_0", "s_1,...).
    The question is... how can I use the addChild to instantiate
    these movieclips, using these names, sequencially, using a FOR
    loop?
    I'm trying to get a way, that I don't have the remake all
    movieclips, or else I'll be stuck on the desk for a week :P
    Thanks

    I found the answer on other blog.
    You have to dinamically make new MovieClips, with a name that
    can be a dynamic String.
    So the result is the following code.
    Make sure you import the wright class to to this
    import flash.utils.getDefinitionByName;

  • How to send File with Same name to Receiver

    HI Frnds,
    In my peoject i have one scenario,
    I have to access Orders is the name of file , available in FTP Server, i have to send same file to Receiver side with same name Orders
    Is it possible with same name dynamically??
    Regards,
    Raj

    hi,
    You have to go for variable substitution option available in receiver file adapter,but for that you have to get the file name in receiver payload.
    http://help.sap.com/saphelp_NW04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    these links are  also helpful
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/sriram.vasudevan3/blog/2005/11/21/effective-xsl-for-multimapping-getting-source-filenames-in-legacy-legacy-scenarios
    regards,
    ujjwal kumar

  • Topic: How to refer columns with same name in jdbc

    I have a join statement :
    Select a.col1, a.col2, b.col3, b.col2 from TABLE1 a, TABLE2 b where a.col1 = b.col1
    how do I refer with same column name suppose I want to get b.col2
    I get error when I try rs.getString("b.col2") or
    rs.getString("TABLE2.COL2")..
    note I donot want positional retrieval i.e rs.getString(x) , where x is column number.
    can you suggest how to refer the b.col2 uniquely.

    Select a.col1, a.col2, b.col3, b.col2 from TABLE1 a,
    TABLE2 b where a.col1 = b.col1You can use a column alias, like below. They "as" keyword isn't always necessary, depends on your database.
    Select
        a.col1 as a_col1,
        a.col2 as a_col2,
        b.col3 as b_col3,
        b.col2 as b_col2
    from
        TABLE1 a,
        TABLE2 b
    where
        a.col1 = b.col1

  • How to map field with nillable = 'true'

    Hi,
    how can i map with the graphical tool of integration repository a field with nillable = 'true'?
    When i have a value to map there is no problem, only when we have the source message without the element we map the problem occurs. is there an attribut to be set or something else?
    thx

    Hi Ralph,
        From what I understand, there is a target field which is mandatory.
    If the source field that is mapped to this field exixts, then there is no problem.
    But when the source field doesn;t exists, then there is a problem. Right?
    YOu can use the node function mapWithDefault for your requirement.
    source -> mapWithDefault -> target
    Regards,
    Ravi Kanth Talagana

  • How do I watermark with my name

    how do I water mark with my name

    eloisekay wrote:
    how do I water mark with my name
    Use the text tool to type your name. It will be on a separate layer.
    This allows you to position it with the move tool.
    If you want your name on several picture files, go to File>Process multiple files. Look for "watermark" under "labels" in the drop-down.

  • How to authenticate LDAP with account name?

    Hi,
    In my ADS server for all the users common name and account name are differently assigned , In LADP application which is developed using JNDI APIs it is able to authenticate the users with display name/ CN value(common Name ) only, but I need to authenticate users with account name.
    Please give the solution for this.
    Thanks
    Raghava

    If you search through posts in this forum, you will find out what credential formats can be used to authenticate a user.
    Just to make it easy for you, here is a search string.
    http://www.google.com/search?hl=en&q=active+directory+jndi+account+name+site%3Aforums.sun.com&meta=

  • How to create directories with same name in different schemas

    I have two schemas on the same database.
    I am trying to create directories with same name, but different paths in both the schemas.
    When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    Is there any solution to create directories with same name, but different path in two different schemas on the same database.
    Thanks,
    Sridhar.

    Hi,
    >>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
    SYSTEM> connect scott/tiger
    Connected.
    SCOTT> create directory mydir as '/tmp';
    Directory created.
    SCOTT> connect legatti/pwd
    Connected.
    LEGATTI> create directory mydir as '/tmp';
    create directory mydir as '/tmp'
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    LEGATTI> select owner,object_name,object_type,created
      2  from dba_objects where object_name='MYDIR';
    OWNER     OBJECT_NAME    OBJECT_TYPE         CREATED
    SYS       MYDIR          DIRECTORY           19/12/2007Cheers
    Legatti

  • How to access field in structure where fieldname is inside of a variable?

    Hi,
    Through searching number of old threads here on forums i learnt that i can get dynamic field names from a table with "assign component" syntax.
    So i have my fieldname inside a field symbol <fs_fieldname>. I want to use this fieldname to access a field in another structure ls_structure.
    My syntax that is not working that i need help with is:
    ls_structure-<fs_fieldname> = 'HELLO'.
    How can I refer to ls_structure's field where the fieldname is in the field symbol <fs_fieldname>.
    thank you

    Check this
          field type string,
         end of ls_structure.
    data:lv_field type string.
    field-symbols:<fs> type string.
    lv_field = 'FIELD'.
    ls_structure-field = 'Hello'.
    assign lv_field to <fs>.
    if sy-subrc = 0.
      concatenate 'LS_STRUCTURE-' <fs> into lv_field.
      unassign <fs>.
      assign (lv_field) to <fs>.
      if sy-subrc = 0.
        write <fs>.
        <fs> = 'Changed data'.
        skip 1.
        write ls_structure-field.
      endif.
    endif.

Maybe you are looking for

  • How do i use 2 IPODs on 1 computer

    how do i use 2 IPODs on 1 computer. We had 1 working fine. We created a new account for the second one and when we sign in on the new account it shows all the songs from the old account. How does the computer know which IPOD to account goes with whic

  • N95 screen goes black when in between open and clo...

    Just noticed today that the screen goes black when sliding open or closed. Screen comes back on when slider reaches open or closed. Is this like the blank screen fault that affected so many N80s ? I'm very disgusted that I have to pay to fix my 16mon

  • Logical File name

    I am getting data from a flat file and want to know how to create a logical file name instead of hard-coding the path. Please help

  • Garritan Personal Orchestra Crashes Logic

    I recently purchased Garritan Personal Orchestra to use in Logic express. The other day I created some tracks. When I went to open the project today everything loads (eventide plug in, UVI workstation) but crashes when it gets to PO and its Aria play

  • Unable to disable plugins

    I was using mobile broadband to connect to the Internet. Because it was prepaid and video was what ate up the most MBs I disabled all the plug-ins such as flash player, realplayer etc...that allowed video to run on webpages. This worked just fine and