Hello,
I have a feature defined in Geospatial Administrator.
I'd like to add a read-only item to its Edit dialog. I'd like to present in this field a combination of feature's properties (i.e. in PowerMap XM).
For example:
There is a feature called 'Parcel'. It has 3 properties: 'Teryt', 'District' and 'Number'.
Their values are:
Teryt='123456'
District='0001'
Number='456/54'
And what I need is a concatenation of them: '123456.0001.456/54'
Thanks for help in advance
Myzzard
Hello Myzzard,
In the attached XFM schema file, there is an example of your request. See the Operation property named "Label" for the Parcel. The Label item uses an "editing" initial value of type "concaststr" with value:
Parcel:Teryt+'.'+Parcel:District+'.'+Parcel:Number
I tried this example using Bentley Map XM.
Chris
Chris,
Thanks for your quick help. I succeeded creating this new item.
Where can I find more detailed description of Geospatial Administrator possibilities? Help file is rather general.
For example: I didn't know about 'concatstr' value type.
Regards,
You're welcome Myzzard.
I will file a TR to update the documentation for this initial value type and other types in the list that are not documented.
In the meantime, look in the "Bentley Map Customization Guide" at index item "ValueType Enum". These are the value types used for the "Initial Values - Value Types" and for the InputValue VBA-XFT object. See description for ValueType_CONCATSTRING.
Where can I find "Bentley Map Customization Guide" document? I have only installed Bentley PowerMap. Is it included in Bentley Map?
On other forum somebody let me read "Bentley Map XFM Programmers Reference Guide". I suppose it's also added to Bentley Map instalation.
Myzzard,
Note that there is a different concatstr example in the WorkId feature defined in geo_example schema. This feature has two properties: Step & Substep each with a property watcher to update the operation property Workid. Using this approach, the readonly text item is updated if the user updates either Step or Substep text items in any dialog that these items reside. With the initial value approach used in the previous example, the operation property would only be updated with the dialog is first opened which is ok if the feature properties that define the operation property cannot change in the dialog. The Step & Substep SyncItem watchers use concatstr value type to set the value of the operation property.
Thanks for helping me again. Your advices are very helpful.
I have just installed Bentley Map and have found help file with description of MDL for XFM functions I looked for.
But I can't find the feature 'WorkId' you mentioned above. I have looked for it in geo_example schema, but can't find it.
You're welcome. The WorkId feature is defined under the "designer" Workspace:
Geospatial Project > User Workspaces > Workspace (designer) > Features > WorkId