Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 55

Thread: Time Clock

Hybrid View

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,181
    Blog Entries
    22
    Use the item() method

    item(nRow, nCol)
    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

  2. #2
    Hi Yvonne
    It works correctly in the console. I will fix the Basetable. Should the KEYFIELD be an index name on the orinating Foxpro table ?
    It is interesting that the same table structure in one location works and the other does not. I will try to bypass the issue by creating an intermediate sql table in the correct order and AddItems from that.
    Thank you very much for your time and help.
    Glen

  3. #3
    I found my mistake. All set on the Ordering of the items.

  4. #4
    I have the canvas section with the badge and name fields. I have the treegrid in place. I don't know how to apply the data to the treegrid. I am using a select statement to get the data i want once the badge number is found in the employee file.

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,181
    Blog Entries
    22
    Use the addItems method()

    https://www.lianja.com/doc/index.php/Tree
    Last edited by barrymavin; 2023-09-26 at 11:22.
    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

  6. #6
    Hello

    Is there a way to check for Lastkey() ?

  7. #7
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Can you give more details? Do you mean a key pressed in the tree grid?

    Regards,


    Yvonne

  8. #8
    Good Morning
    I am having an issue trying to run this code in the Page1_Load or Page1_Init procedures.

    // Get the Company Names to select from
    Use Butchery!VT_Company in 0 Shared
    select compid,name from Butchery!VT_Company where type<2 into cursor CompName
    Index on Compid tag Compid
    Index on Name tag Name
    =seek(m_location,"CompName","Compid")
    Use in VT_Company
    When i run the code the program shuts down without an error before the form even appears. same thing happens in the console.
    I want to use the CompName cursor in a dropdown on the canvas to select the location ID where the puch will be applied.
    Any thoughts on this would be appreciated.
    Thanks
    Glen

  9. #9
    Hi Yvonne

    It appears that you cannot sort on Substr of a field. I am going to use the Datetime field alone and it works.
    Thanks again.

  10. #10
    Good morning
    I would like to cleanup the .prg file since i did alot of experimenting. is there a way to remove unused procedures code ?
    When i comment them i get this response:

    **** Lianja error ****
    do PAGE1_SECTION1_READY

    ^
    Cannot open 'page1_section1_ready.prg' - errno 2 - No such file or directory
    **** Lianja error ****
    do PAGE1_SECTION1_ACTIVATE

    ^
    Cannot open 'page1_section1_activate.prg' - errno 2 - No such file or directory
    **** Lianja error ****
    do PAGE1_SECTION1_FIELD5_LOSTFOCUS
    ^
    Cannot open 'page1_section1_field5_lostfocus.prg' - errno 2 - No such file or directory
    Thank you.
    Glen

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