10 Replies Latest reply: Aug 7, 2012 2:38 PM by Pepperpotsman RSS

    Can Not View From from different client

    Pepperpotsman

      I have a form created in Livecycle 8.3 It is interactive and uses an XML data base. When i test the form it works great. It is secured with a password and uses extended rights through Acrobat Pro 8.3 When i send this to people using Reader to try it, they all get the same message: Need a newer version, then it opens and works great. If a user was opening with Standard 8 or Pro 8, the same thing happens except no version error message and the data does not poulate correctly. I am at my witts end...Help!!

        • 1. Re: Can Not View From from different client
          Niall O'Donovan Community Member

          Hi,

           

          No sure, but you should open the form in LC Designer and go to File > Form Properties > Defaults. Then check that target version you have set for the form. Make sure this matches the latest version that the users have.

           

          Then go to the Warnings tab (you can open this palette from the Windows menu, it may be under the Report option). There make sure that you address any errors/warnings. You may have designed in a functionality that is not available in the target version.

           

          Hope that helps,

           

          Niall

          • 2. Re: Can Not View From from different client
            Pepperpotsman Community Member

            Hi Niall,

            Just about the time I think I am learning.....I checked the areas you suggested and all seems ok. There are errors present but didnt seem to be the deal breaker. There are the erroors.

             

             

            Generating PDF Document...

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page1[0].Header[0].InvoiceDate[0])

            script=if (this.rawValue == null){

            var msNow = (new Date()).getTime();

            var d1 = new Date(msNow);

            this.rawValue = util.printd("mm/dd/yy", d1);

            }

            else {

            this.rawValue = rawValue;

            }

            Error: util is undefined

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].F2[0].ScheduleDate[0])

            script=if (this.rawValue == null){

            var msNow = (new Date()).getTime();

            var d1 = new Date(msNow);

            this.rawValue = util.printd("mm/dd/yy", d1);

            }

            else {

            this.rawValue = rawValue;

            }

            Error: util is undefined

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Debtor[0])

            script=var index = this.parent.index;

            var page = index+1;

            var name = xfa.resolveNode("Page1["+index+"].Header.Name").rawValue;

            name = name.substring(name.indexOf("/")+1,name.length) ;

            if(_Page1.count >= page){this.rawValue =name;}

            Error: Invalid property set operation; field doesn't have property 'index'

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Ref[0])

            script=var index = this.parent.index;

            var page = index+1;

            if(_Page1.count >= page){this.rawValue =

            xfa.resolveNode("Page1["+index+"].OrderNumber").rawValue;}

            Error: Invalid property set operation; field doesn't have property 'index'

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Schedinv[0])

            script=var index = this.parent.index;

            var page = index+1;

            if(_Page1.count >= page){this.rawValue =

            xfa.resolveNode("Page1["+index+"].Header.InvoiceNumber").rawValue;}

            Error: Invalid property set operation; field doesn't have property 'index'

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].InvDate[0])

            script=var index = this.parent.index;

            var page = index+1;

            if(_Page1.count >= page){this.rawValue =

            xfa.resolveNode("Page1["+index+"].Header.InvoiceDate").rawValue;}

            Error: Invalid property set operation; field doesn't have property 'index'

            Script failed (language is javascript; context is

            xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Schedamt[0])

            script=

            var index = this.parent.index;

            var page = index+1;

            if(_Page1.count >= page){this.rawValue =

            xfa.resolveNode("Page1["+index+"].Body.Total").rawValue;}

            Error: Invalid property set operation; field doesn't have property 'index'

            Font Service: Default font typeface is Myriad Pro.age 1

             

            No passwords given for encryption. An insecure document will be created.

            PDF generated successfully.

            8 warnings/errors reported.

            • 3. Re: Can Not View From from different client
              Niall O'Donovan Community Member

              Okay,

               

              That is the Report tab, which shows you issues as the form renders. Certainly you will need to resolve these issues. For example, "index" is a reserved word, so when declaring your variable you would use something different, like "myIndex".

               

              You have probably copied a date solution that had a script object called "util". This appears to be missing from your form.

               

              If you now go to the Warnings tab, there you will see if there are any target version issues that you need to resolve.

               

              Hope that helps,

               

              Niall

              • 4. Re: Can Not View From from different client
                Pepperpotsman Community Member

                I changed the worf "index" to "myindex" where ever it was referenced but I think I am comfused. here is what I get now.

                 

                Generating PDF Document...

                Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Debtor[0])
                script=var myindex = this.parent.myindex;
                var page = myindex+1;
                var name =  xfa.resolveNode("Page1["+myindex+"].Header.Name").rawValue;
                name = name.substring(name.myindexOf("/")+1,name.length) ;
                if(_Page1.count >= page){this.rawValue =name;}
                   Error: Invalid property get operation; subform doesn't have property 'myindex'
                Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Ref[0])
                script=var myindex = this.parent.myindex;
                var page = myindex+1;
                if(_Page1.count >= page){this.rawValue = xfa.resolveNode("Page1["+myindex+"].OrderNumber").rawValue;}
                   Error: Invalid property get operation; subform doesn't have property 'myindex'
                Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Schedinv[0])
                script=var index = this.parent.index;
                var page = index+1;
                if(_Page1.count >= page){this.rawValue = xfa.resolveNode("Page1["+index+"].Header.InvoiceNumber").rawValue;}
                   Error: Invalid property set operation; field doesn't have property 'index'
                Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].InvDate[0])
                script=var myindex = this.parent.myindex;
                var page = myindex+1;
                if(_Page1.count >= page){this.rawValue = xfa.resolveNode("Page1["+myindex+"].Header.InvoiceDate").rawValue;}
                   Error: Invalid property get operation; subform doesn't have property 'myindex'
                Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Schedamt[0])
                script=var myindex = this.parent.myindex;
                var page = myindex+1;
                if(_Page1.count >= page){this.rawValue = xfa.resolveNode("Page1["+myindex+"].Body.Total").rawValue;}
                   Error: Invalid property get operation; subform doesn't have property 'myindex'
                Font Service: Default font typeface is Myriad Pro.
                No passwords given for encryption. An insecure document will be created.
                PDF generated successfully.

                • 5. Re: Can Not View From from different client
                  Niall O'Donovan Community Member

                  Okay,

                   

                  That went a bit too far. The script should looks like:

                   

                  var myindex = this.parent.index;
                  

                   

                  For example, when naming the variable you must stay clear of reserved words (like "index"). This is why I recommended declaring the variable as "myindex".

                   

                  However when you want to access the particular index property of the repeating object, you must use "index".

                   

                  Make sense?

                   

                  Niall

                  • 6. Re: Can Not View From from different client
                    Pepperpotsman Community Member

                    Yes it does. I thought I had it but now I am getting this;

                     

                    Generating PDF Document...

                     

                    Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Debtor[0])

                    script=var myindex = this.parent.index;

                    var page = index+1;

                    var name =  xfa.resolveNode("Page1["+index+"].Header.Name").rawValue;

                    name = name.substring(name.indexOf("/")+1,name.length) ;

                    if(_Page1.count >= page){this.rawValue =name;}

                       Error: Argument mismatch in property or function argument

                    Font Service: Default font typeface is Myriad Pro.

                    No passwords given for encryption. An insecure document will be created.

                    PDF generated successfully.

                    • 7. Re: Can Not View From from different client
                      Niall O'Donovan Community Member

                      Hi,

                       

                      Nearly there! I think this version of the script is closer to what you want:

                       

                      var myIndex = this.parent.index;

                      var myPage = myIndex+1;

                      var myName =  xfa.resolveNode("Page1["+ myIndex +"].Header.Name").rawValue;

                      myName = name.substring(name.indexOf("/")+1,name.length) ;

                      if(_Page1.count >= myPage){this.rawValue = myName;}

                       

                      Check out where I am using the variables

                       

                      The one thing I can't follow is the second last line. Again you are using a reserved word "name", in an incorrect context.

                       

                      Niall

                      • 8. Re: Can Not View From from different client
                        Pepperpotsman Community Member

                        You always come through! It is looking good. Now the only thing that does not work is the field "Name" on page 1. It is a dropdown list that is used to polulate other fields. Here is what I am being returned:

                         

                         

                        Script failed (language is javascript; context is xfa[0].form[0].form1[0].Page2[0].Footer[0].schedule[0].Debtor[0])

                        script=var myindex = this.parent.index;

                        var mypage = myindex+1;

                        var myname =  xfa.resolveNode("Page1["+myindex+"].Header.Name").rawValue;

                        name = myname.substring(name.indexOf("/")+1,name.length) ;

                        if(_Page1.count >= mypage){this.rawValue =myname;}

                           Error: null is not an object

                        • 9. Re: Can Not View From from different client
                          Pepperpotsman Community Member

                          Ok,I kept at it and I have it working good except one thing. When the "Name" field is populated on the schedule, it appears like this:

                           

                          o/ Boston Eng. Company

                          1/ Carter Glass                  It appears it placing the index number with a "/" to the left of the data. The "0" and the "1" are the instances that I created.   I am not being given any errors but I located the following code in the xml source: It is part of the exit script for the dropdown box

                          I think it is because of this part of the code......................var index = this.rawValue.split("/",1);, but I am not sure.

                           

                           

                           

                           

                           

                           

                           

                          <

                          script contentType="application/x-javascript">var index = this.rawValue.split("/",1);

                           

                           

                          js_script.fillData(this.parent.Name, index);</script>

                           

                          <event activity="exit" name="event__exit">  

                          <script contentType="application/x-javascript">js_script.fillnames(this.parent.Name);</script>

                           

                           

                          </

                          event

                          >

                           

                           

                          <event activity="initialize" name="event__initialize">

                          • 10. Re: Can Not View From from different client
                            Pepperpotsman Community Member

                            I just cant seem to solve this. I have everything just great except the instance number or record number showing up on the debtor line.

                            When the "Name" field is populated on the schedule, it appears like this: 

                             

                            o/ Boston Eng. Company

                            1/ Carter Glass It appears it placing the index number with a "/" to the left of the data. The "0" and the "1" are the instances that I created. I am not being given any errors but I located the following code in the xml source: It is part of the exit script for the dropdown box

                            I think it is because of this part of the code......................var index = this.rawValue.split("/",1);, but I am not sure.