Results 1 to 4 of 4

Thread: Cursor access in Javascript from dev environment

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,940

    Cursor access in Javascript from dev environment

    I have the following code in a footer menu delegate in a JavaScript app:

    Code:
    function pgsetup_grdpos_custommenu(){
    	var opos = Lianja.getCursor("dpos");
    	opos.fields("cstartkey").value = guid();
    	Lianja.get("pgsetup.grdpos").grid.refresh()
    };
    I am getting the error:

    Fri Jan 2 15:07:33 2015
    **** Lianja JavaScript error ****
    Traceback (most recent call last):
    Console at line 6
    Error: Method 'fields' undefined

    thanks,

    Hank

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    I will look into it but that code will not work anyway as the cursor is not being updated.

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,768
    I have corrected this in v1.3RC10.
    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

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,940
    Ah, fantastic! I missed this post when I submitted the "reminder" ticket. I will confirm when RC10 arrives.

    thanks,

    Hank

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