Re: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
Should have clarified: the reason why I bring up the “execute on server” 
property is because a trigger is kind of like a specific version of such 
methods.

2018/07/12 14:41、Keisuke Miyako via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
After all, preemptive processes can't have a UI, neither can it sync with other 
processes (without using semaphores etc.), so in many ways its like a stored 
procedure (and not a method with the “execute on server” property.)



**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
I agree it would be nice to eventually have preemptive mode on the client side, 
but I also think the subject needs to be discussed in context.

Preemptive mode makes it possible to run multiple processes independent of each 
other concurrently, so the primary benefactor should be the server.

After all, preemptive processes can't have a UI, neither can it sync with other 
processes (without using semaphores etc.), so in many ways its like a stored 
procedure (and not a method with the “execute on server” property.)

2018/07/12 13:36、Alan Chan via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Of course, SAVE RECORD, DELETE RECORD is needed to invoke trigger. However, the 
method that call SAVE RECORD would be executed in 4D Remote and 4D Remote isn't 
supported. A dead lock?



**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Alan Chan via 4D_Tech
Of course, SAVE RECORD, DELETE RECORD is needed to invoke trigger. However, the 
method that call SAVE RECORD would be executed in 4D Remote and 4D Remote isn't 
supported. A dead lock?

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>there is no "thread safe" property for triggers.
>
>however,
>
>if you use commands like SAVE RECORD, DELETE RECORD
>from a method chain that is marked as thread safe,
>then the call chain of that table's trigger is checked for thread safety at 
>compile time.
>
>in fact the compiler is smart enough to resolve expressions such as Table(n)->
>(all triggers are inspected for such expressions, so actually its better to 
>use absolute tokens)
>
>2018/07/12 12:20、Alan Chan via 4D_Tech 
><4d_tech@lists.4d.com> のメール:
> I'm just wondering does anyone try that out on triggers?
>
>

**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Keisuke Miyako via 4D_Tech
there is no "thread safe" property for triggers.

however,

if you use commands like SAVE RECORD, DELETE RECORD
from a method chain that is marked as thread safe,
then the call chain of that table's trigger is checked for thread safety at 
compile time.

in fact the compiler is smart enough to resolve expressions such as Table(n)->
(all triggers are inspected for such expressions, so actually its better to use 
absolute tokens)

2018/07/12 12:20、Alan Chan via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
 I'm just wondering does anyone try that out on triggers?


