Hi
I am deeply mystified!! Where does the Bentley map get the length of the property field from? I cannot find any other information about property string length than "#chars" and "List Width" in GSA. In the Xml file these are found in <dataSpec numChars="20" /> and for comboboxes also here: listBoxWidth="0" listWidth="20"
/>
I have changed all # chars and all ListWidth to 20 but look how the the edit box looks like :
Some of the fields are, as it can be seen, equal sized -those did not have a value in # char before setting all length to 20. I cannot find any place in the GSA metadata XML file where GSA store whose wrong field sizes.
First I wonder why all fields are not equal length when all properties have their length set to 20!
Second I wonder why the fields are so long -those which are equal sized and presumably 20 char long can typical contain about 40 characters!!
So could anybody help me telling what to do to get the edit dialog boxes looking reasonable :-)
Erik Wirring
LE34
Denmark
Try turning off the calculate list width on the combo box property node. This way you can change the list width yourself in the list width field.
HTH
Jerry
Thanks Jerry
That solved some of the mystery :-)
Then there is still the mystery that "List Width" is set to 20 but as it can be seen above it easily can display a text containing 42 characters ! But the value will be truncated to 20 cahracters since the #char is set to 20. Changing that to 42, so no truncation occurs. the field to accordingly prolonged. even though the "List Width" still is 20 and the calculaed width is "false"
So still the fields are more the double in length of what is needed.
Is it possible, without creating own vba code, to solve these problems ??
TIA
Erik
The field can contain 42 characters but you want the drop down list to be 20 characters and yet be able to retain all the available characters ( 42) ? Have you tried changing the width of the dialog item in the Edit Form for the feature in the Operations node ?
Basically the problem is that the fields in the edit dialogbox automatically generated by GSA are almost the double in length as they needed to be.
I have found, as you write, that I can adjust the length of every property field in the dialogbox in "Operation/<feature>/Dialogs/FormView.".
But I cannot figure out why GSA doubles the field length !
Another problem is that this is not covered by the help file, so it rather difficult to find.