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.

listing all data in related DB in the parent

Featured Replies

hi,

I'm working on a solution that holds a little data in the MAIN DB, and uses line_item db's to store other info. It's all working ok. The only problem i have now (and didn't figure out how to work around it) is that I want to create a list of all item in a related DB.

Example: one line_items holds 'raw materials'. I want the users to be able to print a complete list of available items stored in the line_item DB, without actualy 'opening' it. In other words, the way this solution is set-up is that only the main DB (with loads of portals) will be in front, all line_item DB's are hidden.

The easy way would be to create a scriptset that will generate the list in the respective line_item DB, but that would break up concistency in the workflow since another file will be shown. It would also mean I have to create new form lay-outs...

Any suggestions on this?

TIA

JP

You can script the printing from the related file without the user ever seeing it.

In your main file you have a script:

Perform Script [external, RelatedFile:PrintScript]

Refresh Window

In your related file you have the script that does the actual printing:

Page Setup [restore no dialog]

Print

The trick is to make sure that you end up back in the parent file. By having the main script end with a refresh window step, it ensures that you finish up in the original file, and the user never sees the line items file.

  • Author

Thanks smile.gif

One more question about this:

If I set the pagesetup step in the parent script before it runs the related script, will it use that pagesetup?

IAW, can I still make 'page setup' available to the users without doing it in the external script, so I can use [resore no dialog] in the external script?

Thanks alot!

JP

The page setup always refers to the script from which it is run, so the innermost sub-script will always use its own page setup. So, you can remove the page setup from the sub-script and use one in the calling script, or just do the page setup once in the sub-script. Either way, the user still doesn't see the line items file.

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.