**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Alan Chan via 4D_Tech
Hopefully, 4D remote could be supported in 4D 18:-(

However, 4D server (thus triggers) is supported. I'm just wondering does anyone 
try that out on triggers?

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>Are you doing all this in single user mode?
>
>I think a lot of people don't realize that preemptive threads aren't supported 
>on 4D Remote at all.

**
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: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-11 Thread Keisuke Miyako via 4D_Tech
FYI

ACI0098245 has been fixed in 16. 224272 (nightly build after 16.3.HF4) and v17 
(the web description is a bit off but it does concern wingdings)

https://bugs.4d.fr/fixedbugslist?branch=16

Technically I suppose you could combine FORM GET NAMES, FORM LOAD, FORM GET 
OBJECTS, OBJECT Get style sheet.

http://doc.4d.com/4Dv17/4D/17/FORM-GET-NAMES.301-3730006.en.html

http://doc.4d.com/4Dv17/4D/17/FORM-LOAD.301-3730823.en.html

http://doc.4d.com/4Dv17/4D/17/FORM-GET-OBJECTS.301-3730832.en.html

http://doc.4d.com/4Dv17/4D/17/OBJECT-Get-style-sheet.301-3730527.en.html

2018/07/12 11:44、Bob Miller via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
The stylesheets came through, but some fields
that had style sheets and all the ones that did not all of a sudden are
displayed in the Wingdings font



**
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: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-11 Thread Bob Miller via 4D_Tech
I've not ever seen this before today, when I was testing a database that I 
moved from v15 -> v16r6.  The stylesheets came through, but some fields 
that had style sheets and all the ones that did not all of a sudden are 
displayed in the Wingdings font.

Cheryl, how did you detect objects that did not have a style sheet 
assigned?  (I've not yet found the Tech Tip that Rudy referred to in his 
posting)

What did you decide to do about your thousands of objects?

I'm not even sure of where to go with this!

Thanks -

On Fri, Jun 15, 2018 at 6:10 AM Two Way Communications via 4D_Tech <
4d_t...@xxx.xxx> wrote:

> Hi Cheryl,
>
> I?m afraid there is no solution outside 4D.
>
> But there is e recent tip in the knowledgebase on how to find these
> objects.
>
> And if they can be located, I suppose that the font can be set for thos
> objects.
>
> This way you could write code to address the issues.
>
>
> Regards,
>
> Rudy Mortier
> Two Way Communications bvba
>
>
>
> > On 13 Jun 2018, at 20:57, Cheryl Michels via 4D_Tech <
> 4d_t...@xxx.xxx> wrote:
> >
> > A recent Windows update (Windows 10, version 1803) has resulted in at
> least two of our customer sites reporting that certain form objects are 
now
> displaying as Wingdings. When I look at these objects, I note that the
> developer did not assign a style sheet to them. Against our SOP, but 
that
> is a different story. So, using Form Introspection, I have discovered 
over
> 14,000 objects without stylesheets. Not a trivial task to set them all.
> >
> > Has anyone else run into this problem? Is there something I can do
> globally that I'm not thinking of? Is there something that is causing it
> to select Wingdings that I can undo?
> >
> > Cheryl Michels
> > President and System Architect


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
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: V17 - Select list items Always Returns Zero

2018-07-11 Thread Keisuke Miyako via 4D_Tech
what is the "variable type" in property list set to?
it should be numeric (default is string)

just tested,

$l:=New list
APPEND TO LIST($l;"a";1)
APPEND TO LIST($l;"b";2)
APPEND TO LIST($l;"c";3)

$p:=OBJECT Get pointer(Object named;"Tab Control")
$p->:=$l

and

$sel:=Selected list items(*;"tab control")

returns 1, 2 or 3

(v17)

---

between v13 and v16,
there was the addition of

OBJECT SET LIST BY REFERENCE

and

OBJECT SET LIST BY NAME

I think this is related.

when I create a list in the toolbox and assign it via the property list,
the function returns the selected item if it is numeric,
but 0 if it is string. (string implies you use an array text)

> 2018/07/12 5:46、Douglas von Roeder via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> Is this a "b_u_g" or did I, perhaps, miss something in the docs about not
> populating a tab control using a list any longer?




**
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: Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Thank you.


On Wed, Jul 11, 2018 at 7:08 PM, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> See here:
> Tech Tip: Important requirements to run a compiled structure on a 64-bit
> server
> http://kb.4d.com/assetid=77858
>
>
>
>
> **
> 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
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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
**

V17 - Select list items Always Returns Zero

2018-07-11 Thread Douglas von Roeder via 4D_Tech
I've converted an app running in 13.5 to V17 and the following line of code
returns zero regardless of which tab I click on the tab control:

$pageSelected_L:=Selected list items(*;"PROPOSAL_Tab_L")

The tab control has an object name of PROPOSAL_Tab_L (the "_L" is a carry
over from when it was the variable name).

The tab control is populated via a list, the On clicked event is enabled,
and the standard action is blank. This code works in 13.5 but returns zero
in both 16R6 and 17. When I assign Proposal_Tab_L as the variable name, the
code functions as expected in V17 but returns zero in 16R6.

Is this a "b_u_g" or did I, perhaps, miss something in the docs about not
populating a tab control using a list any longer?

--
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: v13 - Need Idea(s). Sets

2018-07-11 Thread Chip Scheide via 4D_Tech
On Wed, 11 Jul 2018 20:22:21 +, Timothy Penner wrote:
> This whole thread-safe concept of preemptive processes only applies to v16+
> Why are you worried about making your v13 component thread safe, in v13?
because I am here, now, doing a bunch of work in the code.
I will be moving up versions before the end of the year (I hope)

I would like to get as much of basics done while I am in the code.

> Moving forward, if you want to achieve thread-safety while still 
> providing the same level of process interaction that you currently 
> have with IP vars, then I would suggest looking at Shared Storage. 
> However, the concept of Shared Storage is a feature of v17 and 
> obviously won't work in v13.
Thanks - I will look at that, and think about what I might need to do.


> Timothy Penner
> Senior Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
> 
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: tpen...@4d.com
> Web:   www.4D.com
> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: v13 - Need Idea(s). Sets

2018-07-11 Thread Timothy Penner via 4D_Tech
This whole thread-safe concept of preemptive processes only applies to v16+
Why are you worried about making your v13 component thread safe, in v13?
It's not like you can set the "can be run in preemptive processes" method 
property in v13, the source needs to be updated to v16+ just to gain access to 
that method property...

Moving forward, if you want to achieve thread-safety while still providing the 
same level of process interaction that you currently have with IP vars, then I 
would suggest looking at Shared Storage. However, the concept of Shared Storage 
is a feature of v17 and obviously won't work in v13.
http://doc.4d.com/4Dv16R6/4D/16-R6/Storage.301-3649498.en.html

-Tim



**
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: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
Thanks Keisuke
This works well.

On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote:
> Hello,
> 
> The 510 bytes data does not contain anything useful for you.
> 
> You need to append data yourself at the drag source (append data to 
> pasteboard),
> Which can be an array of record numbers/primary keys (variable to blob),
> A set (boolean array from set, variable to blob),
> Or anything that makes sense to you.
> You assign a unique “key” to that data,
> Which by convention looks like com.4d.whatever (UTI) but it can be 
> any string,
> As long as the string is unambiguous.
> 
> You can retrieve the data on the destination side using said key.
> 
>> 2018/07/11 2:43、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール:
>> what I do not know, is how do I use the data on the pasteboard.
> 
> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

v13 - Need Idea(s). Sets

2018-07-11 Thread Chip Scheide via 4D_Tech
So.. I have this component Setutl.
which does a bunch of handy things that 4D's native set operations do 
not do, for example being able to ask, and get an answer to:
- Which table does this set belong to
- What set(s) exist for a specified table

As the component stands it is thread safe (I believe).
However, I just ran into a problem with this component.
IP sets.

Internally, Setutl, stores set and table information in process arrays.
This is all fine, and works for process and local sets. BUT this fails 
for IP sets.

Ex: (using Setutl)
Process 1 - create IP set <>A, 20 records
Process 2 - test record count in set <>A - error set does not exist.

I do not want to make the entire component Thread Unsafe to handle IP 
sets, even though they themselves are thread unsafe.

So far the only resolutions, to be able to manage IP sets, I have been 
able to come up with are:
- IP arrays for (at a minimum) the IP sets 
  -- This makes the entire component not thread safe.
- Separate process to manage (at a minimum) IP sets, and use Set/Get 
Process Variable
  -- This makes the entire component not thread safe.
- Write a file to disk which contains IP set information
  -- speed issues, with disk access for IP sets.
  -- Read/write collisions trying to access the disk file from multiple 
processes.

The only solution I see is writing a file to disk to store IP set 
information. This will work, but in my opinion leave something to be 
desired...

Anyone have any other idea(s)?

Thanks
Chip


---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Chip Scheide via 4D_Tech
constructing an IP set name (as in my example) could be done on the 
server, or for single user applications.

This is (only some what) of a hypothetical, or thought experiment.
Chip

On Wed, 11 Jul 2018 15:35:35 -0400, Jeffrey Kain via 4D_Tech wrote:
> Are you doing all this in single user mode?
> 
> I think a lot of people don't realize that preemptive threads aren't 
> supported on 4D Remote at all.
> 
>> On Jul 11, 2018, at 3:31 PM, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> How does/would 4D handle a set 
>> name which was constructed in this manner but was/became an IP set? 
>> Would 4D flag the method as thread unsafe?
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: just a curiosity - pre emptive threads

2018-07-11 Thread Jeffrey Kain via 4D_Tech
Are you doing all this in single user mode?

I think a lot of people don't realize that preemptive threads aren't supported 
on 4D Remote at all.

> On Jul 11, 2018, at 3:31 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> How does/would 4D handle a set 
> name which was constructed in this manner but was/became an IP set? 
> Would 4D flag the method as thread unsafe?

**
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
**

just a curiosity - pre emptive threads

2018-07-11 Thread Chip Scheide via 4D_Tech
IP vars are out. -- OK
IP sets would be out too, but...
How does 4D manage IP sets, that it does not know are IP sets?

I know in more then one place I don't care about a set name, and use an 
algorithm to create a set name. So the set name does not exist until 
execution. This kind of code could easily be embedded in a method which 
otherwise appears to be thread safe. How does/would 4D handle a set 
name which was constructed in this manner but was/became an IP set? 
Would 4D flag the method as thread unsafe? How would 4D know?

ex:

$Setname := "<>"+TABLE NAME($Some_table_Pointer)+"_"+STRING(Records in 
Selection($Some_table_Pointer->))
Create Set(Some_table_Pointer->;$Setname)

I suppose for that matter, how does 4D handle other instances where 
text is turned into a variable (Get pointer)?

Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Chip Scheide via 4D_Tech
THANKS!

as I expected, a set of commands I want to use is not safe...

On Wed, 11 Jul 2018 16:55:00 +, Timothy Penner wrote:
> http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.en.html
> 
> 
> 
> Timothy Penner
> Senior Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
> 
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: tpen...@4d.com
> Web:   www.4D.com
> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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 Write PRO: editing a table / collections

2018-07-11 Thread Keisuke Miyako via 4D_Tech
a table reference can be obtained from

WP Create table range
http://doc.4d.com/4Dv17/4D/17/WP-Create-table-range.301-3703205.en.html

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

or

WP Get element by ID
http://doc.4d.com/4Dv17/4D/17/WP-Get-element-by-ID.301-3703233.en.html

in v16/R, I believe it is only be possible to obtain such a reference
immediately following creation (WP Insert table)

---

the way I understand it is that a write pro document is a combination of range 
(of text) and other objects that do not fit in any particular range (of text). 
such objects are also referred to as a "range object" in the language (table, 
row, column, anchored picture, etc)

http://doc.4d.com/4Dv17/4D/17/Accessing-document-contents-by-programming.300-3726304.en.html#3507530

commands such as WP SELECT work on range of text.

some commands like WP Get selection works on a range of text or a "range 
object".
(result.type tells which)

2018/07/12 0:57、Two Way Communications via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
So, what if the user has created a table (through a method), and now want to 
select a cell in that table and change it’s background color, or it’s width?



**
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: Component for 64 bit v6

2018-07-11 Thread Timothy Penner via 4D_Tech
See here:
Tech Tip: Important requirements to run a compiled structure on a 64-bit server
http://kb.4d.com/assetid=77858




**
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: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Keisuke Miyako via 4D_Tech
the list of thread safe commands is growing with each version.

http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.ja.html
http://doc.4d.com/4Dv16/4D/16.3/Preemptive_3650983.999-2878208.en.html

2018/07/12 1:44、Chip Scheide via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
and extract the list of thread safe commands to text (or something) and
send to me directly?



**
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 Write PRO: editing a table / collections

2018-07-11 Thread JOHN BAUGHMAN via 4D_Tech
On Jul 10, 2018, at 10:41 PM, Two Way Communications via 4D_Tech 
<4d_tech@lists.4d.com> wrote:
> 
> You’re right, John.
> 
> When I re-open the document, the table has another reference, and WP SELECT 
> doesn’t work anymore…
> 
> Is there any other way to get the object reference for a table in a 4D Write 
> PRO document?

Not sure if you can do the same for tables, but what I have done with 
images  is when the document is saved, load each image's position and size into 
my collection and delete them all. Then recreate them from the collection when 
re-opened and update collection with the new references.

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: Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Timothy Penner via 4D_Tech
http://doc.4d.com/4Dv17/4D/17/Preemptive_3726273.999-2878208.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
**

Is there a listing of thread safe (or unsafe) commands?

2018-07-11 Thread Chip Scheide via 4D_Tech
I know a bit more then a year ago David Adams posted the code for:

  // GetCommandList

but this doesn't help me at the moment, as I can not currently run v16 
or 17.

If there is not a comprehensive list of thread safe commands, could 
someone run 
  // GetCommandList
and extract the list of thread safe commands to text (or something) and 
send to me directly?

Thanks
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

[resolved]Re: v13 - new behavior, all dev windows closed

2018-07-11 Thread Chip Scheide via 4D_Tech
Thanks Tim,
running MSC, and repairing the structure, fixed the problem

On Mon, 09 Jul 2018 19:32:34 -0500, Tim Nevels via 4D_Tech wrote:
> On Jul 9, 2018, at 6:24 PM, Chip Scheide wrote:
> 
>> when (re)opening a database all windows previously opened in the design 
>> environment are closed.
>> what did I do, and how do I get 4D to leave all the design windows open?
> 
> 
> Hi Chip,
> 
> I can think of 3 things:
> 
> 1) Remember that if the Option key is down when you are entering 
> Design ― however you cause that to happen ― will open with no 
> windows. This was a very long-time-ago fix for when you had a corrupt 
> method or form open. Going into Design it would try to open the 
> corrupt method or form and that would cause 4D to crash. So to get 
> around this you held down the Option key so that you could get into 
> Design and not crash. Then, if you were lucky, you could delete the 
> corrupted item and continue life.
> 
> Classic example: You have an invisible button on a form that has the 
> “Standard Action” of “Design”. You assign a keyboard shortcut to 
> the button of "Command-Option-Y". So to drop into Design when the 
> form is displayed you just press Command-Option-Y. Notice that option 
> key.
> 
> I had to change the shortcut on my 4D applications to Command-Shift-Y 
> to avoid the problem of no windows open in Design. I couldn’t press 
> Command-Option-Y and release the Option key before it got to Design 
> and closed all my previously opened windows. 
> 
> 2) 4D stores in the .4DB file the open windows and their location in 
> Design for each 4D user. They are not stored in a “prefs” text 
> files on disk somewhere. I know this because I work on a project with 
> multiple developers and we all connect to 4D Server with our own 4D 
> user account. Everyone gets their Design environment open windows 
> preserved when doing 4D Server Team Developer work. If I get a copy 
> of the .4DB file and put it to my local machine and open it and drop 
> into Design, all my windows reappear. 
> 
> So it could be structure file damage. Maybe MSC repair on the 
> structure file will fix the problem. 
> 
> 3) If you crash, or something goes wrong when you quit 4D, it will 
> not save the open window in Design information. 
> 
> Tim
>   
> Tim Nevels 
> timnev...@mac.com 
> Innovative Solutions
> 785-749-3444
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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
**

