Can i only set the needed column for the setting ?

QuestionsCan i only set the needed column for the setting ?
Norman asked 10 years ago

Hi,
just want to know if there is any way to just set the only column setting that needed to be set?
let say i have 10 columns in a table.
then i need set total summary field type for the fifth column only.
so i don't have to set all the nine columns.

2 Answers
Abu Ghufran answered 10 years ago

If you want to customize any specific column properties, and let other columns be displayed from table definition, you can pass 2nd argument of `set_columns($cols,true)` to `true`.

$col = array();
$col["name"] = "company";
$col["edittype"] = "textarea";
$cols[] = $col;

$g->set_columns($cols,true);

In this way, only column with name company with have new properties, rest will have default.

Norman answered 10 years ago

ahhh perfect.

thx

Your Answer

6 + 10 =

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?