simoncpage Posted March 5, 2004 Posted March 5, 2004 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
stanley Posted March 5, 2004 Posted March 5, 2004 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
simoncpage Posted March 5, 2004 Author Posted March 5, 2004 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
CobaltSky Posted March 5, 2004 Posted March 5, 2004 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.
stanley Posted March 5, 2004 Posted March 5, 2004 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
simoncpage Posted March 5, 2004 Author Posted March 5, 2004 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
CobaltSky Posted March 6, 2004 Posted March 6, 2004 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.
Recommended Posts
This topic is 7637 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now