[warning] v13 (+?) - Compiler missed syntax error

2018-07-11 Thread Chip Scheide via 4D_Tech
I apparently had a good typo:
C_TEXT($0#1;$Action;$2;$Setname)

see it?
$0#1 as part of a compiler directive.

Compiler in v13 does NOT catch/flag this.
Might be worth while checking whatever version you are using

Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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 Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
So, what if the user has created a table (through a method), and now want to 
select a cell in that table and change it’s background color, or it’s width?

How can we do that?


Rudy Mortier
Two Way Communications bvba 



> On 11 Jul 2018, at 17:05, Two Way Communications via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Thanks Achim. But what if the cell is not selected, and I want to fill the 
> cells by programming?
> 
> 
> 
> Rudy Mortier
> Two Way Communications bvba 
> 
> 
> 
>> On 11 Jul 2018, at 17:00, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> I do it this way:
>> 
>> Cursor is in the cell or text is selected in the cell or cell is selected. I 
>> get the selection using WP Get selection. The I call WP SET TEXT with the 
>> selection range, give the new text and set parameters 3 and 4 accordingly.
>> 
>> Achim
>> 
>> 
>> 
>> 
>> -Ursprüngliche Nachricht-
>> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
>> Communications via 4D_Tech
>> Gesendet: Mittwoch, 11. Juli 2018 16:37
>> An: 4D iNug Technical <4d_tech@lists.4d.com>
>> Cc: Two Way Communications 
>> Betreff: Re: 4D Write PRO: editing a table / collections
>> 
>> Thanks Achim!
>> 
>> Can I also set a text value or a reference in a specific table cell?
>> 
>> I tried:
>> 
>> $CellObj:=WP Table get cells(a$TableObj;colNr;rowNr)
>> WP SET TEXT($CellObj;”test”;wk replace;wk include in range)
>> 
>> but I get an error. When I try ST SET TEXT, the text is placed on top of the 
>> 4D Write document.
>> 
>> 
>> 
>> Rudy Mortier
>> Two Way Communications bvba
>> 
>> 
>> 
>>> On 11 Jul 2018, at 13:59, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
>>> wrote:
>>> 
>>> Do it simply. If the cursor is in a table, WP Get selection. With this 
>>> range WP Get elements(range; 4). Working this way you get the table and its 
>>> id as object in a collection. If the selection spans over more than 1 
>>> table, the collection contains an element for every table contained in the 
>>> selection.
>>> 
>>> Achim
>>> 
>>> 
>>> 
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two
>>> Way Communications via 4D_Tech
>>> Gesendet: Mittwoch, 11. Juli 2018 12:21
>>> An: 4D iNug Technical <4d_tech@lists.4d.com>
>>> Cc: Two Way Communications 
>>> Betreff: Re: 4D Write PRO: editing a table / collections
>>> 
>>> In v17, we can now get the element id’s, and also select the table objects 
>>> in a document, so that is definitely an improvement.
>>> 
>>> But, in case there is more than 1 table in the document,  I fail to get a 
>>> reference for the table where the cursor is in… has anyone figured out how 
>>> to do that?
>>> 
>>> How cool would that be ;-)
>>> 
>>> Rudy Mortier
>>> Two Way Communications bvba
>>> 
>>> 
>>> 
 On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
 wrote:
 
 Try putting the collection in a c_object and store the c_object in an
 c_object field, or put the collection directly into the c_object
 field
 
 I am assuming that $tableObj is the object reference to the table. If 
 tables are anything like images, your plan might not work. Each time a 
 document is opened any images in the document gets a new object reference. 
 If that is the case with tables, your stored references will not work.
 
 John
 
 
 
 John Baughman
 1331 Auwaiku Street
 Kailua, Hawaii  96734
 (808) 262-0328
 john...@hawaii.rr.com
 
> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I love the concept of tables in 4D Write Pro.
> 
> You can only add or change them by code, which is fine by me for the  
> moment.
> But what to do if a table has been created, and, in the 4D Write Pro 
> document, you would want to add a column, or a row? Or change the width, 
> the borders etc?
> 
> Apparently there is no way to select the table object. I have tried WP 
> Get selection, but that doesn’t work for tables. Or maybe I am missing 
> something.
> 
> I found out that I can select the table again (in code) using WP
> SELECT($tableObj). So, as soon as I have created the table in code, I 
> copy the table object in a collection. (Yes, I am using deep copy) I do 
> that for every table created in the 4D Write Pro document.
> When I save the record, I put the collection variable in a blob (VARIABLE 
> TO BLOB), so I can retrieve the objects again.
> 
> When I open the record, I read the collection from the blob (BLOB TO 
> VARIABLE), but OK returns 0, and the collection variable stays empty.
> 
> Here’s the code:
> 
> C_COLLECTION(c4WRTableCollections)
> c4WRTableCollections:=New collection BLOB TO
> VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
> 
> 
> 

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
I never do this. I always set values into a cell when calling WP Table append 
row.

Achim




-Ursprüngliche Nachricht-
Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
Communications via 4D_Tech
Gesendet: Mittwoch, 11. Juli 2018 17:06
An: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Two Way Communications 
Betreff: Re: 4D Write PRO: editing a table / collections

Thanks Achim. But what if the cell is not selected, and I want to fill the 
cells by programming?



Rudy Mortier
Two Way Communications bvba



> On 11 Jul 2018, at 17:00, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>
> I do it this way:
>
> Cursor is in the cell or text is selected in the cell or cell is selected. I 
> get the selection using WP Get selection. The I call WP SET TEXT with the 
> selection range, give the new text and set parameters 3 and 4 accordingly.
>
> Achim
>
>
>
>
> -Ursprüngliche Nachricht-
> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two
> Way Communications via 4D_Tech
> Gesendet: Mittwoch, 11. Juli 2018 16:37
> An: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Two Way Communications 
> Betreff: Re: 4D Write PRO: editing a table / collections
>
> Thanks Achim!
>
> Can I also set a text value or a reference in a specific table cell?
>
> I tried:
>
> $CellObj:=WP Table get cells(a$TableObj;colNr;rowNr) WP SET
> TEXT($CellObj;”test”;wk replace;wk include in range)
>
> but I get an error. When I try ST SET TEXT, the text is placed on top of the 
> 4D Write document.
>
>
>
> Rudy Mortier
> Two Way Communications bvba
>
>
>
>> On 11 Jul 2018, at 13:59, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>>
>> Do it simply. If the cursor is in a table, WP Get selection. With this range 
>> WP Get elements(range; 4). Working this way you get the table and its id as 
>> object in a collection. If the selection spans over more than 1 table, the 
>> collection contains an element for every table contained in the selection.
>>
>> Achim
>>
>>
>>
>>
>> -Ursprüngliche Nachricht-
>> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two
>> Way Communications via 4D_Tech
>> Gesendet: Mittwoch, 11. Juli 2018 12:21
>> An: 4D iNug Technical <4d_tech@lists.4d.com>
>> Cc: Two Way Communications 
>> Betreff: Re: 4D Write PRO: editing a table / collections
>>
>> In v17, we can now get the element id’s, and also select the table objects 
>> in a document, so that is definitely an improvement.
>>
>> But, in case there is more than 1 table in the document,  I fail to get a 
>> reference for the table where the cursor is in… has anyone figured out how 
>> to do that?
>>
>> How cool would that be ;-)
>>
>> Rudy Mortier
>> Two Way Communications bvba
>>
>>
>>
>>> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
>>> wrote:
>>>
>>> Try putting the collection in a c_object and store the c_object in
>>> an c_object field, or put the collection directly into the c_object
>>> field
>>>
>>> I am assuming that $tableObj is the object reference to the table. If 
>>> tables are anything like images, your plan might not work. Each time a 
>>> document is opened any images in the document gets a new object reference. 
>>> If that is the case with tables, your stored references will not work.
>>>
>>> John
>>>
>>>
>>>
>>> John Baughman
>>> 1331 Auwaiku Street
>>> Kailua, Hawaii  96734
>>> (808) 262-0328
>>> john...@hawaii.rr.com
>>>
 On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
 <4d_tech@lists.4d.com> wrote:

 I love the concept of tables in 4D Write Pro.

 You can only add or change them by code, which is fine by me for the  
 moment.
 But what to do if a table has been created, and, in the 4D Write Pro 
 document, you would want to add a column, or a row? Or change the width, 
 the borders etc?

 Apparently there is no way to select the table object. I have tried WP Get 
 selection, but that doesn’t work for tables. Or maybe I am missing 
 something.

 I found out that I can select the table again (in code) using WP
 SELECT($tableObj). So, as soon as I have created the table in code, I copy 
 the table object in a collection. (Yes, I am using deep copy) I do that 
 for every table created in the 4D Write Pro document.
 When I save the record, I put the collection variable in a blob (VARIABLE 
 TO BLOB), so I can retrieve the objects again.

 When I open the record, I read the collection from the blob (BLOB TO 
 VARIABLE), but OK returns 0, and the collection variable stays empty.

 Here’s the code:

 C_COLLECTION(c4WRTableCollections)
 c4WRTableCollections:=New collection BLOB TO
 VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)



 Any idea why it’s doing that, and how one could create a table in a 4D 
 Writw PRO document, save it, open it again, 

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
Thanks Achim. But what if the cell is not selected, and I want to fill the 
cells by programming?



