I am trying to update a value in a view based on a value from another view and i am having no luck.. i am following the guide on row-update and nothing
Use F12 Debug tools with debug mode on to see your events firing. probably the data is not landing in the dataview you expect it to.
I see the getbyid kick off to pull the data for indirect and resourcegroup, but i don’t see anything in the debut about it trying to assign the values.
in the console i am also seeing Cannot read properties of undefined error
Since you are using a condition, you might want to change the last arrow to “Success” (arrows have properties!), so that it does not execute the row-update randomly.
Otherwise, have you used row-update before? It’s pretty straightforward.
Please do understand it’s not writing to the database; it’s just updating that view (for that user at that moment).
I have used it before with a hardcoded value, but not with a view field. The request from the business is to default the resource group that is tied to the indirect code. another mod that i built. This is the last part. whats rather annoying is if i where to do this in classic it would take me 10 minutes to code and i have spend days banging my head on this stupid thing.
May not apply, but I dug up a row-update where I set it to the current site.
It is using what I’d argue is a data view (a system one), so I think the logic should be the same.
Mine is in Expression and has single quotes, not double.
I’ve tried that prior and it didn’t work. could it be some bug with application studio for version 2024.2?
Can you paste a snip of your event firing in the debugger console?
With the console open, click on your kinetic screen, then press Ctrl + Alt + 8 to enable debug output. Now execute your tasks and what do you see?
Well I just happened to need to do this today, so I can confirm the syntax works fine.
Unrelated, this was my attempt to override a field that was quite disabled. I just shoved the data at it from a custom field. Like this topic.
It did populate the data. But the business object laughed at my wanting to choose the number of a new transfer order and picked the next number in sequence anyway.
Well done. The console shows a successfull IndirectCode Search Value Set and nothing else. Your After event is not firing. Perhaps your trigger column is not being changed.
it is running. i put messages along the workflow and are being triggered. I tried to do an after event on IndirectCodeSearch, the issue is the labordtl.indirectcode returns blank for some reason. Can we just go back to writting code.
There is no row-update in your latest screen shot. Show us it running in console and maybe we can help further.
I think i understand this now.. when your working with events, they are essentially odata calls and even though there is an event for when column changes, it may not trigger the odata call to run your logic.
I changed the trigger to be based on datatable instead of an event and it worked




