Re: Web server: All page links appear as visited after update

2017-03-23 Thread Kirk Brooks via 4D_Tech
Alright, I got it. I was playing with a couple of datepicker widgets and
the CSS for the jQuery datepicker is the culprit. Not sure why - aside from
complaining about using IDs in selectors the CSS linters I pasted it in
didn't flag anything else. However, when it's in the page the error occurs
and when it's out it doesn't. Which is fine because I abandoned the jQuery
datepicker anyway.

Thanks Justin and Lee.

On Thu, Mar 23, 2017 at 8:26 AM, Kirk Brooks  wrote:

> I have 4D web server render a page. The page contains a date picker the
> user can use to pick a date. When they do the page makes a call back to 4D
> where the requested data are found and returned to the page as TEXT
> (stringified JSON). The web page then parses this data into a div. jQuery,
> bootstrap4 and handlebars are the primary tools on the page.
>
> The issue I'm up against is all the links on the page, in the new data and
> existing, now display in the 'visited' state. Can someone offer a little
> insight into what causes this?
>
> Thanks
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
>



-- 
Kirk Brooks
San Francisco, CA
===
**
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 freezing on print preview

2017-03-23 Thread Keith Culotta via 4D_Tech
Just to add a datapoint, 4D Mac v15.current seems to be the only app that 
causes Preview to unexpectedly quit when getting a print preview.  It does not 
affect 4D however.

Keith - CDI


> On Mar 23, 2017, at 4:07 PM, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> So, nobody else in the world has encountered this?
> That’s good for you but bad for me…
> 
>> Hi all.
>> We are using 4D v15.2 on Win7, Win10, Win Server 2012 (or similar). All good.
>> 
>> We have just tested 4D v15.4 and v15.4 HF1 and found both to freeze whenever 
>> we print preview a report.
>> All seems to work fine until about the point where 4D would hand off control 
>> to XPS Viewer, and then 4D freezes.
>> 
>> After force quit, starting the exact same structure (and data) with 4D v15.2 
>> and print preview works fine, so I don’t believe it is the XPS printer at 
>> fault.
>> 
>> We were in the final stages of testing our application prior to releasing a 
>> new version that was going to use 4D v15.4.
>> This show stopper has prevented that.
>> 4D Tech Support are unable to duplicate the problem.
>> 
>> Has anyone else seen this?
>> Did you find a way to fix it?
>> Cheers, Keith
> **
> 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
> **

**
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: Web server: All page links appear as visited after update

2017-03-23 Thread Kirk Brooks via 4D_Tech
If it were a typo wouldn't the linter flag it?

Plus, wouldn't the issue show up in the standalone page as well as the one
served by the server when displaying the same HTML?

On Thu, Mar 23, 2017 at 10:23 AM, Lee Hinde via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yea, what Justin said. A typo in the url  or 
> The work around, of course is to change the style for a a:visited...
>
>
> On Thu, Mar 23, 2017 at 8:26 AM, Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > I have 4D web server render a page. The page contains a date picker the
> > user can use to pick a date. When they do the page makes a call back to
> 4D
> > where the requested data are found and returned to the page as TEXT
> > (stringified JSON). The web page then parses this data into a div.
> jQuery,
> > bootstrap4 and handlebars are the primary tools on the page.
> >
> > The issue I'm up against is all the links on the page, in the new data
> and
> > existing, now display in the 'visited' state. Can someone offer a little
> > insight into what causes this?
> >
> > Thanks
> >
> > --
> > Kirk Brooks
> > San Francisco, CA
> > ===
> > **
> > 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
> > **
> **
> 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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===
**
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: Component Capabilities

2017-03-23 Thread John DeSoi via 4D_Tech

> On Mar 23, 2017, at 11:54 AM, Nigel Greenlee via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> What i am really interested in is to know what others who have undertaken 
> this kind of thing have done to get around :
> 
> 
> METHOD GET CODE($_Txt_MethodName;$_t_MethodText;*) ... (ETC)
> 
> This of course cannot be executed on the component when it is compiled(and 
> there is no point in this component if it is not compiled).-i had a try of 
> running it in an execute statement-but that did not work(unless i missed 
> something)!

I would suggest writing the method information to files when you build the 
component. Create some JSON files with the method paths and other information 
that would allow you to emulate the METHOD * commands. 

I'm working on something like this where the goal would be to have "modules" 
maintained in a component. If changes are needed, the all or part of the module 
is loaded in the host. The host methods will automatically be used over the 
component calls, so you don't have to stop what you are doing to change the 
component. The final step will be automation of removing the methods from the 
host and merging them back in the component. Having a on disk representation 
allows git or some other VCS to be part of the process.


> Now i am dealing with forms where I get lots of raw information.
> 
> (for example)...
> 
> OBJECT GET EVENTS(*;"";$_aL_FormEvents)  //gets a list of the form events
> FORM GET VERTICAL RESIZING($_Bo_vResize;$_L_minHeight;$_L_MaxHeight)
> FORM GET HORIZONTAL RESIZING($_Bo_hResize;$_L_mWidth;$_L_MaxWidth)
> 
> ...and I wondered if anyone has found a way to do this kind of thing from a 
> compiled component on the uncompiled structure. If it can't i will just move 
> the object process(comparison to old version of form) but I thought maybe I 
> am missing a trick…

FORM LOAD("form";*) ?