Rudy Mortier
Two Way Communications bvba 



> On 11 Jul 2018, at 17:00, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I do it this way:
> 
> Cursor is in the cell or text is selected in the cell or cell is selected. I 
> get the selection using WP Get selection. The I call WP SET TEXT with the 
> selection range, give the new text and set parameters 3 and 4 accordingly.
> 
> Achim
> 
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
> Communications via 4D_Tech
> Gesendet: Mittwoch, 11. Juli 2018 16:37
> An: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Two Way Communications 
> Betreff: Re: 4D Write PRO: editing a table / collections
> 
> Thanks Achim!
> 
> Can I also set a text value or a reference in a specific table cell?
> 
> I tried:
> 
> $CellObj:=WP Table get cells(a$TableObj;colNr;rowNr)
> WP SET TEXT($CellObj;”test”;wk replace;wk include in range)
> 
> but I get an error. When I try ST SET TEXT, the text is placed on top of the 
> 4D Write document.
> 
> 
> 
> Rudy Mortier
> Two Way Communications bvba
> 
> 
> 
>> On 11 Jul 2018, at 13:59, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Do it simply. If the cursor is in a table, WP Get selection. With this range 
>> WP Get elements(range; 4). Working this way you get the table and its id as 
>> object in a collection. If the selection spans over more than 1 table, the 
>> collection contains an element for every table contained in the selection.
>> 
>> Achim
>> 
>> 
>> 
>> 
>> -Ursprüngliche Nachricht-
>> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two
>> Way Communications via 4D_Tech
>> Gesendet: Mittwoch, 11. Juli 2018 12:21
>> An: 4D iNug Technical <4d_tech@lists.4d.com>
>> Cc: Two Way Communications 
>> Betreff: Re: 4D Write PRO: editing a table / collections
>> 
>> In v17, we can now get the element id’s, and also select the table objects 
>> in a document, so that is definitely an improvement.
>> 
>> But, in case there is more than 1 table in the document,  I fail to get a 
>> reference for the table where the cursor is in… has anyone figured out how 
>> to do that?
>> 
>> How cool would that be ;-)
>> 
>> Rudy Mortier
>> Two Way Communications bvba
>> 
>> 
>> 
>>> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
>>> wrote:
>>> 
>>> Try putting the collection in a c_object and store the c_object in an
>>> c_object field, or put the collection directly into the c_object
>>> field
>>> 
>>> I am assuming that $tableObj is the object reference to the table. If 
>>> tables are anything like images, your plan might not work. Each time a 
>>> document is opened any images in the document gets a new object reference. 
>>> If that is the case with tables, your stored references will not work.
>>> 
>>> John
>>> 
>>> 
>>> 
>>> John Baughman
>>> 1331 Auwaiku Street
>>> Kailua, Hawaii  96734
>>> (808) 262-0328
>>> john...@hawaii.rr.com
>>> 
 On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
 <4d_tech@lists.4d.com> wrote:
 
 I love the concept of tables in 4D Write Pro.
 
 You can only add or change them by code, which is fine by me for the  
 moment.
 But what to do if a table has been created, and, in the 4D Write Pro 
 document, you would want to add a column, or a row? Or change the width, 
 the borders etc?
 
 Apparently there is no way to select the table object. I have tried WP Get 
 selection, but that doesn’t work for tables. Or maybe I am missing 
 something.
 
 I found out that I can select the table again (in code) using WP
 SELECT($tableObj). So, as soon as I have created the table in code, I copy 
 the table object in a collection. (Yes, I am using deep copy) I do that 
 for every table created in the 4D Write Pro document.
 When I save the record, I put the collection variable in a blob (VARIABLE 
 TO BLOB), so I can retrieve the objects again.
 
 When I open the record, I read the collection from the blob (BLOB TO 
 VARIABLE), but OK returns 0, and the collection variable stays empty.
 
 Here’s the code:
 
 C_COLLECTION(c4WRTableCollections)
 c4WRTableCollections:=New collection BLOB TO
 VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
 
 
 
 Any idea why it’s doing that, and how one could create a table in a 4D 
 Writw PRO document, save it, open it again, and edit the table?
 
 
 
 Regards,
 
 Rudy Mortier
 Two Way Communications bvba
 
 
 
 *
 *
 4D Internet Users Group (4D iNUG)
 FAQ:  http://lists.4d.com/faqnug.html
 Archive:  http://lists.4d.com/archives.html
 

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
I do it this way:

Cursor is in the cell or text is selected in the cell or cell is selected. I 
get the selection using WP Get selection. The I call WP SET TEXT with the 
selection range, give the new text and set parameters 3 and 4 accordingly.

