RE: Understanding Unicode Characters

2018-12-19 Thread Timothy Penner via 4D_Tech
In case it wasn't clear -

Unicode U+2022 is the hex value, which corresponds to the decimal value of 
8226. 4D expects a longint which is the decimal value of 8226.
See more here: https://www.fileformat.info/info/unicode/char/2022/index.htm

Now for Char(165) this would equate to U+A5 which is listed here:
http://www.fileformat.info/info/unicode/char/a5/index.htm

-Tim




-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Timothy Penner via 
4D_Tech
Sent: Wednesday, December 19, 2018 3:13 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Timothy Penner 
Subject: RE: Understanding Unicode Characters

https://www.fileformat.info/info/unicode/char/2022/index.htm

HTML Entity (decimal)
HTML Entity (hex)
HTML Entity (named)
How to type in Microsoft WindowsAlt +2022
UTF-8 (hex)0xE2 0x80 0xA2 (e280a2)
UTF-8 (binary)11100010:1000:10100010
UTF-16 (hex)0x2022 (2022)
UTF-16 (decimal)8,226
UTF-32 (hex)0x2022 (2022)
UTF-32 (decimal)8,226
C/C++/Java source code"\u2022"
Python source codeu"\u2022"







-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Robert ListMail via 
4D_Tech
Sent: Wednesday, December 19, 2018 3:08 PM
To: 4D iNug Tech <4d_tech@lists.4d.com>
Cc: Robert ListMail 
Subject: Understanding Unicode Characters

In a galaxy far far away, we commonly used option-8 on the Mac to get a bullet 
glyph or symbol. At some point while converting databases from Mac to Windows 
this was changed to Char(165). Now, I see that Char(165), in a converted 
database, gives me the Yen sign. I’ve stumbled on the fact that Char(8226) 
gives me the bullet symbol in Windows but I don’t understand it.

So Option-8 on the Mac and Char(8226) via 4D seem to give me the same 
character, where Bbedit reports the character as:

Hex: E2 80 A2
Decimal: 226 128 162
Unicode: 2022

Why is the decimal value of 8226 not mentioned in the data above? Is there a 4d 
command that takes unicode values as a parameter, such that I could input 2022 
and get the bullet glyph?

Also when you look at the wiki referenced by the 4D docs 
(https://en.wikipedia.org/wiki/List_of_Unicode_characters 
) and refer to the 
bullet, you get “U+2022” and what seems like a decimal value of 916. Where is 
the 916 coming from and why is the unicode value written as “U+2022”, do you 
ever have to type “U+”?

Sorry for such a fundamental question, I guess it’s time to learn more about 
character sets.

Thanks,

Robert
**
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
**
**
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: Understanding Unicode Characters

2018-12-19 Thread Timothy Penner via 4D_Tech
https://www.fileformat.info/info/unicode/char/2022/index.htm

HTML Entity (decimal)
HTML Entity (hex)
HTML Entity (named)
How to type in Microsoft WindowsAlt +2022
UTF-8 (hex)0xE2 0x80 0xA2 (e280a2)
UTF-8 (binary)11100010:1000:10100010
UTF-16 (hex)0x2022 (2022)
UTF-16 (decimal)8,226
UTF-32 (hex)0x2022 (2022)
UTF-32 (decimal)8,226
C/C++/Java source code"\u2022"
Python source codeu"\u2022"







-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Robert ListMail via 
4D_Tech
Sent: Wednesday, December 19, 2018 3:08 PM
To: 4D iNug Tech <4d_tech@lists.4d.com>
Cc: Robert ListMail 
Subject: Understanding Unicode Characters

In a galaxy far far away, we commonly used option-8 on the Mac to get a bullet 
glyph or symbol. At some point while converting databases from Mac to Windows 
this was changed to Char(165). Now, I see that Char(165), in a converted 
database, gives me the Yen sign. I’ve stumbled on the fact that Char(8226) 
gives me the bullet symbol in Windows but I don’t understand it.

So Option-8 on the Mac and Char(8226) via 4D seem to give me the same 
character, where Bbedit reports the character as:

Hex: E2 80 A2
Decimal: 226 128 162
Unicode: 2022

