Arlina
12th May 2019, 15:39
Hi
Is it possible to add Text as a field on Multi-occ session(not in the text editor)?
Thanks
tmannais
13th May 2019, 04:40
Try Customer Defined Field (CDF)
Arlina
13th May 2019, 07:07
Sorry but can you please explain this?
tmannais
13th May 2019, 07:15
Sorry but can you please explain this?
1. Start Customer Defined Fields (ttadv4591m000) session.
2. Add a new View with the Package Combination that you are going to use with the Table that you want to add the new Text field. If the table already exists in here then just search for it.
3. Add a new record (you will get a new field out of this action).
4. Fill-in the mandatory fields in the form and save it.
5. Convert the table using Convert to Runtime Data Dictionary command.
6. Restart the application you are using or if you use LNUI then you can just reload the webpage. Now you should see the newly added field in every session that has its main table as the table with that CDF. But if you don't, there might be some cases where the CDFs started hidden; so personalize the field to display should make it appear in the session.
Arlina
13th May 2019, 08:53
Thanks but this is not what is required.
I have a customized multi-occ session and I need to have text fields on it's form instead of clicking on Text Editor and maintaining the text.
tmannais
13th May 2019, 09:25
You can add a field to the table of that session so it can maintain a string with limited length if you are okay with this as text data. In the session, you will have to edit the form to have that field as an input too.
Arlina
13th May 2019, 11:17
I want multiple lines....something like the attachment.
Ajesh
13th May 2019, 14:49
What you can do is that, Add a string field on form and then assign the string of the Text field to it in before display, using text.to.buf .
Also i think you want it as input field too? Then on when.field.changes you will have to assign the value of the string to the table field of Text
Arlina
13th May 2019, 15:50
That would work for single line, but in my case I want it the field of multiple lines...user should be able to add multiple lines by pressing enter in same field.
eg.
Pos | Item | Text
__________________
1 | A1 | text line 1
| |Text line 2
_____________________
2 | A2 | Text line 1
________________________
and so on...
Ajesh
13th May 2019, 17:28
But why do you want it? Text Manager is supposed to do the same thing more efficiently.