This topic is locked

Problems with window MORE

11/25/2004 7:13:09 AM
ASPRunnerPro General questions
author

Hi to everybody.

I have a problem with the window more and one a lot of text.

This happens, if I insert a lot of text in a field memo formatted as text area and then I open the window more, not all the memorized text is seen but only a part.

The version of the program is the 3.1A and the database it is MSAccess 2000-2003.

How come happens?

Sergey Kornilov admin 11/26/2004

Aliens,
More ... window cannot display more than 900 characters which Javascript limitation. If you need to display more text just use View page for this purpose.

J
jmbowman 6/11/2005

I have a simular situation with MS SQL. I don't understand what you mean about view page. When I click view, it shows xx characters and says more... at the end. When you click more it only shows so many char (900?) and won't allow you to scroll. But when I am on an edit screen I can see / scroll all of it.

Sergey Kornilov admin 6/14/2005

Hi,
please use ASPRunner Pro 3.2 version where you can see on the view page the whole text without 'More...' link.

T
trev 1/4/2006

Hi
I use ASPRunner Pro 3.2. I have a few fields set as text area and on the edit page i can enter the necessary data as separate lines in the field which is 5 rows and 80 cols wide. However, when I view a record in the view page, the data in the text area field appear as one continuous line.
How can i change this to display it as it shows on the edit page?
For example I enter the following in a text area field (called Dates) on the edit page:

Line 1 May 2000 to June 2000

Line 2 May 2001 to June 2001

Line 3 May 2002 to June 2002
The result output on the view page looks like this:

Dates: Line 1 May 2000 to June 2000 Line 2 May 2001 to June 2001 Line 3 May 2002 to June 2002
Any help would be appreciated. Thanks

Sergey Kornilov admin 1/4/2006

In HTML code you need to use

<br>

to start a new line.

Line 1 May 2000 to June 2000<br>

Line 2 May 2001 to June 2001<br>

Line 3 May 2002 to June 2002<br>
T
trev 1/4/2006

Hi, thanks for the quick reply. Unfortunately I don't think I explained my problem correctly so let me try again.
I enter a lot of text in a text area box on the add/edit page. The text area box has 5 rows. After typing the first line of text I hit the Enter key to go to the next line, type in some more text hit enter and continue.
Now when I view this information on the view page the page formatting shows the information as one continuous line, not on separate lines like I entered it.
Is it possible to change the formating so the view page shows the data in the same way as when I entered it?
You suggested adding a
did you mean adding a
on the ..._view.asp page to the response.write output code?

Sergey Kornilov admin 1/4/2006

I suggested to add
when you enter text. Before pressing Enter key type
at the end of each line.

T
trev 1/5/2006

Hi, I added the
to the end of each line and it worked. However, this solution would not be very practical for our users since there are many records to be added and atleast 4 text area boxes to enter data.
is there any other solution? if not Thanks for your help.
apart from this problem, this is a really good program.

Sergey Kornilov admin 1/6/2006

You can modify list/view pages to replace end of line character with
when record is displayed.
strValue = Repalce(strValue, vbcrlf, "
")
If you are ASPRunnerPro customer send your files to support@xlinesoft.com and I'll help you with this.

T
trev 1/8/2006

You can modify list/view pages to replace end of line character with
when record is displayed.

strValue = Repalce(strValue, vbcrlf, "
")
If you are ASPRunnerPro customer send your files to support@xlinesoft.com and I'll help you with this.


Brilliant! Sergey. Thanks for your help. I added the code to the view and print pages and the lines are displayed correctly.
I am an ASPRunner Pro customer, but I thought I'd give it a shot first and see if it works. I am new to asp and vbscript but I understand the code u suggested. Thanks...