Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
Ahhh…. V17. I am working in v16R6.

Given a 4D Write Pro Template with a bunch of pictures that are in essence 
place holders to be filled when the template is used, how can I use WP SET 
ATTRIBUTES tp assign pictures from the database when the template is used…

WP SET ATTRIBUTES(picture1Ref;wk image;[Patient]photo1)

Maybe there is another way to assign the pictures?

I have not yet tried using the template, but I tried saving the references 
returned from WP Add picture() in the template record then using the saved 
reference to change the picture after saving and reopening the record. That did 
not work. If it doesn’t work between template loads it’s certainly not going to 
work when the template is used in a different table ([Letters]). So I think I 
need a way to create or access each picture’s reference object when the 
template is loaded.

This may be further complicated if the pro template was created with 4D Write. 
After converting the templates how do I reference the pictures? 


Thanks,

John




> On Jun 10, 2018, at 2:28 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> c.f.
> 
> http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html
> 
> a whacky alternative would be:
> 
> WP EXPORT DOCUMENT + wk web page complete and parse the XHTML (or count the 
> number of attachments)
> 
> working directly with XHTML is also quite useful to setup a preconfigured 
> document with non-default settings.
> you can then pass the XHTML to WP New.
> 
>> 2018/06/11 9:12、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> I cannot find WP Get element.
> 
> 
> 
> **
> 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-unsubscr...@lists.4d.com
> **

John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.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-unsubscr...@lists.4d.com
**

RE: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Randy Engle via 4D_Tech
Keisuke,

No problemo.

Yes, I've been comparing the settings between the two structures.
Clearly, I'm missing something.

Arrrggghhh!

Thanks.  

Randy Engle, Director
XC2 Software LLC – XC2LIVE!

I am very sorry that the statement came across as blunt.
I meant, compare the settings on structure A versus structure B (which you 
evidently have already done).

> 2018/06/11 11:15、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> Not sure what you are referring to "did you compare"?
> Compare what.



**
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-unsubscr...@lists.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-unsubscr...@lists.4d.com
**

Re: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
I am very sorry that the statement came across as blunt.
I meant, compare the settings on structure A versus structure B (which you 
evidently have already done).

> 2018/06/11 11:15、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> Not sure what you are referring to "did you compare"?
> Compare what.



**
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-unsubscr...@lists.4d.com
**

RE: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Randy Engle via 4D_Tech
Yes,

The checkbox for:

"Prevent drop of data not coming from 4D"

Is "Unchecked"

Randy Engle, Director
XC2 Software LLC – XC2LIVE!

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via 
4D_Tech
Sent: Sunday, June 10, 2018 7:14 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako 
Subject: Fwd: Moving Methods/Forms between structures seems disabled

or, at an even more basic level, is external drag and drop allowed in 
compatibility?

http://doc.4d.com/4Dv16R6/4D/16-R6/Compatibility-page.300-3561530.en.html



**
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-unsubscr...@lists.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-unsubscr...@lists.4d.com
**

Fwd: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
or, at an even more basic level, is external drag and drop allowed in 
compatibility?

http://doc.4d.com/4Dv16R6/4D/16-R6/Compatibility-page.300-3561530.en.html



**
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-unsubscr...@lists.4d.com
**

RE: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Randy Engle via 4D_Tech
Hi Keisuke,

I've been over this page in the docs 10 times, looking for the secret item.

Not sure what you are referring to "did you compare"?

Compare what.

The moving settings look like they are identical in both structures.
But, clearly, I'm missing something.

Thanks

Randy Engle, Director
XC2 Software LLC – XC2LIVE!

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via 
4D_Tech
Sent: Sunday, June 10, 2018 7:04 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako 
Subject: Re: Moving Methods/Forms between structures seems disabled

did you compare

http://doc.4d.com/4Dv16R6/4D/16-R6/Moving-page.300-3561535.en.html

> 2018/06/11 10:18、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I've looked the structure settings but can't find anything that prevents 
> "moving"
> I'm sure it just a checkbox somewhere




**
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-unsubscr...@lists.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-unsubscr...@lists.4d.com
**

RE: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Randy Engle via 4D_Tech
Julio,

Good idea... but that didn't work either.

Thanks for the suggestion.

Randy Engle, Director
XC2 Software LLC – XC2LIVE!

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Julio Carneiro via 
4D_Tech
Sent: Sunday, June 10, 2018 7:01 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Julio Carneiro 
Subject: Re: Moving Methods/Forms between structures seems disabled

