How to set focus on screen re-display.

About This Space

A Rich Display File application that stored the focus in a hidden field and uses that field to apply focus when the screen is re-drawn.


Last updated on August 16, 2019

Public Permissions:   View   Open/Fork   Run   Comment  

This example shows how to set the focus on the screen from the client side logic when the screen needs to be redrawn.

The 2 key features are the 3 buttons labled 'click me' which have on click events to set a value to a hidden textbox and then uses pui.click() to submit the screen.

The next part happens in the onload event for the record format where it reads the value from the hidden textbox and uses that value to apply focus on the screen.

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By klaw (@klaw)

Filters:

Popular Recent

A demo of how to build and consume Web Services with and without parameters

5997

0

0

A demo of how to build Rich Displays in the Visual Designer that integrate with external CSS and JavaScript file

4638

0

0

A Hello World app with both dynamic output and input fields

5754

0

0

A Hello World app with both dynamic output and input fields

6447

0

0

An application with a sample database.

3731

0

0

A demo application that uses the sendmail npm package to send an email.

6405

1

0

This is a simple task list that stores tasks on a per user basis, and has a reset all button. Good for tasks that must be completed on a regular schedule like daily, weekly or monthly tasks.

6482

0

0

Stateless demo app, where the mobile client or the browser would control the flow of the application

4475

0

0

Static HTML Hello World App

6431

0

0

Static HTML Hello World App

3565

0

0