som.papai
12th July 2007, 10:21
Hi all
i am working on ERP LN 6.1

How can i make a multiple line form field.
I take form field domain tcmcs.str215, now it is showing in one row i want to show it in multiple row
How can i do that?
When i double click in form field ,there is a option to give height ,but the textbox is disable,Is this is the option to make that? if yes, then how can i enable the textbox ?:(

Leerkes
12th July 2007, 16:14
Hi there,

I once did this. I created a form field called X which has a domain which has as native datatype the type "text" (e.g. domain tctxtn). You can then set the width of the lines to for example 80. Suppose I have a string table fields called txxxx.yyyy.

In the display script I created then the following:
field.X:
before.display:
g.ret = text.buf.to.field("X", txxxx.yyyy)

Regards,
Michiel

som.papai
12th July 2007, 16:56
hi Michiel
Thankx.
But I create table field domain tcmcs.str215 and I want that will be visible in the form as a listbox or multi line Textbox,there user can write multiple lines .
Now it is showing as a Single Line.So it make the form very large in width.
I want to make that field as a listbox or multi lines Textbox.

Regards
Sudipta

george7a
12th July 2007, 17:26
Hi,

I have read in the Dynamic Form Editor documentation that the "Display Height" field should enable the multi-line (Check the attached image). However, I have never tried it (yet).

I hope it helps,

- George

NPRao
13th July 2007, 03:59
Sudipta,

You have to follow Michiel's suggestion. The DFE allows you to set the height if only you have a text domain for the field.

Alternatively, you can explore using - dialog.add.field() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_programmable_dialogs_dialog_add_field)

som.papai
13th July 2007, 08:27
Hi George
Thankx
I sec this DisplyHeight.JPG,but Every time that is disable i can't make it enable.
U have any Suggestion that make the field Enable?

Regards
Sudipta

som.papai
13th July 2007, 08:50
Hi N. Prashanth Rao sir
Thankx
Sir make a domain of type TEXT , it works fine.
It Shows in form as a Listbox .

Thank You Sir


:)