31
Views
3
Comments
Solved
Link direct to pop up screen of specific record for edit

I have two tables , Job maintenance and Job Task (1 to many relationship)

There are 2 forms in the screen.

After the creation of job maintenance form, user can add more related job tasks (another form which is pop up screen when click "Add new Task"

My question is if I add a "link" to the "Phase" here, how can I direct to the related pop-up screen for edit?? Kindly refer to the interface "JobTestDetail2"  in the oml attachment for advice. Thank you so much

Test_20230904.oml
Solution

Hello,

You can achieve this by implementing the following changes to your module:

  1. Add a link to your UI and point it to a new client action:
  2. In that client action, set the variable you're using in your form and flip the boolean controlling the popup:

Thanks a lot!

Hi Winnie,

My typical solution for such usecases is: 

1. create a local variable of the pop-up form data type; 

2. pass there the clicked row's data before opening the pop-up (or empty it for a new record);

3. use the local variable as a form source. 

Please let me know if you need more details or a sample.

Solution

Hello,

You can achieve this by implementing the following changes to your module:

  1. Add a link to your UI and point it to a new client action:
  2. In that client action, set the variable you're using in your form and flip the boolean controlling the popup:

Thanks a lot!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.