Re: Subform get record info when click on row

2019-11-24 Thread Garri Ogata via 4D_Tech
Hi Kirk, ThanksThanks again, Garri Ogata From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> Sent: Sunday, November 24, 2019 4:11 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Kirk Brooks Subject: Re: Sub

Re: Subform get record info when click on row

2019-11-23 Thread Garri Ogata via 4D_Tech
cal <4d_tech@lists.4d.com> Cc: Kirk Brooks Subject: Re: Subform get record info when click on row Gary, What version are you working on? On Sat, Nov 23, 2019 at 3:57 PM Garri Ogata via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Greetings, > > I have an output subform (list,

Re: Subform get record info when click on row

2019-11-23 Thread Garri Ogata via 4D_Tech
t sounds like you would rather not highlight the clicked line, so you would now need to deal with that issue. > 2019/11/24 8:57、Garri Ogata via 4D_Tech <4d_tech@lists.4d.com>のメール: > I have the on clicked event set and when I trace it does not show the record > info? Is t

Subform get record info when click on row

2019-11-23 Thread Garri Ogata via 4D_Tech
Greetings, I have an output subform (list, selection mode none, enterable in list), that I want to get the record clicked on when a user clicks in a field (cell) in the subform. Is there a way to do this? I have the on clicked event set and when I trace it does not show the record info? Is the

Re: CASE statement = True but it behaves as though it's False

2019-10-06 Thread Garri Ogata via 4D_Tech
hmmm... now that I look at it you could also just do this //Only these columns are valid for override $bValidColumn:=(\ ($hbf="b") | \ ($hbf="f") | \ ($hbf="h") ) if ($bValidColumn) ptra2tCellStylesBody->{$row}{$ElementOrder}:=$t End if From: 4D_Tech <4d_tech-

Re: CASE statement = True but it behaves as though it's False

2019-10-06 Thread Garri Ogata via 4D_Tech
Hi Pat, This should work and is possibly easier to fix or change. For style purposes I like using multi-line if I think something could grow more than 3 or using an array and then find in array to verify. I also want you to know that yes we are interested. 🙂 $t:="" //Only these columns are va

Re: Replacing Obsolete Subtable Commands in v15 to v17 Migration

2019-06-11 Thread Garri Ogata via 4D_Tech
You may also want to offer just try doing 2c and use the get subrecord key function in v15. Keeping the id field. From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of Olivier Deschanels via 4D_Tech <4d_tech@lists.4d.com> Sent: Tuesday, June 11, 2019 11:34 A

Re: Coding/Development Style Guide?

2018-12-18 Thread Garri Ogata via 4D_Tech
Tom, I use a naming convention and a set of methods that gets created for every module and form. I have used it with multiple programmers some where working on a server and some remotely. I would be glad to share with you if you like. Most of it is documented. It is based on using a four letter

Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread Garri Ogata via 4D_Tech
Greetings, Thanks for all the tips. I ended up using the shift key when opening the explorer window. That was a nice quick fix. And I've added the tech tip to my code base and ran it also. Thanks again for the help. And Happy T-Day to everyone. Garri From: 4

Explorer bottom toolbar not displaying...

2018-11-20 Thread Garri Ogata via 4D_Tech
Hello, 4D v15.3 explorer is not displaying the bottom toolbar. There is no add, minus (delete), or arrow for preview or comments button. How do you get these to reappear? Thanks, Garri Ogata ** 4D Internet Users Group (4D iNUG

Re: syntax : pointer to an element of a sub-array of 2D array

2017-06-02 Thread Garri Ogata via 4D_Tech
Greetings, Using Get pointer is another way of doing as well. C_LONGINT($iField;$iTable;$iColumn) C_TEXT($t2DAName;$tWorld;$t2DAColumn) C_POINTER($p2DA;$pCol2) ARRAY TEXT($at2D;3;3) ARRAY TEXT($atCol2;0) $at2D{2}{1}:="hello" $at2D{2}{2}:="world" $at2D{2}{3}:="by" $pat2D:=->$at2D RESOLVE POINT

Re: Limit input into alpha characters into variable

2017-05-12 Thread Garri Ogata via 4D_Tech
Hi Keith, Heres a code snippet if it helps $iFormEvent:=Form event Case of : ($i=On Load) C_TEXT(Test) : ($i=On After Keystroke) $t:=Get edited text If (Length($t)>10) Test:=Substring($t;1;10) End if End case From: Garri Ogata Sent: Friday, May 12, 20

Re: Limit input into alpha characters into variable

2017-05-12 Thread Garri Ogata via 4D_Tech
Hi Keith, You can use a field with a set size. Or you can trap for after Keystroke and use get edited Text and do substring. Garri From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of Keith White via 4D_Tech <4d_tech@lists.4d.com> Sent: Friday, May 12

Re: Getting component to update

2017-04-24 Thread Garri Ogata via 4D_Tech
Hi Chip, Is it possible you have the component in multiple places? Heres from the manuals. Not sure if this is your issue though. Location of PlugIns and Components folder You can put the PlugIns and Components folders in two different places: * At the level of the 4D executable applic

Re: Components: How do you reuse utility code?

2017-04-20 Thread Garri Ogata via 4D_Tech
I think components are great for methods that: 1. Rely only on local variables. 2. Are useful everywhere (Generic, Utility etc.) I call mine Core_ 3. If a component method is causing issues. I copy and paste it into the host library fix the issue. From: 4D