John DeSoi, Ph.D.


**
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: Web server: All page links appear as visited after update

2017-03-23 Thread Lee Hinde via 4D_Tech
Yea, what Justin said. A typo in the url  or  wrote:

> I have 4D web server render a page. The page contains a date picker the
> user can use to pick a date. When they do the page makes a call back to 4D
> where the requested data are found and returned to the page as TEXT
> (stringified JSON). The web page then parses this data into a div. jQuery,
> bootstrap4 and handlebars are the primary tools on the page.
>
> The issue I'm up against is all the links on the page, in the new data and
> existing, now display in the 'visited' state. Can someone offer a little
> insight into what causes this?
>
> Thanks
>
> --
> Kirk Brooks
> San Francisco, CA
> ===
> **
> 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
> **
**
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
**

Component Capabilities

2017-03-23 Thread Nigel Greenlee via 4D_Tech
All

I recently posted regarding some work i have been doing to move(and improve) my 
code management functionality from my database to a component. The main 
objective of this was speed. Having moved all my code relating to methods i am 
now looking at the code i have that stores a binary version of a 4D form. I 
have perfectly working in code in my (host) database but i really would like to 
move as much of this one to my component as possible.-it does a fair bit of 
‘heavy lifting reading all the properties of each object on each page of each 
form and building an object(for the form)  and then comparing the object to the 
previous version.

What i am really interested in is to know what others who have undertaken this 
kind of thing have done to get around :


METHOD GET CODE($_Txt_MethodName;$_t_MethodText;*) ... (ETC)

This of course cannot be executed on the component when it is compiled(and 
there is no point in this component if it is not compiled).-i had a try of 
running it in an execute statement-but that did not work(unless i missed 
something)!


With project methods etc I am getting them on the host and passing the code to 
the component for processing-it returns(if required) updated code, to be honest 
that is good enough for speed. I am pretty happy with the results



Now i am dealing with forms where I get lots of raw information.

(for example)...

OBJECT GET EVENTS(*;"";$_aL_FormEvents)  //gets a list of the form events
FORM GET VERTICAL RESIZING($_Bo_vResize;$_L_minHeight;$_L_MaxHeight)
FORM GET HORIZONTAL RESIZING($_Bo_hResize;$_L_mWidth;$_L_MaxWidth)

...and I wondered if anyone has found a way to do this kind of thing from a 
compiled component on the uncompiled structure. If it can't i will just move 
the object process(comparison to old version of form) but I thought maybe I am 
missing a trick…

I looked at the work done in the unit testing programme from Mark Schaak-to see 
what cleverness he might be up to and notice that in there he has ready to go 
code for the host component which creates methods-but i could not see anything 
more complex than that(in this case i don’t need to create methods on the host 
database-they already exist and I am nor distributing this code)

any ideas?


Nigel Greenlee









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

v13 - Callendars and push to ical

2017-03-23 Thread Chip Scheide via 4D_Tech
I have installed a calendar into my system. It is based on, but 
modified from, Dave Batton's old calendar system. So it is not a 
plugin, nor a component.

When I run the calendar system from a stand alone version of 4D the 
system communicates (pushes scheduled items) to iCal on the same 
machine.
I have been unable to get the push to function when the code runs in 
C/S.

Any ideas as to where to look for a solution?
THanks

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

repost : Printer selection issue

2017-03-23 Thread Chip Scheide via 4D_Tech
I am having an issue with printer selection.
On Mac OS X, the default printer (in 4d only?) for the first print 
dialog (Page Setup) is "Any Printer" 

I have found that the margins(?) or Page Size(?), are different than 
the Xerox printers that are used here, and probably different than any 
actual printer. This affects printing, usually by causing an extra 
blank page to be printed.  In some instances the blank page is first, 
and others it is after. Either way, when working with printing 
precisely aligned forms (customized label forms) this causes a problem.

The users know, or at least should know by now, to select a specific 
printer in the page setup dialog; however, often they don't, and this 
screws up label printing.

I have tried to address the issue by using 
SET CURRENT PRINTER to insure that the correct printer is actually 
selected.
BUT, I am not getting anywhere.

I use the following code:
PRINTERS LIST($Printers;$Locations;$Models)
$Current_Printer:=Get current printer
$Loc:=Find in array($Printers;$Current_Printer)

If ($Loc>0)
SET CURRENT PRINTER($Printers{$Loc})
Else 

End if 

On my computer there *is* a default printer selected at the OS level.
Stepping through the above code, shows that it is recognized as the 
current printer ($Current_Printer).
Additionally, even after re-setting the current printer as the current 
printer, the Page setup dialog still maintains the default 'any 
printer'. THe code set, or default printer DOES show correctly i the 
second dialog (print job) dialog.

Within any single process, this happens for the first time printing. 
HOWEVER, if I print (including preview) and then print again (in the 
same process) the Page setup Dialog DOES finally have the correct 
printer selected.

If I start a new process in which I am printing, the above scenario 
repeats itself. i.e. the first time through the dialogs the selected 
printer for Page setup is 'any printer'.

I have tried (and none have worked):
- Set printer - and suppressing the page setup dialog
- set printer to a different printer from the current printer, then 
changing it back with and without suppressing the page setup dialog
i.e. set printer to B from A, then set it back to A 
- setting the current printer to the default printer
- setting printer to a different printer


any help??

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