Basic drop down from lookup table

QuestionsBasic drop down from lookup table
BerBen asked 7 years ago

I'm trying to create a basic drop down for a column, using:
$dg -> set_col_edittype("CallCenterName", "select", "select CallCenterID, CallCenterName from CallCenter", false);

The page will render, but I get the following:
Notice: Undefined offset: 0 in C:inetpubwwwrootphpGridserverclassescls_datagrid.php on line 3176

Notice: Undefined offset: 1 in C:inetpubwwwrootphpGridserverclassescls_datagrid.php on line 3176.

If I click on the drop down that gets created, it is blank.

The datagrid object looks like this:
[9] => Array
(
[autoResizable] =>
[name] => CallCenterName
[index] => CallCenterName
[hidden] =>
[headerTitle] => CallCenterName
[width] => 80
[edittype] => select
[editable] => 1
[formatter] => select
[stype] => select
[searchoptions] => Array
(
[sopt] => Array
(
[0] => eq
)
[value] => :All;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:
)
[editoptions] => Array
(
[value] => :;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:;:
)
[editrules] => Array
(
[edithidden] =>
[required] =>
)
)

I don't know what I am missing in order to get a basic drop down to work. Any help would be appreciated.

1 Answers
Abu Ghufran answered 7 years ago

This API is not supported by our product.
You can try checking this website: http://www.phpgrid.com

Your Answer

6 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?