since ‎31-03-2006
‎10-12-2019
_SekharN_
Level 5
Re: Scanning and tracing
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
You can add any object to Master page and that object is visible to all pages but only selectable from Master page. That means you can add you scanned image to Master page and when you go to body page Image is visible as you are using a transparent medium. You can do what ever you want to on Body page not disturbing objects on Master page. You can remove the objects on Master page after you are done with them.Good luck,SekharN,www.lawson.com

Views

17

Likes

0

Replies

0
Re: Removing bounds of the page?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I just responded to another request that you posted... here is what I think will help you... let me know how that helps.You need to change the layout size of 'untitled Content Area' under Master page. Set the Width to 8.5in and Height to 11in and then change the X and Y coordinates to 0in. That sets all the pages in your document with no border. Master page and objects under Master Page can be selected in Hierarchy palette.Good luck,SekharN,www.lawson.com

Views

4

Likes

0

Replies

0
Re: Scanning and tracing
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
You need to change the layout size of 'untitled Content Area' under Master page. Set the Width to 8.5in and Height to 11in and then change the X and Y coordinates to 0in. That sets all the pages in your document with no border. Master page and objects under Master Page can be selected in Hierarchy palette.Let me know how that helps.Good luck,SekharN,www.lawson.com

Views

17

Likes

0

Replies

0
Re: Print Button
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I am confused... are you intentionally printing pages 1 to 5? Here is what I will code just in case I need to print only pages 1 to 5.$host.print(1, "0", "4", 0, 1, 0, 0, 0) "0" stands for starting page number. In this case page 1. "4" stands for ending page number. in this case page 5.Note: This numbering system starts from 0 indexing.So for to print page 6 to 15 I would use...$host.print(1, "5", "14", 0, 1, 0, 0, 0) "5" stands for starting page number. I this case page 6."14" stands for ending...

Views

25

Likes

0

Replies

0
Re: Print Button
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
That is just syntax.... you need to read "LiveCycle" help for 'print method'...I have also included an example next to core syntax. Did you see that?Let me know id you still have problem.Thanks,SekharNwww.lawson.com

Views

25

Likes

0

Replies

0
Re: FormCalc script not captured in addInstance
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Here is what you can do...You can use the Numeric Field and then set it Display Pattern as "zzzzz9" and then use the following FormCalc code in 'exit' event.This logic will works even with add instance....may be you need to tweak the messages a little bit.if (HasValue($)) then if (($.rawValue == 0) or (($.rawValue >= 100000) and ($.rawValue <= 199999))) then //value accepted $.rawValue = $.rawValue else xfa.host.messageBox("Please check the number. 0 or a value between 100000 - 199999 is accepte...

Views

4

Likes

0

Replies

0
Re: triggering events from other fields
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Syntax to execute any event form other location (or event) would be similor to the following...ObjectsomExpression.execEvent("")ex: form1.TextFeld1.execEvent("exit")Good luck,SekharN,www.lawson.com

Views

17

Likes

0

Replies

0
Re: Catching page change/up down?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
One more idea... if you declare as subforms, may be you can use the above code in 'enter' event of the subform or page subform to find out which page you are on. But this event triggers only when user selects any accessable field on the subform. But better than writing for single object.Regards,SekharNwww.lawson.com

Views

27

Likes

0

Replies