Why is the decimal value of 8226 not mentioned in the data above? Is there a 4d 
command that takes unicode values as a parameter, such that I could input 2022 
and get the bullet glyph?

Also when you look at the wiki referenced by the 4D docs 
(https://en.wikipedia.org/wiki/List_of_Unicode_characters 
) and refer to the 
bullet, you get “U+2022” and what seems like a decimal value of 916. Where is 
the 916 coming from and why is the unicode value written as “U+2022”, do you 
ever have to type “U+”?

Sorry for such a fundamental question, I guess it’s time to learn more about 
character sets.

Thanks,

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

Understanding Unicode Characters

2018-12-19 Thread Robert ListMail via 4D_Tech
In a galaxy far far away, we commonly used option-8 on the Mac to get a bullet 
glyph or symbol. At some point while converting databases from Mac to Windows 
this was changed to Char(165). Now, I see that Char(165), in a converted 
database, gives me the Yen sign. I’ve stumbled on the fact that Char(8226) 
gives me the bullet symbol in Windows but I don’t understand it.

So Option-8 on the Mac and Char(8226) via 4D seem to give me the same 
character, where Bbedit reports the character as:

Hex: E2 80 A2
Decimal: 226 128 162
Unicode: 2022

Why is the decimal value of 8226 not mentioned in the data above? Is there a 4d 
command that takes unicode values as a parameter, such that I could input 2022 
and get the bullet glyph?

Also when you look at the wiki referenced by the 4D docs 
(https://en.wikipedia.org/wiki/List_of_Unicode_characters 
) and refer to the 
bullet, you get “U+2022” and what seems like a decimal value of 916. Where is 
the 916 coming from and why is the unicode value written as “U+2022”, do you 
ever have to type “U+”?

Sorry for such a fundamental question, I guess it’s time to learn more about 
character sets.

Thanks,

Robert
**
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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Jörg Knebel via 4D_Tech

> On 20 Dec 2018, at 24:09 AEDT, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Maybe you have a security setting that doesn't allow non https sites?


Nop, http://.com.au works, http://$$$.com does not
**
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: XML to JSON

2018-12-19 Thread Douglas von Roeder via 4D_Tech
Jeff:

That code's been in production for a few years, getting back the results of
an SAP web service (XML) and converting it for use with C_Object. Here's a
heads up from the client, who migrated it from V15 to V17:

"In the v15 component, 4D was interpreting certain nodes as Objects.  In
v17, 4D was interpreting the same nodes as Collections.   A new case in the
Case Statement “type = collection” fixed it."

HTH.
--
Douglas von Roeder
949-336-2902


On Wed, Dec 19, 2018 at 10:08 AM Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Awesome - thank you!
>
> **
> 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: XML to JSON

2018-12-19 Thread Jeffrey Kain via 4D_Tech
Awesome - thank you!

**
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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Reiner Kief via 4D_Tech
http://kb.4d.com/ 


Reiner Kief
Weinbergstr. 45
63853 Mömlingen
Germany

Member of die4dwerkstatt


> Am 19.12.2018 um 12:02 schrieb Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com>:
> 
> Any hints?

**
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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Reiner Kief via 4D_Tech
My Cliqz does also.

Reiner Kief
Weinbergstr. 45
63853 Mömlingen
Germany

Member of die4dwerkstatt

> Am 19.12.2018 um 12:29 schrieb Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com>:
> My Firefox can’t find it but Chrome does …

**
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: XML to JSON

2018-12-19 Thread Douglas von Roeder via 4D_Tech
Jeff:

This knowledgebase tech note will be helpful:

http://kb.4d.com/assetid=77416
--
Douglas von Roeder
949-336-2902


On Wed, Dec 19, 2018 at 8:42 AM Jeffrey Kain via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Anyone have some tested, robust XML to JSON code they'd be willing to
> share?
>
> All of a sudden the PHP library we're using for this is failing.  I'm
> guessing it must be data related (the data is coming from a 3rd party), but
> it would be cool to have a good solution in native 4D instead of using the
> PHP interpreter.
>
>
> Thanks in advance...
>
> Jeff
> **
> 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
**

XML to JSON

2018-12-19 Thread Jeffrey Kain via 4D_Tech
Anyone have some tested, robust XML to JSON code they'd be willing to share?