For me moving between structures only works if the target structure’s explorer 
is in Home.
So, maybe in your case “B” explorer is not in the Home page, and that prevents 
moving into it…

just an idea
hth
julio

> On Jun 10, 2018, at 10:18 PM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I must be losing my marbles.
> 
> I have two structures, almost identical.
> 
> I can move objects (methods, forms) from structure A to structure B.
> But moving from B to A does not work
> (I get a circle with a line through it)
> 
> This is v16r6
> Windows
> 
> I've looked the structure settings but can't find anything that prevents 
> "moving"
> 
> I'm sure it just a checkbox somewhere
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 

--
Julio Carneiro
jjfo...@gmail.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-unsubscr...@lists.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-unsubscr...@lists.4d.com
**

Re: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Keisuke Miyako via 4D_Tech
did you compare

http://doc.4d.com/4Dv16R6/4D/16-R6/Moving-page.300-3561535.en.html

> 2018/06/11 10:18、Randy Engle via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I've looked the structure settings but can't find anything that prevents 
> "moving"
> I'm sure it just a checkbox somewhere




**
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-unsubscr...@lists.4d.com
**

Re: Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Julio Carneiro via 4D_Tech
For me moving between structures only works if the target structure’s explorer 
is in Home.
So, maybe in your case “B” explorer is not in the Home page, and that prevents 
moving into it…

just an idea
hth
julio

> On Jun 10, 2018, at 10:18 PM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I must be losing my marbles.
> 
> I have two structures, almost identical.
> 
> I can move objects (methods, forms) from structure A to structure B.
> But moving from B to A does not work
> (I get a circle with a line through it)
> 
> This is v16r6
> Windows
> 
> I've looked the structure settings but can't find anything that prevents 
> "moving"
> 
> I'm sure it just a checkbox somewhere
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> 

--
Julio Carneiro
jjfo...@gmail.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-unsubscr...@lists.4d.com
**

Moving Methods/Forms between structures seems disabled

2018-06-10 Thread Randy Engle via 4D_Tech
I must be losing my marbles.

I have two structures, almost identical.

I can move objects (methods, forms) from structure A to structure B.
But moving from B to A does not work
(I get a circle with a line through it)

This is v16r6
Windows

I've looked the structure settings but can't find anything that prevents 
"moving"

I'm sure it just a checkbox somewhere

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


**
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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
c.f.

http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html

a whacky alternative would be:

WP EXPORT DOCUMENT + wk web page complete and parse the XHTML (or count the 
number of attachments)

working directly with XHTML is also quite useful to setup a preconfigured 
document with non-default settings.
you can then pass the XHTML to WP New.

> 2018/06/11 9:12、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
> I cannot find WP Get element.



**
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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech


> On Jun 10, 2018, at 12:53 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> WP Get element <--- returns a collection

I cannot find WP Get element. 

Thanks.

John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.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-unsubscr...@lists.4d.com
**

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
if you want to bulk-update all pictures in a range, use

WP Create picture range (was WP Get pictures) <--- returns a class of object 
suitable for GET/SET ATTRIBUTES

if you want to access each pictures in a range or document, use

WP Get element <--- returns a collection



**
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-unsubscr...@lists.4d.com
**

Re: ​Save Record($vptr_Table->)

2018-06-10 Thread steve simpson via 4D_Tech
On Sun, Jun 10, 2018 at 5:01 PM,
​
​
Jody Bevan  wrote:

The method that this err occurs in is used hundreds of time throughout the
> system. All record saves go through it.
> ​[snip]
>

​Jody, do you happen to have a "mandatory" field in this table that
normally gets filled in but in this one instance is not being populated?

-
Steve Simpson
Cimarron Software​
**
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-unsubscr...@lists.4d.com
**

Re: Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech


> On Jun 10, 2018, at 12:51 PM, JOHN BAUGHMAN via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> There is a way to do set ordination programmatically…

Meant to say orientation not ordination… :-)

John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.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-unsubscr...@lists.4d.com
**

Re: Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech


> On Jun 10, 2018, at 10:18 AM, JOHN BAUGHMAN  wrote:
> 
> 2. Have 2 icons in my tool bar, like in the print dialog, for Portrait and 
> Landscape and be able to use them as one can from the contextual menu.
> 

There is a way to do set ordination programmatically…

