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.

Featured Replies

Hi

Something I noticed today....

I have a separate layout for printing companies and the contacts within in them (which are in a portal and hence aren't all displayed when printing normally - plus im using a 1024x768 display so a4 landscape still prints out normally quite badly)

The problem is that if someone has the record open you can't print, is there anyway to either let the user tell the person who has it that they want to access it....or any other suggestions??

Thanks

Simon

Simon:

There was just a discussion about this in the ScriptMaker thread the other day. There is a plugin called Timeout which will boot someone from a record after a bit of inactivity, so others can access the data; not sure if it'll be right for you, but have a look:

http://www.practicemaker.com/Timeout.htm

-Stanley

  • Author

That looks like quite a good addin - although I don't really want to spend money on that I would prefer to code something myself.

Any ideas?

Simon

Hi Simon,

When a record is in use, it cannot be entered or edited by another user, but it *can* be viewed, previewed and printed. It sounds as though there must be more to this than you are telling us.

If your printing procedure is failing when a record is locked, then you need to take a close look at why that might be the case - and then you'll have a better idea what to do about it. wink.gif

Huh, I don't know why I didn't notice that myself. Ray is right. You should be able to print even though someone else is on the same record. Perhaps you've got a "print" script that modifies the record somewhere during the process?

-Stanley

  • Author

No im confused now?

The code is simple no interaction:

Set error capture [on]

Allow user abort[on]

go to layout ["PrintCompany"]

oh wait!! the contact within companies one has interaction its copying and pasting for a search right.......thanks!!

Simon

The copying and pasting will be the problem.

The pasting is fine because that will be taking place in Find mode, where record locking isn't an issue. But the Copy step will fail if the record is locked because it requires that the cursor enter a field, and locked records can't be entered.

There is another way, however. I suggest that you re-structure your script to transfer the value which is to be used in Find mode into a global field, using the Set Field[ ] command, then use a further set field to tranfer the value from the global into the relevant field in Find mode.

The reason that this will work where your Copy/Paste procedure fails is because the Set Field command will 'read' values without having to enter the field to do so. Moreover global fields retain their values in find mode and will be able to be read by the Set Field[ ] command. So the sequence:

Set Field ["GlobalTempField", "YourField"]

Enter Find Mode[ ]

Set Field ["YourField", "GlobalTempField"]

- will substitute neatly for your Copy/Paste procedure, but will not fail if the record is locked. wink.gif

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.