Hi Dojo,
I'm creating a GQI data source where the start and end time are optional. How can I verify in code if something has been filled in?
Hi Jens,
The OnArgumentsProcessedInputArgs object contains a HasArgumentValue which will return false if the optional argument is not filled in (see docs).
Additionally, you can also use the TryGetArgumentValue which will try to get the value for a given argument. If the argument is found, it'll return true (see docs).
Hi Jens,
You could use the methodTryGetArgumentValue to check if there is a value available. Example:
if (args.TryGetArgumentValue(myArgument, out myArgumentValue))
{// do something
}
Hope it helps.
Reference: RN35783