Achim




-Ursprüngliche Nachricht-
Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
Communications via 4D_Tech
Gesendet: Mittwoch, 11. Juli 2018 16:37
An: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Two Way Communications 
Betreff: Re: 4D Write PRO: editing a table / collections

Thanks Achim!

Can I also set a text value or a reference in a specific table cell?

I tried:

$CellObj:=WP Table get cells(a$TableObj;colNr;rowNr)
WP SET TEXT($CellObj;”test”;wk replace;wk include in range)

but I get an error. When I try ST SET TEXT, the text is placed on top of the 4D 
Write document.



Rudy Mortier
Two Way Communications bvba



> On 11 Jul 2018, at 13:59, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>
> Do it simply. If the cursor is in a table, WP Get selection. With this range 
> WP Get elements(range; 4). Working this way you get the table and its id as 
> object in a collection. If the selection spans over more than 1 table, the 
> collection contains an element for every table contained in the selection.
>
> Achim
>
>
>
>
> -Ursprüngliche Nachricht-
> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two
> Way Communications via 4D_Tech
> Gesendet: Mittwoch, 11. Juli 2018 12:21
> An: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Two Way Communications 
> Betreff: Re: 4D Write PRO: editing a table / collections
>
> In v17, we can now get the element id’s, and also select the table objects in 
> a document, so that is definitely an improvement.
>
> But, in case there is more than 1 table in the document,  I fail to get a 
> reference for the table where the cursor is in… has anyone figured out how to 
> do that?
>
> How cool would that be ;-)
>
> Rudy Mortier
> Two Way Communications bvba
>
>
>
>> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>>
>> Try putting the collection in a c_object and store the c_object in an
>> c_object field, or put the collection directly into the c_object
>> field
>>
>> I am assuming that $tableObj is the object reference to the table. If tables 
>> are anything like images, your plan might not work. Each time a document is 
>> opened any images in the document gets a new object reference. If that is 
>> the case with tables, your stored references will not work.
>>
>> John
>>
>>
>>
>> John Baughman
>> 1331 Auwaiku Street
>> Kailua, Hawaii  96734
>> (808) 262-0328
>> john...@hawaii.rr.com
>>
>>> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>>
>>> I love the concept of tables in 4D Write Pro.
>>>
>>> You can only add or change them by code, which is fine by me for the  
>>> moment.
>>> But what to do if a table has been created, and, in the 4D Write Pro 
>>> document, you would want to add a column, or a row? Or change the width, 
>>> the borders etc?
>>>
>>> Apparently there is no way to select the table object. I have tried WP Get 
>>> selection, but that doesn’t work for tables. Or maybe I am missing 
>>> something.
>>>
>>> I found out that I can select the table again (in code) using WP
>>> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
>>> the table object in a collection. (Yes, I am using deep copy) I do that for 
>>> every table created in the 4D Write Pro document.
>>> When I save the record, I put the collection variable in a blob (VARIABLE 
>>> TO BLOB), so I can retrieve the objects again.
>>>
>>> When I open the record, I read the collection from the blob (BLOB TO 
>>> VARIABLE), but OK returns 0, and the collection variable stays empty.
>>>
>>> Here’s the code:
>>>
>>> C_COLLECTION(c4WRTableCollections)
>>> c4WRTableCollections:=New collection BLOB TO
>>> VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>>>
>>>
>>>
>>> Any idea why it’s doing that, and how one could create a table in a 4D 
>>> Writw PRO document, save it, open it again, and edit the table?
>>>
>>>
>>>
>>> Regards,
>>>
>>> Rudy Mortier
>>> Two Way Communications bvba
>>>
>>>
>>> 
>>> *
>>> *
>>> 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
>> 

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
Thanks Achim!

Can I also set a text value or a reference in a specific table cell?

I tried:

$CellObj:=WP Table get cells(a$TableObj;colNr;rowNr)
WP SET TEXT($CellObj;”test”;wk replace;wk include in range)

but I get an error. When I try ST SET TEXT, the text is placed on top of the 4D 
Write document.



Rudy Mortier
Two Way Communications bvba 



> On 11 Jul 2018, at 13:59, Achim Peschke via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Do it simply. If the cursor is in a table, WP Get selection. With this range 
> WP Get elements(range; 4). Working this way you get the table and its id as 
> object in a collection. If the selection spans over more than 1 table, the 
> collection contains an element for every table contained in the selection.
> 
> Achim
> 
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
> Communications via 4D_Tech
> Gesendet: Mittwoch, 11. Juli 2018 12:21
> An: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Two Way Communications 
> Betreff: Re: 4D Write PRO: editing a table / collections
> 
> In v17, we can now get the element id’s, and also select the table objects in 
> a document, so that is definitely an improvement.
> 
> But, in case there is more than 1 table in the document,  I fail to get a 
> reference for the table where the cursor is in… has anyone figured out how to 
> do that?
> 
> How cool would that be ;-)
> 
> Rudy Mortier
> Two Way Communications bvba
> 
> 
> 
>> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Try putting the collection in a c_object and store the c_object in an
>> c_object field, or put the collection directly into the c_object
>> field
>> 
>> I am assuming that $tableObj is the object reference to the table. If tables 
>> are anything like images, your plan might not work. Each time a document is 
>> opened any images in the document gets a new object reference. If that is 
>> the case with tables, your stored references will not work.
>> 
>> John
>> 
>> 
>> 
>> John Baughman
>> 1331 Auwaiku Street
>> Kailua, Hawaii  96734
>> (808) 262-0328
>> john...@hawaii.rr.com
>> 
>>> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>> 
>>> I love the concept of tables in 4D Write Pro.
>>> 
>>> You can only add or change them by code, which is fine by me for the  
>>> moment.
>>> But what to do if a table has been created, and, in the 4D Write Pro 
>>> document, you would want to add a column, or a row? Or change the width, 
>>> the borders etc?
>>> 
>>> Apparently there is no way to select the table object. I have tried WP Get 
>>> selection, but that doesn’t work for tables. Or maybe I am missing 
>>> something.
>>> 
>>> I found out that I can select the table again (in code) using WP
>>> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
>>> the table object in a collection. (Yes, I am using deep copy) I do that for 
>>> every table created in the 4D Write Pro document.
>>> When I save the record, I put the collection variable in a blob (VARIABLE 
>>> TO BLOB), so I can retrieve the objects again.
>>> 
>>> When I open the record, I read the collection from the blob (BLOB TO 
>>> VARIABLE), but OK returns 0, and the collection variable stays empty.
>>> 
>>> Here’s the code:
>>> 
>>> C_COLLECTION(c4WRTableCollections)
>>> c4WRTableCollections:=New collection
>>> BLOB TO
>>> VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>>> 
>>> 
>>> 
>>> Any idea why it’s doing that, and how one could create a table in a 4D 
>>> Writw PRO document, save it, open it again, and edit the table?
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> Rudy Mortier
>>> Two Way Communications bvba
>>> 
>>> 
>>> *
>>> *
>>> 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
>> **
> 
> **
> 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: V17 - No Glass Buttons

