hide empty colomn in List Page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
btrade
User
Posts: 357

hide empty colomn in List Page

Post by btrade »

Hi,

Help, please

I hide the buttons in List Page
ListOptions_Rendered

$this->ListOptions->Items["view"]->Body = "";
$this->ListOptions->Items["copy"]->Body = "";
$this->ListOptions->Items["edit"]->Body = "";	

But how can i hide the empty colomn ?

And else...

How can make unlimited symbols for textarea (BLOB) in List Psge?
Now i see only 600 symbols iinstead of 1000 (in DB).


mobhar
User
Posts: 11703

Post by mobhar »

Simply put the following code in "ListOptions_Load" server event:

$item1 = &$this->ListOptions->Add("edit");
$item1->Visible = FALSE;
$item2 = &$this->ListOptions->Add("view");
$item2->Visible = FALSE;
$item3 = &$this->ListOptions->Add("copy");
$item3->Visible = FALSE;


btrade
User
Posts: 357

Post by btrade »

mobhar wrote:
Simply put the following code in "ListOptions_Load" server event:

Thanks you!

I had a question above. How can I remove the restrictions of characters ON LIST PAGE?

I found where the established limit 1000 symbols, but I do not see where it is configured.

	// text
	$this->text->ViewValue = ew_TruncateMemo($this->text->CurrentValue, 1000, $this->text->TruncateMemoRemoveHtml);
	if (!is_null($this->text->ViewValue)) $this->text->ViewValue = str_replace("\n", "<br>", $this->text->ViewValue); 
	$this->text->ViewValue = clear_text($this->text->ViewValue);
	$this->text->ViewCustomAttributes = "";

mobhar
User
Posts: 11703

Post by mobhar »

You may simply adjust the value from "Fields" setup -> "View Tag" pane -> "Format" -> "Max length (List Page)".

Please read "Field Setup" topic from PHPMaker Help menu for more info.


btrade
User
Posts: 357

Post by btrade »

mobhar wrote:
You may simply adjust the value from "Fields" setup -> "View
Tag" pane -> "Format" -> "Max length (List Page)".

I understood. I do not see this option because I use a BLOB field for text.


mobhar
User
Posts: 11703

Post by mobhar »

Try change the field type to "text" or "memo" or something that similar to that, so that the option will be shown up from "View Tag" pane.


btrade
User
Posts: 357

Post by btrade »

I change the field type to longtext.

Thanks you


Post Reply