Bastien Groot Posted July 18, 2023 Share Posted July 18, 2023 So I tried this:if (!is.null(b)) { a <- b} else { a <- NULL}but this doesn't work either, how can I make this error disappear? Link to comment Share on other sites More sharing options...
Gaia Paolini Posted July 18, 2023 Share Posted July 18, 2023 it works for me. I am using Spofire 12.5, I assume a and b are data tables, and b is limited by marking?Can you share the error? Link to comment Share on other sites More sharing options...
Bastien Groot Posted July 18, 2023 Author Share Posted July 18, 2023 The error I get is this:TIBCO Enterprise Runtime for R returned an errorThe data function 'triggerOnMarking' could not be executed.Error in withCallingHandlers({ if (!is.null(b)) { a <- b : object 'b' not found eval(script, envir = .GlobalEnv) eval(script, envir = .GlobalEnv) withCallingHandlers({I forgot to mention: b is actually a string, because I only get one cell (the first marked) that I need. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted July 18, 2023 Share Posted July 18, 2023 I am not sure how you can only get a cell in. Are you marking a data table? Normally I mark an entire row then choose the column I want.Maybe can you show a screen shot of how this data function is set up? Link to comment Share on other sites More sharing options...
Bastien Groot Posted July 18, 2023 Author Share Posted July 18, 2023 I have this in input (it shows a but it's b, sorry for the confusion) Link to comment Share on other sites More sharing options...
Bastien Groot Posted July 18, 2023 Author Share Posted July 18, 2023 nvm, I found what was my mistake, it came from something completely different. Sorry for that, and thanks for helping me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now