The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php 550 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 25 - File: global.php(872) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php(872) : eval()'d code 25 errorHandler->error
/global.php 872 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 937 - File: global.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/global.php 937 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5196 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 5196 errorHandler->error
/global.php 937 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 937 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 937 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1404 fetch_forum_permissions
/showthread.php 103 forum_permissions
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(768) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/showthread.php(768) : eval()'d code 5 errorHandler->error
/showthread.php 768 eval
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions_user.php 813 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 30 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 30 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions_user.php 813 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 30 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 30 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions_user.php 813 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 30 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 30 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 1114 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1555 - File: showthread.php PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/showthread.php 1555 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1587) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/showthread.php(1587) : eval()'d code 33 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $addremovesubscription - Line: 72 - File: showthread.php(1587) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/showthread.php(1587) : eval()'d code 72 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $thread_deleted - Line: 96 - File: showthread.php(1587) : eval()'d code PHP 8.1.2-1ubuntu2.23 (Linux)
File Line Function
/showthread.php(1587) : eval()'d code 96 errorHandler->error
/showthread.php 1587 eval




  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a new key to an existing table
#1
I need to add a new key to an existing table.

1 - I tried to use the Add Key button in the Manager. I am able to add the name of the key but cannot find the way to save this new key so I could enter data into it after. Is there a button or a procedure I can use ?

2 - I tried adding a key with the code I found in you documentation using this code:
command cdb_addKeys pTable, pKeys

on mouseUp pButtonNumber

local tTable, tKeys

put "Subject" into tTable

put "Why" into tKeys

cdb_addKeys tTable,tKeys
end mouseUp

 I get the following message in the message Windows:
(2019-06-10 20:50:24.543): Error: Failed API Key Authentication

So I checked for A way to log as Developper or Administrator, but I found code that uses "user" but does not tell me with what to replace "user" whit to identify myself as Administrator.
 

on preOpenStack

    initializeCanelaDB

    get cdb_auth(pEmail,pPassword,"user")
end preOpenStack

So What is the way to identify myself as Administrator so I can pass a command to add a new Key ?

  Reply
#2
Hi Jean,

"Users" are not allowed to add keys to tables. We will be improving our UAC so developers can customize what a user can do. If you are ok with your users having full access to your data model (delete project, delete tables, delete keys, add keys, etc) then you can call cdb_auth with "developer" instead of "user". pEmail and pPassword would be the email and password you use to login on LCM. If you don't want your users to have access to those APIs, then you can create a schemaless table. Users will be able to create records in a schemaless table with any key without having to add the key to the table.

Hope this helps!
  Reply
#3
I just tried using "developer" to add a key and it work fine. Merci, It's mean I can correct my table design and more tests.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)