RE: Damaged database
Hi Tim, Where i find the Event Viewer? Thanks /Ferdinando/ Il 11/11/2016 01:09, 4d_tech-requ...@lists.4d.com ha scritto: Message: 11 Date: Thu, 10 Nov 2016 23:24:52 +0100 From: Timothy PennerTo: 4D iNug Technical<4d_tech@lists.4d.com> Subject: RE: Damaged database Message-ID: <889B5CE1FCB86B4CA53DB7E91109DFCE03FDF9B32124@4d-xn1-exch> Content-Type: text/plain; charset="utf-8" > * Problem on the database : Last database flush did not complete. (1;139) This is usually only seen when the application crashed during a flush. Maybe your code that logged the successful quit had already executed when 4D crashed. You should check the Event Viewer to see if there are any crash events. > * Problem on index definition [index #6] : Checksum is invalid (16;66) Damaged index, could be related to the crash. You should update from v13.2 to the final version of 4D v13.6 before attempting anything else; at least update the instance that you are having this repeated issue with... Consider the following pages of bug fixes: ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.3/Fixed_Bugs_4D_13.3.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.4/Fixed_Bugs_4D_13.4.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.5/Fixed_bugs_4D_v13.5.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.6/Fixed_Bugs_4D_13.6.pdf ^ quite a few bug fixes were made after 13.2... Maybe something like ACI0082361 is biting you, which says: " In some case, 4D crashes when quiting the application after using listbox with named selection." -Tim ** 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: Need help with LEP printing
Hey Tim, On Thu, Nov 10, 2016 at 4:22 PM, Tim Nevelswrote: > Nice that Miyako made a plugin especially for you and your situation to > print a PDF. I’m sure you will get it working. > You flatter me. (I think.) But the timestamp on gitHub suggests the last update on it was over 2 months ago. I think Miyako is very good but not necessarily prescient. There is another option. Use Adobe Acrobat Reader on Windows. It has always > had a “hidden” feature where you can control it from the command line and > have it open and print a PDF. I’ve been using it for years on Windows. > Ah ha! That's the kind of hack I was looking for. Of course it assumes the user has Acrobat on board but that's easy to deal with. Thank you. -- 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: Damaged database
> * Problem on the database : Last database flush did not complete. (1;139) This is usually only seen when the application crashed during a flush. Maybe your code that logged the successful quit had already executed when 4D crashed. You should check the Event Viewer to see if there are any crash events. > * Problem on index definition [index #6] : Checksum is invalid (16;66) Damaged index, could be related to the crash. You should update from v13.2 to the final version of 4D v13.6 before attempting anything else; at least update the instance that you are having this repeated issue with... Consider the following pages of bug fixes: ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.3/Fixed_Bugs_4D_13.3.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.4/Fixed_Bugs_4D_13.4.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.5/Fixed_bugs_4D_v13.5.pdf ftp://ftp.4d.com/ACI_PRODUCT_REFERENCE_LIBRARY/Bug_Fix_Lists/Version_13/v13.6/Fixed_Bugs_4D_13.6.pdf ^ quite a few bug fixes were made after 13.2... Maybe something like ACI0082361 is biting you, which says: " In some case, 4D crashes when quiting the application after using listbox with named selection." -Tim ** 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: searching text for Date in dd/mm/yy format
I have resolved the issue by replacing the '/' with a '-' it did not take too long... and I am replacing the code that populates the fields to use a '-' rather then '/' so - solved On Thu, 10 Nov 2016 22:09:25 +0100, Keisuke Miyako wrote: > could you expand on the field type and the value you know is there? > quick test shows that it should work as you would expect. > > ie. > > QUERY([Table_1];[Table_1]Field_2="@11/10/16@") > > finds the alpha value "the date is 11/10/16 ..." with or without index. > >> 2016/11/11 5:30、Chip Scheide <4d_o...@pghrepository.org> のメール: >> >> I am having problems being able to search for an embedded date. >> Query([table];[table]track_field="@11/10/16@") >> returns nothing, even though I can see that this value exists. > > > > 宮古 啓介 > セールス・エンジニア > > 株式会社フォーディー・ジャパン > 〒150-0043 > 東京都渋谷区道玄坂1-10-2 渋谷THビル6F > Tel: 03-6427-8441 > Fax: 03-6427-8449 > > keisuke.miy...@4d.com > www.4D.com/JP > > ** > 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: searching text for Date in dd/mm/yy format
format of text is : dd/mm/yy at 00:00:00, User Name On Thu, 10 Nov 2016 22:09:25 +0100, Keisuke Miyako wrote: > could you expand on the field type and the value you know is there? > quick test shows that it should work as you would expect. > > ie. > > QUERY([Table_1];[Table_1]Field_2="@11/10/16@") > > finds the alpha value "the date is 11/10/16 ..." with or without index. > >> 2016/11/11 5:30、Chip Scheide <4d_o...@pghrepository.org> のメール: >> >> I am having problems being able to search for an embedded date. >> Query([table];[table]track_field="@11/10/16@") >> returns nothing, even though I can see that this value exists. > > > > 宮古 啓介 > セールス・エンジニア > > 株式会社フォーディー・ジャパン > 〒150-0043 > 東京都渋谷区道玄坂1-10-2 渋谷THビル6F > Tel: 03-6427-8441 > Fax: 03-6427-8449 > > keisuke.miy...@4d.com > www.4D.com/JP > > ** > 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: Damaged database
Hi All, I have these two error in the log: * Problem on the database : Last database flush did not complete. (1;139) * Problem on index definition [index #6] : Checksum is invalid (16;66) Someone have suggestions? Thanks /Ferdinando/ ** 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: searching text for Date in dd/mm/yy format
v12 & v13 @ is wildcard so my original query is : find this date anywhere in the text No set query destination, I have even tried using 4D search editor - same results I have a way to 'fix' this problem. It is not pretty. something like : all records([table]) apply to selection([table];[table]track_field:=replace string([table]track_field;"/";"-") On Thu, 10 Nov 2016 15:35:11 -0500, Charles Miller wrote: > On Thu, Nov 10, 2016 at 3:30 PM, Chip Scheide <4d_o...@pghrepository.org> > wrote: > >> I am having problems being able to search for an embedded date. >> Query([table];[table]track_field="@11/10/16@") >> returns nothing, even though I can see that this value exists. >> >> I have tried using 2 // >> 10//11//16 >> and 3 /// >> 10///11///16 >> >> any Ideas? >> > > have you set query destination somewhere and not reset to current selection > > you could also try > begin sql > > select [key field] > from [table] > where [table].[track_field] like '11/10/16' > into :$Keyflds_atxt; > > end sql > What version and how is wild card "@" set to be used > > Regards > Chuck > > > -- > - > Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 > Informed Solutions, Inc. > Brookline, MA 02446 USA Registered 4D Developer >Providers of 4D, Sybase & SQL Sever connectivity > http://www.informed-solutions.com > - > This message and any attached documents contain information which may be > confidential, subject to privilege or exempt from disclosure under > applicable law. These materials are intended only for the use of the > intended recipient. If you are not the intended recipient of this > transmission, you are hereby notified that any distribution, disclosure, > printing, copying, storage, modification or the taking of any action in > reliance upon this transmission is strictly prohibited. Delivery of this > message to any person other than the intended recipient shall not > compromise or waive such confidentiality, privilege or exemption > from disclosure as to this communication. > ** > 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: Damaged database
Tim, Below the my answers. Il 10/11/2016 21:00, 4d_tech-requ...@lists.4d.com ha scritto: Message: 10 Date: Thu, 10 Nov 2016 20:22:22 +0100 From: Timothy PennerTo: 4D iNug Technical<4d_tech@lists.4d.com> Subject: RE: Damaged database Message-ID: <889B5CE1FCB86B4CA53DB7E91109DFCE03FDF9B3211D@4d-xn1-exch> Content-Type: text/plain; charset="utf-8" Some comments/suggestions: >In one my customer that use one application developed in 4D V13.2 You are using a very old release of an unsupported product (v13 is no longer supported nor updated); I would suggest that you, at the very least, update to the final release of v13.6 so that you can take advantage of the final set of bugfixes that were applied to that product line. It is very possible that you are hitting a bug that is already solved in the final release, for example if the issue is related to unique fields that do not have an index, that would have been addressed in the final releases of 13.5 and 13.6. In the next future yes, but i have around 25 same applications that run on the same hardware without problems. >There are not power failures or strange operation that the user do. >The user close the application and some times when reopen have this message. Maybe they leave 4D open when the OS does an automatic reboot, perhaps for Windows Update... Or maybe it crashes on exit, you could check the Event Viewer to see if there are any crash events. No, i have the log in my application, and have read that the customer close the application without problems. When restart sometimes have this message. >When i do a recover operation, i see that there are a message: "some anomalies" , so i must to do the operation one second time. When the issue happens and it reports Anomalies have been detected, you should open the log and look at the errors. Keep a log of the errors to determine if it is the same errors coming back each time or something different. You may find a clue to the underlying cause by cross checking the anomalies for each of the times this issue occurs. How i can read this? Kind Regards, Tim PENNER ** 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: Damaged database
Hi Neil, I use the same application on more than 20 pc that are equal of this that give the problems. The application have used for around one year without problems, i have this problems only fron two months. Thanks Ferdinando Il 10/11/2016 21:00, 4d_tech-requ...@lists.4d.com ha scritto: Message: 3 Date: Thu, 10 Nov 2016 15:26:57 + From: "Dennis, Neil"To:"4d_tech@lists.4d.com" <4d_tech@lists.4d.com> Subject: RE: Damaged database Message-ID: <838740227206e84f82973ff5d9ea59b74a761...@wsys6041a.umb.corp.umb.com> Content-Type: text/plain; charset="utf-8" >The Windows is 7 and the application is in single mode. Check this against the certification chart from 4Ds website for the version of 4D you are using. They are found at the bottom of each tab in the download sectionhttp://www.4d.com/downloads/products.html Neil ** 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: searching text for Date in dd/mm/yy format
On Thu, Nov 10, 2016 at 3:30 PM, Chip Scheide <4d_o...@pghrepository.org> wrote: > I am having problems being able to search for an embedded date. > Query([table];[table]track_field="@11/10/16@") > returns nothing, even though I can see that this value exists. > > I have tried using 2 // > 10//11//16 > and 3 /// > 10///11///16 > > any Ideas? > have you set query destination somewhere and not reset to current selection you could also try begin sql select [key field] from [table] where [table].[track_field] like '11/10/16' into :$Keyflds_atxt; end sql What version and how is wild card "@" set to be used Regards Chuck -- - Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Sever connectivity http://www.informed-solutions.com - This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. ** 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 **
searching text for Date in dd/mm/yy format
I have a text field I use for tracking when an activity happens contains: User reference, Date, and Time I am having problems being able to search for an embedded date. Query([table];[table]track_field="@11/10/16@") returns nothing, even though I can see that this value exists. I have tried using 2 // 10//11//16 and 3 /// 10///11///16 any Ideas? Thanks Chip ** 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: Damaged database
Some comments/suggestions: > In one my customer that use one application developed in 4D V13.2 You are using a very old release of an unsupported product (v13 is no longer supported nor updated); I would suggest that you, at the very least, update to the final release of v13.6 so that you can take advantage of the final set of bugfixes that were applied to that product line. It is very possible that you are hitting a bug that is already solved in the final release, for example if the issue is related to unique fields that do not have an index, that would have been addressed in the final releases of 13.5 and 13.6. > There are not power failures or strange operation that the user do. > The user close the application and some times when reopen have this message. Maybe they leave 4D open when the OS does an automatic reboot, perhaps for Windows Update... Or maybe it crashes on exit, you could check the Event Viewer to see if there are any crash events. > When i do a recover operation, i see that there are a message: "some > anomalies" , so i must to do the operation one second time. When the issue happens and it reports Anomalies have been detected, you should open the log and look at the errors. Keep a log of the errors to determine if it is the same errors coming back each time or something different. You may find a clue to the underlying cause by cross checking the anomalies for each of the times this issue occurs. Kind Regards, Tim PENNER ** 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: Automatic Variable Assignment and Web Get Variables - Bad usage of pointer or pointer to an unknown variable
I don't think you mean 1,000 times of 2M elements = 2 billions of elements in an array??? Or you mean looping the query 1,000 times, if so. I just did loop 1,000 times of binary search of text array of 20,000 elements and it took 8ms. Looping 1,000 times for 2M elements took 12ms Anyone try it with object since I am still using v13. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: > >try it 1000 times and compare it with the object method > >> Am 10.11.2016 um 16:18 schrieb 4d_tech-requ...@lists.4d.com: >> >> Find in Array is sequential search. I just try to use Binary search on >> sorted text array with 2,000,000 elements. It took 0 ms. > > ** 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: Need help with LEP printing
Hi Kirk, If you are in Mac Terminal, and issue the same command, does it work from there? Make sure you are testing the same shell as you specified in the command, like this: 1) Open Mac Terminal.app 2) Navigate to the directory containing the pdf 3) Change the shell to /bin/sh by issuing the command: /bin/sh 4) Now in the /bin/sh shell, issue the command you sent to the shell: lpr Test.pdf If it doesn’t work there, then it won't work from 4D either. Make it work from the terminal first, then adapt for 4D's LEP. Sorry if this isn't much help, I just wanted to help rule out the obvious first. -Tim ** 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: Automatic Variable Assignment and Web Get Variables - Bad usage of pointer or pointer to an unknown variable
try it 1000 times and compare it with the object method > Am 10.11.2016 um 16:18 schrieb 4d_tech-requ...@lists.4d.com: > > Find in Array is sequential search. I just try to use Binary search on sorted > text array with 2,000,000 elements. It took 0 ms. ** 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: Tokens for Methods?
> On Nov 10, 2016, at 8:55 AM, Richard Wright> wrote: > > I want to create a complete call chain (there may be several) of a given > method. I know I can do this manually but it’s pain in complicated > structures. If I could find a way to determine all methods called by a given > method, I could do this for each method, store the info in database and > easily create my call chain. In other words, I want to parse all methods like > 4D Insider did and then used the parsed information to create the call chain > in one easy step. I’m only interested in methods at this point. The latest > Get Method Code does return some tokens, but not for methods; otherwise I > could use that. Unless 4D provides a command to get this information, I don't think there are any shortcuts - you need a real parser. You can get part of the way there in 4D, but it is a very long road to get it right. You are better off using a language that has a parser generator. I wrote one in Lisp. If you want better direct integration with 4D, there are several parser generators available for Javascript. 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: Damaged database
Hi Neil, The Windows is 7 and the application is in single mode. Thanks /Ferdinando/ Il 10/11/2016 16:18, 4d_tech-requ...@lists.4d.com ha scritto: essage: 13 Date: Thu, 10 Nov 2016 15:14:22 + From: "Dennis, Neil"To:"4d_tech@lists.4d.com" <4d_tech@lists.4d.com> Subject: RE: Damaged database Message-ID: <838740227206e84f82973ff5d9ea59b74a761...@wsys6041a.umb.corp.umb.com> Content-Type: text/plain; charset="utf-8" >I open in MCS, repair and restart, someone know if i must do other things for solve this periodical issue? Examine the network, and computer memory and drive, and routers, look for any errors or failures. Make sure the OS is compatible with the version of 4D both on server and client Neil ** 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: Damaged database
> The Windows is 7 and the application is in single mode. Check this against the certification chart from 4Ds website for the version of 4D you are using. They are found at the bottom of each tab in the download section http://www.4d.com/downloads/products.html Neil -- Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you should not disseminate, distribute or copy this email. Please delete this email from your system and notify the sender immediately by replying to this email. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Alternative Investments division of UMB Fund Services provides a full range of services to hedge funds, funds of funds and private equity funds. Any tax advice in this communication is not intended to be used, and cannot be used, by a client or any other person or entity for the purpose of (a) avoiding penalties that may be imposed on any taxpayer or (b) promoting, marketing, or recommending to another party any matter addressed herein. ** 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: Damaged database
> When i do a recover operation, i see that there are a message: "some > anomalies" , so i must to do the operation one second time. The message is telling you what it found (and corrected). Running it a second time tells you that it found nothing since it was corrected the first time. Neil -- Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you should not disseminate, distribute or copy this email. Please delete this email from your system and notify the sender immediately by replying to this email. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Alternative Investments division of UMB Fund Services provides a full range of services to hedge funds, funds of funds and private equity funds. Any tax advice in this communication is not intended to be used, and cannot be used, by a client or any other person or entity for the purpose of (a) avoiding penalties that may be imposed on any taxpayer or (b) promoting, marketing, or recommending to another party any matter addressed herein. ** 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: Damaged database
Hi, When i do a recover operation, i see that there are a message: "some anomalies" , so i must to do the operation one second time. Thanks Ferdinando Il 10/11/2016 16:11, stardata.info ha scritto: Hi All, In one my customer that use one application developed in 4D V13.2 from two months, i have two or tre time a message for damage database. " The database is damaged, it will opened in maintenance mode " I open in MCS, repair and restart, someone know if i must do other things for solve this periodical issue? There are not power failures or strange operation that the user do. The user close the application and some times when reopen have this message. I have other installations with the same application but no problems in the others. Someone have a suggestions. Thanks Ferdinando ** 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 **
Damaged database
Hi All, In one my customer that use one application developed in 4D V13.2 from two months, i have two or tre time a message for damage database. " The database is damaged, it will opened in maintenance mode " I open in MCS, repair and restart, someone know if i must do other things for solve this periodical issue? There are not power failures or strange operation that the user do. The user close the application and some times when reopen have this message. I have other installations with the same application but no problems in the others. Someone have a suggestions. Thanks Ferdinando ** 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: Damaged database
> I open in MCS, repair and restart, someone know if i must do other things for > solve this periodical issue? Examine the network, and computer memory and drive, and routers, look for any errors or failures. Make sure the OS is compatible with the version of 4D both on server and client Neil -- Privacy Disclaimer: This message contains confidential information and is intended only for the named addressee. If you are not the named addressee you should not disseminate, distribute or copy this email. Please delete this email from your system and notify the sender immediately by replying to this email. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The Alternative Investments division of UMB Fund Services provides a full range of services to hedge funds, funds of funds and private equity funds. Any tax advice in this communication is not intended to be used, and cannot be used, by a client or any other person or entity for the purpose of (a) avoiding penalties that may be imposed on any taxpayer or (b) promoting, marketing, or recommending to another party any matter addressed herein. ** 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 **
Need help with LEP printing
Hi folks, I have a routine that generates a blob of a PDF and I'd like to be able to have it print directly without opening it in a PDF viewer. This seems like the sort of thing where LEP is the solution. I found an exchange from earlier this year that seemed to be exactly what I need since it was essentially the same problem. Using that as a starting point I get to: BLOB TO DOCUMENT($folderPath+"Test.pdf";$blob) SET ENVIRONMENT VARIABLE("_4D_OPTION_CURRENT_DIRECTORY";$folderPath) $stdIn:="lpr Test.pdf" LAUNCH EXTERNAL PROCESS("/bin/sh";$stdIn;$stdOut;$srdErr) This is OSX. There's no issue with the PDF - it opens and prints just fine from a reader. Code runs with no errors but also without printing anything. What am I missing? And I also need the solution for doing the same thing on windows. -- 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: Automatic Variable Assignment and Web Get Variables - Bad usage of pointer or pointer to an unknown variable
can you include a check sum with the page information? Generate the text, do some calculation on it, sand both values. on the server side redo the calculation Then if someone tries to add/change the form data the check sum fails if it matches off you go if it falis do some thing nasty (again) :) On Wed, 9 Nov 2016 20:47:54 +, Mike McCall wrote: > Thanks so much Chip for the suggestion, > > That thought also crossed my mind but unfortunately with the silly > number of variables we currently have, over 20,000 in total, my > initial tests suggested that it could seriously affect performance to > go with that approach. > > I'd really prefer not to have to do a complete rewrite of how we > handle form fields since that would be very time consuming. > > Thanks again and definitely let me know if you or anyone else has any > other idea. > > Mike > > -Original Message- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Chip > Scheide > Sent: Wednesday, November 9, 2016 12:38 PM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Subject: Re: Automatic Variable Assignment and Web Get Variables - > Bad usage of pointer or pointer to an unknown variable > > I do NO web work so take this idea with that in mind > > Instead of : > On Wed, 9 Nov 2016 19:58:16 +, Mike McCall wrote: >> Else >> $p:=Get pointer(arr_Web_Field_Name{$i}) >> $p->:=arr_Web_Field_Value{$i} >> End case > > if (find in array($arr_Legal_Variable_Names;arr_Web_Field_Name{$i})>0) >$p:=Get pointer(arr_Web_Field_Name{$i}) >$p->:=arr_Web_Field_Value{$i} > else >`do nasty things since someone tried to hack your server end if > > Where arr_Legal_Variable_Names > is an array of valid variable names and any value NOT in this array > is an error Chip ** 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: Tokens for Methods?
I want to create a complete call chain (there may be several) of a given method. I know I can do this manually but it’s pain in complicated structures. If I could find a way to determine all methods called by a given method, I could do this for each method, store the info in database and easily create my call chain. In other words, I want to parse all methods like 4D Insider did and then used the parsed information to create the call chain in one easy step. I’m only interested in methods at this point. The latest Get Method Code does return some tokens, but not for methods; otherwise I could use that. > Date: Thu, 10 Nov 2016 01:33:39 +0100 > From: Keisuke Miyako> > would you be willing to share what is it you want accomplish? > normally I would select a method in the Explorer and "search for > dependencies" from the context menu. > the result contains the method it self, which is a bit weird, but you can > drag and drop the list to any text editor. > >> 2016/11/10 7:18、Richard Wright のメール: >> Does anyone know how 4D tokenizes method names? I can get the method >> resource into a blob using API Pack and would very much like to be able to >> extract all methods that are called. > ** 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 serving from 4D client
I can say that, as far as a version 14 built c/s system, a web serving 4D client can be set to auto launch while also starting the webserver. As Scott pointed out it’s important that the user assigned to the web server client be assigned to a group with web server privileges and (I’m quite sure) that group must not contain any more users than the number of web server licenses attached to the system. Bill > On Nov 10, 2016, at 3:18 AM, Paul Denniswrote: > > Scott, I am about to implement serving via client. In your setup having a > "web user" does this mean you have to login manually when you restart the > client ? > Thanks > Paul > > ** 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 serving from 4D client
Hi Scott— It’s been a while, but I recall that there can be quirkiness involving the persistence, or not, of some of the settings in the configuration ui. I’ve worked around that by keeping them in db preferences records which can be modified by designer/administrator/user as appropriate. On startup (webserver startup in this case) those prefs can be invoked by code, using the db record/field values. Bill > On Nov 9, 2016, at 7:51 PM, cswirthwrote: > > Bill, > > "Since the system is a built c/s project and we do auto updates quite often" > > It's my experience in v15 that you need to reset the Default HTML root after > an update. > > Scott ** 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: Automatic Variable Assignment and Web Get Variables - Bad usage of pointer or pointer to an unknown variable
Find in Array is sequential search. I just try to use Binary search on sorted text array with 2,000,000 elements. It took 0 ms. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >If I change the search parameter to Variable_2_name, the array takes twice >as long (2) and the c_object search is still 0. ** 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 serving from 4D client
Scott, I am about to implement serving via client. In your setup having a "web user" does this mean you have to login manually when you restart the client ? Thanks Paul -- View this message in context: http://4d.1045681.n5.nabble.com/web-serving-from-4D-client-tp5748533p5748578.html Sent from the 4D Tech mailing list archive at Nabble.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 **