Select to view content in your preferred language

Text not saving in text box if return key is used

1664
6
Jump to solution
05-14-2013 03:54 AM
RachelS
Frequent Contributor
Hi,
I have an address text box as part of my Edit Widget in Flex 3.1, so that staff can add addresses.
I've discovered when they add it as below:
[ATTACH=CONFIG]24286[/ATTACH]
where they hit return after each line. IN ArcGIS 10.1 feature dataset it only saves the first line (Address Line 1)
although in Flex the full address appears.

Does anyone know how to fix this or a way around it.
I need it to be the full 254 characters as addresses may be long, less than 50 so it's only a line isn't long enough.
I can't shorten the text box as I'm using the compiled version.
If users don't hit Return then it's not an issue, but try telling that that to users entering an address, no hope!
Has this been fixed in the latest version, I'd consider upgrading if it has.

Rachel
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Rachel,

Are you sure that only one line is stored. If you start an editing session in ArcMap and double click on the field value in the attribute table you will probably see more data, each line will be seperated by a square (arcmaps way of showing a hard return). I think its just arcmap cannot handle data over multiple lines very well.

I have just tested this and it looks like this is what is happening.

Regards

Anthony

View solution in original post

0 Kudos
6 Replies
AnthonyGiles
Honored Contributor
Rachel,

Have a look at the singletomultilinethreshold tag:

<singletomultilinethreshold>
The maximum number of characters to display as a single line text input component, otherwise display as a multiline text area. This number is compared to the length of the string field. Number value (default is 50).

See here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Edit_widget_tags/01m30000000v00...

Setting this to a larger number should keep the input to a single line text box.

Regards

Anthony
0 Kudos
RachelS
Frequent Contributor
Hi Anthony,
I've increased the multiline threshold, but this leaves me with the user only able to see the first line of the address as below:
[ATTACH=CONFIG]24325[/ATTACH]

I still need the box, so that all the text is visible but ArcGIS recording all the data that's in the box.

Rachel
0 Kudos
AnthonyGiles
Honored Contributor
Rachel,

The single line would only be in the edit widget, to discourage people from hitting return for a new line. Viewing the data in a pop up or in arcmap should allow you to see all the data.

Regards

Anthony
0 Kudos
RachelS
Frequent Contributor

Viewing the data in a pop up or in arcmap should allow you to see all the data.


So Anthony do you think there is no way to have a multi line text box in flex to show all the text, since it will not be saved in ArcMap?
Having only one line is too short for users to see the text.
This is what is in Flex:
[ATTACH=CONFIG]24356[/ATTACH]
And this is what is showing in ArcMAp:
[ATTACH=CONFIG]24357[/ATTACH]

It's quite a serious bug.
Rachel
0 Kudos
AnthonyGiles
Honored Contributor
Rachel,

Are you sure that only one line is stored. If you start an editing session in ArcMap and double click on the field value in the attribute table you will probably see more data, each line will be seperated by a square (arcmaps way of showing a hard return). I think its just arcmap cannot handle data over multiple lines very well.

I have just tested this and it looks like this is what is happening.

Regards

Anthony
0 Kudos
RachelS
Frequent Contributor
Anthony,

You are correct!
I just tried it and yes when I click into it, the full text is visible, however when I click away from it again it disappears.
With hundreds of addresses all I need to work out now is how to make all the text visible. I've tried copying and pasting but doesn't help. When I click into the field there are no gaps between the lines so there's nothing to delete.

Thanks for your help Anthony, at least the data is in there, it's just making it visible!

Rachel
0 Kudos