0
Re: Catching page change/up down?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Hi Praveen, You probably looking for following code but you need to use this with some event related to specific object on each page.xfa.host.currentPageEx: var thisPage = xfa.host.currentPageif (thisPage == 2) {//satements...}Good luck,SekharNwww.lawson.com

Views

27

Likes

0

Replies

0
Re: Dynamic or Static PDF?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I am still unclear what you need but here is my suggestion...either you have to make all the fields non accessible to user at "initialize" event to make it static or you have to check for the condition with all the fields that prevents the script from running.I can not guess how many fields you have...here a simple scenario...Scenario 1var openFlag = 0if (field1.access == "open") {openFlag = 1}if (field2.access == "open") {openFlag = 1}..............//finallyif (openFlag = 0) {//run you startup ...

Views

24

Likes

0

Replies

0
Re: Dynamic or Static PDF?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I doubt there we can check for interactive or non interactive using JavaScript. If understood your requirement properly here is my answer...In my opinion the terms Interactive mean (LC Designer) which can accept input form the user. That means a PDF form with one or more fields which can accept data form the user. And "Non Interactive" mean the PDF could have both static text as well as fields but non of the fields accept data from user and all the data is just for display. Moreover "Dynamic" me...

Views

24

Likes

0

Replies

0
Re: Print Button
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Here is FormCalc code for printing... this you suppose to use with regular button not with Print Button given in the library.this code goes into click event of the button.$host.print( BOOLEAN param1, INTEGER param2, INTEGER param3, BOOLEAN param4, BOOLEAN param5, BOOLEAN param6, BOOLEAN param7, BOOLEAN param8)ex: $host.print(1, "0", "2", 0, 1, 0, 0, 0)"0" stands for starting page number."2" stands for ending page number.More about this can be found in the LC Designer help. Check for "print metho...

Views

25

Likes

0

Replies

0
Re: Validate required fields on Print Form button
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Hi Angie, The code you suggested does not help Bill. Default 'Print' button do not validate any fields before it brings up print screen. But default 'Email' button do validate all the required fields just before it submits. That is the difference. Can you try this and see the results.... save the FieldRequired.pdf from the URL you provided. Open the file in LC Designer and Add 'Print Button' from Library and then save. Open in the file in Adobe Reader. Click 'Set as Required' then 'Print Form'. ...

Views

153

Likes

0

Replies

0
Re: Validate required fields on Print Form button
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
You have to write your own script to verify all the required fields are filled-in. Moreover I will start with regular button no the Print Button provided in the Library.Here is a sample script I used on the 'click' event of the regular button which is similar to your requirement.var CNvar CAvar CCvar CZvar FNvar Cmsgif (HasValue(form1.#subform[0].Table4.Row1.Client_Name)) then CN = ""else CN = "Client Name\u000a" Cmsg = CNendifif (HasValue(form1.#subform[0].Table4.Row2.Client_Address)) then CA =...

Views

153

Likes

0

Replies

1
Re: Signature Field, need dialog before signing popup
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Hi John, Just emailed you the sample PDF attachment. Please let me if you still have difficulties.Regards,SekharNwww.lawson.com

Views

160

Likes

0

Replies

0
Re: FormCalc - reading unicode escape sequences from a text object
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
When you copy text from another field it gets copied exactly how it is. I think all you need is to replace the Abrivation with full text. then following script at 'exit' event may help you.If ($.rawValue == FCI) Then//$.rawValue = Replace($.rawValue, $.rawValue,TextField2.rawValue)// this is waht you are doing, some thing like following lines you //suppose to use.var v1v1 = "Fake Company, Inc.\u000a123 Fake Street\u000aAnytown, USA 12345"$.rawValue = Replace($.rawValue, $.rawValue,v1)//simply yo...

Views

40

Likes

0

Replies

0
Re: Signature Field, need dialog before signing popup
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
You will love this solution. Your code works for the most part. But I did some research and found the signature kicks off at 'enter' event not 'click' though it appears to happen at 'click'. Added and additional text field with name 'TextField1' to the design and add following code to enter event of Text Field.SignatureField1.access = "open";and then updated your JavaScript code to following and used in 'ENTER' event NOT in 'CLICK' event. Clear any code you have in click event.var nButton = app....

Views

160

Likes

0

Replies

0
Re: Execute a statement only if no messagebox is open
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
You need to build logic to triger message only on surtain condition. If 'else' condition is met call the code to invoke the 'PrintButton' 'Click' event.A simple logic would like this...if(){ //condition which gives message box //step1; //step2; xfa.host.mesageBox(); //step3;}else {form1.PrintButton.ececEvent("click");//replace above expression with actual SOM expression.}Good Luck,SekharNwww.lawson.com

Views

4

Likes

0

Replies

0
Re: Using FormCalc to automatically replace text in a text field?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Script works good if you can use in 'exit' event. Also it is good to use $.rawValue = Replace($.rawValue, "address__", "123 Fake Street\u000aAnycity, NT 12345")Good Luck,SekharNwww.lawson.com

Views

156

Likes

0

Replies

0
Re: Initialize Drop List
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Following FormCalc code may help you. rawValue porperty sets the default selection. For the following example 'Xyz' gets displayed after loading all the values. And user can change the selection form there. Hope this helps.xfa.form.form1.Section41SF.DropDownList1.clearItems()xfa.form.form1.Section41SF.DropDownList1.addItem("Abc", 1)xfa.form.form1.Section41SF.DropDownList1.addItem("Xyz", 2)xfa.form.form1.Section41SF.DropDownList1.addItem("Lmn", 3)xfa.form.form1.Section41SF.DropDownList1.rawValue ...

Views

28

Likes

0

Replies

0
Re: Adding Tooltip or PopUp Message to form
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I have an easy alternative solution for this. May be you need to tweak a little bit.1. Add a TextField Object.2. Set it to accept multiple lines and Appearance to 'None'3. On the Object--Value tab select 'Calculated -User Can Override' and add the Default text value.4. On the Layout pane set the caption position to 'None'5. One Accessibility pane select Tool Tip and ''6. Select the text object and add the following code to it's events. enter: $.access = "protected" mouseEnter: $.access = "protec...

Views

1.1K

Likes

0

Replies

0
Digital Signature: Need More Control
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
I am trying to use Digital Signatures in my form. I need to be able to specify following1. Dialog box with Add Digital ID button is opened always even if there is only one Digital ID exists in the system.2. Default to Ask me which Digital ID use next time.And after selecting the signature is there a way to extract the following form the signature? I need these for comparison.1. Name of the signer2. Name of Company3. Email address of the person signed.Any help is appreciated. A sample is more app...

Views

206

Likes

0

Replies

0
Re: possibility to give a pdf a variable when opening?
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Try the following to capture the URL and then build your logic based on the value.var cURLcURL = this.baseURLxfa.host.messageBox(cURL)this is a JavaScript function may used in form:ready event. If you get the value displayed you can save it and use. I have no similar environment to test this myself. Please let me know how that works.Good Luck,SekharNwww.lawson.com

Views

29

Likes

0

Replies

0
Re: Date Time Field
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
check the following FormCalc code....use this in 'exit' event.var givenDatevar myDatevar daysToAddvar interDateNumgivenDate = IsoDate2Num($.rawValue)daysToAdd = 30interDateNum = givenDate +daysToAddmyDate = Num2Date(interDateNum, "YYYY-MMM-DD")form1.DateTimeField2 = myDateSekharNwww.lawson.com

Views

20

Likes

0

Replies

0
Re: Text printing problems
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Can you check your locale setting? If it match 'English' do send me a copy to chandra.nimmagadda@lawson.com I will try to take a look.SekharN

Views

45

Likes

0

Replies

0
Re: Read Computer Name
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Thank you Steve... I think this works. Thanks again.SekharN

Views

72

Likes

0

Replies

0
Re: Read Computer Name
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
If the users need some equipment (like ePads) to sign, then NO we can not use your idea. However if you have workaround can you send me a sample?Thanks,SekharN

Views

72

Likes

0

Replies

0
Re: Read Computer Name
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Steve,But in my case I have to uniquely identify a user and allow him/her to add data one and only one time (when the form opens blank). And then have the document emailed to their manager. Manager will have edit rights. This would be offline PDF document so at form load I have to uniquely identify the user.

Views

72

Likes

0

Replies

0
Read Computer Name
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Can we read 'Computer Name' and display in text field when the PDF form is loaded? Can someone give me syntax?

Views

730

Likes

0

Replies

6
Re: Restricting a value in a numeric field to a range
Avatar

_SekharN_

_SekharN_
- Adobe LiveCycle
Niall, Past the following FormCalc code to 'exit' event of the field and this code allows only value of 0 through 9 and . I think this code helps you.if ($.rawValue <> "") then if (($.rawValue <= -1) or ($.rawValue >= 10)) then xfa.host.messageBox("Please check the number. 0 through 9 is accepted.") //$.rawValue = "" xfa.host.setFocus($.somExpression) endifendifSekharNLawson Software.

Views

109

Likes

0

Replies

0