INVOKE ACTION("pageOrientation?value=landscape";WP_WriteProArea)

Does anyone else find finding how to do something in 4D Write Pro a painful 
proposition. Everything is spread out…

WP commands
ST Commands
OB Commands
Standard Actions/4D Write Pro Standard Actions/Invoke Action
etc., etc...

I would love a single place to go where I can find what is needed without 
having to guess what section of the LRM to go to?

John



John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Jody Bevan via 4D_Tech
Sujit:

I do not think it is a table number issue in our code. We built the local 
pointer early into the new process by code similar to 
$vptr_Table:=->[StandardOrder]

In one last try, before giving up on the few hours of code I wrote and go to my 
backup from last night, I compacted the structure. MSC said there was no need 
to do that. Fortunately their compacting does more and fixes some things that 
they do not detect otherwise.

Once I relaunched the application with the compacted structure all was fine 
again - WHEW!

Thanks all that rattled your brains out on this one for me.

Have a great day / evening.



Jody Bevan
Developer
Argus Productions Inc. 




> On Jun 10, 2018, at 2:37 PM, Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> You have an invalid table number as the error message says.
> 
> Perhaps I don’t fully understand the issue.
> 
> 

**
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-unsubscr...@lists.4d.com
**

WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
I need to determine programmatically how many pictures a user has placed in a 
page’s background. In 4D Write I used WR Count(myWRArea;13).

Can't find a way in 4D Write Pro to count the number of pictures in the page, 
in background or otherwise.

Thanks,

John




John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Sujit Shah via 4D_Tech
You have an invalid table number as the error message says.

Perhaps I don’t fully understand the issue.



