How to reference the Javascript data link data?

Hello

I have a specific question-

I have a PDF template I design in Livecycle Designer ES2. Data binding is the XML schema. For one of the fields, I need to link data with formatting.

For example: if my XML (based on the schema) is as follows

.

.

.

< name xml:element = "EffectiveDT" value = "29/01/2011" / >

< name xml:element = "ExpirationDT" value = "29/01/2012" / >

.

.

I want to connect a tabled text named "term" on the model of PDF to be set as < EffectiveDT > - < ExpirationDT >

I couldn't understand how to bind it in the binding for the text field tab, so I thought that maybe I can have a JavaScript code that can make me to be concatenated to the TextField and I can let the empty link.

Is this possible? What would be a good solution for these use cases? If we can go way of JavaScript, could someone please share a snippet on how to access the element of JavaScript data binding?

Thanks in advance!

Hello

Is the expression field will be used as a label, or the authorized user to update?  If it's just a label so that you can use a text object with two floating fields related to dates.

If you do not want to use a TextField object, you can use JavaScript as follows, where initialization;

this.rawValue = parent.dataNode.resolveNode("element[0].value").value + "-" + parent.dataNode.resolveNode("element[1].value").value;

This code assumes that your xml file looks like.

And that the the TextField object has a parent subform, which is bound to the element xml:term (so the parent.dataNode resolves to xml:term).

Also, I found also that it can cause problems using element and attribute names that are in conflict with the names of the XFA objects.  Normally, I would have written the resolveNode argument used above something like;

parent.dataNode.resolveNode ("element. ("(name) == 'EffectiveDt'] .value ') .value

But because the object XFA representing the element also has a name property I never found a way to refer to the attribute called xml name in JavaScript.

So the tricky part will be if they can update the values and you can then update your xml file the fields manually, not which in fact updated it is hard, it's going to be analysis of the new value that will be difficult.

