Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Same found set in 2 windows

Featured Replies

I want to use a pop up window to enter into find mode and then perform a find but view it in the original window. Is this possible.

Thanks

Craig

Hi Craig,

Yes, it's possible. There are a couple of options.

You coudl script the find so that it captures the criteria, transfers them to the original windnow and performs the find there.

Or alternatively, you coudl perform the find in the pop-up window, then use the Go to Related Record[ ] command to transfer the found set between the two windows. If the layouts in the two windows are based on the same Table Occurrence, then there is no relationship between them as such, and the GTRR step will instead transfer the found set across to the target window and layout. wink.gif

  • Author

Thanks for that, they are based on the same table occurrence. So I will try the Go to Related Record

Craig

  • 1 month later...

To Cobaltsky

not sure if Craig was able to get your advice on GTRR mathod to work - but I couldn't! Tried various combos but just couldn't make it work.

I have pop-up window from one table - want to get found set in PUW to end up in original window (same table).

Script

New window (size etc)

enter find(pause)

perform find

close window

GTRR (from Table 'xx' to layout 'yy' in Table 'xx')

Obviously I'm missing something basic - and critical!

Any help gratefully recieved

thanks

Michael

You're closing the window before the GTRR step, so it has no effect on the newly found set.

Queue wrote:

You're closing the window before the GTRR step, so it has no effect on the newly found set.

What he said... wink.gif

thanks for the reply

Sorry - that was a typo - the GTRR scripts step was BEFORE the close window..... but it still doesn't work.

Even if the 'close window' step comes after the GTRR, it will still nullify the preceding process, because the results of the GTRR (if any) will be in the window that is being closed and will be lost with its closure.

If you want the results of the procedure to appear in the original window, you will need to capture the results (eg keys of the found records) and then go back to the original window and perform the GTRR there. wink.gif

Here's the actual script: (The table is 'Events' and all layouts are within this table)

New Window (name "search window" height etc...)

Go to Layout "Search" (from table 'Events")

Enter Find mode (pause)

Perform Find ()

Go To Related Record (from table "Events"; Using layout 'List events' (Events))

((show only related records) not selected)

Close Window (current window)

Go to layout ("List Events' (Events))

Exit script

What am I doing wrong?

thanks again

Michael

Ah.... I wrote all that before getting your last reply.

What you say sounds logical - I'll give it a go. Wouls you have a suggestion as to the simplest method of capturing the records?

I thought my script was too breathtakingly simple to be true! B)-)

thanks again

Michael

Well, there are a few options.

One of them would be to capture the size, location and name of the existing window before bringing up the new window (eg pass them to the script as a script parameter, or store them in global fields etc), then, target your GTRR at a new window, specifying the same size and location as the original window, then finally, close the original (as well as the find window).

That way there would be no need to worry about capturing the found set to 'transfer' it back to the original window. cool.gif

One of them would be to capture the size, location and name of the existing window before bringing up the new window (eg pass them to the script as a script parameter, or store them in global fields etc), then, target your GTRR at a new window, specifying the same size and location as the original window, then finally, close the original (as well as the find window).
This is similar to what I

To CobaltSky and The Otter

thanks for all that - I like the lateral approach of not using the GTRR at all - but I'll experiment with both. That was a great help.

thanks again

cheers

Michael

To CobaltSky

I did try your method and it works just fine - but, after I found I couldn't find how to pass the window details as a script parameter (groan), I made it work by creating a new window and re-naming the original, and then all the rest of your suggestion - then re-naming the search window back to the original name. Works fine with almost no flicker.

So I'm a bit puzzled at the need to pass window details as scriptpara - let alone how to do it! :-)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.