Application Studio - Disable Print Button

Further up in the console, after your function call, did you see something along the lines of action: row-update with some details below it?

You may need to adjust the connection after your function widget to be “On Success” instead of a standard connection.

Let me re-run that part again, but look at this, when I changed the row-update to use the JobHead.PersonID value, it worked, so yes something with the function call

Alrighty, so I updated the event to have an success and error path, the error path sets it to 0.

Still, nothing shows up in Transview:

I doubt this will change anything, but in your row-update clear out the expression field and put this exactly in the value field: "{actionResult.output}"

1 Like

I had just typed up the same thing… so I’m hoping that works.

I have better luck in the Value (Json) than in the Expression when doing this.

I mean, it works both ways for me (as it should), but the expression is generally for calculations.

@rfleischmann for debugging purposes, create a button to fire off your function instead of the event you’re currently hooked into.

I ran the test you mentioned above, and check it out:

But it does make it a string

let me try setting value via JSON

It is forcing me to double quote the value for the JSON editor…

So, value will inherently give it the datatype it thinks, so "{actionResult.output}" in value will yield and int because output is an int.

If you want to use the expression field and have it be an int, you need to wrap it in #_ _# so it would look like #_{actionResult.output}_#

(I don’t make the rules :woman_shrugging: )

Can you set it here?
image

Check this out, I tried an old JavsScript trick and it worked!

2 Likes

Good ol’ Implicit coercion.

2 Likes

Did you try this with the double quotes? It should still yield an integer. Unless you wanna go with the hacky route. :woman_shrugging:

I haven’t actually used this in ages because it didn’t used to do anything, but without changing the value, I did a test once as string and once as number and it worked as expected, changing my output to a string and int respectively.

image

1 Like

yup, I was just testing that as well. Noice.

You seriously rock!! Thank you so much! I feel WAY better about setting the value and setting the data type, instead of my hackish approach :slight_smile:
Thank you! I’ll be updating my Kinetic App Studio notebook with this lol

2 Likes