Hi,
I've got an DOM object that can have multiple "services" sections. Is there a way to have by default one option added and selected? (which also can be deleted, but in 98% of the cases we want to add this specific service)
sure
it's the services section. Where there is now Service Type (which is DomInstancefieldDescriptor, so i can't select and default one) i would like to have an default option.
Right, i think it’s an issue then with the way i create DOM instance, we’ve had a script got deployed called DOM Editor that doesn’t support this functionality. Or it might be an version issue. We currently run 10.2.12
Thanks for the screenshot. This clears things up a lot for me.
If the ‘Service Type’ DomInstance you want to be selected as default is always the exact same DomInstance, it should be possible to use that ID as the default value just like I suggested in my initial comment. I just tried this myself, and it seems to work fine on 10.3.3. (When adding an extra section, it currently does not assign the default value which may or may not be what you are looking for)
If, however, that ID is not always the same, I’m afraid that there is nothing built in at the moment that would fill it in for you depending on some specified condition. You could make this work with the OnDomCrud script that Sebastiaan referenced, but this would require you to save the new DomInstance first so the script is run, and then continue defining the services. You could make this more user-friendly by introducing states & transitions, but it won’t be as simple as just a create form.