2018-07-11 Thread Chip Scheide via 4D_Tech
not using v17 - but could you add them to the picture library?

On Wed, 11 Jul 2018 00:39:31 -0700, Robert McKeever via 4D_Tech wrote:
> Created a test database. New Table. Added 1 field.
> 
> Go to create a form via the wizard. Move the field and the uuid to 
> the form. Go to Advanced. No Glass buttons. I quit V17.
> 
> I copied the Button Images ‘Glass’ folder into the Resources folder 
> ―> Images ―> Buttons ―> Glass just like a v15 database has.
> 
> Reopened the v17 database. No Glass buttons.
> 
> Created test database in V15, created forms with Glass buttons. 
> Closed it. Converted it to V17. Glass buttons are shown on the forms. 
> But the Wizard still does not know about them. 
> 
> So, how do I create templates with Glass Buttons, my fonts, etc.?
> 
> _
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Drag n drop between processes

2018-07-11 Thread Chip Scheide via 4D_Tech
THANKS!

On Wed, 11 Jul 2018 02:31:13 +, Keisuke Miyako via 4D_Tech wrote:
> Hello,
> 
> The 510 bytes data does not contain anything useful for you.
> 
> You need to append data yourself at the drag source (append data to 
> pasteboard),
> Which can be an array of record numbers/primary keys (variable to blob),
> A set (boolean array from set, variable to blob),
> Or anything that makes sense to you.
> You assign a unique “key” to that data,
> Which by convention looks like com.4d.whatever (UTI) but it can be 
> any string,
> As long as the string is unambiguous.
> 
> You can retrieve the data on the destination side using said key.
> 
>> 2018/07/11 2:43、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>のメール:
>> what I do not know, is how do I use the data on the pasteboard.
> 
> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Component for 64 bit v6

2018-07-11 Thread Charles Miller via 4D_Tech
Unicode setting. Did you compile the component? If so what options?

Regards
Chuck

On Wed, Jul 11, 2018 at 7:52 AM Jim Dorrance via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I have a component created v15, opened with 64 bit 4D v16 on Mac, but the
> host database stops us compiling with v16 on Mac.
> Does a component create with a 32bit version need to be 'converted'
> somehow?
>
> --
> Jim Dorrance
> jim.dorra...@gmail.com
> 4...@dorrance.eu
> www.4d.dorrance.eu
>
> PS: If you know of anyone that needs an experienced 4D programmer to add
> energy and experience to their team, please let me know. I have
> experience in many areas. Reasonable rates. Remote or Paris only.
> **
> 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
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
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: Component for 64 bit v6

2018-07-11 Thread Bob Miller via 4D_Tech
RE> I have a component created v15, opened with 64 bit 4D v16 on Mac, but 
the host database stops us compiling with v16 on Mac.
Does a component create with a 32bit version need to be 'converted' 
somehow?


Jim,

Under 'Database Settings' - Compiler - there's a checkbox for 
'Multi-target compilation (32-bit and 64-bit)'.  You have to compile your 
component with this ON so that the component works with a 64 bit host 
database.

http://doc.4d.com/4Dv16/4D/16.3/Compilation-settings.300-3670749.en.html

best regards,


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
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
**

AW: 4D Write PRO: editing a table / collections

2018-07-11 Thread Achim Peschke via 4D_Tech
Do it simply. If the cursor is in a table, WP Get selection. With this range WP 
Get elements(range; 4). Working this way you get the table and its id as object 
in a collection. If the selection spans over more than 1 table, the collection 
contains an element for every table contained in the selection.

Achim




-Ursprüngliche Nachricht-
Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way 
Communications via 4D_Tech
Gesendet: Mittwoch, 11. Juli 2018 12:21
An: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Two Way Communications 
Betreff: Re: 4D Write PRO: editing a table / collections

In v17, we can now get the element id’s, and also select the table objects in a 
document, so that is definitely an improvement.

But, in case there is more than 1 table in the document,  I fail to get a 
reference for the table where the cursor is in… has anyone figured out how to 
do that?

How cool would that be ;-)

Rudy Mortier
Two Way Communications bvba



> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>
> Try putting the collection in a c_object and store the c_object in an
> c_object field, or put the collection directly into the c_object
> field
>
> I am assuming that $tableObj is the object reference to the table. If tables 
> are anything like images, your plan might not work. Each time a document is 
> opened any images in the document gets a new object reference. If that is the 
> case with tables, your stored references will not work.
>
> John
>
>
>
> John Baughman
> 1331 Auwaiku Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
>
>> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>>
>> I love the concept of tables in 4D Write Pro.
>>
>> You can only add or change them by code, which is fine by me for the  moment.
>> But what to do if a table has been created, and, in the 4D Write Pro 
>> document, you would want to add a column, or a row? Or change the width, the 
>> borders etc?
>>
>> Apparently there is no way to select the table object. I have tried WP Get 
>> selection, but that doesn’t work for tables. Or maybe I am missing something.
>>
>> I found out that I can select the table again (in code) using WP
>> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
>> the table object in a collection. (Yes, I am using deep copy) I do that for 
>> every table created in the 4D Write Pro document.
>> When I save the record, I put the collection variable in a blob (VARIABLE TO 
>> BLOB), so I can retrieve the objects again.
>>
>> When I open the record, I read the collection from the blob (BLOB TO 
>> VARIABLE), but OK returns 0, and the collection variable stays empty.
>>
>> Here’s the code:
>>
>> C_COLLECTION(c4WRTableCollections)
>> c4WRTableCollections:=New collection
>> BLOB TO
>> VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>>
>>
>>
>> Any idea why it’s doing that, and how one could create a table in a 4D Writw 
>> PRO document, save it, open it again, and edit the table?
>>
>>
>>
>> Regards,
>>
>> Rudy Mortier
>> Two Way Communications bvba
>>
>>
>> *
>> *
>> 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
> **

**
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
**

Component for 64 bit v6

2018-07-11 Thread Jim Dorrance via 4D_Tech
Hi,

I have a component created v15, opened with 64 bit 4D v16 on Mac, but the
host database stops us compiling with v16 on Mac.
Does a component create with a 32bit version need to be 'converted' somehow?

