Alpha Video Training
Results 1 to 5 of 5

Thread: why wont this work

  1. #1
    Member Graham Wickens's Avatar
    Real Name
    Graham Wickens
    Join Date
    Apr 2000
    Location
    Gloucestershire, UK
    Posts
    795

    Default why wont this work

    I am trying to get form "logback display" to display using index "Identity". but this does not work, any suggestions on what I am doing wrong?

    lb=table.open("logback")
    lbidx=lb.index_primary_put("Identity")
    :Form.view("Logback display","Dialog")
    :logback display.close()

  2. #2
    "Certified" Alphaholic Keith Hubert's Avatar
    Real Name
    Keith Hubert
    Join Date
    Jul 2000
    Location
    London, UK
    Posts
    6,930

    Default RE: why wont this work

    Hi Graham

    Put this question on the main board you should then get a good answer that we can all share.

    Keith Hubert
    London.

  3. #3
    Member
    Real Name
    robert adler
    Join Date
    Apr 2000
    Location
    Boynton Beach, BL
    Posts
    591

    Default RE: why wont this work

    Graham:

    The code should work. I changed the form name and index to match one of mine. worked as coded.

    make sure the key field and form name are spelled correctly.

    I hope this helps.

    bob adler

  4. #4
    Alpha Software Employee Selwyn Rabins's Avatar
    Real Name
    Selwyn Rabins
    Join Date
    Mar 2000
    Location
    Boston, MA
    Posts
    5,298

    Default RE: why wont this work

    it does not work because the query you have performed on the table before opening the form has nothing to with the query that the form will use.

    the table is opened in one session and the form is opened in another, completely different session.

    you need to use the form.load() method which loads the form into memory invisibly. then perform a query on the table used by the form, then show the form.

    in V5 this is very easy to do because there is a built-in action in action scripting that writes all of the code for you.

  5. #5
    Member Graham Wickens's Avatar
    Real Name
    Graham Wickens
    Join Date
    Apr 2000
    Location
    Gloucestershire, UK
    Posts
    795

    Default RE: why wont this work

    Thanks all, problem solved.

Similar Threads

  1. Books wont open
    By johnhpratt in forum Alpha Five Version 5
    Replies: 1
    Last Post: 03-24-2005, 04:57 AM
  2. Alpha 5 Tutorials wont run
    By Terry Watkins in forum Alpha Five Version 5
    Replies: 4
    Last Post: 05-30-2004, 01:18 PM
  3. Pack just wont work!
    By UKJANET in forum Alpha Five Version 5
    Replies: 4
    Last Post: 11-23-2003, 05:29 PM
  4. why wont this form.load and query work?
    By Graham Wickens in forum Alpha Five Version 4
    Replies: 12
    Last Post: 07-05-2002, 03:24 AM
  5. Why wont A5 do import export?
    By Jeff Klages in forum Alpha Five Version 4
    Replies: 14
    Last Post: 06-14-2002, 11:46 AM

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
  •