Jody Bevan | 1 Jan 2011 04:17
Favicon

Looking for some good sample code for printing listboxes

I have been looking at the v12 upgrade manual, and the various descriptions of the commands this
documentation points to.

Playing around with this is not getting reasonable results.

Issues:

- How can I know the width of the object, so I can tell the printer to shrink to a % so all will print
- It is only printing the first few lines
- The order being printed is not what is displayed on screen

(I'm using record based listbox).

For some reason my partner access to the knowledge base is locked out.

any pointers?

==========================================================================
Developers of JonokeMed™, FaxButler™, ImageButler™, WebButler™, J-Forms™, and J-Jump™

Jody Bevan                            Jonoke Software Dev. Inc.

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
(Continue reading)

Peter Jakobsson | 1 Jan 2011 05:23

Re: Multiple triggers at the same time, in same table in V11.6+


On 30 Dec 2010, at 22:52, Tony Ringsmuth wrote:

> I'm doing a little testing in 11.6HF2 mac

Tony -

Just wondering, why do use an obsolete version when investigating  
documented behavior ?

Secondly, is this behaviour actually documented anywhere apart from  
Josh Fletcher's informal remarks ?

Best way to find out how 4D works ? - discover it yourself, exactly as  
you've done. If it doesn't contradict with the docs (which is rarely  
does) then that's the current behavour until the next dot release  
appears.

Peter

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
(Continue reading)

DevTeam | 1 Jan 2011 11:26

Re: Multiple triggers at the same time, in same table in V11.6+

Hi,

I recall having read that v11/v12 do allow simultaneous triggers for different multiple users, though I
can't find the document where I read this. This was definitely not the case in prior versions (2004,2003).
In those versions the documentation specifically stated that only one trigger could take place at one
time, even with 4D Server.

Allowing multiple triggers sounds nice. However, there is a distinct risk of deadlock and the database
must be designed to avoid this. Say user A locks a record in table 1, then tries to lock a record in table 2.
Meanwhile, user B locks the same record in table 2 and tries to move on to lock the same record in table 1 that
user A has locked. This is a classical deadlock. Care must be taken to design the triggers so this can't
happen, or at least so that they don't get stuck in endless loops. Through version 2004, it was not
necessary to worry about this with regards to other triggers running simultaneously.

--

-- 

François Tiffreau

IT Manager

ESL iLab

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
(Continue reading)

Tom Benedict | 1 Jan 2011 19:38
Favicon

Re: Batch file to launch 4D client & path file: How to make the command prompt window close?

Hi Tony,

Have you tried SET ENVIRONMENT VARIABLE("_4D_OPTION_BLOCKING_EXTERNAL_PROCESS";"False")?
HTH,
Tom Benedict
Free & Clear, Inc

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Jeremy Roussak | 2 Jan 2011 15:33
Picon

Month names

In 4d2004, I could get a full month name using Get indexed string(11;...). It doesn't work under v12. I'm
sure there must be an equivalent but I can't find it. Help, please?

Jeremy

Jeremy Roussak
jbr@...

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Reiner Kief | 2 Jan 2011 16:26
Picon

Re: Month names

Since v11, there is no way to access 4Ds own resources. You have to create your own. The best way is to use 4DPop/Xliff.
From 4D_v11_Upgrade.pdf, page 47 "Management of resources":
However, for reasons related to the evolution of the internal architecture, it is no longer possible to
access the resources of the 4D application nor those of the system directly, whether via the commands of
the “Resources” theme or using dynamic references.

Happy new year

Am 02.Jan.2011 um 15:33 schrieb Jeremy Roussak:

> In 4d2004, I could get a full month name using Get indexed string(11;...). It doesn't work under v12. I'm
sure there must be an equivalent but I can't find it. Help, please?

Reiner Kief
Software & IT-Consulting
Weinbergstrasse 45
63853 Moemlingen
Germany

www.kief-online.de

Member of the german developer network
www.die4DWerkstatt.de

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
(Continue reading)

david | 2 Jan 2011 16:34
Favicon

Re: Looking for some good sample code for printing listboxes

 Jody,

 I just worked on this last week and got it working the way I needed at 
 least.  On Monday I'll put together a sample db and email it to you.  I 
 thought it was pretty slick.

 On Fri, 31 Dec 2010 20:17:58 -0700, Jody Bevan <JODY@...> wrote:
> I have been looking at the v12 upgrade manual, and the various
> descriptions of the commands this documentation points to.
>
> Playing around with this is not getting reasonable results.
>
> Issues:
>
> - How can I know the width of the object, so I can tell the printer
> to shrink to a % so all will print
> - It is only printing the first few lines
> - The order being printed is not what is displayed on screen
>
> (I'm using record based listbox).
>
> For some reason my partner access to the knowledge base is locked 
> out.
>
> any pointers?
>

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
(Continue reading)

Jody Bevan | 2 Jan 2011 17:14
Favicon

Re: Looking for some good sample code for printing listboxes

David:

That would be awesome.

Thanks!

On 01/02/2011, at 8:34 AM, <david@...>
<david@...> wrote:

> Jody,
> 
> I just worked on this last week and got it working the way I needed at least.  On Monday I'll put together a
sample db and email it to you.  I thought it was pretty slick.

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

James Rowe | 2 Jan 2011 13:08
Gravatar

Re: Batch file to launch 4D client & path file: How to make the command prompt window close?

kb: http://kb.4d.com/search/assetid=75714

We use this and our window closes

start "" "%_4D_install%\4D.exe" "%_4D_link_path%\4D_Custom_Login.4DLINK"

-james

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Jeremy Roussak | 2 Jan 2011 19:01
Picon

Print form and footers

I'm using Print form for the first time. I can get my form to print very nicely, except for the footers.

I seem to recall reading in the past that the way to align footers at the bottom of the page was to use Print form
to spew out a load of blank lines before finally printing the footer. I could do it that way.

However, after reading about SET MARKER POSITION, it seemed to me that this would be a good way to manage it. I
thought I'd call SET MARKER POSITION(Form Break0; vPageHeight-16;*) in the form method just before
printing the footer, having previously set vPageHeight.

However, it doesn't work. The footer text appears just below the last detail line, wherever on the page that
might happen to be.

Any ideas? Have I, as so often, missed something?

Thanks.

Jeremy

Jeremy Roussak
jbr@...

**********************************************************************
4D, Inc.'s offices will be closed from December 22, 2010 to
January 4, 2011.  Have a warm and happy holiday season!
http://www.4d.com/

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
(Continue reading)


Gmane