-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
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 Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
In v17, we can now get the element id’s, and also select the table objects in a 
document, so that is definitely an improvement.

But, in case there is more than 1 table in the document,  I fail to get a 
reference for the table where the cursor is in… has anyone figured out how to 
do that?

How cool would that be ;-)

Rudy Mortier
Two Way Communications bvba 



> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Try putting the collection in a c_object and store the c_object in an 
> c_object field, or put the collection directly into the c_object  field
> 
> I am assuming that $tableObj is the object reference to the table. If tables 
> are anything like images, your plan might not work. Each time a document is 
> opened any images in the document gets a new object reference. If that is the 
> case with tables, your stored references will not work.
> 
> John
> 
> 
> 
> John Baughman
> 1331 Auwaiku Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
> 
>> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I love the concept of tables in 4D Write Pro.
>> 
>> You can only add or change them by code, which is fine by me for the  moment.
>> But what to do if a table has been created, and, in the 4D Write Pro 
>> document, you would want to add a column, or a row? Or change the width, the 
>> borders etc?
>> 
>> Apparently there is no way to select the table object. I have tried WP Get 
>> selection, but that doesn’t work for tables. Or maybe I am missing something.
>> 
>> I found out that I can select the table again (in code) using WP 
>> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
>> the table object in a collection. (Yes, I am using deep copy)
>> I do that for every table created in the 4D Write Pro document.
>> When I save the record, I put the collection variable in a blob (VARIABLE TO 
>> BLOB), so I can retrieve the objects again.
>> 
>> When I open the record, I read the collection from the blob (BLOB TO 
>> VARIABLE), but OK returns 0, and the collection variable stays empty.
>> 
>> Here’s the code:
>> 
>> C_COLLECTION(c4WRTableCollections)   
>> c4WRTableCollections:=New collection
>> BLOB TO VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>>  
>> 
>>  
>> Any idea why it’s doing that, and how one could create a table in a 4D Writw 
>> PRO document, save it, open it again, and edit the table?
>> 
>> 
>> 
>> Regards,
>> 
>> Rudy Mortier
>> Two Way Communications bvba 
>> 
>> 
>> **
>> 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
> **

**
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: V17 - No Glass Buttons

2018-07-11 Thread Wayne Stewart via 4D_Tech
I’d create a project form with the glass buttons and then either copy and
paste them in or better still Inherit the form.


On Wed, 11 Jul 2018 at 17:39, Robert McKeever via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Created a test database. New Table. Added 1 field.
>
> Go to create a form via the wizard. Move the field and the uuid to the
> form. Go to Advanced. No Glass buttons. I quit V17.
>
> I copied the Button Images ‘Glass’ folder into the Resources folder —>
> Images —> Buttons —> Glass just like a v15 database has.
>
> Reopened the v17 database. No Glass buttons.
>
> Created test database in V15, created forms with Glass buttons. Closed it.
> Converted it to V17. Glass buttons are shown on the forms. But the Wizard
> still does not know about them.
>
> So, how do I create templates with Glass Buttons, my fonts, etc.?
>
> _
> Bob McKeever  http://www.mswl.com <
> 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
> **

-- 

Regards,

Wayne
**
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 Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
You’re right, John.

When I re-open the document, the table has another reference, and WP SELECT 
doesn’t work anymore…

Is there any other way to get the object reference for a table in a 4D Write 
PRO document?

WP Get selection doesn’t seem to work for table objects: 

$WPRange:=WP Get selection([_10_Report_templates]Template_WRPRO)
WP GET ATTRIBUTES($WPRange;wk start;Start)
WP GET ATTRIBUTES($WPRange;wk end;$end)
WP GET ATTRIBUTES($WPRange;wk type;$type)
WP GET ATTRIBUTES($WPRange;wk table id;$tblid)

wk type always returns 0, and an error is returned when getting the wk table id 
… no matter what I select in the document.


Rudy Mortier
Two Way Communications bvba 



> On 11 Jul 2018, at 00:30, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Try putting the collection in a c_object and store the c_object in an 
> c_object field, or put the collection directly into the c_object  field
> 
> I am assuming that $tableObj is the object reference to the table. If tables 
> are anything like images, your plan might not work. Each time a document is 
> opened any images in the document gets a new object reference. If that is the 
> case with tables, your stored references will not work.
> 
> John
> 
> 
> 
> John Baughman
> 1331 Auwaiku Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
> 
>> On Jul 10, 2018, at 11:45 AM, Two Way Communications via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> I love the concept of tables in 4D Write Pro.
>> 
>> You can only add or change them by code, which is fine by me for the  moment.
>> But what to do if a table has been created, and, in the 4D Write Pro 
>> document, you would want to add a column, or a row? Or change the width, the 
>> borders etc?
>> 
>> Apparently there is no way to select the table object. I have tried WP Get 
>> selection, but that doesn’t work for tables. Or maybe I am missing something.
>> 
>> I found out that I can select the table again (in code) using WP 
>> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
>> the table object in a collection. (Yes, I am using deep copy)
>> I do that for every table created in the 4D Write Pro document.
>> When I save the record, I put the collection variable in a blob (VARIABLE TO 
>> BLOB), so I can retrieve the objects again.
>> 
>> When I open the record, I read the collection from the blob (BLOB TO 
>> VARIABLE), but OK returns 0, and the collection variable stays empty.
>> 
>> Here’s the code:
>> 
>> C_COLLECTION(c4WRTableCollections)   
>> c4WRTableCollections:=New collection
>> BLOB TO VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>>  
>> 
>>  
>> Any idea why it’s doing that, and how one could create a table in a 4D Writw 
>> PRO document, save it, open it again, and edit the table?
>> 
>> 
>> 
>> Regards,
>> 
>> Rudy Mortier
>> Two Way Communications bvba 
>> 
>> 
>> **
>> 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
> **

**
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
**

V17 - No Glass Buttons

2018-07-11 Thread Robert McKeever via 4D_Tech
Created a test database. New Table. Added 1 field.

Go to create a form via the wizard. Move the field and the uuid to the form. Go 
to Advanced. No Glass buttons. I quit V17.

I copied the Button Images ‘Glass’ folder into the Resources folder —> Images 
—> Buttons —> Glass just like a v15 database has.

Reopened the v17 database. No Glass buttons.

Created test database in V15, created forms with Glass buttons. Closed it. 
Converted it to V17. Glass buttons are shown on the forms. But the Wizard still 
does not know about them. 

So, how do I create templates with Glass Buttons, my fonts, etc.?

_
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
**