0

Could you please help me identify the issue?

I found an HTML database entry on a forum, but when I copied this HTML code into one of my databases, clicking it wouldn't open any pop-up windows (as shown in the GIF). However, when I copied it into other databases, there were no issues. How should I troubleshoot this? I've attached the code and the database. Thank you.

 

my code

        <tr onclick=ui.popupRecord('{ '身份标识' }')>
 

I believe only this line involves the click command, but it indeed isn't working.

8 replies

null
    • Nick
    • 10 days ago
    • Reported - view

    Works fine for me. Maybe try this;

    <tr onclick=ui.popupRecord('{ Id }')>
    
      • Ninox developper
      • Jacques_TUR
      • 10 days ago
      • Reported - view

       Try adding quotes around the JS function to be executed with the onclick event: 

      <tr onclick="ui.popupRecord('{ Id }')">
      
      
    • gold_cat
    • 10 days ago
    • Reported - view

    Thank you, but it's not working. Strangely, one of my databases just won't open. I just copied the code back and didn't make any changes.

    • Fred
    • 10 days ago
    • Reported - view

    The DB you upload does not show the data you show in your gifs. Please upload your test DB.

      • gold_cat
      • 10 days ago
      • Reported - view

      Thanks fred

      • Fred
      • 10 days ago
      • Reported - view

      Yeah, it doesn't work in your DB. Weird. I was able to take the code from and put it in a DB of mine and it works fine.

      In your DB, I:

      1) created a new Page

      2) created a new formula field

      3) took the original code from  and modified it to point to another table in your DB

      and still the popup command doesn't work

      • gold_cat
      • 9 days ago
      • Reported - view

      It's really hard to understand. I tried creating a new empty database and importing the old tables into it, and then it worked. But doing this would change all the layouts I've already set up.OMG

      • gold_cat
      • 9 days ago
      • Reported - view

       

      I found the issue. It works fine when I use version 3.9.3. I don't know how to explain it. Looks like I need to reach out to Ninox for assistance.

Content aside

  • 9 days agoLast active
  • 8Replies
  • 66Views
  • 4 Following