Load and With with local variable

Hi ,

I know it could be an silly question but as i am learner so for me need to understand Why ??

Why with is not accepting load variable and throwing Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error : Cannot add incompatible operands of type Number (Integer) and type Null.

load(
local!c:10,

with(

local!a:10, local!b:20,

local!a+local!b+local!c)
)

 

But if we do reverse its working.

 

load(

with(
local!c:10,
local!a:10, local!b:20,

local!a+local!b+local!c)
)

Could not display interface. Please check definition and inputs. Interface Definition: Not a valid component. Received: 40

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    use the code in Expression rule both will work.

    in above code your output return is local!a+local!b+local!c
    which is not a SAIL component but integer value

    if you use interface then interface output must be SAIL component to display it.
    but interface will not be able to display without any SAIL component.(as you are using hare in code)
Reply
  • 0
    Certified Senior Developer
    use the code in Expression rule both will work.

    in above code your output return is local!a+local!b+local!c
    which is not a SAIL component but integer value

    if you use interface then interface output must be SAIL component to display it.
    but interface will not be able to display without any SAIL component.(as you are using hare in code)
Children
No Data