0

About the copy problem

I tried to copy the content of "copy" to "copy here", but they are not complete copies. Where is the problem with my code? Thank you for your reply!

6 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 11 mths ago
    • Reported - view

    For the copy button:

    do as server
        let me := this;
        for i in select copy do
            let c := (create 'copy here');
            c.(
                NB := i.money;
                name := i.name;
                aaa := me
            )
        end
    end

    If you want to delete only the records related to the HOME, you may use this in the delete button:

    let me := this;
    delete (select 'copy here' where aaa = me)
      • maroon_sky
      • 11 mths ago
      • Reported - view

       thanks friend

      • Sam.1
      • 11 mths ago
      • Reported - view

       Hi Steven,

      please look at the attached video of your code when first entered into the uploaded test write database.

      I’ll send it to support as well. What are your thoughts? I’m trying to figure out why this is happening so I can apply the same action to similar code when struggling with why one won’t work.

      thanks for looking,

      Sam

      https://share.icloud.com/photos/0e5H4kYX-1MK2TY9v7m6wvmUg

      • gold_cat
      • 10 mths ago
      • Reported - view

       

      Hi Steven,

      I am having a problem with the code you provided. It works fine in the cloud, but in a non-cloud database, only one copy record is displayed correctly, and the others are all empty. Could you please help me figure out what the problem might be?

      Thank you very much for your help.

      • Ninox partner
      • RoSoft_Steven.1
      • 10 mths ago
      • Reported - view

       for non-cloud, you have to remove the do as server line and the end at the last line

      • gold_cat
      • 10 mths ago
      • Reported - view

         👍

Content aside

  • Status Answered
  • 10 mths agoLast active
  • 6Replies
  • 87Views
  • 4 Following