On Mon, 11 Jun 2018 at 6:22 am, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Pat:
>
> Thanks for the pointer to this. We have never used the unique field
> checkbox in any of our projects. I looked through the table, and as I hoped
> - no field has the unique attribute set on.
>
> Thanks
>
> Jody
>
>
> > On Jun 10, 2018, at 2:10 PM, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > If there are any Unique fields in that table (I'm sure there are!) check
> > that you aren't trying to save a duplicate value in one of them.
> >
> > PB
> >
> > On 10 June 2018 at 21:02, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
> > wrote:
> >
> >> Hi Doug:
> >>
> >> I wrote this code in the method with the problem line:
> >>
> >> If (Table name($vptr_Table)="StandardOrder")
> >>SAVE RECORD([StandardOrder])
> >> Else
> >>SAVE RECORD($vptr_Table->)
> >> End if
> >>
> >> The line traces and knows to use the correct branch. Therefore it does
> not
> >> seem to be the pointer. It is like 4D is having problems with the
> structure
> >> - guessing.
> >>
> >> We have not used any triggers in this project thus far. I did check and
> >> nothing checked off for a trigger, and no code in the trigger.
> >>
> >> The same err comes up with the Save Record command with the table
> directly
> >> identified '-1'
> >>
> >> Jody.
> >>> On Jun 10, 2018, at 1:54 PM, Douglas von Roeder 
> >> wrote:
> >>>
> >>> Jody:
> >>>
> >>> Try using the actual table name. What’s in//disable the trigger.
> >>>
> >>> On Sun, Jun 10, 2018 at 12:50 PM Jody Bevan via 4D_Tech <
> >> 4d_tech@lists.4d.com > wrote:
> >>> The method that this err occurs in is used hundreds of time throughout
> >> the system. All record saves go through it.
> >>>
> >>> I have a record I used Add Record which opened up our ‘Input’ form.
> >> Within the Form Method On Load I update information in the record, and
> from
> >> the User Interface I update information in the record. I then call our
> >> STD_Save method.
> >>>
> >>> In the Debugger window I can see the Records in selection for the table
> >> = 0. I can also see that there is the record that I am currently
> modifying
> >> that I got there with the Add Record, that I am trying to save.
> >>>
> >>> I pass in a pointer to the table I am working in, to our STD_Save
> >> method. As I follow it through the pointer dereferences correctly. This
> >> permits us to do some house keeping in the record. All is good until the
> >> line indicated in the Subject line is executed.
> >>>
> >>> Just before that line is executed $vptr_Table-> dereferences to the
> >> correct table.
> >>>
> >>> When this line runs the following Err message comes up:
> >>>
> >>> 4D Engine#: -1 Invalid table number requested by a Plug-In.
> >>>
> >>> I have run MSC and no errs are reported. All is good.
> >>>
> >>> I have retyped the line several times. I have copied the method,
> deleted
> >> it, and created it again. No luck.
> >>>
> >>> Obviously this method is running successfully for saving record for
> >> other tables as it will be run many times in just getting to where I am
> in
> >> our application.
> >>>
> >>> Ideas?
> >>>
> >>> Thanks.
>
> **
> 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-unsubscr...@lists.4d.com
> **

-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Jody Bevan via 4D_Tech
Pat:

Thanks for the pointer to this. We have never used the unique field checkbox in 
any of our projects. I looked through the table, and as I hoped - no field has 
the unique attribute set on.

Thanks

Jody


> On Jun 10, 2018, at 2:10 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> If there are any Unique fields in that table (I'm sure there are!) check
> that you aren't trying to save a duplicate value in one of them.
> 
> PB
> 
> On 10 June 2018 at 21:02, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> Hi Doug:
>> 
>> I wrote this code in the method with the problem line:
>> 
>> If (Table name($vptr_Table)="StandardOrder")
>>SAVE RECORD([StandardOrder])
>> Else
>>SAVE RECORD($vptr_Table->)
>> End if
>> 
>> The line traces and knows to use the correct branch. Therefore it does not
>> seem to be the pointer. It is like 4D is having problems with the structure
>> - guessing.
>> 
>> We have not used any triggers in this project thus far. I did check and
>> nothing checked off for a trigger, and no code in the trigger.
>> 
>> The same err comes up with the Save Record command with the table directly
>> identified '-1'
>> 
>> Jody.
>>> On Jun 10, 2018, at 1:54 PM, Douglas von Roeder 
>> wrote:
>>> 
>>> Jody:
>>> 
>>> Try using the actual table name. What’s in//disable the trigger.
>>> 
>>> On Sun, Jun 10, 2018 at 12:50 PM Jody Bevan via 4D_Tech <
>> 4d_tech@lists.4d.com > wrote:
>>> The method that this err occurs in is used hundreds of time throughout
>> the system. All record saves go through it.
>>> 
>>> I have a record I used Add Record which opened up our ‘Input’ form.
>> Within the Form Method On Load I update information in the record, and from
>> the User Interface I update information in the record. I then call our
>> STD_Save method.
>>> 
>>> In the Debugger window I can see the Records in selection for the table
>> = 0. I can also see that there is the record that I am currently modifying
>> that I got there with the Add Record, that I am trying to save.
>>> 
>>> I pass in a pointer to the table I am working in, to our STD_Save
>> method. As I follow it through the pointer dereferences correctly. This
>> permits us to do some house keeping in the record. All is good until the
>> line indicated in the Subject line is executed.
>>> 
>>> Just before that line is executed $vptr_Table-> dereferences to the
>> correct table.
>>> 
>>> When this line runs the following Err message comes up:
>>> 
>>> 4D Engine#: -1 Invalid table number requested by a Plug-In.
>>> 
>>> I have run MSC and no errs are reported. All is good.
>>> 
>>> I have retyped the line several times. I have copied the method, deleted
>> it, and created it again. No luck.
>>> 
>>> Obviously this method is running successfully for saving record for
>> other tables as it will be run many times in just getting to where I am in
>> our application.
>>> 
>>> Ideas?
>>> 
>>> Thanks.

**
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-unsubscr...@lists.4d.com
**

Re: Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
Thanks Keisuke. Your suggestion is a good one, but I would prefer to be able to 
do the following.

1. Retain the 4D Write Pro contextual menu, but have a way to detect 
when the user makes in the orientation of the write pro area from the menu. 
   
The contextual menu provides many options not included in my 
toolbar and I like that it is being managed by 4D. If future versions 
unexpectedly break something in my toolbar the end users will have an immediate 
workaround with the contextual menu. I guess I am looking at my tool bar as a 
supplement to the built in 4D Write contextual menu.

2. Have 2 icons in my tool bar, like in the print dialog, for Portrait 
and Landscape and be able to use them as one can from the contextual menu.

Neither of these are possible in the current version of 4D Write Pro. Perhaps I 
should rewrite and post them as feature requests in the 4D forum.

For now I am retaining the contextual menu and I made the 4D Write Pro 
area wide enough for Landscape. The user's only option is to use the contextual 
menu and visually everything is ok switching between the 2 orientations.

John


John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com

> On Jun 9, 2018, at 10:09 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> The way I deal with this problem is to prepare a plain document with the 
> desired orientation, paper size, etc. and load it from disk as needed.
> Also, I disable the context menu be default and display a dynamic menu that 
> contains only authorised actions by code.
> 
> You can call OBJECT SET CONTEXT MENU during On Click which will activate the 
> standard menu,
> so it is possible to switch the type of menu depending on modifiers, for 
> example.
> 
>> 2018/06/10 15:54、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> 
>> After reading some earlier posts on this subject I believe it is not 
>> possible to set the orientation of a 4D Write Pro area on a form. If it is 
>> possible, could someone please show me how. I do not see a standard action 
>> for this and anything else remotely related to orientation is strictly for 
>> printing.
> 
> 
> 
> **
> 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-unsubscr...@lists.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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Pat Bensky via 4D_Tech
If there are any Unique fields in that table (I'm sure there are!) check
that you aren't trying to save a duplicate value in one of them.

PB

On 10 June 2018 at 21:02, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi Doug:
>
> I wrote this code in the method with the problem line:
>
> If (Table name($vptr_Table)="StandardOrder")
> SAVE RECORD([StandardOrder])
> Else
> SAVE RECORD($vptr_Table->)
> End if
>
> The line traces and knows to use the correct branch. Therefore it does not
> seem to be the pointer. It is like 4D is having problems with the structure
> - guessing.
>
> We have not used any triggers in this project thus far. I did check and
> nothing checked off for a trigger, and no code in the trigger.
>
> The same err comes up with the Save Record command with the table directly
> identified '-1'
>
> Jody.
> > On Jun 10, 2018, at 1:54 PM, Douglas von Roeder 
> wrote:
> >
> > Jody:
> >
> > Try using the actual table name. What’s in//disable the trigger.
> >
> > On Sun, Jun 10, 2018 at 12:50 PM Jody Bevan via 4D_Tech <
> 4d_tech@lists.4d.com > wrote:
> > The method that this err occurs in is used hundreds of time throughout
> the system. All record saves go through it.
> >
> > I have a record I used Add Record which opened up our ‘Input’ form.
> Within the Form Method On Load I update information in the record, and from
> the User Interface I update information in the record. I then call our
> STD_Save method.
> >
> > In the Debugger window I can see the Records in selection for the table
> = 0. I can also see that there is the record that I am currently modifying
> that I got there with the Add Record, that I am trying to save.
> >
> > I pass in a pointer to the table I am working in, to our STD_Save
> method. As I follow it through the pointer dereferences correctly. This
> permits us to do some house keeping in the record. All is good until the
> line indicated in the Subject line is executed.
> >
> > Just before that line is executed $vptr_Table-> dereferences to the
> correct table.
> >
> > When this line runs the following Err message comes up:
> >
> > 4D Engine#: -1 Invalid table number requested by a Plug-In.
> >
> > I have run MSC and no errs are reported. All is good.
> >
> > I have retyped the line several times. I have copied the method, deleted
> it, and created it again. No luck.
> >
> > Obviously this method is running successfully for saving record for
> other tables as it will be run many times in just getting to where I am in
> our application.
> >
> > Ideas?
> >
> > Thanks.
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html 
> > Archive:  http://lists.4d.com/archives.html <
> http://lists.4d.com/archives.html>
> > Options: https://lists.4d.com/mailman/options/4d_tech <
> https://lists.4d.com/mailman/options/4d_tech>
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com  4d_tech-unsubscr...@lists.4d.com>
> > **
> > --
> > --
> > Douglas von Roeder
> > 949-336-2902
>
> **
> 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-unsubscr...@lists.4d.com
> **
>



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Jody Bevan via 4D_Tech
Hi Doug:

I wrote this code in the method with the problem line:

If (Table name($vptr_Table)="StandardOrder")
SAVE RECORD([StandardOrder])
Else 
SAVE RECORD($vptr_Table->)
End if 

The line traces and knows to use the correct branch. Therefore it does not seem 
to be the pointer. It is like 4D is having problems with the structure - 
guessing.

We have not used any triggers in this project thus far. I did check and nothing 
checked off for a trigger, and no code in the trigger.

The same err comes up with the Save Record command with the table directly 
identified '-1'

Jody.
> On Jun 10, 2018, at 1:54 PM, Douglas von Roeder  wrote:
> 
> Jody:
> 
> Try using the actual table name. What’s in//disable the trigger. 
> 
> On Sun, Jun 10, 2018 at 12:50 PM Jody Bevan via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> The method that this err occurs in is used hundreds of time throughout the 
> system. All record saves go through it.
> 
> I have a record I used Add Record which opened up our ‘Input’ form. Within 
> the Form Method On Load I update information in the record, and from the User 
> Interface I update information in the record. I then call our STD_Save method.
> 
> In the Debugger window I can see the Records in selection for the table = 0. 
> I can also see that there is the record that I am currently modifying that I 
> got there with the Add Record, that I am trying to save.
> 
> I pass in a pointer to the table I am working in, to our STD_Save method. As 
> I follow it through the pointer dereferences correctly. This permits us to do 
> some house keeping in the record. All is good until the line indicated in the 
> Subject line is executed.
> 
> Just before that line is executed $vptr_Table-> dereferences to the correct 
> table.
> 
> When this line runs the following Err message comes up:
> 
> 4D Engine#: -1 Invalid table number requested by a Plug-In.
> 
> I have run MSC and no errs are reported. All is good.
> 
> I have retyped the line several times. I have copied the method, deleted it, 
> and created it again. No luck.
> 
> Obviously this method is running successfully for saving record for other 
> tables as it will be run many times in just getting to where I am in our 
> application.
> 
> Ideas?
> 
> Thanks.
> **
> 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-unsubscr...@lists.4d.com 
> 
> **
> -- 
> --
> Douglas von Roeder
> 949-336-2902

**
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-unsubscr...@lists.4d.com
**

Re: Save Record($vptr_Table->)

2018-06-10 Thread Douglas von Roeder via 4D_Tech
Jody:

Try using the actual table name. What’s in//disable the trigger.

On Sun, Jun 10, 2018 at 12:50 PM Jody Bevan via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The method that this err occurs in is used hundreds of time throughout the
> system. All record saves go through it.
>
> I have a record I used Add Record which opened up our ‘Input’ form. Within
> the Form Method On Load I update information in the record, and from the
> User Interface I update information in the record. I then call our STD_Save
> method.
>
> In the Debugger window I can see the Records in selection for the table =
> 0. I can also see that there is the record that I am currently modifying
> that I got there with the Add Record, that I am trying to save.
>
> I pass in a pointer to the table I am working in, to our STD_Save method.
> As I follow it through the pointer dereferences correctly. This permits us
> to do some house keeping in the record. All is good until the line
> indicated in the Subject line is executed.
>
> Just before that line is executed $vptr_Table-> dereferences to the
> correct table.
>
> When this line runs the following Err message comes up:
>
> 4D Engine#: -1 Invalid table number requested by a Plug-In.
>
> I have run MSC and no errs are reported. All is good.
>
> I have retyped the line several times. I have copied the method, deleted
> it, and created it again. No luck.
>
> Obviously this method is running successfully for saving record for other
> tables as it will be run many times in just getting to where I am in our
> application.
>
> Ideas?
>
> Thanks.
> **
> 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-unsubscr...@lists.4d.com
> **

-- 
--
Douglas von Roeder
949-336-2902
**
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-unsubscr...@lists.4d.com
**

Save Record($vptr_Table->)

2018-06-10 Thread Jody Bevan via 4D_Tech
The method that this err occurs in is used hundreds of time throughout the 
system. All record saves go through it.

I have a record I used Add Record which opened up our ‘Input’ form. Within the 
Form Method On Load I update information in the record, and from the User 
Interface I update information in the record. I then call our STD_Save method.

In the Debugger window I can see the Records in selection for the table = 0. I 
can also see that there is the record that I am currently modifying that I got 
there with the Add Record, that I am trying to save.

I pass in a pointer to the table I am working in, to our STD_Save method. As I 
follow it through the pointer dereferences correctly. This permits us to do 
some house keeping in the record. All is good until the line indicated in the 
Subject line is executed.

Just before that line is executed $vptr_Table-> dereferences to the correct 
table.

When this line runs the following Err message comes up:

4D Engine#: -1 Invalid table number requested by a Plug-In.

I have run MSC and no errs are reported. All is good.

I have retyped the line several times. I have copied the method, deleted it, 
and created it again. No luck.

Obviously this method is running successfully for saving record for other 
tables as it will be run many times in just getting to where I am in our 
application.

Ideas?

Thanks.
**
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-unsubscr...@lists.4d.com
**

Re: Tab Control Issue

2018-06-10 Thread Kenneth Geiger via 4D_Tech
Hi All,

Issue resolved. Code was correct and was in the correct places. I had never 
defined the variable (array) in the control’s property list! :-(
Sorry I couldn’t see the forest for the trees!

Ken Geiger

> On Jun 8, 2018, at 10:36 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> you have what appears to be the right code, but maybe not in the right 
> place(s)
> 
> In the form method:
> 
> Case of
> :(form event = on load)
>   // populate the tab control
>  ARRAY TEXT(arrPages;7)
>  LIST TO ARRAY(“Tabs”;arrPages)
> end case
> 
> Tab control method:
> case of
> :(form event = on clicked)
>  goto page(arrpages)
> end case
> 
> alternatively, I believe that there is a tab control property which will 
> allow you to have the tab control automatically goto the right page.
> 
> I do not know what your form looks like, but if you are displaying a listbox 
> on each page of the form
> it is faster, and creates less over head to build the listbox dynamically (on 
> the fly).
> 
>> Hi All,
>> 
>> 4D v16.2, Windows
>> 
>> I’ve got a Tab Control located on Page 0 of an Input Form. I setup 
>> the Object Method exactly as per the docs:
>> 
>> ARRAY TEXT(arrPages;7)
>> 
>> Case of
>>  :  (Form event=On Load)
>>LIST TO ARRAY(“Tabs”;arrPages)
>>  :  (Form event=On Clicked)
>>FORM GOTO PAGE(arrPages)
>>  :  (Form event=On Unload)
>>CLEAR VARIABLE(arrPages)
>> End case
>> 
>> Here’s the issue:
>> The “Tabs” List has seven items - all seven tabs display properly.
>> When I click a tab, it is obvious from the Control’s reaction that 
>> the clicked-tab now has focus.
>> However, the elements on the page selected do not appear!?!?!?
>> It appears that no matter what tab is clicked, Page 0 is the target.
>> 
>> As a test, i put  and  buttons on Page 0 of 
>> the form. When using these buttons, the elements on each page are 
>> displayed, as expected.
>> 
>> I’ve been beating on this for a while and nothing is making sense. 
>> Any help or suggestions would be MOST APPRECIATED.
>> 
>> Ken Geiger
>> 
>> 
>> **
>> 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-unsubscr...@lists.4d.com
>> **
> 
> Hell is other people 
> Jean-Paul Sartre

**
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-unsubscr...@lists.4d.com
**

Re: Date entry

2018-06-10 Thread Jody Bevan via 4D_Tech
Bob:

Nasty date formats. About 15 years ago we created our own tool for the date 
entry, and display in 4D. The dates are always stored in date fields, but we 
let the user define the way the dates get displayed. This way it does not 
matter what the computer’s region or date settings are. The format set in the 
application controls the display of the date. It also resulted in some great 
tools for quick entry of dates. Still loving that way of doing thing in v16.

Jody


> On Jun 9, 2018, at 5:49 PM, Robert McKeever via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 4D V15.4, Mac OS 10.13.4
> 
> A site that uses 4D Server. Mostly mini’s as clients. Has been working fine 
> for years. Then growth, so someone brought in some PC’s. Then they scrounged 
> around and now all minis. But, since we are in Canada, sometimes when the OS 
> is loaded anew, this select Canadian English keyboard instead of US. So, date 
> entry gets set to -MM-DD instead of MM-DD-.
> 
> Dates display fine, regardless of format. But, on a couple of machines, you 
> can not enter dates. I take my record, place the cursor in the field, and 
> type - it moves the cursor along the character string, but nothing changes. 
> So, they just go to another machine that ‘works’ and does the entry there. 
> Started a couple of weeks ago.
> 
> So, why, and how to fix it?
> 
> Changing the date format in the system preferences changes the way it is 
> displayed, but still no entry.
> 
> _
> Bob McKeever  http://www.mswl.com 
> McKeever's Software Wizardry
> Port Coquitlam, B.C.
> bobmckee...@mac.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-unsubscr...@lists.4d.com
**

RE: 4D won't launch - Windows 10 - SOLVED

2018-06-10 Thread David Rose via 4D_Tech
Oddly, the problem was due to a networking issue on another computer on the 
LAN. 4D on my computer could detect that the other computer existed, but 
couldn't access any 4D resources on it.

-Original Message-
From: David Rose [mailto:drose...@gmail.com] 
Sent: Saturday, June 09, 2018 10:51 AM
To: '4d_tech@lists.4d.com' <4d_tech@lists.4d.com>
Subject: 4D won't launch - Windows 10

I have been using 4D v12, 15, 16 on my Windows 10 computer for years, no 
problems until today. When I try to launch any of these programs (4D Developer 
Standard), the 4D window opens with the Help menu visible, the spinning cursor 
appears, but the programs just hang. I have made no changes to my computer in 
the last 48 hours, and I don't believe that Windows has done a system update. 
All other programs on this computer launch with no problems. Here's what I have 
tried, with no success:
* I trashed the AppData/4D folder
* I uninstalled my virus protection software
* I turned off Windows Firewall
* I moved the Licenses folder to the desktop (just to see if I could launch any 
of the programs in Demo mode.)
* I checked the Windows DEP setting and confirmed that it is set to apply only 
to Windows essential programs and services.
* I rebooted the computer
* I downloaded and installed a fresh version of one of the 4D programs - it 
won't launch.

I have lots of RAM and hard drive space.

Any other ideas anyone?
David
 


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

**
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-unsubscr...@lists.4d.com
**

Re: Losing memory on 4D web application

2018-06-10 Thread Jody Bevan via 4D_Tech
Aparajita:

We loved ObjectTools at Jonoke for well over a decade. We could not have done 
what we did without it. It was fantastic. Thanks for ObjectTools over all those 
years. We never had a memory leak from it while we used it. It is great having 
plug-in developers creating tools for us, while 4D concentrates its development 
efforts on other things. As developers we win.

Yes, we now use 4D Objects. Adam wrote our own dot notation tool. Yes, we will 
likely discard that to the use of 4D’s in the next year, but again it is 
getting the job done, while 4D was getting other things done in 4D.

Jody

> On Jun 9, 2018, at 12:56 PM, Aparajita Fishman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
>> Are you using ObjectTools? We have a similar setup and we were leaking 
>> mysteriously.  I did a bunch of research and I landed on that ObjectTools 
>> was the issue.
>> I switched everything away to C_OBJECTS (no other changes) and the memory 
>> issues went away.
> 
> For the record, ObjectTools itself might be not leaking, rather there might 
> have been places in your code where you didn’t clear an object when finished 
> with it.
> 
> Having said that, using C_OBJECT is of course preferable because you never 
> have to worry about memory leaks. I wrote ObjectTools in 1991. It only took 
> 4D 25 years to implement the equivalent.  :-)
> 
> - Aparajita

**
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-unsubscr...@lists.4d.com
**

Re: __Orphan___xxxx methods

2018-06-10 Thread Arnaud de Montard via 4D_Tech

> Le 9 juin 2018 à 17:28, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I believe that mostly they are object methods from deleted forms,

Easy to reproduce: delete a form object without deleting its method object 
before, you get an orphan. 
(un)works this way since v11. 

-- 
Arnaud de Montard 





**
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-unsubscr...@lists.4d.com
**

Re: Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread Keisuke Miyako via 4D_Tech
The way I deal with this problem is to prepare a plain document with the 
desired orientation, paper size, etc. and load it from disk as needed.
Also, I disable the context menu be default and display a dynamic menu that 
contains only authorised actions by code.

You can call OBJECT SET CONTEXT MENU during On Click which will activate the 
standard menu,
so it is possible to switch the type of menu depending on modifiers, for 
example.

> 2018/06/10 15:54、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> After reading some earlier posts on this subject I believe it is not possible 
> to set the orientation of a 4D Write Pro area on a form. If it is possible, 
> could someone please show me how. I do not see a standard action for this and 
> anything else remotely related to orientation is strictly for printing.



**
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-unsubscr...@lists.4d.com
**

Any way to detect change to 4D Write Pro orientation.

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
After reading some earlier posts on this subject I believe it is not possible 
to set the orientation of a 4D Write Pro area on a form. If it is possible, 
could someone please show me how. I do not see a standard action for this and 
anything else remotely related to orientation is strictly for printing.

A user can, however, set the orientation of the area from the area’s contextual 
menu and the page resizes automatically accordingly… nice. So, ff a user right 
clicks in a 4D Write Pro area and changes the orientation from Portrait to 
Landscape or vice versa, is there any way to detect the change? I want to 
resize the 4DWPRO area accordingly to encompass the newly resized page.

John
**
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-unsubscr...@lists.4d.com
**