All of a sudden the PHP library we're using for this is failing.  I'm guessing 
it must be data related (the data is coming from a 3rd party), but it would be 
cool to have a good solution in native 4D instead of using the PHP interpreter.


Thanks in advance...

Jeff
**
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: UI Form Updates

2018-12-19 Thread Sandor Szatmari via 4D_Tech
That’s great.  I’ll have to read and digest…  thanks!

Sandor Szatmari

> On Dec 19, 2018, at 10:04, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> With an array listbox, 
> after you delete the record you can delete the row from the listbox.
> 
> 
> NOTES about array listboxes:
> there is a boolean array associated with the array listbox which is the 
> listbox
> lb_Display_Listbox  <- name of the listbox also name of the boolean 
> array.
> 
> to locate selected row(s):
> 
> Repeat
>  $Loc:=find in array(lb_Display_Listbox;true)
> 
>  if ($Loc>0)
>do stuff  //* see below for an example of Do stuff
>  end if
> until ($Loc<0)
> 
> 
> So... for the record deletion issue you can do something like this:
> * - Do stuff example
> 
>  delete record
>  Listbox Delete Rows(lb_Display_Listbox;$Row_Number;$How_Many)
> 
> This should be much faster, as you do not have to recreate the listbox 
> content through selection to array
> 
> Chip
> 
>> On Wed, 19 Dec 2018 09:21:56 -0500, Sandor Szatmari wrote:
>> 
>> Actually, I'm using an array based ListBox, but your comment led me 
>> to understand how I should apply the underlying concept of what you 
>> were getting at.
>> I added this code to the appropriate locations, to reestablish the 
>> selection in the child table and then propagate that data into the 
>> arrays being displayed in the ListBox.
>> 
>> 
>> QUERY([table];[table]ID=[LinkedTable]ID) 
>> SELECTION TO 
>> 
> ARRAY([table];Numbers;[table]EndpointType;Names;[table]EndpointAddress;Addresses)
>> 
>> 
>> Now the ListBox updates as desired.
>> 
>> Thanks so much for helping understand what I was missing.
>> 
>> 
>> Sandor
>> 
>> 
>> 
>> From:   Chip Scheide <4d_o...@pghrepository.org> 
>> To:   Sandor Szatmari  
>> Cc:   4D iNug Technical <4d_tech@lists.4d.com> 
>> Sent:   12/18/2018 4:30 PM 
>> Subject:   Re: UI Form Updates 
>> 
>> 
>> asumming the listbox is a selection listbox there is a set associated  
>> with the listbox which represents the selected record(s). The listbox  
>> property is called 'highlight set'. 
>> 
>> This set (i am going to call it "Selected_Set") holds all record(s)  
>> selected by the user. 
>> So your code is much easier done like this: 
>> 
>> 
>>   // the user has selected at least 1 record 
>> if Records in set("Selected_Set")>0) 
>> 
>>  Create set([AccountSOAPEndpoints];"$Temp")  //holds all currently  
>> displayed records 
>>  CONFIRM("Are you SURE you want to remove the selected Web Service  
>> Endpoint?";"Remove";"Cancel")  
>> 
>>  If (OK=1)  
>>   //places the selected record(s) into the current selection 
>>use set("Selected_Set")   
>> 
>>   // assuming the records are not locked by another user/process they  
>> are deleted 
>>delete selection([AccountSOAPEndpoints]) 
>> 
>>   // this removes the deleted records from the originally displayed  
>> records 
>>   // and places the resulting set into "$Temp" 
>>difference("$Temp";"Listbox_Selection_Set";"$Temp") 
>> 
>>   // this places the originally displayed records, minus the deleted  
>> ones 
>>   // into the current selection of [AccountSOAPEndpoints] 
>>   // this should update the listbox  
>>use set("$Temp")
>> 
>>clear set("$Temp") // clear the set to avoid excess memory usage 
>>  end if 
>> end if 
>> 
>> 
>> 
>> your code would: 
>>   // create a set with the originally displayed records 
>>> CREATE SET([AccountSOAPEndpoints];"$TempSet")  
>> 
>>   //retrieve all records into current selection 
>>> ALL RECORDS([AccountSOAPEndpoints])  
>> 
>>   /replace the current selection (all records) with the originally  
>> displayed records 
>>> USE SET("$TempSet")  
>>> CLEAR SET("$TempSet")  
>> 
>> 
>> 
>>> On Tue, 18 Dec 2018 16:06:13 -0500, Sandor Szatmari wrote: 
>>> 
>>> Chip, 
>>> 
>>> 
>>> Thanks for your help.  Here is my adaptation of your suggestion.   
>>> NOTE: It does not work.  :) 
>>> 
>>> 
>>> Can you please offer some advise on what I am missing here?  Thanks. 
>>> 
>>> 
>>> $TheEvent:=Form event  
>>> Case of   
>>> : ($TheEvent=On Load)  
>>>   // We should only be enabled for Accounts that are non themselves  
>>> Secondaries  
>>> OBJECT SET ENABLED(Self->;True)  
>>> 
>>> 
>>> : ($TheEvent=On Clicked)  
>>>   // Delete the selected Secondary  
>>> LISTBOX GET CELL POSITION(SOAPEndpointListBox;$col;$row)  
>>> If ($row>0)  
>>> 
>>> 
>>> CONFIRM("Are you SURE you want to remove the selected Web Service  
>>> Endpoint?";"Remove";"Cancel")  
>>> If (OK=1)  
>>> $selectedSOAPEndpoint:=SOAPEndpointNumbers{$row}  
>>> 
>>> 
>>> GOTO RECORD([AccountSOAPEndpoints];$selectedSOAPEndpoint)  
>>> DELETE RECORD([AccountSOAPEndpoints])  
>>> 
>>> 
>>> CREATE SET([AccountSOAPEndpoints];"$TempSet")  
>>> ALL RECORDS([AccountSOAPEndpoints])  
>>> USE SET("$TempSet")  
>>> CLEAR SET("$TempSet")  
>>> 
>>> 
>>> End if   
>>> 
>>> 
>>> End if   
>>> End case  
>>> Sandor Szatmari 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 

Re: UI Form Updates

2018-12-19 Thread Chip Scheide via 4D_Tech
With an array listbox, 
after you delete the record you can delete the row from the listbox.


NOTES about array listboxes:
there is a boolean array associated with the array listbox which is the 
listbox
lb_Display_Listbox  <- name of the listbox also name of the boolean 
array.

to locate selected row(s):

Repeat
  $Loc:=find in array(lb_Display_Listbox;true)

  if ($Loc>0)
do stuff  //* see below for an example of Do stuff
  end if
until ($Loc<0)


So... for the record deletion issue you can do something like this:
* - Do stuff example

  delete record
  Listbox Delete Rows(lb_Display_Listbox;$Row_Number;$How_Many)
   
This should be much faster, as you do not have to recreate the listbox 
content through selection to array

Chip

On Wed, 19 Dec 2018 09:21:56 -0500, Sandor Szatmari wrote:
> 
> Actually, I'm using an array based ListBox, but your comment led me 
> to understand how I should apply the underlying concept of what you 
> were getting at.
> I added this code to the appropriate locations, to reestablish the 
> selection in the child table and then propagate that data into the 
> arrays being displayed in the ListBox.
> 
> 
> QUERY([table];[table]ID=[LinkedTable]ID) 
> SELECTION TO 
> 
ARRAY([table];Numbers;[table]EndpointType;Names;[table]EndpointAddress;Addresses)
> 
> 
> Now the ListBox updates as desired.
> 
> Thanks so much for helping understand what I was missing.
> 
> 
> Sandor
> 
> 
> 
>  From:   Chip Scheide <4d_o...@pghrepository.org> 
>  To:   Sandor Szatmari  
>  Cc:   4D iNug Technical <4d_tech@lists.4d.com> 
>  Sent:   12/18/2018 4:30 PM 
>  Subject:   Re: UI Form Updates 
> 
>  
> asumming the listbox is a selection listbox there is a set associated  
> with the listbox which represents the selected record(s). The listbox  
> property is called 'highlight set'. 
>  
> This set (i am going to call it "Selected_Set") holds all record(s)  
> selected by the user. 
> So your code is much easier done like this: 
>  
>  
>// the user has selected at least 1 record 
> if Records in set("Selected_Set")>0) 
>  
>   Create set([AccountSOAPEndpoints];"$Temp")  //holds all currently  
> displayed records 
>   CONFIRM("Are you SURE you want to remove the selected Web Service  
> Endpoint?";"Remove";"Cancel")  
>  
>   If (OK=1)  
>//places the selected record(s) into the current selection 
> use set("Selected_Set")   
> 
>// assuming the records are not locked by another user/process they  
> are deleted 
> delete selection([AccountSOAPEndpoints]) 
> 
>// this removes the deleted records from the originally displayed  
> records 
>// and places the resulting set into "$Temp" 
> difference("$Temp";"Listbox_Selection_Set";"$Temp") 
>  
>// this places the originally displayed records, minus the deleted  
> ones 
>// into the current selection of [AccountSOAPEndpoints] 
>// this should update the listbox  
> use set("$Temp")
>  
> clear set("$Temp") // clear the set to avoid excess memory usage 
>   end if 
> end if 
>  
>  
>  
> your code would: 
>// create a set with the originally displayed records 
>>  CREATE SET([AccountSOAPEndpoints];"$TempSet")  
>  
>//retrieve all records into current selection 
>>  ALL RECORDS([AccountSOAPEndpoints])  
>  
>/replace the current selection (all records) with the originally  
> displayed records 
>>  USE SET("$TempSet")  
>>  CLEAR SET("$TempSet")  
>  
>  
>  
> On Tue, 18 Dec 2018 16:06:13 -0500, Sandor Szatmari wrote: 
>>  
>> Chip, 
>>  
>>  
>> Thanks for your help.  Here is my adaptation of your suggestion.   
>> NOTE: It does not work.  :) 
>>  
>>  
>> Can you please offer some advise on what I am missing here?  Thanks. 
>>  
>>   
>> $TheEvent:=Form event  
>> Case of   
>>  : ($TheEvent=On Load)  
>>// We should only be enabled for Accounts that are non themselves  
>> Secondaries  
>>  OBJECT SET ENABLED(Self->;True)  
>>  
>>   
>>  : ($TheEvent=On Clicked)  
>>// Delete the selected Secondary  
>>  LISTBOX GET CELL POSITION(SOAPEndpointListBox;$col;$row)  
>>  If ($row>0)  
>>  
>>   
>>  CONFIRM("Are you SURE you want to remove the selected Web Service  
>> Endpoint?";"Remove";"Cancel")  
>>  If (OK=1)  
>>  $selectedSOAPEndpoint:=SOAPEndpointNumbers{$row}  
>>  
>>   
>>  GOTO RECORD([AccountSOAPEndpoints];$selectedSOAPEndpoint)  
>>  DELETE RECORD([AccountSOAPEndpoints])  
>>  
>>   
>>  CREATE SET([AccountSOAPEndpoints];"$TempSet")  
>>  ALL RECORDS([AccountSOAPEndpoints])  
>>  USE SET("$TempSet")  
>>  CLEAR SET("$TempSet")  
>>  
>>   
>>  End if   
>>  
>>   
>>  End if   
>> End case  
>> Sandor Szatmari 
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>> Senior Software Developer 
>> Bristol Capital Inc. - InfoPlus 
>> 201 746 7215 
>> www.infoplusonline.com 
>>  
>>  
>>  
>>  From:   Chip Scheide <4d_o...@pghrepository.org>  
>>  To:   4D iNug Technical <4d_tech@lists.4d.com>  
>>  Cc:   Sandor 

Re: UI Form Updates

2018-12-19 Thread Sandor Szatmari via 4D_Tech
Guy,


Thanks for the link.  As I am using an array based ListBox I didn't use this 
code directly, but I appreciate seeing what documentation is out there.

I am grateful for your time.


Thanks,
Sandor Szatmari


















Senior Software Developer
Bristol Capital Inc. - InfoPlus
201 746 7215
www.infoplusonline.com



 From:   Guy Algot  
 To:   4D iNug Technical <4d_tech@lists.4d.com> 
 Cc:   Sandor Szatmari  
 Sent:   12/18/2018 4:57 PM 
 Subject:   Re: UI Form Updates 


Sandor, Check out this KB article ; http://kb.4d.com/assetid=77873




On Dec 17, 2018, at 2:00 PM, Sandor Szatmari via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

I added a page to an existing form.  I can add and delete rows.  I have + 
button to show the data entry form and a '-' button to display a 'confirm the 
deletion of the selected row' dialog.  However, once the entry form or the 
dialog are dismissed the ListBox in the table does not update to show that the 
new data has been entered or deleted.  If I switch to one of the other tabs in 
form and then switch back, the ListBox reflects the addition or deletion of the 
data.  Thanks for any help you can give.

Sandor Szatmari






Later,
Guy


--
Guy Algot, Solutions Specialist
Edmonton, Alberta
(780) 974-8538


hardware, installation, training, support, programming, internet
specializing in 4th Dimension
=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
they use Borg to do their marketing and Ferengi to do their programming."
    -- Simon Slavin



CONFIDENTIALITY NOTICE: This email (and any related attachments) contains 
information from InfoPlus (a service of Bristol Capital, Inc.). It is intended 
only for the addressee and may contain information that is confidential and/or 
otherwise exempt from disclosure under applicable law. If you are not the 
intended recipient or are acting as agent for the intended recipient, any use 
or disclosure of this communication is prohibited. If you have received this 
communication in error, please notify us immediately to arrange for the 
appropriate method of returning or disposing of the communication. If our 
respective Companies have confidentiality provisions in effect, this email and 
the materials contained herein are deemed CONFIDENTIAL and should be treated 
accordingly unless expressly provided otherwise.
**
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: UI Form Updates

2018-12-19 Thread Sandor Szatmari via 4D_Tech

Actually, I'm using an array based ListBox, but your comment led me to 
understand how I should apply the underlying concept of what you were getting 
at.
I added this code to the appropriate locations, to reestablish the selection in 
the child table and then propagate that data into the arrays being displayed in 
the ListBox.


QUERY([table];[table]ID=[LinkedTable]ID) 
SELECTION TO 
ARRAY([table];Numbers;[table]EndpointType;Names;[table]EndpointAddress;Addresses)


Now the ListBox updates as desired.

Thanks so much for helping understand what I was missing.


Sandor



 From:   Chip Scheide <4d_o...@pghrepository.org> 
 To:   Sandor Szatmari  
 Cc:   4D iNug Technical <4d_tech@lists.4d.com> 
 Sent:   12/18/2018 4:30 PM 
 Subject:   Re: UI Form Updates 

 
asumming the listbox is a selection listbox there is a set associated  
with the listbox which represents the selected record(s). The listbox  
property is called 'highlight set'. 
 
This set (i am going to call it "Selected_Set") holds all record(s)  
selected by the user. 
So your code is much easier done like this: 
 
 
   // the user has selected at least 1 record 
if Records in set("Selected_Set")>0) 
 
  Create set([AccountSOAPEndpoints];"$Temp")  //holds all currently  
