Javascript Calendar in Web Area

2018-02-08 Thread truegold via 4D_Tech
Hi All,

I am redesigning an internal invoicing tool I use which has a calendar module. 
So I thought, “hey, why not use one of those Javascript Calendar in a web area”?

I’m still in the early stages of understanding how to get data into and get 
data out of a web area. So…

Has anyone used a javascript library (I’m looking at FullCalendar 3.8.2) for 
implementing a calendar (Monthly, weekly, daily) in a web area? One where you 
can add to and modify as needed with data syncing into the 4D database?

Any recent/current examples?

Psss. I’d look at Google Mail but I want the calendar interface to work 
completely offline.

Appreciate,
John…

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

RE: 4D Parameter

2018-02-08 Thread Tim Nevels via 4D_Tech
On Feb 8, 2018, at 9:57 AM,Timothy Penner wrote:

>> And this is something many of us have been wanting for a long time. The 
>> ability to have each Stored Procedure running on 4D Server be a preemptive 
>> process so that it cannot hog the CPU. Then my comment about putting using 
>> DELAY PROCESS to throttle down Stored Procedures would not be necessary. The 
>> Stored Procedure would get managed by the operating system and its load 
>> would spread out over all cores on the CPU. Hence it would not have such a 
>> big impact on end user experience. Right?
> 
> No. Each preemptive process can take up to 1 full core.
> If you have 10 cores you want to utilize then you can run 10 premptive 
> processes.

But currently every process for every user and every Stored Procedure all run 
on the same core on 4D Server. Everything that uses the 4D language on the 
server shares the same core. Right?

So if you have 5 Stored procedures and they all are running at the exact same 
time, then with preemptive processes each Stored Procedure would run on it’s 
own core. So instead of 5 Stored Procedures all sharing 1 core, each get’s it’s 
own core. And the operating system will move those 5 Stored Procedures around 
to different cores as it sees fit. 

It is the elimination of sharing a single core on 4D Server for everything that 
uses the language that is where you get the benefit. So a single preemptive 
process can hog the CPU all it wants but it can only do that on a single core. 
All the other cores are free from this hogging and can go about their normal 
business and not be dramatically impacted as they are now.

Am I understanding this right?

>> One more question. Do triggers running on 4D Server also benefit from this? 
>> Can they all run as preemptive processes? If so, is this something that 
>> happens automatically? If you just have some code in a trigger, does it run 
>> preemptively or cooperatively? Or do you have to call a method from the 
>> trigger that is set to run preemptive to get this? I’ve never understood 
>> exactly how this works in regards to triggers.
> 
> I don’t think Triggers work that way. But this sounds like a great question 
> to ask at the Summit in DC this April (or in Paris this March).


I will definitely do that. I think is is a very important implementation point 
to understand. Particularly if you half a system with 200+ users all saving 
records in tables that all have trigger code. 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

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

Re: Intermittent server crashes

2018-02-08 Thread Mitchell Shiller via 4D_Tech
I believe I have a clue.

The last three crashes occurred overnight when new updates were available to be 
installed. i.e. I get the notification on the desktop from macOS that an update 
is ready.
The server ran fine for 7 days prior to that.

How do I report this to 4D?


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

Re: HTTP Body Size

2018-02-08 Thread Douglas Cryer via 4D_Tech
Re:

> On 8 Feb 2018, at 15:57, 4d_tech-requ...@lists.4d.com 
>  wrote:
> 
> I wouldn't do this, it trims the BLOB at 32K unless you specify the UTF8 
> constants (see docs).
> you might want to consider CONVERT FROM TEXT instead.
> 
>> 2018/02/08 17:36、Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com 
>> > のメール:
>> TEXT TO BLOB($vt_Request;$vx_Request)
> 


My bad.  In fact I was doing TEXT TO BLOB($vt_Request;$vx_Request;UTF8 text 
without length)  I missed that when typing it into the email.

We have also tried sending the image as the payload instead of making it JSON 
as well as many other things.

I forgot to mention we are doing the call from v16R5 desktop application to a 
v15.4 server not that that should make a difference but possibly someone knows 
different.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com   Web : 
http://www.telekinetix.com 

 

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

Re: Moving picture resources from one database to another

2018-02-08 Thread Jeffrey Kain via 4D_Tech
Don't be using Mac resources anymore. 

Get those pictures into files and put them into the Resources folder next to 
your structure file (there's even a drag and drop GUI (Design menu->Tool 
Box->Resources) where you can drag pictures from your desktop into the window 
and 4D will copy them to Resources automatically, and you can drag them out 
this window and onto a form where 4D will create a reference to this picture, 
much like the picture library.

--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Feb 8, 2018, at 10:49 AM, Dave Tenen via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am trying to move some picture resources between two structure file (on a 
> Mac) and it seems that you can’t move multiple resources at a time.  Is this 
> true?

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

