RE: How to Invoke Button Function with Client Script

I’ve added a button with a beforeLoad UE script. When the user clicks the button, it should create a new instance of a custom record. As I understand, you need a client script to handle the button click. I seem to be having trouble invoking my button function, though. I set the name of the function when I created the button in the UE script. Then I defined the named function in my client script. But when the button is clicked, the function in the client script is never invoked. Anyone know what I’m missing?

mmascitto Beginner Asked on September 16, 2019 in SuiteScript.
Add Comment
9 Answers

follow on this Github: https://github.com/HarishBakka/SuiteScript/tree/main

There are two scenarios button can be used

  1. using currentRecord.get() by passing currentRecord as module https://github.com/HarishBakka/SuiteScript/commit/e044ef9b003333a02515bc1cd788f8128910923a
  2. Function invoke and sending record data as an argument  https://github.com/HarishBakka/SuiteScript/commit/7944b0be5903f964162f80b22307a689dcdad078

 

Rookie Answered on March 24, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.