SV: The set does not exist
I have got it all working now and it works like a charm. Thanks very much John DeSoi, Jeremy French, Narinder Chandi and Chip Scheide. You have saved me hours. I have only been using listbox for arrays. Before listbox it was only arrays and I simply converted my array solutions to listbox and didn’t go further than that. Now a new world has opened up for me. Thanks again. Carl ** 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 **
SV: The set does not exist
Thanks Chip and Narinder for your response. I am using the right listbox name (listbox object name) and the data source is arrays. But $tableNum is -1 and $namedSelection and $highlightSet is “” (empty). Regards Carl ** 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 **
The set does not exist
Using the following method, I get the error "The set does not exist". $ListBoxName:="ListBoxObjectName" LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) USE SET($highlightSet) I select records (rows) from the listbox before running the method. I obviously have a lack of knowledge. Can anyone guide me in the right direction? Can't find anything in 4D Knowledge Base. Regards Carl ** 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 **
SV: Deleting a record from a listbox
This is from 4D Knowledge Base and might help you: // Method: listboxDeleteSelectedRecords // Description: Delete all records selected in the selection based listbox // Parameters: $1 - List Box Object Name // C_TEXT($1) If (Count parameters>=1) C_LONGINT($tableNum_l) C_TEXT($tableName_t;$highlightedSet_t) LISTBOX GET TABLE SOURCE(*;$1;$tableNum_l;$tableName_t;$highlightedSet_t) If ($tableNum_l>0) ARRAY LONGINT($recordNumber_al;0) LONGINT ARRAY FROM SELECTION(Table($tableNum_l)->;$recordNumber_al) End if ARRAY BOOLEAN($recordSelected_ab;0) BOOLEAN ARRAY FROM SET($recordSelected_ab;$highlightedSet_t) USE SET($highlightedSet_t) DELETE SELECTION(Table($tableNum_l)->) C_LONGINT($foundat_l) Repeat $foundat_l:=Find in array($recordSelected_ab;True) If ($foundat_l#-1) $recordSelected_ab{$foundat_l}:=False $foundat_l:=Find in array($recordNumber_al;$foundat_l) DELETE FROM ARRAY($recordNumber_al;$foundat_l) End if Until ($foundat_l=-1) CREATE SELECTION FROM ARRAY(Table($tableNum_l)->;$recordNumber_al) End if Regards Carl Aage Wangel >Date: Wed, 3 Jul 2019 19:05:08 + >From: Sannyasin Siddhanathaswami >To: 4D Tech <4d_tech@lists.4d.com> >Subject: Deleting a record from a listbox >Message-ID: <266d3f59-1b50-45a1-8145-7add78ddcc84@Spark> >Content-Type: text/plain; charset="utf-8" >I’m trying to update my "delete selection of records from a listbox" code. I’m >trying to keep the sort order so that when someone clicks to delete, the only >thing they see is the lines they select, get deleted. >Here’s the basic code. Of course, deleting a record in this scenario, leaves >an empty record in the listbox. >COPY NAMED SELECTION($tablePtr->;"TempCurrentSet") >USE SET($highlightSet) >DELETE SELECTION($tablePtr->) >USE NAMED SELECTION("TempCurrentSet") >CLEAR NAMED SELECTION("TempCurrentSet") >I haven’t been able to figure out how to keep the sort, and get rid of the >deleted records (now showing as blank). >Any ideas? >Sannyasin Siddhanathaswami * ** 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 **
SET PRINT PREVIEW does not work
A clean install of newest Windows 10 dos not include XPS Viewer. This means that SET PRINT PREVIEW does not work. It is possible to download XPS Viewer, but I expect Microsoft is (or have) developed an alternative. Is there a smart solution? Regards Carl Aage Wangel ** 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 **
Spell not working with v16.4 and 17.1 on Mac (10.14)
I am using a Norwegian dictionary (nb_NO) and even though Spell Get Dictionary List name it "name unknown", Spell is working fine on Windows. All the other dictionaries have known names, including nn_NO and da_DK. Using Spell Get Dictionary List On mac, I get dictionaries that are not installed in addition to the ones that are installed. Dictionary like the Norwegian dictionary is only shown as nb in the list and not as nb_NO. And nn_NO is not there at all. But nb is recognised as Norwegian. The Danish dictionary (da_DK) is shown only as da in the list but do work. Inn On Startup (and in object method)I use Spell Set Current Dictionary ("nb_NO") but that seem to be overruled by en_GB. Any thoughts would be appreciated. Regards Carl Aage Wangel ** 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: Annoying square
Thanks Helge, Tim and Keisuke for the response. I have previously sent a screenshot but it wasn't published on the list (for whatever reason). I am on Windows 7 (mainly) with splash window visible. I am trying with and will see how it goes. On top of the ordinary splash screen I am using my own with New process and dialog. Regards Carl ** 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 **
Annoying square
When I am working on forms or programming, a small solid square often appears in a fixed position above the form or program I'm working on. It disappears in user mode. This annoying square only appears in 4D and has been doing so in several versions. Anyone having the same experience? Regards Carl Aage Wangel ** 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: v16.4 Desktop application, Rejected
Thanks Jeffrey and Keisuke, But I am at a bit of a loss as where to find OpenSSL in 4D and how to update the libraries (same for jQuery). I have been using 4D since version 1 (or 2?) but have never fiddled with OpenSSL. As I understand it OpenSSL v0.9.8 was part of 4D 2004, so it seems strange that the PHP include in 4D uses this old version. As to jQuery isn't the time and date picker jQuery? As mentioned I have no working experience with OpenSSL but as I understand it, version 1.1.x or 1.0.x are the versions to download. Regards Carl Aage Wangel ** 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 **
v16.4 Desktop application, Rejected
I have created a desktop application (stand-alone application, Windows). I use Install Shield Express to create a setup.exe file so potential buyers can download from my web page. Testing it out on a separate PC with Norton Security install, the setup.exe file is declared a security risk and is deleted. Norton Security is also installed on the PC where the Desktop application is developed. I ran FlexNet Code Aware on the Desktop application (developer PC) and several issues came up. It appears 4D is using OpenSSL v0.9.8 several places in this compiled version and OpenSSL v1.0.2k. OpenSSL v0.9.8r has security issues considered high risk. There is a security issue with OpenSSL v1.0.2k as well, but a lover risk. Latest version is 1.1.x 4D also appear to be using jQuery v1.6.1. This version is open for cross-site scripting and the version is deprecated. Latest version is v3.x If FlexNet Code Aware is correct I think it would be appropriate for 4D to update these element, so that potential buyer of a Desktop application is not scared away. Regards Carl Aage Wangel ** 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 **
SV: Multi-style behaving strangely
While it does not solve the problem of multi-style field overlapping other fields in a subform, “ST Get plain text” makes it possible to remove formatting from multi-style text (imported or created in 4D). Just thought I would share this revelation. Regards Carl >Date: Tue, 9 Oct 2018 22:05:46 +0200 >From: "Carl Aage Wangel" >To: <4d_tech@lists.4D.com> >Subject: Multi-style behaving strangely >Message-ID: <01d4600b$79a63730$6cf2a590$@online.no> >Content-Type: text/plain; charset="us-ascii" > >Windows7, 4D v16.4 > >I have a form with a subform included. The form is used for printing >invoices. The subform has 3 fields side by side. The first field is a date >field, the second field is a text field and the third field is a number >field. Sometime the text field has "copy and paste" text. For that kind of >text it is not unusual to see HTML span tags included in the text. To hide >tags I switch on "multi-style", but now the date field and the number field >are no longer visible on the printout. Even though the text in the text >field have the same width, the text field appears to fil out the whole width >of the subform and there by cowering the 2 other fields. Anyone have a >solution? (Output forms in user environment behave strange as well, when a >text field have multi-style selected). Besides, importing text to a text >field with "copy and paste" seem to confuse the context menu (need a "remove >formatting" option when importing text). > >Regards > >Carl Aage Wangel ** 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 **
Multi-style behaving strangely
Windows7, 4D v16.4 I have a form with a subform included. The form is used for printing invoices. The subform has 3 fields side by side. The first field is a date field, the second field is a text field and the third field is a number field. Sometime the text field has "copy and paste" text. For that kind of text it is not unusual to see HTML span tags included in the text. To hide tags I switch on "multi-style", but now the date field and the number field are no longer visible on the printout. Even though the text in the text field have the same width, the text field appears to fil out the whole width of the subform and there by cowering the 2 other fields. Anyone have a solution? (Output forms in user environment behave strange as well, when a text field have multi-style selected). Besides, importing text to a text field with "copy and paste" seem to confuse the context menu (need a "remove formatting" option when importing text). Regards Carl Aage Wangel ** 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: Data from 4D to a webpage
Thanks Tom, much appreciated. It looks promising and I shall try it out. Carl >Hi Carl, > >Based on what you said you wanted, I think what you need is to use the 4D HTTP client commands to post an HTTP Request to your web server from your standalone 4D app. >It would be the equivalent of having 4D fill out a form in a browser and submit it to your web server. No 4D tags would be involved. To your web server, it can be processed just like a submitted form. > >Look in the 4D Language reference of the version you are using, and look under the HTTP Client theme. You'll probably use the HTTP Request command > >Regards, > >Tom DeMeo ** 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: Data from 4D to a webpage
Thanks Janet, I am selling/giving away a few (very few) stand-alone solution created in 4D. My dream was to make the costumer connect to my webpage from the 4D solution and provide needed information on an automatic level, using 4D TAGS. My webpage is HTML5 embedded in PHP with a mySQL connection. Carl > used On Web Connection to call the correct methods, load the pages, etc. I can then edit the html >in Text Wrangler, paste it back into the field, archive page changes, etc. You don't need it all to >reside in the web folder. > >JJ ** 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: Data from 4D to a webpage
Ok. Thank Julio, I'll see if I can get it working. Haven't got much experience in this area. Carl >Carl, >Assuming 4D webserver is indeed up and running, then On Web Connection will be called whenever a non-existing page is requested. >Then you can handle it yourself, load the file from anywhere, do Process 4D Tags and Web Send Blob/HTML to serve the page. >hth >julio >> On Jan 5, 2018, at 10:52 AM, Carl Aage Wangel via 4D_Tech < <mailto:4d_tech@lists.4d.com> 4d_tech@lists.4d.com> wrote: >> >> Hi, >> >> Is it possible to transfer data from 4D (v15) to a webpage when the >> webpage is not situated in the WebFolder? Like > value="" (opening the webpage from 4D). >> >> Carl Aage Wangel ** 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 **
Data from 4D to a webpage
Hi, Is it possible to transfer data from 4D (v15) to a webpage when the webpage is not situated in the WebFolder? Like (opening the webpage from 4D). Carl Aage Wangel ** 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 **