Integration with card payment terminal

2018-11-23 Thread macjimbo via 4D_Tech
Greetings

Has anyone integrated a 4D application with a chip & pin terminal eg
Ingenico? 

Appreciate any pointers. 

TIA

James



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
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: Explorer bottom toolbar not displaying...

2018-11-23 Thread Tim Nevels via 4D_Tech
On Nov 22, 2018, at 8:09 AM, Chip Scheide <4d_o...@pghrepository.org> wrote:

> listbox columns etc are saved -- does this include list boxes that are 
> dynamically built?
> i.e. are simply empty place holders in the designer environment?

Hi Chip,

I do not know. I’ve always built list boxes with the form editor and using the 
Properties palette. 

My guess is no. Thinking like a programmer when it is time to load a form you 
grab the form definition from the structure and then deal with it. If you have 
a saved window bounds/geometry you apply that to the form definition you loaded 
and then let the “On Load” form method event run. That’s thinking from a 
programmer/software engineer point of view. 

You are gonna have to test it to know for sure.

Tim

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

**
4D Internet Users Group (4D iNUG)
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: Resource Pictures

2018-11-23 Thread JOHN BAUGHMAN via 4D_Tech
Another note to Keisuke’s instructions. You cannot just change the number. 
After doing the first one as Keisuke described manualyl, the name and negative 
number must be replaced by just the new positive number. 

1. Change one of the objects manually to a static picture an back to a 
library picture.
2. If the name does not appear go to the picture library and and the 
name to the picture.
3. Find in Design the whole name/-number
4. Replace in content with just the new positive number (the name will 
remain)


> On Nov 23, 2018, at 2:44 PM, JOHN BAUGHMAN  wrote:
> 
> Keisuke, Thank you! Your instructions worked well. One thing to note is that 
> the first (only one so far) that I updated this way changed the icon. The 
> name of the picture is "Separateur vertical Mac” and was a small solid grey 
> vertical line. It is now a dotted line. No problem, but I will have to be 
> careful if I find any more negative number resources.
> 
> John
> 
>> On Nov 23, 2018, at 1:51 PM, Keisuke Miyako via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> some converted structures contain negative picture resources IDs.
>> 
>> you must first assign them positive IDs, but this must be done manually.
>> 
>> find in design, search negative number.
>> double click search result (form object).
>> confirm that the object is a resource picture.
>> in property list, change picture type from library to static.
>> revert to library picture. a new positive ID is issued.
>> - keep note of the picture name (including the slash sign)
>> - keep note of the old/new resource number.
>> 
>> find in design, search "name / old negative resource number"
>> remove any irrelevant items from search results.
>> perform global replace to new positive number.
>> 
>> find in design, search "old negative resource number"
>> remove any irrelevant items from search results.
>> perform global replace to new positive number.
>> 
>> once all pictures are converted to library pictures,
>> you can systematically access them by code.
>> 
>> 
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> 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)
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: Resource Pictures

2018-11-23 Thread JOHN BAUGHMAN via 4D_Tech
Keisuke, Thank you! Your instructions worked well. One thing to note is that 
the first (only one so far) that I updated this way changed the icon. The name 
of the picture is "Separateur vertical Mac” and was a small solid grey vertical 
line. It is now a dotted line. No problem, but I will have to be careful if I 
find any more negative number resources.

John

> On Nov 23, 2018, at 1:51 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> some converted structures contain negative picture resources IDs.
> 
> you must first assign them positive IDs, but this must be done manually.
> 
> find in design, search negative number.
> double click search result (form object).
> confirm that the object is a resource picture.
> in property list, change picture type from library to static.
> revert to library picture. a new positive ID is issued.
> - keep note of the picture name (including the slash sign)
> - keep note of the old/new resource number.
> 
> find in design, search "name / old negative resource number"
> remove any irrelevant items from search results.
> perform global replace to new positive number.
> 
> find in design, search "old negative resource number"
> remove any irrelevant items from search results.
> perform global replace to new positive number.
> 
> once all pictures are converted to library pictures,
> you can systematically access them by code.
> 
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> 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)
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: Resource Pictures

2018-11-23 Thread Keisuke Miyako via 4D_Tech
some converted structures contain negative picture resources IDs.

you must first assign them positive IDs, but this must be done manually.

find in design, search negative number.
double click search result (form object).
confirm that the object is a resource picture.
in property list, change picture type from library to static.
revert to library picture. a new positive ID is issued.
- keep note of the picture name (including the slash sign)
- keep note of the old/new resource number.

find in design, search "name / old negative resource number"
remove any irrelevant items from search results.
perform global replace to new positive number.

find in design, search "old negative resource number"
remove any irrelevant items from search results.
perform global replace to new positive number.

once all pictures are converted to library pictures,
you can systematically access them by code.





**
4D Internet Users Group (4D iNUG)
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: One Set of Code for Form Object Populated Forms as well as Field-Based Detail View Forms

2018-11-23 Thread Keisuke Miyako via 4D_Tech
it is not a bug.

the 1st generation of form design in 4D was to bind process variables to 
objects and use variables directly in code.
the 2nd generation of form design (v12) was to keep the bound variable empty 
and use pointers to reference dynamic variables.