displayed records 
  CONFIRM("Are you SURE you want to remove the selected Web Service  
Endpoint?";"Remove";"Cancel")  
 
  If (OK=1)  
   //places the selected record(s) into the current selection 
    use set("Selected_Set")   
    
   // assuming the records are not locked by another user/process they  
are deleted 
    delete selection([AccountSOAPEndpoints]) 
    
   // this removes the deleted records from the originally displayed  
records 
   // and places the resulting set into "$Temp" 
    difference("$Temp";"Listbox_Selection_Set";"$Temp") 
 
   // this places the originally displayed records, minus the deleted  
ones 
   // into the current selection of [AccountSOAPEndpoints] 
   // this should update the listbox  
    use set("$Temp")    
 
    clear set("$Temp") // clear the set to avoid excess memory usage 
  end if 
end if 
 
 
 
your code would: 
   // create a set with the originally displayed records 
>  CREATE SET([AccountSOAPEndpoints];"$TempSet")  
 
   //retrieve all records into current selection 
>  ALL RECORDS([AccountSOAPEndpoints])  
 
   /replace the current selection (all records) with the originally  
displayed records 
>  USE SET("$TempSet")  
>  CLEAR SET("$TempSet")  
 
 
 
On Tue, 18 Dec 2018 16:06:13 -0500, Sandor Szatmari wrote: 
>  
> Chip, 
>  
>  
> Thanks for your help.  Here is my adaptation of your suggestion.   
> NOTE: It does not work.  :) 
>  
>  
> Can you please offer some advise on what I am missing here?  Thanks. 
>  
>   
> $TheEvent:=Form event  
> Case of   
>  : ($TheEvent=On Load)  
>    // We should only be enabled for Accounts that are non themselves  
> Secondaries  
>  OBJECT SET ENABLED(Self->;True)  
>  
>   
>  : ($TheEvent=On Clicked)  
>    // Delete the selected Secondary  
>  LISTBOX GET CELL POSITION(SOAPEndpointListBox;$col;$row)  
>  If ($row>0)  
>  
>   
>  CONFIRM("Are you SURE you want to remove the selected Web Service  
> Endpoint?";"Remove";"Cancel")  
>  If (OK=1)  
>  $selectedSOAPEndpoint:=SOAPEndpointNumbers{$row}  
>  
>   
>  GOTO RECORD([AccountSOAPEndpoints];$selectedSOAPEndpoint)  
>  DELETE RECORD([AccountSOAPEndpoints])  
>  
>   
>  CREATE SET([AccountSOAPEndpoints];"$TempSet")  
>  ALL RECORDS([AccountSOAPEndpoints])  
>  USE SET("$TempSet")  
>  CLEAR SET("$TempSet")  
>  
>   
>  End if   
>  
>   
>  End if   
> End case  
> Sandor Szatmari 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> Senior Software Developer 
> Bristol Capital Inc. - InfoPlus 
> 201 746 7215 
> www.infoplusonline.com 
>  
>  
>  
>  From:   Chip Scheide <4d_o...@pghrepository.org>  
>  To:   4D iNug Technical <4d_tech@lists.4d.com>  
>  Cc:   Sandor Szatmari   
>  Sent:   12/17/2018 5:19 PM  
>  Subject:   Re: UI Form Updates  
>  
> you need to update the current selection of records in the selection   
> from the table the listbox is displaying.  
> ex:  
> create set([table];"$Temp")  
> use set("Listbox_Selection_Set")  
> delete selection([table])  
> difference("$Temp";"Listbox_Selection_Set";"$Temp")  
> use set("$Temp")  
> clear set("$Temp")  
>   
> Chip  
>   
> On Mon, 17 Dec 2018 16:00:33 -0500, Sandor Szatmari via 4D_Tech wrote:  
>> I added a page to an existing form.  I can add and delete rows.  I   
>> have + button to show the data entry form and a '-' button to display   
>> a 'confirm the deletion of the selected row' dialog.  However, once   
>> the entry form or the dialog are dismissed the ListBox in the table   
>> does not update to show that the new data has been entered or   
>> deleted.  If I switch to one of the other tabs in form and then   
>> switch back, the ListBox reflects the addition or deletion of the   
>> data.  Thanks for any help you can give.  

Re: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Kirk Brooks via 4D_Tech
Maybe you have a security setting that doesn't allow non https sites?

Which also brings up the question of why it isn't https...

On Wed, Dec 19, 2018 at 3:02 AM Jörg Knebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Everyone / Anyone,
>
> I tried to look something up but, the subject line says it all …
>
> Any hints?
>
> Thanks
>
> Cheers
> Jörg
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Jörg Knebel via 4D_Tech

> On 19 Dec 2018, at 22:20 AEDT, Milan Adamov via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> http://kb.4d.com  >

Thanks.

My Firefox can’t find it but Chrome does …

Cheers
Jörg
**
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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Milan Adamov via 4D_Tech


> El 19 dic 2018, a las 12:02, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> Everyone / Anyone,
> 
> I tried to look something up but, the subject line says it all …
> 

http://kb.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: Where the f*** is the knowledge base hidden???

2018-12-19 Thread Peter Grün via 4D_Tech

http://kb.4d.com/#allsolutions

OK?

Peter

Am 19.12.2018 um 12:02 schrieb Jörg Knebel via 4D_Tech:

Everyone / Anyone,

I tried to look something up but, the subject line says it all …

Any hints?

Thanks

Cheers
Jörg
**
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
**

Where the f*** is the knowledge base hidden???

2018-12-19 Thread Jörg Knebel via 4D_Tech
Everyone / Anyone,

I tried to look something up but, the subject line says it all …

Any hints?

Thanks

Cheers
Jörg
**
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
**