0 Replies Latest reply on May 7, 2012 9:49 AM by nramireddy

    Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown

    nramireddy

      Hi,

       

      I have a requirement to set the page size dynamically, users are going to upload graphic files by specifiying the page size, based on that I need to change the page size and orientation dynamically, I wrote form calc script on body page form ready event as  to set the page size

       

      xfa.form.data.pageSet.Header.medium.stock = "a4"

       

       

      it gives me a script error saying Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown, what am I doing wrong here.