accessing valuelist from class rendercell

9 views
Skip to first unread message

tom wible

unread,
Mar 2, 2024, 1:54:47 PMMar 2
to Xataface
i've got a table of logins containing ownerID, ip & date, with
fields.ini 
     [ownerID]
        widget:type = select
        vocabulary = selectOwnerByName
& valuelists.ini
    [selectOwnerByName]
        __sql__ = "SELECT * from selectOwnerByName"
and  
    VIEW selectOwnerByName (ownerID, names)
     AS select owners.ownerID, CONCAT(CAST(owners.ownerID AS CHAR), ':',owners.firstNAME, ' ', owners.lastNAME) as names
         FROM owners
              order by owners.lastNAME, owners.firstNAME;
which does a nice job of displaying both list & detail as 

what i want to do is link the ownerID to the owner table for easy access; in tables_logins:

    function ownerID__renderCell( &$record )
    {
       return '<a href="/index.php?-table=owners&-action=view&-mode=list&ownerID='
                    . $record->strval('ownerID'). '">' . $record->val('ownerID') . '</a>';
    }

which only displays the ownerID without the valuelist's name. can i buy a clue?-)


tom wible

unread,
Mar 2, 2024, 2:19:11 PMMar 2
to Xataface
nevermind, shoulda googled here;-) should be 

   function ownerID__renderCell( &$record )
    {
       return '<a href="/index.php?-table=owners&-action=view&-mode=list&ownerID='
                    . $record->strval('ownerID'). '">' . $record->display('ownerID') . '</a>';
    }

u got dox on record members/functions anywhere? the wiki is broke:


[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)

& shows empty messages:-\


Steve Hannah

unread,
Mar 2, 2024, 3:35:02 PMMar 2
to xata...@googlegroups.com
Hmm.  I knew this day would come.  The PHPBB forum was put into "archive" mode a long time ago, but I guess what I should have done was generated a static mirror. 

I'll patch it up so that it is "presentable" again, and then generate the static mirror.  Not sure of the eta.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/0e81059c-f229-4753-ba17-75925a361565n%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.

Steve Hannah

unread,
Mar 2, 2024, 9:10:25 PMMar 2
to xata...@googlegroups.com
I have made a few changes to phpBB, and it appears to be working now.

Steve

tom wible

unread,
Mar 3, 2024, 12:12:13 PMMar 3
to Xataface
thx, steve-) 
Reply all
Reply to author
Forward
0 new messages