mitchell
7th June 2012, 20:31
I have written a session that will print a packing list from a customized table. When the user runs this session, I would like for them to be able to add and/or modify text.
The customized table does have a text field - tdsls847.txta (domain tc.txtn).
Within my session, I have selected Text as an option on the Form.
On the form, the user can click the “T” and enter text. The text gets generated and stored in the text tables.
My question is how do I get the text number that has been created, updated in my customized table?
Thanks
Barb
mark_h
8th June 2012, 00:08
Did you add the text field as the available text fields by session? On one session I created with text, besides what you did, that is where I put the text field. I did not put anything in the session script. You can find this on the first form of maintain sessions - right below change key.
Hitesh Shah
8th June 2012, 19:55
tdsls847.txta itself has text number . If u include the same in the form , it can be displayed . Normal program practice is to show text yes / no based on whether text field tdsls847.txta has non-zero value.
mitchell
8th June 2012, 21:08
Yes, I have added the text field as an available text field by session. Also, I did include the field tdsls847.txta as a display field on the form.
It is still not being updated. Is this because the session is a “print session”? Do I need to create a maintain and/or update session that the user can run first to update the text, then print the report?
Thanks
Barb
mark_h
10th June 2012, 03:06
Interesting - did you turn update, save - those options usually used for an update session? Never done this with a print session.
Hitesh Shah
12th June 2012, 18:32
It is still not being updated. Is this because the session is a “print session”? Do I need to create a maintain and/or update session that the user can run first to update the text, then print the report?
Thanks
Barb
I have never tried text field in a print session .
In 1 maintain session we have a string of 50 some characters input field and in before.input we let user maintain separate text field using text.edit function , the first line of which is copied to input string field for user preview and then sett attr.input to false.
mitchell
12th June 2012, 22:30
I could not get the text to update properly from the print session.
I ended up creating a maintain session that allows the user to update the text, before printing.
Barb