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.

Automatically populating Estimate Lines with a relevant set of items from GoodsAndServices

Featured Replies

Hello,

I'm trying to find a way to do the following:

I wish to generate an Estimate based on a type of Client ( I anticipate four types of Clients)

Because the four types of Estimates based on the four types of Clients generally have a standard set of items (and pricings), I wish to find a way to create a new Estimate and have it populate automatically with items from my GoodsAndServices table.

(Also I realized it is easier to delete EstimateLines than it is to input from a lengthy popup menu.

In my GoodsAndServices table, I have the list of goods and services, each record tagged with field called "Category" which will have the value of "A"; "B"; "C"; or "D".

I am sure there is a way for me to have it prepopulate an Estimate with all the items of that set (as well as the costs, description, ID, etc)

My problem is I currently have a layout in the context of Estimates; with a portal displaying records from EstimateLines. I did it this way, as it will automatically input the EstimateIDfk with each EstimateLine record. I've been hammering away at a way to achieve this goal, but alas....

I wish to maintain this layout; but now I am thinking it is not possible to do this in this layout. -- I might have to do this in a layout that is in the context of the table EstimateLines.

Can anyone provide me some advice regarding the context I should be trying this in? And perhaps direct me what scripts I should be utilizing?

Thank you....

There are a few ways you could script this, e.g. looping through the portal. One way you might try is with an import:

1. Create your Estimate record and grab the ID and category in variables (e.g., $id, $cat)

2. Go to the product list and find for the appropriate category ($cat A, B, C, etc.)

3. Go to Estimate Lines and import from product list

4. Do a Replace in the EstimateIDfk with $id from step 1.

5. Go back to the estimate

  • Author

Thank you Fitch for the direction.

I'm going to try this today...

Very new to scripts; I think I can follow what you are saying...

Thank you again!

  • Author

Fitch,

I think I have this running smoothly, until I have to import the found set from the product list into the Estimate Line(s)

Is it best to export this found set and then import?

Is there a simpler, more direct way, without the exporting and importing?

If there is no way around the exporting/importing, would the best route be using Save Records as Excel? As this seems to be the only one with a way of exporting a found set?

Or am I wrong?

Thank you.

Is it best to export this found set and then import?

No, it's not necessary to export.

Is there a simpler, more direct way, without the exporting and importing?

As I said above, you don't need to export, so yes to that.

Is there a way to do it without using import? Sure, I can think of several.

Are those ways simpler/more direct? I would say no.

If there is no way around the exporting/importing, would the best route be using Save Records as Excel? As this seems to be the only one with a way of exporting a found set?

Kind of a moot point if you've read this far, but the command you're looking for is: Export Records.

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.