Results 1 to 4 of 4

Thread: Section 'add' method in web

  1. #1
    Senior Member
    Join Date
    Apr 2014
    Posts
    201

    Section 'add' method in web

    Hi,

    In a js delegate this code gives the error "TypeError: undefined is not a constructor (evaluating 'poSection.add()') "
    Digging around in the web debug I can see that poSection appears to be a valid section object and I can see a few other properties but most fail eg '.count'

    Code:
    	var poSection = Lianja.get("New_Purchase_Order.section1");
    	poSection.add();
    Am I doing this wrong or is it a bug?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,168
    Blog Entries
    22
    A best practice is to use Lianja.showDocument() which abstracts above all of this coding.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Posts
    201
    Ok Barry, there was a reason I did it like this but I can look at changing it.

    Should the js grid/section object support the same properties and methods as the vfp version? if it is supposed to then perhaps I need to log a ticket as there several that don't work.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,168
    Blog Entries
    22
    Then log a ticket if you must use them rather than what you can do with Lianja.showDocument()
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us