Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute script event handler triggers #861

Closed
hlayisanimazuze opened this issue Jan 11, 2024 · 1 comment
Closed

Execute script event handler triggers #861

hlayisanimazuze opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request ready for testing

Comments

@hlayisanimazuze
Copy link
Collaborator

hlayisanimazuze commented Jan 11, 2024

Expose functions that make possible for us to handle success and failure from the execute script function. This could be useful in cases where would like to add additional conditions to the events such as rendering a dialog based on if a table has data,
e.g.```

if (globalState.dataTableContext.tableData.length) {
  handleSuccess()
} else {
 handleFail()
}
 or if you want to handle success after certain amount of time has elapsed e.g. if you have a `setTimeOut` function

Example: https://function-adminportal-test.shesha.dev/dynamic/Boxfusion.SheshaFunctionalTests.Common/Books-Table
1. First step you want to execute a script and when the script is done executing
2. Handle success and navigate to the details view of the record
@hlayisanimazuze hlayisanimazuze added the enhancement New feature or request label Jan 11, 2024
@hlayisanimazuze hlayisanimazuze added this to the Backlog milestone Jan 11, 2024
@hlayisanimazuze hlayisanimazuze changed the title Execute script await process Execute script event handler triggers Jan 23, 2024
@hlayisanimazuze
Copy link
Collaborator Author

This item was not implemented as the current changes adequately address the requirements for scenario 1. For scenario 2, a separate card has been created to fulfill the requirement: #1068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready for testing
Projects
None yet
Development

No branches or pull requests

2 participants