the main difference was in the scope of the variables: process or form.

I think the resulting heavy usage of pointers is rather consequential.
it is bonus that pointers work in both cases,
but I don't think that it should be the main focus.

"Form" based design is a total rethink of how to use variables in forms.
Form is an object, and an object is a reference,
which drastically reduces the need for pointers.

historically  a pointer can only point to tables, fields, variables and arrays.
it could have been extended to support object properties and collection members 
but that would send the wrong message.
if you use Form and This, you should never want to use pointers.
you should think of using object notation consistently in code and form.

this is not to say that "generic" code is discouraged in ORDA.
you just think of how to be generic in a different way.

it feels counter intuitive coming from classic 4D code,
but hard-coding object property paths everywhere is the key to writing generic 
and reusable code.



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

One Set of Code for Form Object Populated Forms as well as Field-Based Detail View Forms

2018-11-23 Thread Douglas von Roeder via 4D_Tech
Working with 17R2 (Mac client, Windows server) with a form whose values are
populated using ORDA and the Form object. The Company Name variable has an
object name of "CUSTOMERS_CompanyName_Field" and Form.record_O.CompanyName
is in the "Variable or Expression" entries in the Property List.
When this code runs in the object method for Company Name, $ptr_P is a nil
pointer:

$ptr_P:=OBJECT Get pointer(Object current)
$ptr_P:=OBJECT Get pointer(Object named;"CUSTOMERS_CompanyName_Field")

When I remove the text from "Variable or Expression", the above code
returns a pointer to the variable.

My goal is to have different forms whose objects shared the same object
name which would allow me to use the following code:

OBJ_GPBN ("CUSTOMERS_CustomerCode_Field")->:=CUSTOMER_CustCode_Calculate
(OBJ_GPBN ("CUSTOMERS_CompanyName_Field")->)

If this behavior is not a bug, what's the workaround to be able to use one
set of code that works with values that are populated using a Form object
as well as with detail view forms that use fields from a record?

--
Douglas von Roeder
949-336-2902
**
4D Internet Users Group (4D iNUG)
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: V15.2 to v17.0HF3 conversion problem

2018-11-23 Thread Keith Goebel via 4D_Tech
John, that’s a good idea.
In my case, the use of the “Mark One Eyeball” was probably quicker than writing 
the code and testing and then running.
For those with a massive number of forms, it would almost certainly be better 
to use your ideas.

Perhaps someone will write and donate a function to do the job that everyone 
can use.
Unless of course, 4D fix it. It has been reported but, with no way to provide a 
demo db of it, I don’t know if anything will be done about it.
Cheers, Keith

> On 24/11/2018, at 9:00 am, John DeSoi  wrote:
> You could write something to load each form and then use OBJECT Get action to 
> find the problem check boxes. 
> Or open a copy of the structure in 17R and export all the forms to search 
> them with your favorite text editor.
> 
>> On Nov 22, 2018, at 9:36 PM, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Wish I could say I found an easy way to locate the “bad" ones by using Find 
>> in Design, but I can’t - sorry - it was a purely manual “check every 
>> checkbox on every form” chore.
>> I found only 7 forms out of over a hundred that were affected, and only some 
>> of the checkboxes on those forms.
> 

**
4D Internet Users Group (4D iNUG)
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: V15.2 to v17.0HF3 conversion problem

2018-11-23 Thread John DeSoi via 4D_Tech
You could write something to load each form and then use OBJECT Get action to 
find the problem check boxes. 

Or open a copy of the structure in 17R and export all the forms to search them 
with your favorite text editor.

John DeSoi, Ph.D.


> On Nov 22, 2018, at 9:36 PM, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Wish I could say I found an easy way to locate the “bad" ones by using Find 
> in Design, but I can’t - sorry - it was a purely manual “check every checkbox 
> on every form” chore.
> I found only 7 forms out of over a hundred that were affected, and only some 
> of the checkboxes on those forms.

**
4D Internet Users Group (4D iNUG)
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: Resource Pictures

2018-11-23 Thread JOHN BAUGHMAN via 4D_Tech
Along the same line as my first question, I have 4 picture buttons that use the 
same Resource file. The property lists a resource ID, no name. I am pretty sure 
that the picture is a mask. I use these as movable guidelines over a photo for 
cropping in a QPix image area. I learned how to do this from a demo a long time 
ago. I cannot rememberer who gave the demo, it may have been Dave Batton, but I 
no longer remember exactly how/why it works.

In any event. The picture button is throwing a verification warning as 
referring tp a resource pict ID. I have no idea how to fix this one. Don’t know 
how to find the resource file and when I do find it, I’m not sure I know how to 
fix it.

I used TRANSFORM PICTURE to fix all my pictures in the Picture library in code. 
I have been using the same technique but with the pasteboard commands to fix 
all the problem static pictures on my forms. This one has got me stumped.

John

 

> On Nov 22, 2018, at 5:21 PM, JOHN BAUGHMAN  wrote:
> 
> I am going through a database in preparation for going to 64bi deployment and 
> fixing all the pictures. Where do I find a picture resource listed in the 
> Property list as…
> 
>   Image titre liste/-2082
> 
> I should know this. ;-(
> 
> Thanks,
> 
> John
> 
> 
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com 

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