Moving picture resources from one database to another

2018-02-08 Thread Dave Tenen via 4D_Tech
Hello out there.

I am getting back into the 4D world after a few years of absence, so forgive my 
questions!

I am trying to move some picture resources between two structure file (on a 
Mac) and it seems that you can’t move multiple resources at a time.  Is this 
true?

Are there any tools out there to make this whole process over merging 
structures a little more organized or trackable?

Thanks in advance,
Dave Tenen


Personal Chef 

Coming to you from Spec Pond and I swear the fish was
[]
this big

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

Re: HTTP Body Size

2018-02-08 Thread Douglas Cryer via 4D_Tech
Jeremy,

Thanks.  I have tried setting the headers with various values for Content-Type 
despite the documentation stating that these are defaulted for the different 
data types.  http://doc.4d.com/4Dv15/4D/15.5/HTTP-Request.301-3576985.en.html 


I have not played with Content-Length so that is probably worth a try.  I guess 
I assumed that 4D would be able to figure that out for itself.  What would I 
need to put in Content-Length?  The BLOb or image size depending on what I send?

The strange this is that the send sometimes works but more often it does not 
and still returns a status 200 following an unreachable message.  Every test 
has been using the same small 4k image file.

Regards,  Dougie


> On 8 Feb 2018, at 14:31, Jeremy French  wrote:
> 
> Hi Doug,
> 
> When you use "HTTP Request" command with the "HTTP Post method" constant, I 
> believe you also need to submit request headers.
> 
> In particular, headers such as:
> Content-Length
> Content-Type
> 
> Regards, Jeremy
> 
> 
>> $vl_Status:=HTTP Request(HTTP Post Method;”MYURL”;$vx_Request;$vx_Response)  
>> //Also tried adding various headers
> 



telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com   Web : 
http://www.telekinetix.com 

 

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

Re: HTTP Body Size

2018-02-08 Thread Jeremy French via 4D_Tech
Hi Doug,

When you use "HTTP Request" command with the "HTTP Post method" constant, I 
believe you also need to submit request headers.

In particular, headers such as:
Content-Length
Content-Type

Regards, Jeremy


> $vl_Status:=HTTP Request(HTTP Post Method;”MYURL”;$vx_Request;$vx_Response)  
> //Also tried adding various headers

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

CREATE VIEW and then QR

2018-02-08 Thread Sujit Shah via 4D_Tech
Is it possible to create a view and then allow the user to select the
fields and print reports using Quick Reports?



-- 

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: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: HTTP Body Size

2018-02-08 Thread Keisuke Miyako via 4D_Tech
I wouldn't do this, it trims the BLOB at 32K unless you specify the UTF8 
constants (see docs).
you might want to consider CONVERT FROM TEXT instead.

> 2018/02/08 17:36、Douglas Cryer via 4D_Tech <4d_tech@lists.4d.com> のメール:
> TEXT TO BLOB($vt_Request;$vx_Request)




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

Re: HTTP Body Size

2018-02-08 Thread Douglas Cryer via 4D_Tech
Jeremy,

Re:
> Instead of a text variable, you can also use a blob variable to avoid the 
> size limitation.
> 
> http://doc.4d.com/4Dv16R5/4D/16-R5/WEB-GET-HTTP-BODY.301-3481155.en.html 
> 

Yes in fact I am declaring the body variable as a BLOb and passing a BLOb from 
the client.

Roughly speaking here is what I am doing on the client:

C_LONGINT($vl_MyID)
C_PICTURE($vg_Image)
C_BLOB($vx_ImageBlob;$vx_Request)
C_TEXT($vt_ImageB64Text;$vt_Request;$vx_Response)
C_OBJECT($vo_Object)
$vl_MyID:=1
PICTURE TO BLOB($vg_Image;$vx_ImageBlob)
BASE64 ENCODE($vx_ImageBlob;$vt_ImageB64Text)

$vo_Object:=New object
$vo_Object.id :=$vl_MyID
$vo_Object.image:=$vt_ImageB64Text

$vt_Request:=JSON Stringify($vo_Object)
TEXT TO BLOB($vt_Request;$vx_Request)

HTTP AUTEHNTICATE(“TEST”;”TESTPASS”)
$vl_Status:=HTTP Request(HTTP Post Method;”MYURL”;$vx_Request;$vx_Response)  
//Also tried adding various headers
$vt_Response:=BLOB to text($vx_Response;UTF8 text without length)
$vo_Response:=JSON parse($vt_Response;Is object)

I have built dozens of POST methods like this and all have worked till I try to 
put a relatively small BASE64 encoded image into the JSON and the subsequent 
BLOb.  I have also built several rest calls that send out images following a 
GET Request.  The POST just seems to cause the Web Server some major problems.  
It seems to hang the On web authentication part...

I am looking for a way to send the images that works.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com   Web : 
http://www.telekinetix.com 

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