Skip to main content

Hello,

 

I have an address subview which I intented to have an optional parameter: the address ID. When a value is provided the view will load the data corresponding to that address, when no value is specified it will open up an empty form.

 

However, when I pass no value on subform opening it still prompts the user to enter an address ID. Granted, he can close the message and it will work as intented but I feel this is not a very good user experience.

 

Is there a clean way to circumvent this?

Try passing a value of scnull when you don't have a parameter value.  Internally, this is some sort of reserved word in K2 which gets treated as a NULL.  I've worked around similar issues in the past with this method.


Reply