Hi Dojo,
We have some low code apps which we use to manage booking. Sometimes the user fills in a booking name that we store in the app, but when we go to a state where the booking actually gets created it crashes become some characters are not allowed.
Does the SRM framework contains some logic that can validate a booking name before we actually try to create the booking? This would help to notify the user in advance that a certain name can not be used.
Hi Jens,
If you can import SLNetTypes, you can use method Tools.IsValidFilename (namespace Skyline.DataMiner.Net).
That will validate the name, but the the timing like Emmanuel mentions.
Jens,
No, such method to validate booking name and make sure there won't be any issue does not exist.
FYI, here are more information about characters that are not allowed: https://community.dataminer.services/question/what-characters-cannot-be-used-to-create-bookings
Be aware that your logic should also make sure you will not end up with overlapping bookings having same name.
Thank you, Jorge. I’ll use this as a first check and will add some logic to see how far the name is not in use.