since ‎27-11-2013
‎10-12-2019
awmackenzie
Level 1
Select text between two symbols
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I have a table that gets populated with different strings of text. Sometimes there will be lines of text that are surrounded by a "|" (pipe) symbol within them.For example, This | is a example | line of textI currently have some coding that will remove the pipe symbols from the text,DATA: i_TABLE LIKE TABLE.LOOP AT TABLE INTO i_TABLE.REPLACE ALL OCCURRENCES OF '|' IN i_TABLE-FIELD1 WITH ''.MODIFY TABLE FROM i_TABLE.RESULT: This is a example line of textWhat I need to do now is make an exception ...

Views

142

Likes

0

Replies

1
Re: Cannot Remove Extra Line Spacing
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Hi Bruce,Thanks for the offer. Since the line was a row from a table it was pulling additional values (or additional rows into the display as well). So on the layout tab I had to make sure that the upper and lower entries were set to zero. Otherwise the design was trying to put that space in between each entry, instead of just adding that extra space after the last entry inserted into that field.Best Regards,Andrew

Views

138

Likes

0

Replies

0
Cannot Remove Extra Line Spacing
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Hello,On my layout I have some text fields that are loading data from different tables. These fields can have multiple values. I have created a subform, and inserted a table into the subform. This table has a row that allows multiple values on the binding tab. The field value is also setup to allow multiple lines, and additional values. I can get all of the data to populate correctly, but for some reason the spacing is off. When I view the layout it looks like it is a 1.5 or double line spacing ...

Views

252

Likes

0

Replies

2
Re: Field Calculation
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Sorry for the delay. That helped out a lot.Thanks again,Andrew

Views

189

Likes

0

Replies

0
Field Calculation
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Hi,I have created a Decimal field on a layout. I then have two other Decimal fields that are getting populated from the system. I want to try and subtract these two fields. I have been trying JavaScript and Formcalc, but cannot get it to work. It seems like it should be something easy to do. I would like to put this calculation on the "calculate" event.First Field -> data.Page1.Position.ITEMS.TOTAL[0]Field Subtracted from First -> data.Page1.Position.ITEMS.SALECalculation field -> data.Page1.Pos...

Views

559

Likes

0

Replies

2
Re: Nesting JavaScript Syntax
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Thanks for your help. That did the trick.

Views

118

Likes

0

Replies

0
Nesting JavaScript Syntax
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I am pretty new to JavaScript, and looking for some nesting help. I can get some IF - ELSE cases to work correctly individually, but when I try to nest it with other ones I am running into some problems. I am trying to look up a condition, but then nest another condition for a language inside of it.if ( data.Page1.Type.rawValue == 'P' ) { if ( data.ZWPRINTLANG.rawValue == 'EN' ) { this.rawValue = "Scope"; } else if (data.ZWPRINTLANG.rawValue == 'DE' ) { this.rawValue = "Umfang"; } } if (data.Pag...

Views

293

Likes

0

Replies

3
Calculating a date field, based on another value
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I have seen a lot of postings about users picking dates, and then having a calculation based on that. I have been trying to use some of that syntax, but I get nothing to appear. What I am trying to do is I have a Date field, and it is already populated. I have then created another field, and I want that one to calculate to 36 month after the original field. I want to allow this field value to be overridden by the user. To add one more layer onto this one, if the original value changes I want thi...

Views

172

Likes

0

Replies

0
Re: JavaScript with OR statement syntax
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I used your formatting, and adjusted the first line of my code to the following,if (( $record.PAGE.FIELD.value == "AB") || ($record.PAGE.FIELD.value "CD") || ($record.PAGE.FIELD.value "EF") || ($record.PAGE.FIELD.value "GH") || ($record.PAGE.FIELD.value "IJ"))This made it work. I appreciate the help.

Views

740

Likes

0

Replies

0
JavaScript with OR statement syntax
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I am trying to setup some code that will look at a value in one field, and based on the result it finds determine what translated. I can get this to work when I have a single entry (for example "AB"), but when I try to expand this with an OR statement I no longer can get it work. It seems to just take the first entry, and stop there. I have tried different variations, and I have not been able to get it to go. I also tried to options with Formcalc. Does anyone happen to know what is incorrect in ...

Views

1.6K

Likes

0

Replies

2
Re: Locking an object to the bottom of the page
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Thank you all for the suggestions. They were all helpful for me to get to my solution. The way I solved it is by,Creating my signature section as a footer on a Master page.I made sure the have the different subforms of my footer all within one main subform.then I added the following FormCalc code into the Initialize instance of my main footer subform,var curp = $layout.page ( ref ( $ ) ) var totalp = $layout.pageCount() if ( curp ne totalp ) then $.presence = "hidden" endif This setup displayed ...

Views

540

Like

1

Replies

0
Re: Locking an object to the bottom of the page
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Thank for that suggestion. The design actually does not have the users inputting data. It is actually a table that is populated from our Customer Data. So if it finds 4 entries it will populate all four. The table breaks them down into 2 columns. Basically I want the Signature section to be a footer on the page. If there are enough entries to push down to the footer, it will push the footer and the remaining entries to the next page. I would still want the signature section to be the footer on t...

Views

365

Likes

0

Replies

0
Locking an object to the bottom of the page
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
Hello,I have created a layout that has a table within a subform in the main section of the layout. This table will load entries and expand based on how many entries are found. There is then a signature section located under the table subform. If too many entries are found everything will push to the next page. This is how I want it to work.The problem that I am having is if there are only a few entries into the table the signature section will push up right under the table section, instead of be...

Views

1.2K

Like

1

Replies

5
What is the proper syntax for adding an if statement to control presence settings?
Avatar

awmackenzie

awmackenzie
- Adobe LiveCycle
I am new to FormCalc and JavaScript, but I have been trying to do some reasearch and some different syntax. I have an image field inserted into a subform. I am trying to have this subform's presence setting adjusted based on a field located somewhere else on the form. I have been able to get the subform to become hidden based on other fields located on the form, but not with the one I need. The field is working because it is loading the data correctly with the print tests. My thought is that I a...

Views

685

Likes

0

Replies

1
Likes from