Hope this helps,

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to view the anticipated date of 3 days bb

    Greetings

    How to view the early date to 3 days with bb.

    I was able to view the current in bb, but can not able to display the date fututre.

    Help, please

    concerning

    Anthony singh

    Hello

    Add 3 days to the current date.

    days3 long = (3 * 24 * 60 * 60 * 1000);   MS

    TimeFormat SimpleDateFormat = new SimpleDateFormat ("YYYY/MM/DD HH: mm: EEE");
    timeString = «"+ timeFormat.formatLocal (System.currentTimeMillis () + Days3);»

    Thank you

    Stephenson

  • How to set the current date in the datetimepicker in qml?

    Hello

    Can I know how to set the current date in the DateTimePicker in QML?

     DateTimePicker {
                        id: datePicker
                        mode: DateTimePickerMode.Date
                        title: "Date"
                        value: "2013-11-20"
                        maximum: "2013-11-20"
                    }
    
    Container {
        DateTimePicker {
            id: picker5
            title: "DateTimeQml"
            mode: DateTimePickerMode.DateTime
            value: { new Date(); }
        }
    }
    
  • How to get the last date of 3 days for the current month?

    Hello. Guy

    How to get the last date of 3 days for the current month?

    MY OUTPUT WOULD LOOK LIKE THIS

    JANUARY 29, 2016

    JANUARY 30, 2016

    JANUARY 31, 2016


    GUYS HELP ME / / /...

    SQL > select last_day (sysdate) - level + 1 double connect by level<= 3="" order="" by="">

    LAST_DAY)

    ---------

    29 JANUARY 16

    30 JANUARY 16

    31 JANUARY 16

  • BI Layout Editor - how to display the current date?

    Hello

    Recently used BI Layout Editor (previously using MS Word to create the presentation of the State).

    He seems really nice and easy to use.

    However quick Q - How to display the current date in the layout editor (to show the report run date).

    Any quick suggestions is appreciated.

    Thank you

    Vivek

    Tab displays your selection available.

    It's like how when you insert the table in the Word document and when you select the table, you would see 2 additional tabs such as the design and the tool.

    Can you please insert "Text Element" and select the text element and see if you go to the tab 'text '?

  • Y at - it a paper on how to use the map data the lookup value?

    I'm looking for a documentation where I could find information about the game of card data and how to use the map data configured according to look.

    Any help is very appreciated.

    I found a few threads on data cards:

    http://topliners.Eloqua.com/docs/doc-2434

    http://topliners.Eloqua.com/docs/doc-2817

    http://topliners.Eloqua.com/message/14058#14058

    Maybe that can help you get started

  • How to normalize the gigantic data up to 3NF

    Hello

    How to normalize the gigantic data up to 3NF

    5 times the same question at the same time. This is not a task of the Oracle, it's main RDBMS design.

    http://en.Wikipedia.org/wiki/Database_normalization

    Werner

  • How to reference the names of columns, if you use select *.

    Hello

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid.

    getting column names: -.

    < cfquery datasource = "RTW_ORA" name = "cn" >
    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #
    < / cfquery >

    obtain data: -.

    < cfquery datasource = "RTW_ORA" name = "cd" >
    SELECT *.
    To #meas #.
    < / cfquery >

    How do all the output data?

    Any help would be much appreciated!

    Thank you

    Tushar Saxena

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid. getting column names: -.


    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #

    obtain data: -.


    SELECT *.
    To #meas #.

    How do all the output data?

    Your question is not stupid. You can use the concept of a query requestand their properties cfquery attributes name and result.


    SELECT *.
    To #meas #.






    column names: #column_names #.

    number of columns: #no_of_columns #.



    SELECT #column_names #.
    FROM the cd



    A SQL query: #resQoQ.sql #.

    Query:


       
       
    #column #: #cd [column] [currentrow] #.
       


    T/t:


       
    #column #: #QoQ [column] [currentrow] #.
       


  • How to reference the value of a &lt; af:inputText &gt; to the level of the view in a java class

    How to reference the value of a < af:inputText > to the level of the view in a java class to level model? Thank you!

    Hello!
    1: you must close this topic and open another... :))) and game question calls for a response (if my answer is correct: set my answer - correct answer)...

    2nd: for example in your java class in view level:

    links BindingContainer private;

    public BindingContainer {} getBindings()
    If (this.bindings == null) {}
    FacesContext fc = FacesContext.getCurrentInstance ();
    This.Bindings =
    (BindingContainer) fc.getApplication () .evaluateExpressionGet (CF,
    "#{bindings}."
    BindingContainer.class);
    }
    Return this.bindings;
    }

    Public Sub UseSetMyParam()
    {
    Fcab FacesCtrlActionBinding = (FacesCtrlActionBinding) getBindings () .getControlBinding ("setMyParam");
    fcab.doIt ();
    }

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How to use the queue data Structures stack?

    Hi all, you can tell me how to use the queue, stack, the link in the list... Structures of data in the project of BlackBerry? Thanks for any suggestions!

    BlackBerry devices are not java desktop running. you are limited to the blackberry api, basically j2me + rim extensions, based on java 1.3/1.4 (no enums, no generic, many collections not impl etc.).

    Remove your JRE6 and change your code until there is no more error.

  • How to display the exact DATE of my first access to a Web site?

    I need to see when I first consulted several Internet sites. History does not show it, but maybe I'm missing something.
    I appreciate all help.

    ~ airix

    In history, Firefox only displays the most recent visit to a given URL. To find previous visits, you need a tool that allows you to view old data in the database places.sqlite. These discussions have discussion of a few options:

  • How to remove the synchronization data?

    FF 29
    The answer in my opinion is to go to 'manage '.

    I sign in with my sync email and password.
    

    The choices are:

       Sign out
       Change password
       Delete account
    

    I don't want to delete the account. I just want to remove the synchronization data, so I can start over?
    How do I do that?

    Hi silat.

    Mind if I answer? For most everyone here answering the questions is a volunteer support and we do not work for Mozilla. We are just regular Firefox users like you who contribute to our time to help the Firefox community.

    As for your sync account, the only way I know how is to remove your sync data completely is to delete your account then sign in using the same e-mail address. I tried it on a new profile of every night and it passes through very well.
    Simply go to https://accounts.firefox.com/settings and select 'delete account '. Then just sign up again.
    A few other contributors may have another way to achieve (they could respond if they do), but that's the way I know how.

Maybe you are looking for

  • Its browser is empty

    I have been using FCPX for a long time without problem.  Suddenly, today, when I open the browser of sound (or Photo) the window is entirely empty.  None of my sound effects or iTunes or anything at all appears in the window. I'm on the latest versio

  • FireFox 29.0.1 is sluggest to inadmissible

    I am running Windows XP and two service Packs, and have maximum RAM. The hard drive has at least 60% of available space. I have several programs of malicious software bugs who reported that my system is clean. The hard drive has been defragmented. Wh

  • HP Pavilion 15-n040sx drivers for Windows 7 64 bit

    I need help in obtaining 64-bit of Windows 7 drivers for my HP Pavilion n040sx 15. Driver Windows 8 download page only are available. Please provide drivers that I need Windows 7 64 bit for my work.

  • V1.0.0.56_1.0.28 slow Wifi R8500

    Trying to resolve the wifi problems slow speed. Everyone has problems with the last update of the firmware? Wired Speedtest: Speedtest wireless [display 2.4 Ghz & 5 Ghz approximately the same speed] (iPhone 6) about 3 feet from the router: Wireless s

  • My computer keeps turning off by itself!

    My computer turns off by itself.  I'll just be on the Internet and then it stops without any warning. When I try to turn it on it power up I won't have to plug it in.  Windows 7 TOSHIBA Satellite