Cannot setup Dynamic Data from a database table for Drop Down field

setup dynamic data from a database table for a drop-down field.

Overview

The issue occurred because a custom code snippet placed after the Show HTML action was interfering with the data array.
Remove or adjust the custom code that modifies the array to allow the dynamic data to populate the drop-down correctly.

Answered
Ha Hansueli 05 Mar, 2014
I am lost… I try to set up Dynamic Data from a database table
I followed the description:
How do I build a select drop-down, radio button or checkbox group?
Created: Wednesday, 31 October 2012 04:39

The Debugger shows me Data:
Array
(
[Wv62bComprofiler] => Array
(
[0] => Array
(
[user_id] => 10002
[firstname] =>
[middlename] =>
[lastname] => admin_0T
)

[1] => Array
(
[user_id] => 1
[firstname] => Hansueli
[middlename] => juhr
[lastname] => Rickli
)

……


The db_multi_record_loader:
SELECT `user_id`, `firstname`, `middlename`, `lastname` FROM `wv62b_comprofiler` AS `Wv62bComprofiler`

The Drop Down: Dynamic Data:
Enable: Yes
Data Patth: Wv62bComprofiler
Value Key: user_id
Text Key: lastname

What do I miss?????

Sorry Bob cannot buy you a beer….something does not work on your page.
Ha Hansueli 05 Mar, 2014
Answer
Found!!!
Sorry
I had after the Show html a Custom Code where I kill the array.....
(but after..?)
If I remove it it works.
This topic is locked and no more replies can be posted.