Тёмный

LiveCycle / JavaScript Tutorial 2 - Relative Object References 

True Tech Troubleshooting
Подписаться 4,4 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@aprilkw1977
@aprilkw1977 11 лет назад
True Expert! Thank you so much!
@pcarperrn
@pcarperrn 11 лет назад
I would like to compliment you on the way you present your tutorials. You make them very understandable to people who have limited knowledge of the topics you are discussing. I am finding them invaluable in learning how to work with the LiveCycle Designer ES4 program. I was having a difficult time trying to understand how to use this wonderful tool based on the written instruction given in the Adobe help for the program. Thank you so much. Do you do any training related to php?
@chill8678
@chill8678 8 лет назад
Your tutorials are very helpful! Thank you so much. I'm looking for a way ( and maybe you have a tutorial and I just haven't come across it yet - if so, just point me in that direction ) to change a field to required based on the user's selection from a series of radio buttons. For example, the user can select option 1 or 2 and nothing further is required; however, if they choose option 3, then they need to supply further information in a required field.
@Truetechtroubleshooting
@Truetechtroubleshooting 8 лет назад
+C VanDaele Thanks for the kind words. I'm not much of a PHP guy. I would recommend codeacademy.com or w3schools.com for that.
@urdecisionisurs
@urdecisionisurs 2 года назад
What happens if you have the minimum rows on page 1 but you add rows for page 2; can you only put the buttons on the new rows?
@pcarperrn
@pcarperrn 11 лет назад
I have a table to input information related to accomplishing a "goal" I would like to be able to duplicate the whole table rather than a row to accommodate additional goals. In addition I would need to be able to remove the table if they did not need it. Thank you in advance for your assistance.
@Truetechtroubleshooting
@Truetechtroubleshooting 11 лет назад
Interesting problem...I'm not sure how to do this with FormCalc. JavaScript, however, has an array function that sorts. So, to make it work you would need to read each value into an array; sort the array; and then use the new array order as the index of your "places". var placesArray = [Table1.entrys.resolveNode("Row1[0]").Poles,... placesArray.sort(); (then some type of loop to iterate through the array and display the order the way you need). Contact me through my blog to get more specifics.
@mellefebvre9018
@mellefebvre9018 6 лет назад
Great Videos! Thanks so much. Can you direct me to one that specifically addresses using script to populate text fields with multi-select listboxes? I'd like users to select multiple items from a list box and each selection made goes into a text field. I've set up my listbox to enable multiple selections but now I'm confused on the code to populate the text field. Thoughts?
@kiteketan5872
@kiteketan5872 3 года назад
Hey Mel, did you ever figure this one out? I have the same question.
@kanchipahuja1893
@kanchipahuja1893 4 года назад
can we access a variable in javascript passed from driver program to adobe form?
@1JWSYT
@1JWSYT 11 лет назад
I have an expanding form to calculate 1st thru 5th place on timed events. I use a footer row for my places. The following code in FormCalc determines the minimum value in my String of Numeric Fields: rawValue = Min(Table1.entrys.Row1[*].Poles); which works fine for the minimum (1st place time) times. However, I am having a hard time figuring out a code to calculate the following places (2nd, 3rd, 4th, etc.). Can you advise me of a code or the best method to complete these calculations?
@segerlabs
@segerlabs 7 лет назад
Great video. How to I get a reference to the custom properties as well as the title and author and stuff like that? My goal is to set the text box value to the value of the custom property.
@Truetechtroubleshooting
@Truetechtroubleshooting 7 лет назад
+Jesse Seger I suspect that those "metadata" fields are off limits to scripts. Abode "sandboxes" Javascript pretty heavily to protect against malicious code being launched from a form.
@segerlabs
@segerlabs 7 лет назад
Thanks for the reply.
@RobertClark11
@RobertClark11 7 лет назад
Thanks for the tutorial! I have a question. If I have a repeating row in a table with a Text Field, how do I reference it and each instance of it on a field in another part of the form? Right now I am using global binding to solve single instances but that won't work on a repeating row. Oh, and how do I add a line break after each instance in the new field? Thanks!
@Truetechtroubleshooting
@Truetechtroubleshooting 7 лет назад
1) This is where the resolveNode() function is most useful. So to reference the rawValue of Cell1 in the 3rd instance of Row1 in Table1 you would type: form1.Page1.Table1.resolveNode("Row1[0]").Cell1.rawValue ResolveNode() serves as a container so the brackets [ ] don't get interpreted by javascript as a call to an array. 2)Not exactly sure what you are referring to here, but if you mean you want to add a "carriage return" to a string of text you would need to add to the end of the string. So: form1.Page1.Table1.resolveNode("Row1[0]").Cell1.rawValue = "This is a test. "; Would add a string of text "This is a test." and a blank line below (assume the textfield is set to allow multiple lines.)
@RobertClark11
@RobertClark11 7 лет назад
Thanks. I have a text field in the cell- would I reference it instead? Thanks!
@RobertClark11
@RobertClark11 7 лет назад
Do I run the javascript under validation or some other event? I would like to happen automatically.
@Truetechtroubleshooting
@Truetechtroubleshooting 7 лет назад
Your question makes me suspect you do not understand my answer above. The Cell1 can be a textfield or whatever you want make it...the object reference wouldn't change.
@Truetechtroubleshooting
@Truetechtroubleshooting 7 лет назад
You say you want a value to copy to some other field "automatically", but the real question is "when"? If you want it to happen every time the field changes, I would use the "exit" event. All this discussion is a bit too specific to help other comments readers, if you want specific help I suggest you contact me via my blog and we can correspond via email.
@wmsmith11
@wmsmith11 7 лет назад
I would like to know how to: the form is set up to ask a user for a date (say OrderDate), then later on the form is another field - this field will be 365 days/1-year later (ExpireDate) - - how do I write the code in LifeCycle Designer for AdobePro XI?
@Truetechtroubleshooting
@Truetechtroubleshooting 7 лет назад
In the "calculate" event of the ExpireDate field, you would need something like the following javascript: if(OrderDate.rawValue!= null){ beginDate = Date.parse(OrderDate.rawValue); oneYear = 1000*60*60*24*365; d = new Date(); d.setTime(beginDate + oneYear); this.rawValue = (d.getMonth()+1)+ "/" + d.getDay() + "/" + (d.getYear().toString().slice(1,3)); }
Далее
Script Editor Basics in Adobe LiveCycle ®
12:32
Просмотров 33 тыс.
Basic JavaScript Looping in Adobe LiveCycle Designer®
11:18
Expanding Tables in Adobe LiveCycle ®
7:37
Просмотров 44 тыс.
Google Data Center 360° Tour
8:29
Просмотров 5 млн
How to Use FormCalC Script in SAP Adobe Forms?
13:44
Просмотров 11 тыс.
Nested Tables in Adobe LiveCycle ®
17:09
Просмотров 29 тыс.