From cdpublishing at qwestoffice.net Tue Mar 1 09:22:35 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 1 Mar 2011 09:22:35 -0800 Subject: total for summary calculations In-Reply-To: References: Message-ID: try creating some variables to capture the summary records' values... something like: local Lhrsworked,Lhourlyrate,Lkmtravelled, etc. //do your summarizing lastrecord // to reach the summary level...you could also view sub-summary records and grab those values, but that's a little more complicated Lhrsworked=hrsworked Lhourlyrate=hourlyrate showvariables Lhrsworked,Lhourlyrate etc... at this point, your variables should hold the totals/calculated values... Craig McPherson On Feb 28, 2011, at 10:51 PM, Arcadia Holdings Ltd wrote: > I am trying to create a small report of summarized data containing calculations: > Tried, looked every where for the answer....sorry for ignorance > > Database has 'hrsworked' 'hourlyrate' 'kmtravelled' kmrate' etc etc collected on a daily basis > > I summarize the data and then wanted to do a calculation on the totals, eg: > > total 'hrsworked' * 'hourlyrate' + 'kmtravelled' * 'kmrate' to have a small report showing say 62.5 hrs * rate + 272 km * rate etc. > > Do I need to create the totals and calculations for each item as a separate field on the database so I can summarize (Like the invoice examples) or is there another way to do it? > > Thanks > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From cdpublishing at qwestoffice.net Tue Mar 1 10:03:16 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 1 Mar 2011 10:03:16 -0800 Subject: total for summary calculations In-Reply-To: References: Message-ID: note also that if you want to use the variables' values beyond the procedure, you'll want to make them fileglobal variables rather than locals?then they will show up on forms, etc. Craig McPherson On Mar 1, 2011, at 9:22 AM, Craig McPherson wrote: > try creating some variables to capture the summary records' values... > > something like: > local Lhrsworked,Lhourlyrate,Lkmtravelled, etc. > //do your summarizing > lastrecord // to reach the summary level...you could also view sub-summary records and grab those values, but that's a little more complicated > Lhrsworked=hrsworked > Lhourlyrate=hourlyrate > showvariables Lhrsworked,Lhourlyrate > etc... > at this point, your variables should hold the totals/calculated values... > Craig McPherson > > > On Feb 28, 2011, at 10:51 PM, Arcadia Holdings Ltd wrote: > >> I am trying to create a small report of summarized data containing calculations: >> Tried, looked every where for the answer....sorry for ignorance >> >> Database has 'hrsworked' 'hourlyrate' 'kmtravelled' kmrate' etc etc collected on a daily basis >> >> I summarize the data and then wanted to do a calculation on the totals, eg: >> >> total 'hrsworked' * 'hourlyrate' + 'kmtravelled' * 'kmrate' to have a small report showing say 62.5 hrs * rate + 272 km * rate etc. >> >> Do I need to create the totals and calculations for each item as a separate field on the database so I can summarize (Like the invoice examples) or is there another way to do it? >> >> Thanks >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From ronald.southwick at tojfarm.com Tue Mar 1 13:16:46 2011 From: ronald.southwick at tojfarm.com (ronald.southwick) Date: Tue, 01 Mar 2011 16:16:46 -0500 Subject: Pan Web Publishing -> iPad Message-ID: <4D6D623E.8000603@tojfarm.com> It should be possible to create a portable data input/access system by running Panorama Server with forms optimized for viewing on an iPad, right? This would be in a WiFi-enabled school setting. The idea is that teachers would not need a local copy of the database, just a window to call up a student's form to see entries up to that point and/or make a new entry at any time, anywhere in the building. I need proof-of-concept data to put together a proposal for funding for the hardware and software. Is anyone doing something similar? Ron From robert at ameeti.net Tue Mar 1 13:33:03 2011 From: robert at ameeti.net (Robert Ameeti) Date: Tue, 1 Mar 2011 13:33:03 -0800 Subject: Pan Web Publishing -> iPad In-Reply-To: <4D6D623E.8000603@tojfarm.com> References: <4D6D623E.8000603@tojfarm.com> Message-ID: At 4:16 PM -0500, 3/1/11, ronald.southwick wrote: >It should be possible to create a portable data >input/access system by running Panorama Server >with forms optimized for viewing on an iPad, >right? This would be in a WiFi-enabled school >setting. > >The idea is that teachers would not need a local >copy of the database, just a window to call up a >student's form to see entries up to that point >and/or make a new entry at any time, anywhere in >the building. > >I need proof-of-concept data to put together a >proposal for funding for the hardware and >software. > >Is anyone doing something similar? What application are you thinking of running on the iPad? There is no version of Panorama that will run on the iPad. You can use a browser and connect a form that your browser displays with Panorama Enterprise. But once going down that route, you should responsibly consider just connecting with a SQL back end like mySQL. The reliability would be significantly greater and the cost would be significantly less. Or you could use an Adobe Acrobat form to enter information that is then imported into Panorama. Did you have another path you were thinking of going down? -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist When you are eight years old, nothing is any of your business. -- Lenny Bruce <><><><><><><><><><><><> From Jim at JamesCook.biz Tue Mar 1 13:40:55 2011 From: Jim at JamesCook.biz (James Cook) Date: Tue, 1 Mar 2011 16:40:55 -0500 Subject: Pan Web Publishing -> iPad In-Reply-To: <4D6D623E.8000603@tojfarm.com> References: <4D6D623E.8000603@tojfarm.com> Message-ID: At 4:16 PM -0500 3/1/11, ronald.southwick wrote: >Is anyone doing something similar? I've researched it and put it to work internally to a limited degree. Enterprise works very well as an intranet system and as you've noted, it means no one needs to install anything. iPad, iPod and iPhone all use the Safari browser and thrive on HTML5. You'll find they handle any standard web pages well though. You can have auto-detection handling screen size too so it can adjust fonts and graphics up or down for their devices via style sheets. Feel free to contact me off list if you have any specific issues, but bottom line is that I can promise you that it works. -- James Cook Jim at JamesCook.biz 720-252-7042 http://JamesCook.biz From conable.1 at osu.edu Tue Mar 1 15:27:54 2011 From: conable.1 at osu.edu (William Conable) Date: Tue, 01 Mar 2011 15:27:54 -0800 Subject: Checkbox status Message-ID: <4D6D80FA.7040108@osu.edu> An HTML attachment was scrubbed... URL: From ronald.southwick at tojfarm.com Tue Mar 1 16:02:12 2011 From: ronald.southwick at tojfarm.com (ronald.southwick) Date: Tue, 01 Mar 2011 19:02:12 -0500 Subject: Pan Web Publishing -> iPad In-Reply-To: References: <4D6D623E.8000603@tojfarm.com> Message-ID: <4D6D8904.1060005@tojfarm.com> Robert Ameeti wrote: > At 4:16 PM -0500, 3/1/11, ronald.southwick wrote: > >> It should be possible to create a portable data input/access system by >> running Panorama Server with forms optimized for viewing on an iPad, >> right? > You can use a browser and connect a form that your browser displays with > Panorama Enterprise. But once going down that route, you should > responsibly consider just connecting with a SQL back end like mySQL. The > reliability would be significantly greater and the cost would be > significantly less. Yes, the browser route is what I had in mind. The possible advantage to Panorama Server over SQL is that the paper form is currently generated by Panorama with some data pre-filled and other data entered after the paper form is complete. Reliability is something to consider, too. I haven't had the pleasure of using Numbers, but that would be a tool to build a "form" for inputting data via import, too. Thank you for the response, this helps me sort through the options. Ron From ronald.southwick at tojfarm.com Tue Mar 1 16:06:47 2011 From: ronald.southwick at tojfarm.com (ronald.southwick) Date: Tue, 01 Mar 2011 19:06:47 -0500 Subject: Pan Web Publishing -> iPad In-Reply-To: References: <4D6D623E.8000603@tojfarm.com> Message-ID: <4D6D8A17.1070205@tojfarm.com> James Cook wrote: >> Is anyone doing something similar? > > I've researched it and put it to work internally to a limited degree. Good. It made sense logically. I appreciate your response. Ron From cdpublishing at qwestoffice.net Tue Mar 1 16:13:07 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Tue, 1 Mar 2011 16:13:07 -0800 Subject: Checkbox status In-Reply-To: <4D6D80FA.7040108@osu.edu> References: <4D6D80FA.7040108@osu.edu> Message-ID: <558D59D5-D0FF-4425-AD11-827A7E7BB1DC@qwestoffice.net> I'm not sure if this gets to your problem, but when I use a checkbox, it fills a field with a value...usually the range of these values is very limited. So, couldn't you check the field value? IF fieldvalue="x" message "filled with x" ENDIF Craig McPherson On Mar 1, 2011, at 3:27 PM, William Conable wrote: > This is easy but I can't find it. What info function will tell me the state of a checkbox (checked vs. unchecked)? > > Thanks > Bill Conable > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert at ameeti.net Tue Mar 1 16:21:46 2011 From: robert at ameeti.net (Robert Ameeti) Date: Tue, 1 Mar 2011 16:21:46 -0800 Subject: Pan Web Publishing -> iPad In-Reply-To: <4D6D8904.1060005@tojfarm.com> References: <4D6D623E.8000603@tojfarm.com> <4D6D8904.1060005@tojfarm.com> Message-ID: At 7:02 PM -0500, 3/1/11, ronald.southwick wrote: >Robert Ameeti wrote: >>At 4:16 PM -0500, 3/1/11, ronald.southwick wrote: >> >>>It should be possible to create a portable >>>data input/access system by running Panorama >>>Server with forms optimized for viewing on an >>>iPad, right? > > >>You can use a browser and connect a form that >>your browser displays with Panorama Enterprise. >>But once going down that route, you should >>responsibly consider just connecting with a SQL >>back end like mySQL. The reliability would be >>significantly greater and the cost would be >>significantly less. > >Yes, the browser route is what I had in mind. >The possible advantage to Panorama Server over >SQL is that the paper form is currently >generated by Panorama with some data pre-filled >and other data entered after the paper form is >complete. I've found paper forms and screen forms are very different animals. You would use a form that is tied to a Panorama Enterprise Server if you already have one. If you don't, then you might as well consider your options. >Reliability is something to consider, too. Very important when you are in a business world. It seems like you are going to be using it in an environment where people will expect reliable service and where the number of users could be higher than just a few. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist We are alone, absolutely alone on this chance planet: and, amid all the forms of life that surround us, not one, excepting the dog, has made an alliance with us. -- Maurice Maeterlinck <><><><><><><><><><><><> From JC at JamesCook.biz Tue Mar 1 18:25:02 2011 From: JC at JamesCook.biz (James Cook) Date: Tue, 1 Mar 2011 21:25:02 -0500 Subject: Pan Web Publishing -> iPad In-Reply-To: References: <4D6D623E.8000603@tojfarm.com> <4D6D8904.1060005@tojfarm.com> Message-ID: At 4:21 PM -0800 3/1/11, Robert Ameeti wrote: >>Reliability is something to consider, too. > >Very important when you are in a business world. It seems like you are going to be using it in an environment where people will expect reliable service and where the number of users could be higher than just a few. And Enterprise as a web server is extremely reliable by my experience on at least 30 or so sites. I've had sites that handled tens of thousands of hits per day without issues, such as the USGA during the US Open to produce statistics tables on the fly from hundreds of thousands of gold records. >I've found paper forms and screen forms are very different animals. You would use a form that is tied to a Panorama Enterprise Server if you already have one. If you don't, then you might as well consider your options. Although Panorama lets you publish forms as web forms, it's a bit too much of a black box for me. I've preferred building web forms in a program like DreamWeaver. I then insert the Panorama field names to build a template. Using WebFormMerge and WebFormtoDatabase I can readily grab or place data. The process of designing and applying forms this way is relatively short. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From qnaweb at provue.com Tue Mar 1 19:21:55 2011 From: qnaweb at provue.com (Marc Thomas) Date: Tue, 1 Mar 2011 19:21:55 -0800 (PST) Subject: Multiple Records in One Form Message-ID: <20110302032155.0CC72DE42F@provue.com> Is it possible to have multiple records from a single field in one form? How would I make that happen? I have a database I'm creating where I would like only the data in a few fields to vary, and the data in other fields to remain constant. From dthmpsn1 at illinois.edu Wed Mar 2 03:00:27 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Wed, 2 Mar 2011 05:00:27 -0600 (CST) Subject: Multiple Records in One Form In-Reply-To: <20110302032155.0CC72DE42F@provue.com> References: <20110302032155.0CC72DE42F@provue.com> Message-ID: <20110302050027.CON80505@expms1.cites.uiuc.edu> >Is it possible to have multiple records from a single field in one form? How would I make that happen? I have a database I'm creating where I would like only the data in a few fields to vary, and the data in other fields to remain constant. > You would use a view as list form, and put a data cell or text editor superobject for that one field on the tile. Dave From mylevelbest at gmail.com Thu Mar 3 12:24:21 2011 From: mylevelbest at gmail.com (David Groover) Date: Thu, 03 Mar 2011 15:24:21 -0500 Subject: Procedure names Message-ID: <4D6FF8F5.6070908@gmail.com> I don't see a way to use info("trigger") or another way to see what procedure has been attached to a superobject. I can use Openprocedure "Nameofprocedure" to look at the procedure once it is known. It would be nice if there was a way to do this from the trigger, but I am not seeing one. If there was a way, by putting in a modifier "IF" choice, I could look at any procedure attached to a function on my form more easily. Any chance there is a way to do this and I am not seeing it? And if not, is there any interest in this happening (Jim)? Of course, I am putting in the names individually with openprocedure as I am finding this helpful for my own benefit. If there was a way to grab the data from an info trigger ... wondering? Thanks. David Groover? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Thu Mar 3 14:56:50 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 3 Mar 2011 16:56:50 -0600 (CST) Subject: Procedure names In-Reply-To: <4D6FF8F5.6070908@gmail.com> References: <4D6FF8F5.6070908@gmail.com> Message-ID: <20110303165650.COP50810@expms1.cites.uiuc.edu> > I don't see a way to use info("trigger") or another way to see > what procedure has been attached to a superobject. I can use > Openprocedure "Nameofprocedure" to look at the procedure once > it is known. It would be nice if there was a way to do this > from the trigger, but I am not seeing one. If there was a way, > by putting in a modifier "IF" choice, I could look at any > procedure attached to a function on my form more easily. > > Any chance there is a way to do this and I am not seeing it? > And if not, is there any interest in this happening (Jim)? > > Of course, I am putting in the names individually with > openprocedure as I am finding this helpful for my own benefit. > If there was a way to grab the data from an info trigger ... > wondering? > I think you could get this information from info("ProcedureStack") but I'm not sure just what the issue is. It sounds like you want to know how a procedure can find out its own name. At the time you wrote the statement, that information would be in the title bar of the window, and you could just type it in as a string constant. Dave From mylevelbest at gmail.com Thu Mar 3 16:18:57 2011 From: mylevelbest at gmail.com (David Groover) Date: Thu, 03 Mar 2011 19:18:57 -0500 Subject: Procedure names In-Reply-To: <20110303165650.COP50810@expms1.cites.uiuc.edu> References: <4D6FF8F5.6070908@gmail.com> <20110303165650.COP50810@expms1.cites.uiuc.edu> Message-ID: <4D702FF1.6010706@gmail.com> Yes, I am doing that. I was wondering if I was missing an easier route however. Using a button as an example, I could write a procedure to match each button name. It's easier of course to use: lvWhatButton = strip(info("trigger")[".",-1][2,-1]). I was wondering if there was a way to do this with the procedure name. If so I could paste in the same procedure instead of writing it fresh for each procedure. Not a big deal, just trying to be more efficient. Thanks. David G. On 3/3/11 5:56 PM, David Thompson wrote: >> I don't see a way to use info("trigger") or another way to see >> what procedure has been attached to a superobject. I can use >> Openprocedure "Nameofprocedure" to look at the procedure once >> it is known. It would be nice if there was a way to do this >> from the trigger, but I am not seeing one. If there was a way, >> by putting in a modifier "IF" choice, I could look at any >> procedure attached to a function on my form more easily. >> >> Any chance there is a way to do this and I am not seeing it? >> And if not, is there any interest in this happening (Jim)? >> >> Of course, I am putting in the names individually with >> openprocedure as I am finding this helpful for my own benefit. >> If there was a way to grab the data from an info trigger ... >> wondering? >> > I think you could get this information from info("ProcedureStack") but I'm not sure just what the issue is. It sounds like you want to know how a procedure can find out its own name. At the time you wrote the statement, that information would be in the title bar of the window, and you could just type it in as a string constant. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From csw.me.com at gmail.com Thu Mar 3 19:57:14 2011 From: csw.me.com at gmail.com (csw.me) Date: Thu, 3 Mar 2011 19:57:14 -0800 Subject: Procedure names In-Reply-To: <4D702FF1.6010706@gmail.com> References: <4D6FF8F5.6070908@gmail.com> <20110303165650.COP50810@expms1.cites.uiuc.edu> <4D702FF1.6010706@gmail.com> Message-ID: Just put this in .Initialize: FileGlobal ActiveProc ActiveProc=".Initialize" and then put this at the head of all procedures (this can be done with a procedure pretty easily) You need to manually put in the proc name. ActiveProc= "[procedure name]" growlmessage ActiveProc Now the fileglobal ActiveProc will always contain the name of the running (or last run) procedure. You may want to do something other than growl it, and you may want to use a global with a tag for the current file. I tried info("procedurestack") and callingprocedure() but they both returned "" cw -- csw.me.com at gmail.com Sent with Sparrow On Thursday, March 3, 2011 at 4:18 PM, David Groover wrote: > Yes, I am doing that. I was wondering if I was missing an easier route however. Using a button as an example, I could write a procedure to match each button name. It?s easier of course to use: > lvWhatButton = strip(info("trigger")[".",-1][2,-1]). > > I was wondering if there was a way to do this with the procedure name. If so I could paste in the same procedure instead of writing it fresh for each procedure. Not a big deal, just trying to be more efficient. > > Thanks. > > David G. > > > On 3/3/11 5:56 PM, David Thompson wrote: > > > I don't see a way to use info("trigger") or another way to see what procedure has been attached to a superobject. I can use Openprocedure "Nameofprocedure" to look at the procedure once it is known. It would be nice if there was a way to do this from the trigger, but I am not seeing one. If there was a way, by putting in a modifier "IF" choice, I could look at any procedure attached to a function on my form more easily. Any chance there is a way to do this and I am not seeing it? And if not, is there any interest in this happening (Jim)? Of course, I am putting in the names individually with openprocedure as I am finding this helpful for my own benefit. If there was a way to grab the data from an info trigger ... wondering? > > > > > > > I think you could get this information from info("ProcedureStack") but I'm not sure just what the issue is. It sounds like you want to know how a procedure can find out its own name. At the time you wrote the statement, that information would be in the title bar of the window, and you could just type it in as a string constant. Dave _______________________________________________ Qna mailing list Qna at provue.com http://provue.com/mailman/listinfo/qna > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mylevelbest at gmail.com Fri Mar 4 03:03:18 2011 From: mylevelbest at gmail.com (David Groover) Date: Fri, 04 Mar 2011 06:03:18 -0500 Subject: Procedure names In-Reply-To: References: <4D6FF8F5.6070908@gmail.com> <20110303165650.COP50810@expms1.cites.uiuc.edu> <4D702FF1.6010706@gmail.com> Message-ID: <4D70C6F6.7070701@gmail.com> Thanks. I appreciate the tip. David G. On 3/3/11 10:57 PM, csw.me wrote: > Just put this in .Initialize: > > FileGlobal ActiveProc ActiveProc=".Initialize" > > and then put this at the head of all procedures (this can be done with > a procedure pretty easily) You need to manually put in the proc name. > > ActiveProc= "[procedure name]" growlmessage ActiveProc > > > Now the fileglobal ActiveProc will always contain the name of the > running (or last run) procedure. You may want to do something other > than growl it, and you may want to use a global with a tag for the > current file. > > I tried info("procedurestack") and callingprocedure() but they both > returned "" > > cw > > -- > csw.me.com at gmail.com > Sent with Sparrow > > On Thursday, March 3, 2011 at 4:18 PM, David Groover wrote: > >> Yes, I am doing that. I was wondering if I was missing an easier >> route however. Using a button as an example, I could write a >> procedure to match each button name. It's easier of course to use: >> lvWhatButton = strip(info("trigger")[".",-1][2,-1]). >> >> I was wondering if there was a way to do this with the procedure >> name. If so I could paste in the same procedure instead of writing it >> fresh for each procedure. Not a big deal, just trying to be more >> efficient. >> >> Thanks. >> >> David G. >> >> >> On 3/3/11 5:56 PM, David Thompson wrote: >>>> I don't see a way to use info("trigger") or another way to see >>>> what procedure has been attached to a superobject. I can use >>>> Openprocedure "Nameofprocedure" to look at the procedure once >>>> it is known. It would be nice if there was a way to do this >>>> from the trigger, but I am not seeing one. If there was a way, >>>> by putting in a modifier "IF" choice, I could look at any >>>> procedure attached to a function on my form more easily. >>>> >>>> Any chance there is a way to do this and I am not seeing it? >>>> And if not, is there any interest in this happening (Jim)? >>>> >>>> Of course, I am putting in the names individually with >>>> openprocedure as I am finding this helpful for my own benefit. >>>> If there was a way to grab the data from an info trigger ... >>>> wondering? >>>> >>> I think you could get this information from info("ProcedureStack") but I'm not sure just what the issue is. It sounds like you want to know how a procedure can find out its own name. At the time you wrote the statement, that information would be in the title bar of the window, and you could just type it in as a string constant. >>> >>> Dave >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >>> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert at ameeti.net Fri Mar 4 09:31:33 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 4 Mar 2011 09:31:33 -0800 Subject: Print pdf Virtual printer error In-Reply-To: References: <58a0a5061002031101h4b8feaa2p3eb4031f879215@mail.gmail.com> <2839875e1002061616s6fcd5739t3277e16f8e38772a@mail.gmail.com> <2839875e1002061718w4bd59d30u37b55c6e8dc3a8d1@mail.gmail.com> Message-ID: Am I missing something here? Am I correct in that every time that I release a new version of a file that has forms within it that I wish to programmatically create pdfs, after downloading the new version from the server to each client, I must go to each computer, open each form, print a test pdf with a specific name and destination, and capture those _PrintSettings into a permanent variable for that computer for that form? ie. 10 Forms x 10 computers = 100 manual steps for each release of a database file that might occur multiple times a week? And this would be required even if I did not alter any of the forms but instead made a minor tweak to some procedure within the file? At 8:15 AM -0700, 2/10/10, Paul Nielsen wrote: >It is possible to have complete automation and >total flexibility of printing pdf files without >using PrintPDF and without creating duplicate >forms just for printing pdf files. The permanent >variable _PrintSettings (formName) holds this >information for each form. It takes a small >amount of setup but each user would manually >print or by procedure, then set the print >dialog options for the name and location of the >desired file. Then with your own permanent >variable, copy the contents of _PrintSettings >(formName) into the your variable. Now when the >user needs to print to pdf the following code >can be used without creating separate forms for >each user. > >_PrintSettings (formName) = MyPermanentPDFSettings >Print "" >CopyFile or FileRename to provide dynamic file names and location. > >This is now working great for me thanks to the original idea from Kurt Meyer. > > >Thanks, >Paul -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist WHAT MAKES YOU THINK I CAN'T TAKE CRITICISM??????? <><><><><><><><><><><><> From dthmpsn1 at illinois.edu Fri Mar 4 10:31:23 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 4 Mar 2011 12:31:23 -0600 (CST) Subject: Print pdf Virtual printer error In-Reply-To: References: <58a0a5061002031101h4b8feaa2p3eb4031f879215@mail.gmail.com> <2839875e1002061616s6fcd5739t3277e16f8e38772a@mail.gmail.com> <2839875e1002061718w4bd59d30u37b55c6e8dc3a8d1@mail.gmail.com> Message-ID: <20110304123123.COQ22530@expms1.cites.uiuc.edu> ---- Original message ---- >Date: Fri, 4 Mar 2011 09:31:33 -0800 >From: Robert Ameeti >Subject: Re: Print pdf Virtual printer error >To: "Panorama Questions Answers (Discussion)" > >Am I missing something here? > >Am I correct in that every time that I release a >new version of a file that has forms within it >that I wish to programmatically create pdfs, >after downloading the new version from the server >to each client, I must go to each computer, open >each form, print a test pdf with a specific name >and destination, and capture those _PrintSettings >into a permanent variable for that computer for >that form? ie. 10 Forms x 10 computers = 100 >manual steps for each release of a database file >that might occur multiple times a week? And this >would be required even if I did not alter any of >the forms but instead made a minor tweak to some >procedure within the file? > > > To avoid that, you would need to establish a folder on everyone's machine, that was outside the user's home folder, so that it would have the same file://localhost/ path on every machine. The initial save would be to that folder. The procedure could then move it to the final destination as it was renamed. Dave From robert at ameeti.net Fri Mar 4 10:49:21 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 4 Mar 2011 10:49:21 -0800 Subject: Print pdf Virtual printer error In-Reply-To: <20110304123123.COQ22530@expms1.cites.uiuc.edu> References: <58a0a5061002031101h4b8feaa2p3eb4031f879215@mail.gmail.com> <2839875e1002061616s6fcd5739t3277e16f8e38772a@mail.gmail.com> <2839875e1002061718w4bd59d30u37b55c6e8dc3a8d1@mail.gmail.com> <20110304123123.COQ22530@expms1.cites.uiuc.edu> Message-ID: I'm not clear on what you mean with your suggestion. Yes, I do have each computer able to access a public directory on the server. Files could be saved there. But saving of what file? What would the procedure be moving to that location before 'renaming'? >To avoid that, you would need to establish a >folder on everyone's machine, that was outside >the user's home folder, so that it would have >the same file://localhost/ path on every >machine. The initial save would be to that >folder. The procedure could then move it to the >final destination as it was renamed. The work around that I am working on is to save the _PrintSettings for each form on each computer to a permanent variable on the server where I can later retrieve them when I need to create the pdf. I believe this should work: SetServerVariable "",Info("UnixUserName")+"_pdfSettings_"+Info("FormName"),?_PrintSettings Info("FormName")?,"" But at the moment, after thinking that I have saved that variable, I am still not able to read it just yet. The following command does not result with any message. I think it is because the variable name needs to be quoted but I've yet to figure out the way to quote the calculated result of what the variable will be. Message ServerVariable("",'"'+Info("UnixUserName")+"_pdfSettings_"+Info("FormName")+'"') At 12:31 PM -0600, 3/4/11, David Thompson wrote: >---- Original message ---- >>Date: Fri, 4 Mar 2011 09:31:33 -0800 >>From: Robert Ameeti >>Subject: Re: Print pdf Virtual printer error >>To: "Panorama Questions Answers (Discussion)" >> >>Am I missing something here? >> >>Am I correct in that every time that I release a >>new version of a file that has forms within it >>that I wish to programmatically create pdfs, >>after downloading the new version from the server >>to each client, I must go to each computer, open >>each form, print a test pdf with a specific name >>and destination, and capture those _PrintSettings >>into a permanent variable for that computer for >>that form? ie. 10 Forms x 10 computers = 100 >>manual steps for each release of a database file >>that might occur multiple times a week? And this >>would be required even if I did not alter any of >>the forms but instead made a minor tweak to some > >procedure within the file? > -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Love does not consist in gazing at each other but in looking outward together in the same direction. - Antoine de Saint-Exup?ry <><><><><><><><><><><><> From robert at ameeti.net Fri Mar 4 11:48:00 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 4 Mar 2011 11:48:00 -0800 Subject: Writing and Reading a permanent variable to the server Message-ID: My local variable LFormpdfSettings has text in it. I am using SetServerVariable as such: SetServerVariable "","rameeti_pdfSettings_Test Form",?LFormpdfSettings?,"AAA",-1 The 2nd parameter for the name of the variable must be quoted to not get an error even though the Panorama Reference does not show it being quoted. I then run this: Message "The ServerVariable is: "+ ServerVariable("","rameeti_pdfSettings_Test Form") and the only response is "The ServerVariable is:" with no following text. The server is also sending me an admin email stating: status="SERVER CODE ERROR: Cannot compile procedure - one or more incorrect steps." type=Text result="" Anyone have better eyes than mine? -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Take everything you like seriously, except yourselves. -- Rudyard Kipling <><><><><><><><><><><><> From michael.witbeck at oregonstate.edu Fri Mar 4 12:00:05 2011 From: michael.witbeck at oregonstate.edu (Witbeck, Michael) Date: Fri, 4 Mar 2011 12:00:05 -0800 Subject: Panorama file or unix executable Message-ID: I don't know if this is a Panorama question or a Mac question, but am hoping someone here can answer. I have a couple of database files on a server. Most users see them normally as Panorama files, but one user's machine sees them as Unix executables and her copy of Panorama can't open them. The difficulty works in reverse as well. As a test I made a sample db on her machine and loaded it onto the server. Moving it over to the server changed it into a unix executable that no else can use. This is making me crazy. Michael W INTO OSU -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert at ameeti.net Fri Mar 4 12:20:52 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 4 Mar 2011 12:20:52 -0800 Subject: Panorama file or unix executable In-Reply-To: References: Message-ID: You and one of my client's are driven crazy by this Panorama file craziness. My client seconds ago told me that he emailed himself a Panorama file and when it arrived, it was a Unix file that was unopenable. My suggestion to him was to zip it first and perhaps, it might make the transition through the mail system better. As for your issue, these situations started occurring back when Snow Leopard and Panorama v5 were battling heads. The only fix that I've seen that will have any real success here is to upgrade to Panorama 6. However it is that that version is different, it seems to fix the problem. You shouldn't have to but it does seem to work. You can download a trial version to see if it fixes your problem before you commit. At 12:00 PM -0800, 3/4/11, Witbeck, Michael wrote: >I don't know if this is a Panorama question or a >Mac question, but am hoping someone here can >answer. I have a couple of database files on a >server. Most users see them normally as Panorama >files, but one user's machine sees them as Unix >executables and her copy of Panorama can't open >them. > >The difficulty works in reverse as well. As a >test I made a sample db on her machine and >loaded it onto the server. Moving it over to the >server changed it into a unix executable that no >else can use. > >This is making me crazy. > >Michael W >INTO OSU -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Everybody wants to go to heaven, but nobody wants to die. <><><><><><><><><><><><> From dthmpsn1 at illinois.edu Fri Mar 4 13:46:10 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 4 Mar 2011 15:46:10 -0600 (CST) Subject: Print pdf Virtual printer error In-Reply-To: References: <58a0a5061002031101h4b8feaa2p3eb4031f879215@mail.gmail.com> <2839875e1002061616s6fcd5739t3277e16f8e38772a@mail.gmail.com> <2839875e1002061718w4bd59d30u37b55c6e8dc3a8d1@mail.gmail.com> <20110304123123.COQ22530@expms1.cites.uiuc.edu> Message-ID: <20110304154610.COQ40165@expms1.cites.uiuc.edu> The technique that has been discussed in the past, is to manually use the form to print as a pdf file. That causes the permanent variables to save the name of the pdf file, and the path to the folder where it was saved. Later, you use Print "" to cause a new pdf file to be created with the same name and path as the one you saved manually, replacing that file if it's still there. You may not want to do that. You may want to keep all the files, and include a time or date stamp as part of the name, so the next step after the Print "" is to rename the file that was just saved, and possibly move it to another folder. The UNIX mv command can do both of those in the same operation. My suggestion was that there should be a folder on your machine, and also on every one of your users, that doesn't include the user name as part of the path, so that the path would be the same on every other computer, as it is on yours. That way you could do the initial print that loads the permanent variable on your own computer, and the path and name that were saved would work on every computer, not just yours. It wouldn't be necessary to repeat the process on your user's computers, because the same path would apply to all. After the Print "" you would then move the pdf file to whatever folder you want to use to store those files, and rename it with whatever name seems to be appropriate. Dave ---- Original message ---- >Date: Fri, 4 Mar 2011 10:49:21 -0800 >From: Robert Ameeti >Subject: Re: Print pdf Virtual printer error >To: "Panorama Questions Answers (Discussion)" > >I'm not clear on what you mean with your >suggestion. Yes, I do have each computer able to >access a public directory on the server. Files >could be saved there. But saving of what file? >What would the procedure be moving to that >location before 'renaming'? > >>To avoid that, you would need to establish a >>folder on everyone's machine, that was outside >>the user's home folder, so that it would have >>the same file://localhost/ path on every >>machine. The initial save would be to that >>folder. The procedure could then move it to the >>final destination as it was renamed. > >The work around that I am working on is to save >the _PrintSettings for each form on each computer >to a permanent variable on the server where I can >later retrieve them when I need to create the pdf. > >I believe this should work: >SetServerVariable >"",Info("UnixUserName")+"_pdfSettings_"+Info("FormName"),?_PrintSettings >Info("FormName")?,"" > >But at the moment, after thinking that I have >saved that variable, I am still not able to read >it just yet. The following command does not >result with any message. I think it is because >the variable name needs to be quoted but I've yet >to figure out the way to quote the calculated >result of what the variable will be. > >Message >ServerVariable("",'"'+Info("UnixUserName")+"_pdfSettings_"+Info("FormName")+'"') > > > > >At 12:31 PM -0600, 3/4/11, David Thompson wrote: > >>---- Original message ---- >>>Date: Fri, 4 Mar 2011 09:31:33 -0800 >>>From: Robert Ameeti >>>Subject: Re: Print pdf Virtual printer error >>>To: "Panorama Questions Answers (Discussion)" >>> >>>Am I missing something here? >>> >>>Am I correct in that every time that I release a >>>new version of a file that has forms within it >>>that I wish to programmatically create pdfs, >>>after downloading the new version from the server >>>to each client, I must go to each computer, open >>>each form, print a test pdf with a specific name >>>and destination, and capture those _PrintSettings >>>into a permanent variable for that computer for >>>that form? ie. 10 Forms x 10 computers = 100 >>>manual steps for each release of a database file >>>that might occur multiple times a week? And this >>>would be required even if I did not alter any of >>>the forms but instead made a minor tweak to some >> >procedure within the file? >> > >-- > ><><><><><><><><><><><><> >Robert Ameeti - ePro? >MailTo:robert at ameeti.net >(949) 422-6866 FAX (267) 222-6866 >PC & Mac computer specialist > >Love does not consist in gazing at each other but in looking outward together in the same direction. >- Antoine de Saint-Exup?ry ><><><><><><><><><><><><> >_______________________________________________ >Qna mailing list >Qna at provue.com >http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Fri Mar 4 15:54:55 2011 From: audax at wideband.net.au (Michael Kellock) Date: Sat, 5 Mar 2011 10:54:55 +1100 Subject: Big lookup Message-ID: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. Are there any other tricks? michael From dthmpsn1 at illinois.edu Fri Mar 4 18:01:55 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 4 Mar 2011 20:01:55 -0600 (CST) Subject: Big lookup In-Reply-To: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> Message-ID: <20110304200155.COQ52798@expms1.cites.uiuc.edu> \>I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. > The location of the key field in the lookup database will be about 500,000 times more important than that of any other field. Dave From jetpuck04 at me.com Fri Mar 4 18:14:44 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Fri, 04 Mar 2011 21:14:44 -0500 Subject: Big lookup In-Reply-To: <20110304200155.COQ52798@expms1.cites.uiuc.edu> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> Message-ID: <666EB2F3-843C-468D-8684-946504404F47@me.com> What's the best location? On Mar 4, 2011, at 9:01 PM, David Thompson wrote: > \>I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. >> > > The location of the key field in the lookup database will be about 500,000 times more important than that of any other field. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From barryk at caravanbeads.net Fri Mar 4 18:57:14 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Fri, 4 Mar 2011 21:57:14 -0500 Subject: text question In-Reply-To: <20110304200155.COQ52798@expms1.cites.uiuc.edu> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> Message-ID: <2A6A2F40-1B45-4B17-8F67-C2ADFB8CD8C1@caravanbeads.net> I have fields in an excel file which I am copying and then bringing into Pan with this: Local ImportText ImportText = clipboard() ImportText = replace(ImportText, chr(13),chr(9)) OpenFile "&@ImportText" The initial result looks like this: FieldOne FieldTwo B10 145 B200 37 and so on. I then get rid of the leading Bs and would like to copy the contents of FieldOne into another field, change the 'numbers' from from text to 2 digit numbers, and then manipulate them as regular numbers. However after using FormulaFill to transfer the contents of FieldOne to the other field, I can't change the data type. I have tried using the fieldtype "2 digits" in a procedure and also tried just changing the datatype manually, and in both cases I get the alert warning me that "Some data may be lost in conversion" etc. And the problem data is the entire contents of the field. So I suspect that either my importText and replace is doing something funky, or there is some garbage tagging along from Excel that I can't see. If I manually type over records (so typing "100" over the 100 that came in from excel) PAN sees that the result is a proper number. Thanks in advance; I know it's going to be another easy one... bk PS The excel data just copied and pasted is a mess. I looked at in BBEdit with the invisibles revealed and there are what I think are tabs (maybe line feeds?) and some sort of a triangle thing... Here's a sample: B10 2139.5 B100 767.75 B1000 64.5 B10000 2 B1050 11 B110 10 B1100 25 Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From dthmpsn1 at illinois.edu Fri Mar 4 20:31:25 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 4 Mar 2011 22:31:25 -0600 (CST) Subject: Big lookup In-Reply-To: <666EB2F3-843C-468D-8684-946504404F47@me.com> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> <666EB2F3-843C-468D-8684-946504404F47@me.com> Message-ID: <20110304223125.COQ56405@expms1.cites.uiuc.edu> The earlier the better, so the best location would be to make it the first field. If the lookup is being done in a database of 1 million records, then the average lookup will find a match in the 500,000th record. That average lookup will have done 500,000 comparisons between the value of the key field, and the key value. In each case, it is fetching a different value from the key field, but the key value it is comparing it to is the same every time. It will need to fetch a value from the key field 500,000 times. It will need to fetch a value from any other field that is mentioned only once. Dave ---- Original message ---- >Date: Fri, 04 Mar 2011 21:14:44 -0500 >From: Peter Levitt >Subject: Re: Big lookup >To: "Panorama Questions Answers (Discussion)" > >What's the best location? > > >On Mar 4, 2011, at 9:01 PM, David Thompson wrote: > >> \>I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. >>> >> >> The location of the key field in the lookup database will be about 500,000 times more important than that of any other field. >> .com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Fri Mar 4 20:45:42 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 4 Mar 2011 22:45:42 -0600 (CST) Subject: text question In-Reply-To: <2A6A2F40-1B45-4B17-8F67-C2ADFB8CD8C1@caravanbeads.net> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> <2A6A2F40-1B45-4B17-8F67-C2ADFB8CD8C1@caravanbeads.net> Message-ID: <20110304224542.COQ56724@expms1.cites.uiuc.edu> >I have fields in an excel file which I am copying and then bringing into Pan with this: > >Local ImportText >ImportText = clipboard() >ImportText = replace(ImportText, chr(13),chr(9)) >OpenFile "&@ImportText" > >The initial result looks like this: >FieldOne FieldTwo >B10 145 >B200 37 > >and so on. > >I then get rid of the leading Bs and would like to copy the contents of FieldOne into another field, change the 'numbers' from from text to 2 digit numbers, and then manipulate them as regular numbers. > >However after using FormulaFill to transfer the contents of FieldOne to the other field, I can't change the data type. I have tried using the fieldtype "2 digits" in a procedure and also tried just changing the datatype manually, and in both cases I get the alert warning me that "Some data may be lost in conversion" etc. And the problem data is the entire contents of the field. > >So I suspect that either my importText and replace is doing something funky, or there is some garbage tagging along from Excel that I can't see. If I manually type over records (so typing "100" over the 100 that came in from excel) PAN sees that the result is a proper number. > If you use the striptonum( function in a FormulaFill, it will strip away anything that isn't a numeral. That would strip away the B, and any invisible characters, as well as characters like minus signs and decimal points. Your examples are all numbers that don't contain decimal points or minus signs, so I think striptonum( would be appropriate. Otherwise, I would have recommended stripchar(. Dave From scott at stillpoint.us Fri Mar 4 22:01:18 2011 From: scott at stillpoint.us (Scott Corbett) Date: Sat, 05 Mar 2011 00:01:18 -0600 (CST) Subject: Big lookup In-Reply-To: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> Message-ID: <20866BCF-AAF1-4C38-AC3F-CEB107D2E70F@stillpoint.us> Michael, I have two possible suggestions that I use in my databases to speed lookups and sorts. If your friend's data can be arranged like mine, it may be helpful. One thing I realized was that since the lookup function stops as soon as it finds a matching record, if I can sort the data so that the likelihood of the match occurring toward the top of the database is increased, that could speed up the sort tremendously (and did, when I implemented it) In my key databases I used to add transactions to the bottom of the database, which meant that newer, more active transactions were all at the bottom, whereas the five and ten year old data was at the top. I created a data field that got updated any time an inquiry or transaction was made regarding a customer. Then I always sorted down on that field which puts all the newest customers at the top of the list. I figured that the chances of doing a lookup for an active customer was statistically much more likely than suddenly wanting to match someone who had been inactive for ten years. This one change sped up the lookups dramatically. If there is any way your friend can logically sort the data to get the likelier matches toward the top, that could help. The second change I made, back in the day before the fast computers of today, some of the newer functions and commands, and native OS X Panorama, was to select the data that would contain the records I needed and export it to a temporary database. I would then work on it there. For example, when doing the daily closing report, I do selects and sorts on the data many times to build the summaries of cash, checks, etc. When sorting through 20k to 30k records for every select operation, it takes time. But I knew that all the data needed for the day's report had Date=Today(). Once I exported the 20-50 records for the day into the temporary database, the report generation sped up considerably. I use this technique in several key operations and find it very helpful. So, again, if your friend could sort the data in a way that he knew the target of a group of lookups would be in a certain subset of the data, this might work. Hope this gives food for thought. Scott On Mar 4, 2011, at 5:54 PM, Michael Kellock wrote: > I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. > > Are there any other tricks? > > michael > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Fri Mar 4 22:30:46 2011 From: audax at wideband.net.au (Michael Kellock) Date: Sat, 5 Mar 2011 17:30:46 +1100 Subject: Big lookup In-Reply-To: <20866BCF-AAF1-4C38-AC3F-CEB107D2E70F@stillpoint.us> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20866BCF-AAF1-4C38-AC3F-CEB107D2E70F@stillpoint.us> Message-ID: <24C08743-0280-4EF3-A64F-72FBCBE9D4B7@wideband.net.au> They're good ideas Scott but, unfortunately, I don't think either one applies. michael On 05/03/2011, at 5:01 PM, Scott Corbett wrote: > Michael, > > I have two possible suggestions that I use in my databases to speed lookups and sorts. If your friend's data can be arranged like mine, it may be helpful. > > One thing I realized was that since the lookup function stops as soon as it finds a matching record, if I can sort the data so that the likelihood of the match occurring toward the top of the database is increased, that could speed up the sort tremendously (and did, when I implemented it) In my key databases I used to add transactions to the bottom of the database, which meant that newer, more active transactions were all at the bottom, whereas the five and ten year old data was at the top. I created a data field that got updated any time an inquiry or transaction was made regarding a customer. Then I always sorted down on that field which puts all the newest customers at the top of the list. I figured that the chances of doing a lookup for an active customer was statistically much more likely than suddenly wanting to match someone who had been inactive for ten years. This one change sped up the lookups dramatically. If there is any way your friend can logically sort the data > to get the likelier matches toward the top, that could help. > > The second change I made, back in the day before the fast computers of today, some of the newer functions and commands, and native OS X Panorama, was to select the data that would contain the records I needed and export it to a temporary database. I would then work on it there. For example, when doing the daily closing report, I do selects and sorts on the data many times to build the summaries of cash, checks, etc. When sorting through 20k to 30k records for every select operation, it takes time. But I knew that all the data needed for the day's report had Date=Today(). Once I exported the 20-50 records for the day into the temporary database, the report generation sped up considerably. I use this technique in several key operations and find it very helpful. So, again, if your friend could sort the data in a way that he knew the target of a group of lookups would be in a certain subset of the data, this might work. From audax at wideband.net.au Sat Mar 5 01:16:27 2011 From: audax at wideband.net.au (Michael Kellock) Date: Sat, 5 Mar 2011 20:16:27 +1100 Subject: Big lookup In-Reply-To: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> Message-ID: One more point - my friend has an iMac G5, 1.8 GHz with 2 GB. I suggested to him that a 4GB Intel would be at least twice as fast for this particular task. Am I close? michael On 05/03/2011, at 10:54 AM, Michael Kellock wrote: > I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. > > Are there any other tricks? > > michael > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From kjmeyer at mac.com Sat Mar 5 02:44:29 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Sat, 05 Mar 2011 11:44:29 +0100 Subject: Panorama file or unix executable In-Reply-To: References: Message-ID: <9B9823FF-D9FF-44D3-B29F-1DFB50E85ACB@mac.com> Am 04.03.2011 um 21:00 schrieb Witbeck, Michael: > The difficulty works in reverse as well. As a test I made a sample db on her machine and loaded it onto the server. Moving it over to the server changed it into a unix executable that no else can use. This is a problem of Panorama 5.x and Snow Leopard. But - as far as I remember - these files can be opened via the file menu in Panorama. (Maybe the Platform Converter wizard can help, too.) As Robert already told you, this problem is solved in Panorama 6. Kurt -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Sat Mar 5 03:59:59 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 05:59:59 -0600 (CST) Subject: Big lookup In-Reply-To: References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> Message-ID: <20110305055959.COQ72002@expms1.cites.uiuc.edu> >One more point - my friend has an iMac G5, 1.8 GHz with 2 GB. I suggested to him that a 4GB Intel would be at least twice as fast for this particular task. Am I close? > >michael > > >On 05/03/2011, at 10:54 AM, Michael Kellock wrote: > >> I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. >> >> Are there any other tricks? >> If you split your lookup database into 10 databases, based on the first or last of those 9 digits, it should speed things up by a factor of 10. For example, if all the numbers ending in 0 were in DB0, those ending in 1 were in DB1 etc. then the lookup could look something like this. lookup("DB"+KeyValue[-1;1],"KeyField",KeyValue,"DataField","",0) The name of the lookup DB is being calculated on the fly. Dave From mylevelbest at gmail.com Sat Mar 5 05:52:58 2011 From: mylevelbest at gmail.com (David Groover) Date: Sat, 05 Mar 2011 08:52:58 -0500 Subject: Open a File or a Folder? Message-ID: <4D72403A.1000708@gmail.com> Re: OpenFileDialog lvFolder, lvFile, lvType,"" This is working fine. It is part of a procedure to mark the location of a file and store it for alter reference as part of an array. But .. I want to do the same with a folder name. I could select a file and tell it to grab the enclosing folder name, but, is there any way to have OpenFileDialog or something similar, allow the user to select a path for a specific folder, for storing that path to folder for later? Reason being is some folders contains project pieces that need work and this is a way of keeping track of works in process. Thanks David Groover -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff_gold at state.ga.weo.us Sat Mar 5 06:36:37 2011 From: jeff_gold at state.ga.weo.us (Jeff Gold) Date: Sat, 5 Mar 2011 09:36:37 -0500 Subject: Big lookup In-Reply-To: References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> Message-ID: <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> I've been lurking on the current discussion of ways to speed up Panorama, and though I'm not the one who asked the question, the tips provided so far have given me a lot to think about for designing future databases, or revising some of our current ones. I have a question about the last comment: > If you split your lookup database into 10 databases, based on the first or last of those 9 digits, it should speed things up by a factor of 10. For example, if all the numbers ending in 0 were in DB0, those ending in 1 were in DB1 etc. then the lookup could look something like this. I thought a bit about this and was wondering, could the same speed be accomplished (as described in the example above) using one database and first selecting "all the numbers ending in 0" and then doing the lookup you need to do within the selected data? Or is having the data in a separate database still faster for some reason? - Jeff From jeff_gold at state.ga.weo.us Sat Mar 5 06:42:37 2011 From: jeff_gold at state.ga.weo.us (Jeff Gold) Date: Sat, 5 Mar 2011 09:42:37 -0500 Subject: Big lookup In-Reply-To: <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> Message-ID: Oops... I think I just answered my own question as I hit send on the last email, I am guessing if you have to Select all the records ending with a certain # first, that selection task will eat up the extra time which is what is saved by having the separate databases. So having the separate databases will still be much faster, am I right? - Jeff From scott at stillpoint.us Sat Mar 5 06:58:04 2011 From: scott at stillpoint.us (Scott Corbett) Date: Sat, 05 Mar 2011 08:58:04 -0600 (CST) Subject: Big lookup In-Reply-To: References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> Message-ID: <0D213E92-8245-49CC-BFD1-988233C5F049@stillpoint.us> Yes, unless one could group all the lookups going for numbers starting with the number you just selected. Otherwise, the select step has to process all the records in the database before doing the lookup. At least with a lookup, when the matching result is found, the searching stops, so you save time. That's what I was referring to with the suggestion to sort the target database in a way that the likeliest matches are in the top of the database. It really can save a lot of time if you are doing many lookups into a large database. Scott On Mar 5, 2011, at 8:42 AM, Jeff Gold wrote: > Oops... I think I just answered my own question as I hit send on the last email, I am guessing if you have to Select all the records ending with a certain # first, that selection task will eat up the extra time which is what is saved by having the separate databases. So having the separate databases will still be much faster, am I right? > > - Jeff > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jim at provue.com Sat Mar 5 09:15:52 2011 From: jim at provue.com (James Rea) Date: Sat, 5 Mar 2011 09:15:52 -0800 Subject: Big lookup In-Reply-To: <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> Message-ID: On 3/5/11 at 6:36 AM, jeff_gold at state.ga.weo.us (Jeff Gold) wrote: >I thought a bit about this and was wondering, could the same >speed be accomplished (as described in the example above) using >one database and first selecting "all the numbers ending in 0" >and then doing the lookup you need to do within the selected data? You could get most of the benefits that way if you also did selections on the other database to match. So you would do one selection, then 100,000 lookups, then another selection, then 100,000 lookups. So the time to do the selection would be negligible. Don't forget to use lookupselected(, not lookup(. Also, as far as the tip of putting most frequently accessed information at the top of the file -- you could also have it at the back and use lookuplast(, which searches up from the bottom. Jim From dthmpsn1 at illinois.edu Sat Mar 5 09:15:53 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 11:15:53 -0600 (CST) Subject: Big lookup In-Reply-To: <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <0A661155-E407-43A4-B445-68314CDAF9F3@state.ga.weo.us> Message-ID: <20110305111553.COQ82583@expms1.cites.uiuc.edu> >I've been lurking on the current discussion of ways to speed up Panorama, and though I'm not the one who asked the question, the tips provided so far have given me a lot to think about for designing future databases, or revising some of our current ones. I have a question about the last comment: > >> If you split your lookup database into 10 databases, based on the first or last of those 9 digits, it should speed things up by a factor of 10. For example, if all the numbers ending in 0 were in DB0, those ending in 1 were in DB1 etc. then the lookup could look something like this. > >I thought a bit about this and was wondering, could the same speed be accomplished (as described in the example above) using one database and first selecting "all the numbers ending in 0" and then doing the lookup you need to do within the selected data? Or is having the data in a separate database still faster for some reason? > The lookupselected( would do a lot fewer comparisons, but it would still have to step over all those invisible records to get to the next visible one. It would be quicker if the next visible record were also the next record. Even if you ignored the time needed to do the Select, the lookup is still going to be faster if the visible records are the only records. Dave From jim at provue.com Sat Mar 5 09:17:08 2011 From: jim at provue.com (James Rea) Date: Sat, 5 Mar 2011 09:17:08 -0800 Subject: Open a File or a Folder? In-Reply-To: <4D72403A.1000708@gmail.com> Message-ID: On 3/5/11 at 5:52 AM, mylevelbest at gmail.com (David Groover) wrote: >Re: OpenFileDialog lvFolder, lvFile, lvType,"" > >This is working fine. It is part of a procedure to mark the >location of a file and store it for alter reference as part of >an array. > >But .. I want to do the same with a folder name. On Mac OS X you can use choosefolderdialog. This is not available on Windows, though. Jim From warren_rekow at speedyquick.net Sat Mar 5 09:38:36 2011 From: warren_rekow at speedyquick.net (Rekow Warren) Date: Sat, 5 Mar 2011 10:38:36 -0700 Subject: Big lookup In-Reply-To: <20110304223125.COQ56405@expms1.cites.uiuc.edu> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> <666EB2F3-843C-468D-8684-946504404F47@me.com> <20110304223125.COQ56405@expms1.cites.uiuc.edu> Message-ID: <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> Perhaps a binary search-based lookup function might be faster than a sequential lookup for a large database which is presorted on the key field? For a one million record database a binary search would require a maximum of about 20 iterative hops to locate a matching key field, vs the average sequential search of 500,000 records. On Mar 4, 2011, at 9:31 PM, David Thompson wrote: The earlier the better, so the best location would be to make it the first field. If the lookup is being done in a database of 1 million records, then the average lookup will find a match in the 500,000th record. That average lookup will have done 500,000 comparisons between the value of the key field, and the key value. In each case, it is fetching a different value from the key field, but the key value it is comparing it to is the same every time. It will need to fetch a value from the key field 500,000 times. It will need to fetch a value from any other field that is mentioned only once. Dave ---- Original message ---- > Date: Fri, 04 Mar 2011 21:14:44 -0500 > From: Peter Levitt > Subject: Re: Big lookup > To: "Panorama Questions Answers (Discussion)" > > What's the best location? > > > On Mar 4, 2011, at 9:01 PM, David Thompson wrote: > >> \>I have a friend who needs to do a lookup from a home d/b of 2 million records to one of 1 million records and I'm looking for ways to improve the efficiency. The cell values are nine-digit numbers stored as text. Presumably, having the source and target field first in each d/b would help. >>> >> >> The location of the key field in the lookup database will be about 500,000 times more important than that of any other field. >> From JC at JamesCook.biz Sat Mar 5 10:53:28 2011 From: JC at JamesCook.biz (James Cook) Date: Sat, 5 Mar 2011 13:53:28 -0500 Subject: Big lookup In-Reply-To: References: Message-ID: Another strategy is to pre-divide the data into multiple databases, at least for the sake of the lookups. If you have one for those with numbers ending in 0, another for those ending in 1, and so on, you've cut the data being processed at a time significantly. Your procedure will know that if a number to be looked up ends with 4 to go for the 4 database. I had one site with several hundred such databases, each one being no larger than a few hundred K. The procedure receiving the hits could break down the query and go for the proper database and return results in a flash. As an example, if dealing with cars, a red Ford compact could end up in three dbs: Ford, Compact and Red. The databases were sliced and diced from the original db via a procedure that used the same considerations. And admittedly there was a lot of redundancy between the databases, but my objective was speed. Several hundred thousand records became nearly a million. But the databases were small so anything could be found quickly. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From dthmpsn1 at illinois.edu Sat Mar 5 11:18:45 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 13:18:45 -0600 (CST) Subject: Big lookup In-Reply-To: <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> References: <00D0DE72-8427-46DB-9D27-EED3512205D0@wideband.net.au> <20110304200155.COQ52798@expms1.cites.uiuc.edu> <666EB2F3-843C-468D-8684-946504404F47@me.com> <20110304223125.COQ56405@expms1.cites.uiuc.edu> <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> Message-ID: <20110305131845.COQ86236@expms1.cites.uiuc.edu> >Perhaps a binary search-based lookup function might be faster than a sequential lookup for a large database which is presorted on the key field? For a one million record database a binary search would require a maximum of about 20 iterative hops to locate a matching key field, vs the average sequential search of 500,000 records. > > Panorama databases aren't structured in a way that would make that strategy work efficiently. The only pointers to the 500,000th record are in the 499,999th and 500,001st records. Panorama can't just jump to the middle of the database, because it doesn't know where that is. It needs 500,000 steps to reach the 500,000th record. Panorama saves a lot of RAM by not indexing its databases, but there are downsides, and lookups in massive databases would be the biggest downside. Dave From orlandospecial at gmail.com Sat Mar 5 10:55:52 2011 From: orlandospecial at gmail.com (orlandospecial at gmail.com) Date: Sat, 05 Mar 2011 18:55:52 +0000 Subject: Big lookup In-Reply-To: <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> Message-ID: <90e6ba53a7b4d28803049dc0cff9@google.com> I first brought up this question with Michael about 40 hours ago (Thursday pm) when I was using the Lookup function between on base with over 2.4 million records and another with over 1.7 million records. He asked me send him a sample and flipped when I told him that I would need to abort 14 hours of work to do that (that's right, it's been running now 54 consecutive hours since it first started - and not even 3/4 done yet). I use the Lookup function a lot, but usually between a base of 350K records or less with the 2.4 million one and then they get substantially smaller (and quicker). The first one takes overnight, the others a few minutes. I've learned to sort before, and just by coincidence, the key field is either the first field or second. I also sometimes split the base in different parts, but the problem with splitting a large 2.4 million records-base into smaller parts is, that if you're not careful, putting back the pieces can bring you a whole lot of new worries (if you're obsessive as I, you keep thinking that you've missed one and done it wrong). But what grabs me the most attention from this qna post is that everyone has minimized the effect, as Michael says, of the vintage hardware being used. Is this to say that a new and faster iMac will not make a dramatical difference in processing speed? BTW, what is a binary-based lookup? Orlando On Mar 5, 2011 12:38pm, Rekow Warren wrote: > Perhaps a binary search-based lookup function might be faster than a > sequential lookup for a large database which is presorted on the key > field? For a one million record database a binary search would require a > maximum of about 20 iterative hops to locate a matching key field, vs the > average sequential search of 500,000 records. > On Mar 4, 2011, at 9:31 PM, David Thompson wrote: > The earlier the better, so the best location would be to make it the > first field. > If the lookup is being done in a database of 1 million records, then the > average lookup will find a match in the 500,000th record. That average > lookup will have done 500,000 comparisons between the value of the key > field, and the key value. In each case, it is fetching a different value > from the key field, but the key value it is comparing it to is the same > every time. It will need to fetch a value from the key field 500,000 > times. It will need to fetch a value from any other field that is > mentioned only once. > Dave > ---- Original message ---- > > Date: Fri, 04 Mar 2011 21:14:44 -0500 > > From: Peter Levitt jetpuck04 at me.com> > > Subject: Re: Big lookup > > To: "Panorama Questions Answers (Discussion)" qna at provue.com> > > > > What's the best location? > > > > > > On Mar 4, 2011, at 9:01 PM, David Thompson wrote: > > > >> \>I have a friend who needs to do a lookup from a home d/b of 2 > million records to one of 1 million records and I'm looking for ways to > improve the efficiency. The cell values are nine-digit numbers stored as > text. Presumably, having the source and target field first in each d/b > would help. > >>> > >> > >> The location of the key field in the lookup database will be about > 500,000 times more important than that of any other field. > >> > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayschille at gmail.com Sat Mar 5 12:01:21 2011 From: jayschille at gmail.com (Jay Schille) Date: Sat, 5 Mar 2011 12:01:21 -0800 Subject: Big lookup In-Reply-To: References: Message-ID: >Another strategy is to pre-divide the data into multiple databases, >at least for the sake of the lookups. > I was curious about testing these proposals dealing with huge databases, so I created a test Panorama database with a million records. None of my test lookups, whether accessing the front or the hind end of the database, took more than about half a second (1.8 Ghz PowerPC G5, 2.5 GB RAM, System 10.5.8). Anyone can download this DB from http://dl.dropbox.com/u/1275739/BigDB.zip and do your own testing. It has three fields, ID with numbers running from 1 to 1,000,000; Num with numbers running from 1,000,000 to 1, and Alf (a text field), running from AAAAAAAA to AAACEXHO. The zipped file is 5.4 MB. -- Jay Schille From dthmpsn1 at illinois.edu Sat Mar 5 12:18:59 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 14:18:59 -0600 (CST) Subject: Big lookup In-Reply-To: <90e6ba53a7b4d28803049dc0cff9@google.com> References: <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> <90e6ba53a7b4d28803049dc0cff9@google.com> Message-ID: <20110305141859.COQ87879@expms1.cites.uiuc.edu> > BTW, what is a binary-based lookup? > The idea of a binary search algorithm is to successively cut the number of records where the match might be found in half. It assumes that the database is sorted. For a database of 1 million records, it would begin by looking in the 500,000th. If the value it found there were greater than the value it was searching for, it would know the record it was searching for was in the first 500,000 and it would go back to the 250,000th. If the value were less, it would know that it was in the last 500,000 and it would jump ahead to the 750,000th. Each iterative step reduces the number of records to search by half. Dave From dthmpsn1 at illinois.edu Sat Mar 5 12:27:37 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 14:27:37 -0600 (CST) Subject: Big lookup In-Reply-To: References: Message-ID: <20110305142737.COQ88099@expms1.cites.uiuc.edu> >>Another strategy is to pre-divide the data into multiple databases, >>at least for the sake of the lookups. >> > >I was curious about testing these proposals dealing with huge >databases, so I created a test Panorama database with a million >records. None of my test lookups, whether accessing the front or the >hind end of the database, took more than about half a second (1.8 Ghz >PowerPC G5, 2.5 GB RAM, System 10.5.8). > If you only have one lookup to do, this is rarely a problem. In every case where anyone is complaining about the time, the lookup is being done in a FormulaFill. If you do 2 million lookups in a formulafill, and each takes a half second, the total time for the FormulaFill would be a little more than 11.5 days. Dave From dthmpsn1 at illinois.edu Sat Mar 5 13:07:03 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 5 Mar 2011 15:07:03 -0600 (CST) Subject: Big lookup In-Reply-To: <90e6ba53a7b4d28803049dc0cff9@google.com> References: <358CC9C5-5256-4161-B3C3-699D304EF928@speedyquick.net> <90e6ba53a7b4d28803049dc0cff9@google.com> Message-ID: <20110305150703.COQ89142@expms1.cites.uiuc.edu> > But what grabs me the most attention from this qna post is > that everyone has minimized the effect, as Michael says, of > the vintage hardware being used. Is this to say that a new and > faster iMac will not make a dramatical difference in > processing speed? > Certainly, a faster computer could do it faster. If your current computer can do it in 80 hours, then a computer that is 8 times faster can do it in 10. Most people would consider that to be slow as well. The original question was about strategies, and didn't mention how fast your hardware was. The posted answers addressed the question of optimal strategies, to try to get the best possible performance from whatever hardware you are using. Dave From mylevelbest at gmail.com Sat Mar 5 13:28:36 2011 From: mylevelbest at gmail.com (David Groover) Date: Sat, 05 Mar 2011 16:28:36 -0500 Subject: Open a File or a Folder? In-Reply-To: References: Message-ID: <4D72AB04.50204@gmail.com> Thanks Jim, That must be a new procedure in version 6. I don't see it in 5.5. Yet another reason to make the upgrade final. David G. On 3/5/11 12:17 PM, James Rea wrote: > On 3/5/11 at 5:52 AM, mylevelbest at gmail.com (David Groover) wrote: > >> Re: OpenFileDialog lvFolder, lvFile, lvType,"" >> >> This is working fine. It is part of a procedure to mark the location >> of a file and store it for alter reference as part of an array. >> >> But .. I want to do the same with a folder name. > > On Mac OS X you can use choosefolderdialog. This is not available on > Windows, though. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgallaghe at aol.com Sat Mar 5 12:10:57 2011 From: sgallaghe at aol.com (Steve Gallagher) Date: Sat, 5 Mar 2011 12:10:57 -0800 Subject: Unusual scrolling behavior Message-ID: I use an Apple Magic Mouse that came with my 21.5" iMac. In the Data Sheet, when I use mouse scrolling to go to the last displayed record, the cell momentarily shows in reverse video as selected, then jumps up to the next to the last or sometimes third from the last where that cell then shows in reverse video. This happens every time, the only difference is in which of the cells above becomes highlighted. Can anyone else confirm this behavior? From jayschille at gmail.com Sun Mar 6 08:53:50 2011 From: jayschille at gmail.com (Jay Schille) Date: Sun, 6 Mar 2011 08:53:50 -0800 Subject: Unusual scrolling behavior In-Reply-To: References: Message-ID: >I use an Apple Magic Mouse that came with my 21.5" iMac. > >In the Data Sheet, when I use mouse scrolling to go to the last >displayed record, the cell momentarily shows in reverse video as >selected, then jumps up to the next to the last or sometimes third >from the last where that cell then shows in reverse video. > >This happens every time, the only difference is in which of the >cells above becomes highlighted. > >Can anyone else confirm this behavior? It doesn't happen that way with me. The mouse scroller works as expected. -- Jay Schille From sgallaghe at aol.com Sun Mar 6 10:40:18 2011 From: sgallaghe at aol.com (Steve Gallagher) Date: Sun, 6 Mar 2011 10:40:18 -0800 Subject: Unusual scrolling behavior In-Reply-To: References: Message-ID: My original report was with my iMac and Magic mouse. I have exactly the same behavior on my MacBook Unibody with a trackpad. It happens with all of the several databases I tested. The selected record shifting does not happen when I scroll up to the top record. On Mar 6, 2011, at 8:53 AM, Jay Schille wrote: >> I use an Apple Magic Mouse that came with my 21.5" iMac. >> >> In the Data Sheet, when I use mouse scrolling to go to the last displayed record, the cell momentarily shows in reverse video as selected, then jumps up to the next to the last or sometimes third from the last where that cell then shows in reverse video. >> >> This happens every time, the only difference is in which of the cells above becomes highlighted. >> >> Can anyone else confirm this behavior? > > It doesn't happen that way with me. The mouse scroller works as expected. From csw at me.com Sun Mar 6 16:04:34 2011 From: csw at me.com (Watts Chris) Date: Sun, 06 Mar 2011 16:04:34 -0800 Subject: Unusual scrolling behavior In-Reply-To: References: Message-ID: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> Do you have "with inertia" turned on? On Mar 6, 2011, at 10:40 AM, Steve Gallagher wrote: > My original report was with my iMac and Magic mouse. > > I have exactly the same behavior on my MacBook Unibody with a trackpad. > > It happens with all of the several databases I tested. > > The selected record shifting does not happen when I scroll up to the top record. > > On Mar 6, 2011, at 8:53 AM, Jay Schille wrote: > >>> I use an Apple Magic Mouse that came with my 21.5" iMac. >>> >>> In the Data Sheet, when I use mouse scrolling to go to the last displayed record, the cell momentarily shows in reverse video as selected, then jumps up to the next to the last or sometimes third from the last where that cell then shows in reverse video. >>> >>> This happens every time, the only difference is in which of the cells above becomes highlighted. >>> >>> Can anyone else confirm this behavior? >> >> It doesn't happen that way with me. The mouse scroller works as expected. > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From csw.me.com at gmail.com Sun Mar 6 18:02:36 2011 From: csw.me.com at gmail.com (csw.me) Date: Sun, 6 Mar 2011 18:02:36 -0800 Subject: Unusual scrolling behavior In-Reply-To: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> References: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> Message-ID: <0D2CF6329081445D82A85C873C7A3139@gmail.com> i just tested this with and without inertia (in the MOUSE system prefs) and the active record bounces when intertia is on, and and it doesn't bounce with inertia off. cw -- csw.me.com at gmail.com Sent with Sparrow On Sunday, March 6, 2011 at 4:04 PM, Watts Chris wrote: > Do you have "with inertia" turned on? > > On Mar 6, 2011, at 10:40 AM, Steve Gallagher wrote: > > > My original report was with my iMac and Magic mouse. > > > > I have exactly the same behavior on my MacBook Unibody with a trackpad. > > > > It happens with all of the several databases I tested. > > > > The selected record shifting does not happen when I scroll up to the top record. > > > > On Mar 6, 2011, at 8:53 AM, Jay Schille wrote: > > > > > > I use an Apple Magic Mouse that came with my 21.5" iMac. > > > > > > > > In the Data Sheet, when I use mouse scrolling to go to the last displayed record, the cell momentarily shows in reverse video as selected, then jumps up to the next to the last or sometimes third from the last where that cell then shows in reverse video. > > > > > > > > This happens every time, the only difference is in which of the cells above becomes highlighted. > > > > > > > > Can anyone else confirm this behavior? > > > > > > It doesn't happen that way with me. The mouse scroller works as expected. > > > > _______________________________________________ > > Qna mailing list > > Qna at provue.com > > http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qnaweb at provue.com Sun Mar 6 18:13:04 2011 From: qnaweb at provue.com (Jim Flax) Date: Sun, 6 Mar 2011 18:13:04 -0800 (PST) Subject: program crashes when printing Message-ID: <20110307021304.621ECF9F8A@provue.com> I modified a form, adding a "lookup" function. It will no longer print at all. The program crashes when attempting to print even though the new form appears just the way I want it to on the screen. From robert at ameeti.net Sun Mar 6 20:06:52 2011 From: robert at ameeti.net (Robert Ameeti) Date: Sun, 6 Mar 2011 20:06:52 -0800 Subject: program crashes when printing In-Reply-To: <20110307021304.621ECF9F8A@provue.com> References: <20110307021304.621ECF9F8A@provue.com> Message-ID: At 6:13 PM -0800, 3/6/11, Jim Flax wrote: >I modified a form, adding a "lookup" function. >It will no longer print at all. The program >crashes when attempting to print even though the >new form appears just the way I want it to on >the screen. Depending on your version, if v6, try Reset Page Setup in the Setup menu, or in earlier versions, try to Zap the Page Setup (There should be a Wizard for this.). Let us know if this made a difference. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist A truly great book should be read in youth, again in maturity and once more in old age, as a fine building should be seen by morning light, at noon and by moonlight. -- Robertson Davies <><><><><><><><><><><><> From robert at ameeti.net Mon Mar 7 12:02:53 2011 From: robert at ameeti.net (Robert Ameeti) Date: Mon, 7 Mar 2011 12:02:53 -0800 Subject: Panorama Enterprise Server Error : What to do with it? Message-ID: >3/7/2011 10:19:19 AM lock SESSION=139 DATABASE=100-Patients RECORDID=8020 >3/7/2011 10:19:19 AM Code Error: Illegal number. What is an administrator to do with this type of error. It is happening repeatedly. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist The best thing about growing older is that it takes such a long time. <><><><><><><><><><><><> From jim at provue.com Mon Mar 7 17:57:07 2011 From: jim at provue.com (James Rea) Date: Mon, 7 Mar 2011 17:57:07 -0800 Subject: Panorama Enterprise Server Error : What to do with it? In-Reply-To: Message-ID: On 3/7/11 at 12:02 PM, robert at ameeti.net (Robert Ameeti) wrote: >>3/7/2011 10:19:19 AM lock SESSION=139 DATABASE=100-Patients RECORDID=8020 >>3/7/2011 10:19:19 AM Code Error: Illegal number. > >What is an administrator to do with this type of error. It is >happening repeatedly. Is it always the same database and record? Always when locking? Panorama Server contains procedures that run when doing things like locking/unlocking records, adding records, modifying, etc. Code error indicates that one of these procedures encountered an error. Normally when a procedure encounters an error it displays an alert, but the server instead puts the error message into the log. Now of course the procedure for locking records is supposed to handle whatever gets thrown at it without an error, and at this point, several years after Panorama Server was released, it's generally pretty reliable that way. So I think either your database is corrupted (which is why I asked if it was the same database and/or record) or somehow your copy of Panorama Server itself is corrupted. If the former, hopefully switching the database back to single user and re-sharing will clear it up. If the latter, re-installing Panorama would hopefully help. Jim From sgallaghe at aol.com Sun Mar 6 12:57:20 2011 From: sgallaghe at aol.com (Steve Gallagher) Date: Sun, 6 Mar 2011 12:57:20 -0800 Subject: Next revision Message-ID: <231E8DB1-501C-41A8-9434-6281DB60265A@aol.com> Is there any way for us to see what things will changed/added/fixed in the next update? We used to be able to see what was to be included in the next build, bug fixes, enhancements, etc. From sgallaghe at aol.com Sun Mar 6 17:22:26 2011 From: sgallaghe at aol.com (Steve Gallagher) Date: Sun, 6 Mar 2011 17:22:26 -0800 Subject: Unusual scrolling behavior In-Reply-To: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> References: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> Message-ID: <2788028B-E6AE-461B-B908-012B82D7D0DB@aol.com> Sure it's on, that's one of the the best features of the Magic Mouse, same as with the trackpad on the MacBook Unibody. The gesture is just like the flick motion on the iPhone and iPad. Flicking without inertia is a joke. But you are correct, disabling "with inertia" eliminates the bounce. But given the option, I'll keep "with inertia" on, its usefulness with other programs far outweighs any glitch in Pan. On Mar 6, 2011, at 4:04 PM, Watts Chris wrote: > Do you have "with inertia" turned on? From drflax at aol.com Mon Mar 7 08:54:30 2011 From: drflax at aol.com (James Flax) Date: Mon, 7 Mar 2011 11:54:30 -0500 Subject: program crashes when printing Message-ID: <61DE0A91-BD30-4D3C-BA08-16F277539AA1@aol.com> I had to get it printing before the start of business today, so tried copying the contents of the form into a new, blank form. That worked and it is now printing without problem. Thank you. From csw at me.com Tue Mar 8 00:57:48 2011 From: csw at me.com (Watts Chris) Date: Tue, 08 Mar 2011 00:57:48 -0800 Subject: Unusual scrolling behavior In-Reply-To: <2788028B-E6AE-461B-B908-012B82D7D0DB@aol.com> References: <9A82DE39-0980-4D7C-B226-487C4BF2E484@me.com> <2788028B-E6AE-461B-B908-012B82D7D0DB@aol.com> Message-ID: <263B605D-E1D6-45FA-BD0A-36957047D584@me.com> Really? I can't stand the 'inertia' thing. On Mar 6, 2011, at 5:22 PM, Steve Gallagher wrote: > Sure it's on, that's one of the the best features of the Magic Mouse, same as with the trackpad on the MacBook Unibody. The gesture is just like the flick motion on the iPhone and iPad. Flicking without inertia is a joke. > > > But you are correct, disabling "with inertia" eliminates the bounce. > > But given the option, I'll keep "with inertia" on, its usefulness with other programs far outweighs any glitch in Pan. > > > > On Mar 6, 2011, at 4:04 PM, Watts Chris wrote: > >> Do you have "with inertia" turned on? > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From robert at ameeti.net Tue Mar 8 10:52:33 2011 From: robert at ameeti.net (Robert Ameeti) Date: Tue, 8 Mar 2011 10:52:33 -0800 Subject: Panorama Enterprise Server Error : What to do with it? In-Reply-To: References: Message-ID: At 5:57 PM -0800, 3/7/11, James Rea wrote: >On 3/7/11 at 12:02 PM, robert at ameeti.net (Robert Ameeti) wrote: > >>>3/7/2011 10:19:19 AM lock SESSION=139 DATABASE=100-Patients RECORDID=8020 >>>3/7/2011 10:19:19 AM Code Error: Illegal number. >> >>What is an administrator to do with this type >>of error. It is happening repeatedly. > >Is it always the same database and record? Nope. I can't say that I've kept all of these records as after a while, I've gotten immune to them. :-( But I get about 2 per week. Most come from 1 database, but I've had them from 2 other databases during this time. The record is typically different but I do get the same RECORDID repeatedly sometimes. I can't say that I've ever done anything to 'fix' these errors but they just seem to go away as a period of time (days or weeks) go by without any error. But then the same record will err 2-8 times in a row sometimes. Records typically never get deleted by the user. I have found corrupted records from time to time and have removed them but I must add that most of the corrupted records have been found in a database that has never had an Illegal Number error! > Always when locking? If the word 'lock', prior to the word SESSION is what you are asking, then yes, that word is always there. I haven't read any real meaning into the word as I thought it was part of the word SESSION. >Panorama Server contains procedures that run >when doing things like locking/unlocking >records, adding records, modifying, etc. Code >error indicates that one of these procedures >encountered an error. Normally when a procedure >encounters an error it displays an alert, but >the server instead puts the error message into >the log. > >Now of course the procedure for locking records >is supposed to handle whatever gets thrown at it >without an error, and at this point, several >years after Panorama Server was released, it's >generally pretty reliable that way. So I think >either your database is corrupted (which is why >I asked if it was the same database and/or >record) or somehow your copy of Panorama Server >itself is corrupted. If the former, hopefully >switching the database back to single user and >re-sharing will clear it up. If the latter, >re-installing Panorama would hopefully help. > >Jim -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Lawyers spend a great deal of their time shoveling smoke. -- Oliver Wendell Holmes Jr. <><><><><><><><><><><><> From ronald.southwick at tojfarm.com Thu Mar 10 06:24:18 2011 From: ronald.southwick at tojfarm.com (ronald.southwick) Date: Thu, 10 Mar 2011 09:24:18 -0500 Subject: Panorama 6 Form Question Message-ID: <4D78DF12.8030809@tojfarm.com> I have just recently upgraded from Pan Win 5.5 to 6. In one database I had need of a new form so I copied an existing form into a new one, made my modifications, and successfully saved and printed the results. This morning upon opening the form, it is completely blank. Thinking that there was a chance I did not save the changes, I tried pasting elements back into it. Nothing pastes in. I try adding elements with the tool bar. Nothing is created. I made the new form and redid the work from yesterday (fortunately it is a simple form), saved, printed, closed, opened, and the new form is still there, working OK. Can I delete the misbehaving form and assume the rest of the DB is OK or must I rebuild everything to be safe? Ron From tesoroni at gmail.com Thu Mar 10 11:56:42 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Thu, 10 Mar 2011 20:56:42 +0100 Subject: Showing the highest value for different fields amongst all records Message-ID: I have fields calculating the performances of different investments. I would like to replicate those fields to show the best performances (amongst all record) so that I can compare today's performance against the best past results. The best performances are almost never in the same record... I hope I made myself clear. How could it be done? thanks in advance Dario Tesoroni -------------- next part -------------- An HTML attachment was scrubbed... URL: From leo at leocerruti.com Thu Mar 10 09:19:09 2011 From: leo at leocerruti.com (Leo Cerruti) Date: Thu, 10 Mar 2011 12:19:09 -0500 Subject: Possible bug in Pan 6? Message-ID: Tried to use the Import Wizard, chose vCard but I get a dialog that says my database does not contain any Generic foelds, it does. When I click on the close dialog to close it Pan crashes every time. I double checked and the Generic Fields are set and I see no errors. Leo From designer at quickdata.com Thu Mar 10 13:42:49 2011 From: designer at quickdata.com (designer at quickdata.com) Date: Thu, 10 Mar 2011 13:42:49 -0800 Subject: Showing the highest value for different fields amongst all records In-Reply-To: References: Message-ID: <20110310214249.98942.qmail@domainmail.macconnect.com> Dario, You could think of this as two different selections - what records you'd select for past performance and what records you'd select for today's performance. You would select the Past performance records and put the result in an array, then select today's performance records and put their result in a different array. Then move to a form where you display the content of both arrays. Paul QuickData Dario Tesoroni writes: > I have fields calculating the performances of different investments. > I would like to replicate those fields to show the best performances (amongst all record) so that I can compare today's performance against the best past results. > The best performances are almost never in the same record... > I hope I made myself clear. > How could it be done? > > thanks in advance > Dario Tesoroni From devine at sonic.net Thu Mar 10 13:56:44 2011 From: devine at sonic.net (J.T. Devine) Date: Thu, 10 Mar 2011 13:56:44 -0800 Subject: Pattern to convert decimals to fractions Message-ID: In a Text Display SO I'd like to take a number that is in a 4-digit field in decimal format and show it as a common fraction. The units are in inches so by common I mean 1/4, 5/8, etc. The decimals are even divisions up to 1/32 of an inch. I could use a pattern function like pattern(NumberInQuestion*32,"#/32") but I'd like to display standard designation fractions like 1/2 rather than 16/32 or 1/4 rather than 8/32. Does anyway have a fairly simple way to do this? From mylevelbest at gmail.com Thu Mar 10 14:15:48 2011 From: mylevelbest at gmail.com (David Groover) Date: Thu, 10 Mar 2011 17:15:48 -0500 Subject: Trap Error Close Window Message-ID: <4D794D94.5060906@gmail.com> Is there a way to trap the closing of a window so that if "command - w", or clicking on the close window icon (red dot) will hide the window instead of actually closing it? I have a close window button on the form, I want to prevent accidental closing if I hand the DB to someone else. Thanks David Groover -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdpublishing at qwestoffice.net Thu Mar 10 14:21:04 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Thu, 10 Mar 2011 14:21:04 -0800 Subject: Trap Error Close Window In-Reply-To: <4D794D94.5060906@gmail.com> References: <4D794D94.5060906@gmail.com> Message-ID: makesecret? Craig McPherson On Mar 10, 2011, at 2:15 PM, David Groover wrote: > Is there a way to trap the closing of a window so that if "command - w", or clicking on the close window icon (red dot) will hide the window instead of actually closing it? I have a close window button on the form, I want to prevent accidental closing if I hand the DB to someone else. > > Thanks > > David Groover > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From JC at JamesCook.biz Thu Mar 10 13:50:10 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 10 Mar 2011 16:50:10 -0500 Subject: Panorama, Python and Windows Message-ID: Can anyone confirm that Panorama can successfully run Python on a Windows machine - not an emulated version. It works fine for me when using Fusion on a Mac, but I have two people on PCs that get the same error when Python attempts to run its script per Panorama: PYTHON ERROR: c:\python27\python.exe: can't open file '/Volumes/C/\\DOCUME\~1\\JOEWAL\~1\\LOCALS\~1\\Temp\\pan.2011.02.11.15.10.49.783.py': [Errno 2] No such file or directory We've checked the paths which all seem to be right if you allow for the DOS conversion and escaping. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From mylevelbest at gmail.com Thu Mar 10 14:32:32 2011 From: mylevelbest at gmail.com (David Groover) Date: Thu, 10 Mar 2011 17:32:32 -0500 Subject: Trap Error Close Window In-Reply-To: References: <4D794D94.5060906@gmail.com> Message-ID: <4D795180.704@gmail.com> Yes, thanks. What I was looking for was the trigger to that. I can see that there is a ".closewindow" procedure that may do all that I am asking for, to whit: > Notice that the last statement in this procedure, closewindow, > actually closes the window. It does not trig- ger the procedure again. > Only a user action, such as clicking or pressing a key, can trigger a > hidden procedure. > Warning: The .CloseWindow procedure is triggered only by the user > clicking on the close box of the window. It is not triggered by other > actions that might close the window, such as closing the entire file > or quitting from Panorama. Triggering from clicking on the top left of the window is good. I am wondering however if this will also work with the command-W key combo, standard to close a window? I am not concerned with accidentally quitting, just closing a window. Thanks David On 3/10/11 5:21 PM, Craig McPherson wrote: > makesecret? > Craig McPherson > > On Mar 10, 2011, at 2:15 PM, David Groover wrote: > >> Is there a way to trap the closing of a window so that if "command - w", or clicking on the close window icon (red dot) will hide the window instead of actually closing it? I have a close window button on the form, I want to prevent accidental closing if I hand the DB to someone else. >> >> Thanks >> >> David Groover >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Thu Mar 10 14:45:55 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 10 Mar 2011 16:45:55 -0600 (CST) Subject: Pattern to convert decimals to fractions In-Reply-To: References: Message-ID: <20110310164555.COV43122@expms1.cites.uiuc.edu> >In a Text Display SO I'd like to take a number that is in a 4-digit >field in decimal format and show it as a common fraction. The units >are in inches so by common I mean 1/4, 5/8, etc. The decimals are even >divisions up to 1/32 of an inch. I could use a pattern function like >pattern(NumberInQuestion*32,"#/32") but I'd like to display standard >designation fractions like 1/2 rather than 16/32 or 1/4 rather than >8/32. >Does anyway have a fairly simple way to do this? In this case, where you have a limited number of possibilities, I think the simplest way to do that would be to use replacemultiple( to convert the decimal part of the number to its equivalent fraction. replacemultiple(pattern(NumberInQuestion,"#.####"), ".0313,.0626,.0938,.1250,.1563,.1875, etc.", " 1/32, 1/16, 3/32, 1/8, 5/32, 3/16, etc.", ",")["1-9", -1] Dave From devine at sonic.net Thu Mar 10 16:10:12 2011 From: devine at sonic.net (J.T. Devine) Date: Thu, 10 Mar 2011 16:10:12 -0800 Subject: Pattern to convert decimals to fractions In-Reply-To: <20110310164555.COV43122@expms1.cites.uiuc.edu> References: <20110310164555.COV43122@expms1.cites.uiuc.edu> Message-ID: <36D9EAB0-F515-4568-8C48-7C39D3A738A8@sonic.net> Thanks! I was trying to find some arithmetic approach and never thought of text per se. 1/32" increments makes 31 cases so that's not bad. I don't understand the need/purpose of the text funnel, though. JT On Mar 10, 2011, at 2:45 PM, David Thompson wrote: >> In a Text Display SO I'd like to take a number that is in a 4-digit >> field in decimal format and show it as a common fraction. The units >> are in inches so by common I mean 1/4, 5/8, etc. The decimals are >> even >> divisions up to 1/32 of an inch. I could use a pattern function like >> pattern(NumberInQuestion*32,"#/32") but I'd like to display standard >> designation fractions like 1/2 rather than 16/32 or 1/4 rather than >> 8/32. >> Does anyway have a fairly simple way to do this? > > In this case, where you have a limited number of possibilities, I > think the simplest way to do that would be to use > replacemultiple( to convert the decimal part of the number to its > equivalent fraction. > > replacemultiple(pattern(NumberInQuestion,"#.####"), > ".0313,.0626,.0938,.1250,.1563,.1875, etc.", > " 1/32, 1/16, 3/32, 1/8, 5/32, 3/16, etc.", ",")["1-9", -1] > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > From dthmpsn1 at illinois.edu Thu Mar 10 16:37:22 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 10 Mar 2011 18:37:22 -0600 (CST) Subject: Pattern to convert decimals to fractions In-Reply-To: <36D9EAB0-F515-4568-8C48-7C39D3A738A8@sonic.net> References: <20110310164555.COV43122@expms1.cites.uiuc.edu> <36D9EAB0-F515-4568-8C48-7C39D3A738A8@sonic.net> Message-ID: <20110310183722.COV48947@expms1.cites.uiuc.edu> >I don't understand the need/purpose of the text funnel, though. > The text funnel would change something like 0 5/32 to just 5/32. But it would leave 6 5/32 unchanged. Dave From tesoroni at gmail.com Fri Mar 11 04:25:46 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Fri, 11 Mar 2011 13:25:46 +0100 Subject: Showing the highest value for different fields amongst all records Message-ID: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> Thank you Paul. I have a form where I enter each day's performance. Below each field there is another field showing, ideally, the best of all past performances (for that specific field). Let's say I have a field for Silver. Today it was 32.85 CHF x ounce (just as an example). Yesterday 32.47 Three days ago 33.78? I have 2 fields in the form for silver: (above) 32.85 (today's performance) (below) 33.78 (best of all performances). I could build an array with all the records values and put it in a variable (what do you think?). And then show the variable in the field. Problem is I cannot find a formula that filters the array and gives me only the max value in the array? any suggestion? Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From jetpuck04 at me.com Fri Mar 11 04:38:53 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Fri, 11 Mar 2011 07:38:53 -0500 Subject: Showing the highest value for different fields amongst all records In-Reply-To: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> References: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> Message-ID: <0164A007-01BD-4FDB-86AF-06CD62BA1FE5@me.com> Try a combination of arrayfirst( and arraymultisort. Remember to convert your data to strings. Peter On Mar 11, 2011, at 7:25 AM, Dario Tesoroni wrote: > Thank you Paul. > I have a form where I enter each day's performance. > Below each field there is another field showing, ideally, the best of all past performances (for that specific field). > > Let's say I have a field for Silver. > Today it was 32.85 CHF x ounce (just as an example). > Yesterday 32.47 > Three days ago 33.78? > > I have 2 fields in the form for silver: > (above) 32.85 (today's performance) > (below) 33.78 (best of all performances). > > I could build an array with all the records values and put it in a variable (what do you think?). And then show the variable in the field. > > Problem is I cannot find a formula that filters the array and gives me only the max value in the array? > > any suggestion? > > Dario > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From designer at quickdata.com Fri Mar 11 06:34:02 2011 From: designer at quickdata.com (Paul) Date: Fri, 11 Mar 2011 06:34:02 -0800 Subject: Showing the highest value for different fields amongst all records In-Reply-To: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> References: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> Message-ID: <4D7A32DA.4080402@quickdata.com> Dario, If you understand Peter's suggestion to put the data in an array, then sort, remember the will go in as a string so the numbers will have to all have the same number of digits. In other words, if you and 1, 2, 3,....11, 12....the alpha sort would put 1, 11, 12 together. But if you pad the numbers with leading zeros so they all have the same number of digits, 01, 02, 03, ....11, 12, 13, then the alpha sort of the numbers will look like a numeric sort. It might seem a little "busy" but when you open the program you could show a "splash screen" (screen with just a pretty graphic) and for the sort instant it takes, You could max sorts and selections on the database to select the compare data you want an put it in variables. At the end of that procedure you go to what ever screen you normally go to and when you are ready to go to your compare screen, you already have the data you want to compare in stored in those variables for display on the form. Again, with Peter's suggestion, you don't have to sort, select the database itself, but you do have create the array an pay a little attention to padding the numbers and mentioned above. Paul QuickData On 3/11/11 4:25 AM, Dario Tesoroni wrote: > Thank you Paul. > I have a form where I enter each day's performance. > Below each field there is another field showing, ideally, the best of all past performances (for that specific field). > > Let's say I have a field for Silver. > Today it was 32.85 CHF x ounce (just as an example). > Yesterday 32.47 > Three days ago 33.78? > > I have 2 fields in the form for silver: > (above) 32.85 (today's performance) > (below) 33.78 (best of all performances). > > I could build an array with all the records values and put it in a variable (what do you think?). And then show the variable in the field. > > Problem is I cannot find a formula that filters the array and gives me only the max value in the array? > > any suggestion? > > Dario > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From kjmeyer at mac.com Fri Mar 11 05:34:13 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Fri, 11 Mar 2011 14:34:13 +0100 Subject: Showing the highest value for different fields amongst all records In-Reply-To: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> References: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> Message-ID: Am 11.03.2011 um 13:25 schrieb Dario Tesoroni: > I have 2 fields in the form for silver: > (above) 32.85 (today's performance) > (below) 33.78 (best of all performances). If you can find the (all time) maximum, then you can simply define a permanent variable e. g. pvMaxPerformance and set its value to this maximum. Once you have done that, you only need to let a procedure compare today's performance with pvMaxPerformance, adjust the value of the variable, if today's performance was better, and display the variable in your lower area of your form. Best regards Kurt -------------- next part -------------- An HTML attachment was scrubbed... URL: From tesoroni at gmail.com Fri Mar 11 08:58:14 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Fri, 11 Mar 2011 17:58:14 +0100 Subject: Showing the highest value for different fields amongst all records Message-ID: Peter, Kurt it seems I have solved my issue by creating an .Initialize procedure: fileglobal vBestPerfo vBestPerfo=pattern(val(arraylast(arraysort(arraybuild(?,"Invest","SubtotCHFAG"),?),?)),"#,.##") then I created a TESO to display the vBestPerfo variable. It seems to work correctly but this TESO will only show the value when I click within the TESO area. Why is it so? (TDSO behaves the same) Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdpublishing at qwestoffice.net Fri Mar 11 09:05:43 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Fri, 11 Mar 2011 09:05:43 -0800 Subject: Showing the highest value for different fields amongst all records In-Reply-To: References: Message-ID: try adding showvariables vBestPerfo after 'vBestPerfo=...' Craig McPherson On Mar 11, 2011, at 8:58 AM, Dario Tesoroni wrote: > Peter, Kurt > it seems I have solved my issue by creating an .Initialize procedure: > > fileglobal vBestPerfo > vBestPerfo=pattern(val(arraylast(arraysort(arraybuild(?,"Invest","SubtotCHFAG"),?),?)),"#,.##") > > then I created a TESO to display the vBestPerfo variable. > It seems to work correctly but this TESO will only show the value when I click within the TESO area. Why is it so? > (TDSO behaves the same) > > Dario > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From tesoroni at gmail.com Fri Mar 11 09:36:21 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Fri, 11 Mar 2011 18:36:21 +0100 Subject: Showing the highest value for different fields amongst all records Message-ID: that's it, Craig! As usual: thanks to all... and best of luck Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From BillArleneBush at cs.com Fri Mar 11 15:34:28 2011 From: BillArleneBush at cs.com (BillArleneBush at cs.com) Date: Fri, 11 Mar 2011 18:34:28 -0500 (EST) Subject: Showing the highest value for different fields amongst Message-ID: <140b6f.6d9f2651.3aac0b84@cs.com> The assign( function has a good example of getting the maximum. Also the following, if field is text: local biggest,x biggest = 0 arraybuild x,?,"",str(assign( max(biggest,val(theField)),"biggest")) Bill Bush From audax at wideband.net.au Fri Mar 11 15:47:56 2011 From: audax at wideband.net.au (Michael Kellock) Date: Sat, 12 Mar 2011 10:47:56 +1100 Subject: Showing the highest value for different fields amongst all records In-Reply-To: <0164A007-01BD-4FDB-86AF-06CD62BA1FE5@me.com> References: <6DFC66C3-1295-46F9-9B72-0A03C7F235D8@gmail.com> <0164A007-01BD-4FDB-86AF-06CD62BA1FE5@me.com> Message-ID: <6EDF7553-9183-4356-B6D2-17EF929BF80B@wideband.net.au> arraymultisort will correctly sort a numeric field, as will arraynumericsort. michael On 11/03/2011, at 11:38 PM, Peter Levitt wrote: > arraymultisort From barryk at caravanbeads.net Sat Mar 12 08:47:20 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Sat, 12 Mar 2011 11:47:20 -0500 Subject: Removing text on import from clipboard In-Reply-To: <20110209040648.CNW42587@expms1.cites.uiuc.edu> References: <7CAB362E-56F7-4F0C-88C2-018FAF8C0FC7@me.com> <20110209040648.CNW42587@expms1.cites.uiuc.edu> Message-ID: <0A13ED2F-1233-4A82-ACB9-381EEB3BF603@caravanbeads.net> There are times when we want to take the email copy of orders and bring them into Panorama. Is there a way, on importing the data from the clipboard, to filter out all the text that is not the actual order? I've pasted in a fake order below which includes all the stuff I'd like to eliminate. For example, is there a way to tell Pan to delete all text up to and including the word "Total" ? That would take care of it very nicely as "Total" is always the last word before the actual order info starts. Thanks, bk You have received a new online order at Caravan Beads & Fibers. Picked by_____ Data entry_____ S/O# ____________ Ship Chg: _____.___ Checked by _____ Inv # __________ Shipper _____ Insurance: _____.___ Packed in: ____________________ Freight: _____.___ S/O Weight: _______ Final Weight: ______ Order Information: Order#: 99999 Order Date: 3/12/2011 CartGenie Acct #: 55555 Alternate Acct #: 43214 PO#: Preferred Ship Method: USPS Priority Mail Gift Card Number: Promo Code: Question 1: Call you if items are out of stock? No Question 2: Question 3: Customer Comments: --------------------------------------------------------------------- Order Value: Subtotal: $63.00 Discount: $0.00 Tax: $0.00 Shipping: $8.10 Grand Total (*): $71.10 (*) If Shipping is set to TBD then calculate and add freight to order. --------------------------------------------------------------------- Payment Information: Cardholder: Jane Doe Exp: 06/2011 CVV2: 999 --------------------------------------------------------------------- Ship-To Information: Name: Jane Doe Company: Good Times Address 1: 44 Road L Address 2: Address 3: City: Denver State: Colorado Zip: 80000 Country: United States Email: janedoe at yahoo.com Phone: 970-111-1111 --------------------------------------------------------------------- Bill-To Information: Name: Jane Doe Company: Good Times Address 1: 44 Road L Address 2: Address 3: City: Denver State: Colorado Zip: 80000 Country: United States Email: janedoe at yahoo.com Phone: 970-111-1111 --------------------------------------------------------------------- Order Detail: Item# (UPC) Qty Product Description Price Total Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From orlandospecial at gmail.com Sat Mar 12 09:23:30 2011 From: orlandospecial at gmail.com (Orlando) Date: Sat, 12 Mar 2011 12:23:30 -0500 Subject: Reverse Formula Message-ID: When Undo is not possible, how can you reverse the result of a formula to the original data? Specifically, how may I reverse the result of this formula: ?(A contains "-", ?(striptoalpha(A[1,1])="", "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ ("00000"+A["--",-1][2,-1])[-5;5], "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", "C"+("0"+A[1," "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- ",-1][2,-1])) where 'A' is the name of the text field and the original data looked something like this: 1 23456789 1 02304567 XY 02300045 X 00202345 and so on ... always two double spaces between the first or second character. Thanx!! Orlando -------------- next part -------------- An HTML attachment was scrubbed... URL: From skane at skaneco.com Sat Mar 12 09:46:25 2011 From: skane at skaneco.com (Steve Kane) Date: Sat, 12 Mar 2011 11:46:25 -0600 Subject: Pan procedure tells an app to open a file Message-ID: In a procedure, is there a way Pan can tell a particular app to open a particular file? Specifically, I want Safari to open a particular html file. Thanks. PS. I don't know *any* AppleScript. From JC at JamesCook.biz Sat Mar 12 10:09:35 2011 From: JC at JamesCook.biz (James Cook) Date: Sat, 12 Mar 2011 13:09:35 -0500 Subject: Pan procedure tells an app to open a file In-Reply-To: References: Message-ID: >In a procedure, is there a way Pan can tell a particular app to open a particular file? > >Specifically, I want Safari to open a particular html file. ShellOpenDocument will open any file using the default app for the file type. So if double-clicking on an html file launches it in Safari, that's the application ShellOpenDocument will use for html files too. To override the default and to specify the application would require AppleScript. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From dthmpsn1 at illinois.edu Sat Mar 12 10:33:02 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 12 Mar 2011 12:33:02 -0600 (CST) Subject: Removing text on import from clipboard In-Reply-To: <0A13ED2F-1233-4A82-ACB9-381EEB3BF603@caravanbeads.net> References: <7CAB362E-56F7-4F0C-88C2-018FAF8C0FC7@me.com> <20110209040648.CNW42587@expms1.cites.uiuc.edu> <0A13ED2F-1233-4A82-ACB9-381EEB3BF603@caravanbeads.net> Message-ID: <20110312123302.COW75036@expms1.cites.uiuc.edu> >There are times when we want to take the email copy of orders and bring them into Panorama. Is there a way, on importing the data from the clipboard, to filter out all the text that is not the actual order? I've pasted in a fake order below which includes all the stuff I'd like to eliminate. > >For example, is there a way to tell Pan to delete all text up to and including the word "Total" ? That would take care of it very nicely as "Total" is always the last word before the actual order info starts. > You would use the search( function to look for it, and then use the result in a text funnel. Note, the word "Total" also occurs as part of "Grand Total", so you would need to search for more than that in order to make it unique. Local Spot Spot = search(YourField, "Price"+tab()+"Total") If Spot <> 0 YourField = YourField[Spot+11, -1] EndIf Dave From dthmpsn1 at illinois.edu Sat Mar 12 10:36:51 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 12 Mar 2011 12:36:51 -0600 (CST) Subject: Reverse Formula In-Reply-To: References: Message-ID: <20110312123651.COW75189@expms1.cites.uiuc.edu> > When Undo is not possible, how can you reverse the result of a > formula to the original data? > Specifically, how may I reverse the result of this formula: > > ?(A contains "-", ?(striptoalpha(A[1,1])="", > "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ > ("00000"+A["--",-1][2,-1])[-5;5], > "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ > ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", > "C"+("0"+A[1," "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," > "][1,-2]+"000")[1;3]+A["- ",-1][2,-1])) > > where 'A' is the name of the text field and the original data > looked something like this: > > 1 ?23456789 > > 1 ?02304567 > > XY ?02300045 > > X ?00202345 > > and so on ... always two double spaces between the first or > second character. > Save before doing the FormulaFill. Revert to saved afterward. Dave From bruce_de_benedictis at mac.com Sat Mar 12 09:43:14 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 12 Mar 2011 09:43:14 -0800 Subject: Removing text on import from clipboard In-Reply-To: <0A13ED2F-1233-4A82-ACB9-381EEB3BF603@caravanbeads.net> Message-ID: The easiest way is to use the Tagdata( function. You can pick out data between any two snippets of fixed text. Bruce De Benedictis > There are times when we want to take the email copy of orders and bring them > into Panorama. Is there a way, on importing the data from the clipboard, to > filter out all the text that is not the actual order? I've pasted in a fake > order below which includes all the stuff I'd like to eliminate. > > For example, is there a way to tell Pan to delete all text up to and including > the word "Total" ? That would take care of it very nicely as "Total" is always > the last word before the actual order info starts. > > Thanks, > bk > > > > > You have received a new online order at Caravan Beads & Fibers. > Picked by_____ Data entry_____ S/O# ____________ Ship Chg: _____.___ > > Checked by _____ Inv # __________ Shipper _____ Insurance: _____.___ > > Packed in: ____________________ Freight: > _____.___ > > S/O Weight: _______ Final Weight: ______ > > Order Information: > Order#: 99999 > Order Date: 3/12/2011 > CartGenie Acct #: 55555 > Alternate Acct #: 43214 > PO#: > Preferred Ship Method: USPS Priority Mail > Gift Card Number: > Promo Code: > Question 1: Call you if items are out of stock? No > Question 2: > Question 3: > Customer Comments: > --------------------------------------------------------------------- > Order Value: > Subtotal: $63.00 > Discount: $0.00 > Tax: $0.00 > Shipping: $8.10 > Grand Total (*): $71.10 > (*) If Shipping is set to TBD then calculate and add freight to order. > --------------------------------------------------------------------- > Payment Information: > Cardholder: Jane Doe > Exp: 06/2011 > CVV2: 999 > --------------------------------------------------------------------- > Ship-To Information: > Name: Jane Doe > Company: Good Times > Address 1: 44 Road L > Address 2: > Address 3: > City: Denver > State: Colorado > Zip: 80000 > Country: United States > Email: janedoe at yahoo.com > Phone: 970-111-1111 > --------------------------------------------------------------------- > Bill-To Information: > Name: Jane Doe > Company: Good Times > Address 1: 44 Road L > Address 2: > Address 3: > City: Denver > State: Colorado > Zip: 80000 > Country: United States > Email: janedoe at yahoo.com > Phone: 970-111-1111 > --------------------------------------------------------------------- > Order Detail: > Item# (UPC) Qty Product Description Price Total > > > > > > > Barry Kahn > Caravan Beads, Inc. > 915 Forest Ave > Portland ME 04103 > 800-230-8941 > fax: 207-874-2664 > www.caravanbeads.net > barryk at caravanbeads.net > > *** Bead store owners and designers: Please visit our new bead blog: > http://caravanbeads.biz/beadblog/ > > *** My daughter Heather's new business: http://www.chrononautmercantile.com/ > > > > > > > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From scott at stillpoint.us Sat Mar 12 10:44:11 2011 From: scott at stillpoint.us (Scott Corbett) Date: Sat, 12 Mar 2011 12:44:11 -0600 (CST) Subject: Reverse Formula In-Reply-To: References: Message-ID: <89768499-68F8-4968-8D3E-CD9945054B8C@stillpoint.us> A second way, besides Dave's suggestion, would be to create a field for storing the original data before running the formula. Step one, formula fill the field with a copy of the original data (Are you using 2 fields A& C? Use two fields). Step Two, run the formula. This might be handy if there is a longer gap in time before you might want to reverse the formula and a save may have happened in the mean time. Scott On Mar 12, 2011, at 11:23 AM, Orlando wrote: > When Undo is not possible, how can you reverse the result of a formula to the original data? > > Specifically, how may I reverse the result of this formula: > > ?(A contains "-", ?(striptoalpha(A[1,1])="", "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ ("00000"+A["--",-1][2,-1])[-5;5], "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", "C"+("0"+A[1," "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- ",-1][2,-1])) > > where 'A' is the name of the text field and the original data looked something like this: > > 1 23456789 > 1 02304567 > XY 02300045 > X 00202345 > > and so on ... always two double spaces between the first or second character. > > Thanx!! > > Orlando > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Scott R. Corbett, D.O. Stillpoint Osteopathic, Ltd. www.stillpoint.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce_de_benedictis at mac.com Sat Mar 12 09:52:14 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 12 Mar 2011 09:52:14 -0800 Subject: Reverse Formula In-Reply-To: Message-ID: Well, you cannot undo a many-to-one formula, which is what it looks like you have. There is no unique inverse to a many-to-one function. So the best way is simply not to change the original data, but place the result somewhere else. You could put the result in a two-element array of the original data and the result, and use one or the other as you need it. Bruce De Benedictis > When Undo is not possible, how can you reverse the result of a formula to > the original data? > > Specifically, how may I reverse the result of this formula: > > ?(A contains "-", ?(striptoalpha(A[1,1])="", > "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ > ("00000"+A["--",-1][2,-1])[-5;5], > "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ > ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", "C"+("0"+A[1," > "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- > ",-1][2,-1])) > > > where 'A' is the name of the text field and the original data looked > something like this: > > > 1 23456789 > > 1 02304567 > > XY 02300045 > > X 00202345 > > > and so on ... always two double spaces between the first or second > character. > > > Thanx!! > > > Orlando > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From orlandospecial at gmail.com Sat Mar 12 11:14:20 2011 From: orlandospecial at gmail.com (Orlando) Date: Sat, 12 Mar 2011 14:14:20 -0500 Subject: Reverse Formula In-Reply-To: References: Message-ID: I always create two fields keeping the original data in one and formating the other, BUT this data is handed to me by someone who exclusively uses this format whereas I use the other, so I don't know how to convert it to my format. Forwarded conversation Subject: Reverse Formula ------------------------ From: *Orlando* Date: Sat, Mar 12, 2011 at 12:23 PM To: "Panorama Questions & Answers (Discussion)" When Undo is not possible, how can you reverse the result of a formula to the original data? Specifically, how may I reverse the result of this formula: ?(A contains "-", ?(striptoalpha(A[1,1])="", "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ ("00000"+A["--",-1][2,-1])[-5;5], "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", "C"+("0"+A[1," "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- ",-1][2,-1])) where 'A' is the name of the text field and the original data looked something like this: 1 23456789 1 02304567 XY 02300045 X 00202345 and so on ... always two double spaces between the first or second character. Thanx!! Orlando ---------- From: *David Thompson* Date: Sat, Mar 12, 2011 at 1:36 PM To: "Panorama Questions & Answers (Discussion)" Save before doing the FormulaFill. Revert to saved afterward. Dave _______________________________________________ Qna mailing list Qna at provue.com http://provue.com/mailman/listinfo/qna ---------- From: *Scott Corbett* Date: Sat, Mar 12, 2011 at 1:44 PM To: "Panorama Questions & Answers (Discussion)" A second way, besides Dave's suggestion, would be to create a field for storing the original data before running the formula. Step one, formula fill the field with a copy of the original data (Are you using 2 fields A& C? Use two fields). Step Two, run the formula. This might be handy if there is a longer gap in time before you might want to reverse the formula and a save may have happened in the mean time. Scott Scott R. Corbett, D.O. Stillpoint Osteopathic, Ltd. www.stillpoint.us _______________________________________________ Qna mailing list Qna at provue.com http://provue.com/mailman/listinfo/qna ---------- From: *Bruce De Benedictis* Date: Sat, Mar 12, 2011 at 12:52 PM To: "Provue SEND via Mac.com!" Well, you cannot undo a many-to-one formula, which is what it looks like you have. There is no unique inverse to a many-to-one function. So the best way is simply not to change the original data, but place the result somewhere else. You could put the result in a two-element array of the original data and the result, and use one or the other as you need it. Bruce De Benedictis -------------- next part -------------- An HTML attachment was scrubbed... URL: From qnaweb at provue.com Sat Mar 12 11:16:37 2011 From: qnaweb at provue.com (Ryan Thomson) Date: Sat, 12 Mar 2011 11:16:37 -0800 (PST) Subject: How to suppress $00.00 in calculated money field when printing form? Message-ID: <20110312191637.76D4111A28E@provue.com> I imported data from a Record Holder Plus database, which I still use daily, in Mac Classic OS, into my first Panorama database, so I that I can finally migrate to an intel MAC and towards OS Lion. One field type contains a number (number of items). When I imported all records for that field, cells that had data in them showed the data, and those that didn't were blank on the data sheet. I used field properties dialog to set it up as numeric and floating. Another field type is the price per item. I imported all records for that field, and set it up as money. I wrote a simple formula to multiply the two fields together to generate a total in another field labeled Amount. This field was also already in the data that I imported. The amount field is set up as money, dollars, and output pattern - $#,.## It works, both on my input form, and printed form. In my original data, Amount cells which corresponded to item number field cells with nothing in them, were blank, because there were no items to multiply by the price per item cell. They also display and print as blank on both my input and printed invoice forms in my old database. But now, after recreating this database in Panorama, all of the Amount cells corresponding to item number cells with nothing in them are populated with "$00.00" both in my data sheet, and on my invoice form. I can live with "$00.00" displayed in every "empty" Amount cell of my data sheet, but after printing out invoice forms with perhaps only 2 or 3 items ordered, I find that "$00.00" printed out in all of the other Amount cells displayed down the page to be distracting. How do I suppress displaying and printing of money amounts where the calculated value is zero? Do I need to construct some sort of a program script, and then paste it somewhere into a dialog entry box(field properties?) for each of my 1 - 12 "Amount" fields? Thanks for your help. Panorama 6, Mac OS 10.4.11 From tesoroni at gmail.com Sat Mar 12 11:29:39 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Sat, 12 Mar 2011 20:29:39 +0100 Subject: Showing the highest value for different fields amongst all records Message-ID: Bill and Michael, I'll experiment with your suggestions? many thanks Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce_de_benedictis at mac.com Sat Mar 12 12:05:01 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 12 Mar 2011 12:05:01 -0800 Subject: How to suppress $00.00 in calculated money field when printing form? In-Reply-To: <20110312191637.76D4111A28E@provue.com> Message-ID: I think you need the zeroblank( function for this. Bruce De Benedictis > I imported data from a Record Holder Plus database, which I still use daily, > in Mac Classic OS, into my first Panorama database, so I that I can finally > migrate to an intel MAC and towards OS Lion. > > One field type contains a number (number of items). When I imported all > records for that field, cells that had data in them showed the data, and those > that didn't were blank on the data sheet. I used field properties dialog to > set it up as numeric and floating. > > Another field type is the price per item. I imported all records for that > field, and set it up as money. > > I wrote a simple formula to multiply the two fields together to generate a > total in another field labeled Amount. This field was also already in the data > that I imported. The amount field is set up as money, dollars, and output > pattern - $#,.## It works, both on my input form, and printed form. > > In my original data, Amount cells which corresponded to item number field > cells with nothing in them, were blank, because there were no items to > multiply by the price per item cell. They also display and print as blank on > both my input and printed invoice forms in my old database. > > But now, after recreating this database in Panorama, all of the Amount cells > corresponding to item number cells with nothing in them are populated with > "$00.00" both in my data sheet, and on my invoice form. > > I can live with "$00.00" displayed in every "empty" Amount cell of my data > sheet, but after printing out invoice forms with perhaps only 2 or 3 items > ordered, I find that "$00.00" printed out in all of the other Amount cells > displayed down the page to be distracting. > > How do I suppress displaying and printing of money amounts where the > calculated value is zero? Do I need to construct some sort of a program > script, and then paste it somewhere into a dialog entry box(field properties?) > for each of my 1 - 12 "Amount" fields? > > Thanks for your help. > Panorama 6, Mac OS 10.4.11 > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From csw at me.com Sat Mar 12 11:46:04 2011 From: csw at me.com (Chris Watts) Date: Sat, 12 Mar 2011 11:46:04 -0800 Subject: How to suppress $00.00 in calculated money field when printing form? In-Reply-To: <20110312191637.76D4111A28E@provue.com> References: <20110312191637.76D4111A28E@provue.com> Message-ID: Zeroblank() Sent from my iPhone On Mar 12, 2011, at 11:16 AM, qnaweb at provue.com (Ryan Thomson) wrote: > I imported data from a Record Holder Plus database, which I still use daily, in Mac Classic OS, into my first Panorama database, so I that I can finally migrate to an intel MAC and towards OS Lion. > > One field type contains a number (number of items). When I imported all records for that field, cells that had data in them showed the data, and those that didn't were blank on the data sheet. I used field properties dialog to set it up as numeric and floating. > > Another field type is the price per item. I imported all records for that field, and set it up as money. > > I wrote a simple formula to multiply the two fields together to generate a total in another field labeled Amount. This field was also already in the data that I imported. The amount field is set up as money, dollars, and output pattern - $#,.## It works, both on my input form, and printed form. > > In my original data, Amount cells which corresponded to item number field cells with nothing in them, were blank, because there were no items to multiply by the price per item cell. They also display and print as blank on both my input and printed invoice forms in my old database. > > But now, after recreating this database in Panorama, all of the Amount cells corresponding to item number cells with nothing in them are populated with "$00.00" both in my data sheet, and on my invoice form. > > I can live with "$00.00" displayed in every "empty" Amount cell of my data sheet, but after printing out invoice forms with perhaps only 2 or 3 items ordered, I find that "$00.00" printed out in all of the other Amount cells displayed down the page to be distracting. > > How do I suppress displaying and printing of money amounts where the calculated value is zero? Do I need to construct some sort of a program script, and then paste it somewhere into a dialog entry box(field properties?) for each of my 1 - 12 "Amount" fields? > > Thanks for your help. > Panorama 6, Mac OS 10.4.11 > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From bruce_de_benedictis at mac.com Sat Mar 12 12:03:22 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 12 Mar 2011 12:03:22 -0800 Subject: Reverse Formula In-Reply-To: Message-ID: I admit that I did not actually try to figure out the difference between the original data and what you wanted. Samples of what you want would be welcome. But if the difference is only in the display, then use a form and change the format in a form element. If you want to go from one display format to another, because you are both entering the same type data but in different forms, and there is a one-to-one correspondence, there should be functions going both ways, but you would have to write both of them. Bruce De Benedictis > I always create two fields keeping the original data in one and formating > the other, BUT this data is handed to me by someone who exclusively uses > this format whereas I use the other, so I don't know how to convert it to my > format. > > Forwarded conversation > Subject: Reverse Formula > ------------------------ > > From: *Orlando* > Date: Sat, Mar 12, 2011 at 12:23 PM > To: "Panorama Questions & Answers (Discussion)" > > > When Undo is not possible, how can you reverse the result of a formula to > the original data? > > Specifically, how may I reverse the result of this formula: > > ?(A contains "-", ?(striptoalpha(A[1,1])="", > "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ > ("00000"+A["--",-1][2,-1])[-5;5], > "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ > ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", "C"+("0"+A[1," > "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- > ",-1][2,-1])) > > > where 'A' is the name of the text field and the original data looked > something like this: > > > 1 23456789 > > 1 02304567 > > XY 02300045 > > X 00202345 > > > and so on ... always two double spaces between the first or second > character. > > > Thanx!! > > > Orlando > > ---------- > From: *David Thompson* > Date: Sat, Mar 12, 2011 at 1:36 PM > To: "Panorama Questions & Answers (Discussion)" > > > Save before doing the FormulaFill. Revert to saved afterward. > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > > ---------- > From: *Scott Corbett* > Date: Sat, Mar 12, 2011 at 1:44 PM > To: "Panorama Questions & Answers (Discussion)" > > > A second way, besides Dave's suggestion, would be to create a field for > storing the original data before running the formula. Step one, formula fill > the field with a copy of the original data (Are you using 2 fields A& C? Use > two fields). Step Two, run the formula. This might be handy if there is a > longer gap in time before you might want to reverse the formula and a save > may have happened in the mean time. > > Scott > > > > Scott R. Corbett, D.O. > Stillpoint Osteopathic, Ltd. > www.stillpoint.us > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > > > ---------- > From: *Bruce De Benedictis* > Date: Sat, Mar 12, 2011 at 12:52 PM > To: "Provue SEND via Mac.com!" > > > Well, you cannot undo a many-to-one formula, which is what it looks like you > have. There is no unique inverse to a many-to-one function. So the best way > is simply not to change the original data, but place the result somewhere > else. You could put the result in a two-element array of the original data > and the result, and use one or the other as you need it. > > Bruce De Benedictis > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From orlandospecial at gmail.com Sat Mar 12 14:05:46 2011 From: orlandospecial at gmail.com (Orlando) Date: Sat, 12 Mar 2011 17:05:46 -0500 Subject: Reverse Formula In-Reply-To: References: Message-ID: Forms, I think you're on to something. I've never used them, but it sounds like that may be it, 'functions going both ways' that I don't understand. I'm attaching a sample of what the format I use and the other format using 14 characters. On Sat, Mar 12, 2011 at 3:03 PM, Bruce De Benedictis < bruce_de_benedictis at mac.com> wrote: > I admit that I did not actually try to figure out the difference between > the > original data and what you wanted. Samples of what you want would be > welcome. > > But if the difference is only in the display, then use a form and change > the > format in a form element. If you want to go from one display format to > another, because you are both entering the same type data but in different > forms, and there is a one-to-one correspondence, there should be functions > going both ways, but you would have to write both of them. > > Bruce De Benedictis > > > > I always create two fields keeping the original data in one and formating > > the other, BUT this data is handed to me by someone who exclusively uses > > this format whereas I use the other, so I don't know how to convert it to > my > > format. > > > > Forwarded conversation > > Subject: Reverse Formula > > ------------------------ > > > > From: *Orlando* > > Date: Sat, Mar 12, 2011 at 12:23 PM > > To: "Panorama Questions & Answers (Discussion)" > > > > > > When Undo is not possible, how can you reverse the result of a formula to > > the original data? > > > > Specifically, how may I reverse the result of this formula: > > > > ?(A contains "-", ?(striptoalpha(A[1,1])="", > > "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ > > ("00000"+A["--",-1][2,-1])[-5;5], > > "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ > > ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", > "C"+("0"+A[1," > > "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- > > ",-1][2,-1])) > > > > > > where 'A' is the name of the text field and the original data looked > > something like this: > > > > > > 1 23456789 > > > > 1 02304567 > > > > XY 02300045 > > > > X 00202345 > > > > > > and so on ... always two double spaces between the first or second > > character. > > > > > > Thanx!! > > > > > > Orlando > > > > ---------- > > From: *David Thompson* > > Date: Sat, Mar 12, 2011 at 1:36 PM > > To: "Panorama Questions & Answers (Discussion)" > > > > > > Save before doing the FormulaFill. Revert to saved afterward. > > > > Dave > > _______________________________________________ > > Qna mailing list > > Qna at provue.com > > http://provue.com/mailman/listinfo/qna > > > > ---------- > > From: *Scott Corbett* > > Date: Sat, Mar 12, 2011 at 1:44 PM > > To: "Panorama Questions & Answers (Discussion)" > > > > > > A second way, besides Dave's suggestion, would be to create a field for > > storing the original data before running the formula. Step one, formula > fill > > the field with a copy of the original data (Are you using 2 fields A& C? > Use > > two fields). Step Two, run the formula. This might be handy if there is a > > longer gap in time before you might want to reverse the formula and a > save > > may have happened in the mean time. > > > > Scott > > > > > > > > Scott R. Corbett, D.O. > > Stillpoint Osteopathic, Ltd. > > www.stillpoint.us > > > > > > > > > > _______________________________________________ > > Qna mailing list > > Qna at provue.com > > http://provue.com/mailman/listinfo/qna > > > > > > ---------- > > From: *Bruce De Benedictis* > > Date: Sat, Mar 12, 2011 at 12:52 PM > > To: "Provue SEND via Mac.com!" > > > > > > Well, you cannot undo a many-to-one formula, which is what it looks like > you > > have. There is no unique inverse to a many-to-one function. So the best > way > > is simply not to change the original data, but place the result somewhere > > else. You could put the result in a two-element array of the original > data > > and the result, and use one or the other as you need it. > > > > Bruce De Benedictis > > _______________________________________________ > > Qna mailing list > > Qna at provue.com > > http://provue.com/mailman/listinfo/qna > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Format.xls Type: application/vnd.ms-excel Size: 9216 bytes Desc: not available URL: From bruce_de_benedictis at mac.com Sat Mar 12 17:09:15 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 12 Mar 2011 17:09:15 -0800 Subject: Reverse Formula In-Reply-To: Message-ID: I looked at your example spreadsheet, and I am afraid that I cannot understand it at all. What I want to know is that if you are given something like "AB 0273648", what do you want it to look like? Will it be something like "AB-027-3648"? Whatever it is, you will need one function to go from "AB 0273648" to something that I will call "Newpattern", and an inverse function to apply to "Newpattern" and give you AB "0273648". As I said, this is only possible if you have a one-to-one function. If the function "AB 0273648" gives the same "Newpattern" as it gives "2 5783905" there is no function that can "Newpattern" and make it "AB 0273648" when you want it to be "AB 0273648" and "2 5783905" when you want it to be "2 5783905". Bruce De Benedictis > Forms, I think you're on to something. I've never used them, but it sounds > like that may be it, 'functions going both ways' that I don't understand. > > I'm attaching a sample of what the format I use and the other format using > 14 characters. > > > > On Sat, Mar 12, 2011 at 3:03 PM, Bruce De Benedictis < > bruce_de_benedictis at mac.com> wrote: > >> I admit that I did not actually try to figure out the difference between >> the >> original data and what you wanted. Samples of what you want would be >> welcome. >> >> But if the difference is only in the display, then use a form and change >> the >> format in a form element. If you want to go from one display format to >> another, because you are both entering the same type data but in different >> forms, and there is a one-to-one correspondence, there should be functions >> going both ways, but you would have to write both of them. >> >> Bruce De Benedictis >> >> >>> I always create two fields keeping the original data in one and formating >>> the other, BUT this data is handed to me by someone who exclusively uses >>> this format whereas I use the other, so I don't know how to convert it to >> my >>> format. >>> >>> Forwarded conversation >>> Subject: Reverse Formula >>> ------------------------ >>> >>> From: *Orlando* >>> Date: Sat, Mar 12, 2011 at 12:23 PM >>> To: "Panorama Questions & Answers (Discussion)" >>> >>> >>> When Undo is not possible, how can you reverse the result of a formula to >>> the original data? >>> >>> Specifically, how may I reverse the result of this formula: >>> >>> ?(A contains "-", ?(striptoalpha(A[1,1])="", >>> "C"+("0"+A[1,"-"])[-3;2]+("000000"+A["-","--"][2,-2])[-6;6]+ >>> ("00000"+A["--",-1][2,-1])[-5;5], >>> "C00"+(A[1,"-"][1,-2]+"000")[1;3]+("000"+A["-","--"][2,-2])[-3;3]+ >>> ("00000"+A["--",-1][2,-1])[-5;5]), ?(striptoalpha(A[1,1])="", >> "C"+("0"+A[1," >>> "])[-3;2]+"000"+A["- ",-1][2,-1], "C00"+(A[1," "][1,-2]+"000")[1;3]+A["- >>> ",-1][2,-1])) >>> >>> >>> where 'A' is the name of the text field and the original data looked >>> something like this: >>> >>> >>> 1 23456789 >>> >>> 1 02304567 >>> >>> XY 02300045 >>> >>> X 00202345 >>> >>> >>> and so on ... always two double spaces between the first or second >>> character. >>> >>> >>> Thanx!! >>> >>> >>> Orlando >>> >>> ---------- >>> From: *David Thompson* >>> Date: Sat, Mar 12, 2011 at 1:36 PM >>> To: "Panorama Questions & Answers (Discussion)" >>> >>> >>> Save before doing the FormulaFill. Revert to saved afterward. >>> >>> Dave >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >>> >>> ---------- >>> From: *Scott Corbett* >>> Date: Sat, Mar 12, 2011 at 1:44 PM >>> To: "Panorama Questions & Answers (Discussion)" >>> >>> >>> A second way, besides Dave's suggestion, would be to create a field for >>> storing the original data before running the formula. Step one, formula >> fill >>> the field with a copy of the original data (Are you using 2 fields A& C? >> Use >>> two fields). Step Two, run the formula. This might be handy if there is a >>> longer gap in time before you might want to reverse the formula and a >> save >>> may have happened in the mean time. >>> >>> Scott >>> >>> >>> >>> Scott R. Corbett, D.O. >>> Stillpoint Osteopathic, Ltd. >>> www.stillpoint.us >>> >>> >>> >>> >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >>> >>> >>> ---------- >>> From: *Bruce De Benedictis* >>> Date: Sat, Mar 12, 2011 at 12:52 PM >>> To: "Provue SEND via Mac.com!" >>> >>> >>> Well, you cannot undo a many-to-one formula, which is what it looks like >> you >>> have. There is no unique inverse to a many-to-one function. So the best >> way >>> is simply not to change the original data, but place the result somewhere >>> else. You could put the result in a two-element array of the original >> data >>> and the result, and use one or the other as you need it. >>> >>> Bruce De Benedictis >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna >> > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Sat Mar 12 20:12:12 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 12 Mar 2011 22:12:12 -0600 (CST) Subject: Reverse Formula In-Reply-To: References: Message-ID: <20110312221212.COW88039@expms1.cites.uiuc.edu> > I'm attaching a sample of what the format I use and the other > format using 14 characters. > Unless there is some rule why C00N0001500142 converts to N 01500142 and not N-15-142, then there is no inverse formula. Your format appears to be two formats, with no way to tell which one should be in use at any given moment. It wouldn't be difficult to write two formulas, one for each of your formats, but the problem would be choosing which one to use at any given time. Dave From jeff_gold at state.ga.weo.us Sun Mar 13 16:41:05 2011 From: jeff_gold at state.ga.weo.us (Jeff Gold) Date: Sun, 13 Mar 2011 19:41:05 -0400 Subject: Using GET instead of POST with Panorama Server? In-Reply-To: References: Message-ID: <0C0BE579-D141-4804-9473-C9193CB2F215@state.ga.weo.us> I was wondering if there is any way to use the GET method of posting data to a form on Panorama Server, instead of using the POST method? For example, Google uses the GET method, so when you search for something you see all of the passed variables in the URL field like this search for "provue": http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=provue The nice things about GET queries is the query itself can be bookmarked, or even triggered from a website link instead of an actual form. I'm trying to do something similar using Panorama, but Panorama doesn't seem to like receiving data using the "Get" method. Is there any way to make this work? Thanks, - Jeff From jeff_gold at state.ga.weo.us Sun Mar 13 17:39:19 2011 From: jeff_gold at state.ga.weo.us (Jeff Gold) Date: Sun, 13 Mar 2011 20:39:19 -0400 Subject: PostURL statement. In-Reply-To: <0C0BE579-D141-4804-9473-C9193CB2F215@state.ga.weo.us> References: <0C0BE579-D141-4804-9473-C9193CB2F215@state.ga.weo.us> Message-ID: <127BBE17-B8D0-429F-B743-854A15733931@state.ga.weo.us> In addition to my previous question... I have another related one. As mentioned in my prior post, Panorama Server seems to require forms sent to it to be sent only using the POST method not the GET method. It seems however the reverse is true of Panorama's "PostURL" statement. If you use PostURL to try to submit a form to Panorama Server, you will get an error because PostURL uses the GET method. So is there a way to either: 1) Have Panorama Server successfully process a form sent to it using the GET method? -or- 2) Cause a form submitted using the PostURL statement to use POST instead of GET? I'm trying to get Panorama (standard) to talk to Panorama Server through a form, but can't find an easy way to do it since the way Panorama seems to process forms is the opposite of how its own PostURL statement works. Any suggestions would be very appreciated! Thanks, - Jeff From jim at provue.com Sun Mar 13 19:08:35 2011 From: jim at provue.com (James Rea) Date: Sun, 13 Mar 2011 19:08:35 -0700 Subject: PostURL statement. In-Reply-To: <127BBE17-B8D0-429F-B743-854A15733931@state.ga.weo.us> Message-ID: On 3/13/11 at 5:39 PM, jeff_gold at state.ga.weo.us (Jeff Gold) wrote: >In addition to my previous question... I have another related one. Without investigating the details, I can say that I use posturl to post to Panorama Server forms all the time. Panorama uses curl's -d option to send the post data. I always assumed this used the POST method, but I never really investigated (of if I did, I subsequently forgot). In any case, whatever it does works with Panorama server, at least for me. Jim From tesoroni at gmail.com Sun Mar 13 09:30:36 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Sun, 13 Mar 2011 17:30:36 +0100 Subject: Extracting the highest value in array Message-ID: Michel was right in advising me against the use of arraysort because it does not sort correctly numeric fields. Point is neither arraymultisort nor arraynumericsort do this (at least for me). In a simplified formula I was using for testing: ================================================================ fileglobal vBestAG, vBestAU, vBestCHF, vBestEuro vBestAG = arraynumericsort(arraybuild(?,"Invest","SubtotCHFAG"),?) vBestAU = arraynumericsort(arraybuild(?,"Invest","SubtotCHFAU"),?) vBestCHF = arraynumericsort(arraybuild(?,"Invest","CHFtotal"),?) vBestEuro = arraynumericsort(arraybuild(?,"Invest","EuroTotal"),?) showvariables vBestAG showvariables vBestAU showvariables vBestCHF showvariables vBestEuro message vBestAG message vBestAU message vBestCHF message vBestEuro ================================================================= the results of a bunch of random numbers was like this: 345565 496927.3 489544.82 492346.16 141674.3 139439.82 139693.16 103880 and so on. Clearly not what is requested. Any idea what could be wrong? Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Mon Mar 14 04:11:55 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Mon, 14 Mar 2011 06:11:55 -0500 (CDT) Subject: Extracting the highest value in array In-Reply-To: References: Message-ID: <20110314061155.COX55760@expms1.cites.uiuc.edu> > Michel was right in advising me against the use of arraysort > because it does not sort correctly numeric fields. > Point is neither arraymultisort nor arraynumericsort do this > (at least for me). > In a simplified formula I was using for testing: > ================================================================ > fileglobal vBestAG, vBestAU, vBestCHF, vBestEuro > vBestAG = > arraynumericsort(arraybuild(?,"Invest","SubtotCHFAG"),?) > vBestAU = > arraynumericsort(arraybuild(?,"Invest","SubtotCHFAU"),?) > vBestCHF = > arraynumericsort(arraybuild(?,"Invest","CHFtotal"),?) > vBestEuro = > arraynumericsort(arraybuild(?,"Invest","EuroTotal"),?) > showvariables vBestAG > showvariables vBestAU > showvariables vBestCHF > showvariables vBestEuro > message vBestAG > message vBestAU > message vBestCHF > message vBestEuro > ================================================================= > the results of a bunch of random numbers was like this: > 345565 > 496927.3 > 489544.82 > 492346.16 > 141674.3 > 139439.82 > 139693.16 > 103880 > and so on. > Clearly not what is requested. > Any idea what could be wrong? Neither arraynumericsort( nor arraymultisort( were written to sort anything but positive integers. It's possible that they might work if the number of decimal places were fixed. For example, they might work if 345565 were 345565.00 instead, and 496927.3 were 496927.30 instead, etc. I can't say that for certain, because the numbers above aren't sorting in the order I would expect. Dave From kjmeyer at mac.com Mon Mar 14 04:16:43 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Mon, 14 Mar 2011 12:16:43 +0100 Subject: Extracting the highest value in array In-Reply-To: References: Message-ID: <699BDBAD-E1E2-42B6-AE46-FDAE5B71F91C@mac.com> 1. Arraynumericsort( works on integer numbers only. So, if your numbers have 2 decimals, you have to multiply your numbers with 100 to get arraynumericsort working. 2. Arraynumericsort does not deliver the maximum or the minimum, but a sorted array of numbers (as text). So you have to pick the last element of that array to get the maximum value. Kurt Am 13.03.2011 um 17:30 schrieb Dario Tesoroni: > Michel was right in advising me against the use of arraysort because it does not sort correctly numeric fields. > > Point is neither arraymultisort nor arraynumericsort do this (at least for me). > > In a simplified formula I was using for testing: > > ================================================================ > fileglobal vBestAG, vBestAU, vBestCHF, vBestEuro > > vBestAG = arraynumericsort(arraybuild(?,"Invest","SubtotCHFAG"),?) > vBestAU = arraynumericsort(arraybuild(?,"Invest","SubtotCHFAU"),?) > vBestCHF = arraynumericsort(arraybuild(?,"Invest","CHFtotal"),?) > vBestEuro = arraynumericsort(arraybuild(?,"Invest","EuroTotal"),?) > > showvariables vBestAG > showvariables vBestAU > showvariables vBestCHF > showvariables vBestEuro > > message vBestAG > message vBestAU > message vBestCHF > message vBestEuro > ================================================================= > > the results of a bunch of random numbers was like this: > > 345565 > 496927.3 > 489544.82 > 492346.16 > > 141674.3 > 139439.82 > 139693.16 > 103880 > > and so on. > Clearly not what is requested. > > Any idea what could be wrong? > > Dario > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From JC at JamesCook.biz Mon Mar 14 07:25:56 2011 From: JC at JamesCook.biz (James Cook) Date: Mon, 14 Mar 2011 09:25:56 -0500 Subject: PostURL statement. In-Reply-To: <127BBE17-B8D0-429F-B743-854A15733931@state.ga.weo.us> References: <0C0BE579-D141-4804-9473-C9193CB2F215@state.ga.weo.us> <127BBE17-B8D0-429F-B743-854A15733931@state.ga.weo.us> Message-ID: At 8:39 PM -0400 3/13/11, Jeff Gold wrote: >I'm trying to get Panorama (standard) to talk to Panorama Server through a form, but can't find an easy way to do it since the way Panorama seems to process forms is the opposite of how its own PostURL statement works. Any suggestions would be very appreciated! I do it constantly using a couple of methods. shellopendocument allows you to submit from Panorama via a browser. Just assemble your form data as an array and add it as an extension of the cgi link. The targeted procedure on the server can be set up to pick it apart properly. shellopendocument cgiURL+"?"+Data1#Data2 Closer to what you want though... postURL ReplyVariable,cgiURL,"post",TabListofData In this case, the ReplyVariable tells you the result, especially if you use cgiHTML on the server to give yourself a meaningful reply. Just provide it with markers to parse by since the reply is a full html page. I use the cgiURL the same way as the form action so it can include cookie numbers, a record ID or other info to help start the process properly. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From dthmpsn1 at illinois.edu Mon Mar 14 06:52:02 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Mon, 14 Mar 2011 08:52:02 -0500 (CDT) Subject: Extracting the highest value in array In-Reply-To: <20110314061155.COX55760@expms1.cites.uiuc.edu> References: <20110314061155.COX55760@expms1.cites.uiuc.edu> Message-ID: <20110314085202.COX66154@expms1.cites.uiuc.edu> >> the results of a bunch of random numbers was like this: >> 345565 >> 496927.3 >> 489544.82 >> 492346.16 >> 141674.3 >> 139439.82 >> 139693.16 >> 103880 >> and so on. >> Clearly not what is requested. >> Any idea what could be wrong? > >Neither arraynumericsort( nor arraymultisort( were written to sort anything but positive integers. It's possible that they might work if the number of decimal places were fixed. For example, they might work if 345565 were 345565.00 instead, and 496927.3 were 496927.30 instead, etc. I can't say that for certain, because the numbers above aren't sorting in the order I would expect. > I tested arraynumericsort( with a fixed number of decimal places, and it sorted properly. I also tested the arrayintegersort custom statement. Several of those numbers are outside the range of numbers the statement is documented to be able to handle, but I wrote the documentation conservatively. For numbers that have no more than 2 decimal places, it can properly sort positive numbers that are no greater than 21474836. For 4 digit or floating point numbers the limit of 214748 still applies. Dave From tesoroni at gmail.com Mon Mar 14 13:21:22 2011 From: tesoroni at gmail.com (Dario Tesoroni) Date: Mon, 14 Mar 2011 21:21:22 +0100 Subject: Extracting the highest value in array Message-ID: Thank you Dave. I always love your explanations! I had a feeling that it had something to do with the decimal bits (but in the programming reference it says 'numeric elements', not 'integers')... Kurt, that was just a partial formula; I just wanted to test the sorting order (in the complete formula I had an arraylast)... Whatever... I think I had found the solution following Bill suggestion: ********************************* vBestAG=0 arraybuild x,?,"",str(assign(max(vBestAG,val(SubtotCHFAG)),"vBestAG")) ********************************* ...which is quite interesting: a kind of 'loop' that keeps on comparing 2 values and ends up with the highest value stored in the variable (and forget arrays). Neat! Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: From operations at redhouserecords.com Mon Mar 14 15:03:25 2011 From: operations at redhouserecords.com (C W Frymire) Date: Mon, 14 Mar 2011 17:03:25 -0500 Subject: Printing Checks In-Reply-To: References: Message-ID: I'm trying to create a custom report to print checks from an A/P database. I've selected the invoices to be paid, sorted and grouped by vendor id. I'm stuck due to the check forms that I have, list of invoices on top half, actual check on bottom. My issue is that the group summary, which is the actual data for the check, floats based upon the number of invoices in the data tile. Is there a way to make the group summary tile behave like a footer tile and always print in the lower left of the page? Or make the footer tile display the group summary info? Or is there a better way to setup the form altogether? Any help, most warmly appreciated..... thanks! Chris From audax at wideband.net.au Mon Mar 14 15:24:04 2011 From: audax at wideband.net.au (Michael Kellock) Date: Tue, 15 Mar 2011 09:24:04 +1100 Subject: Multiple cells highlighted Message-ID: When I return to Panorama 6 (Build 94356) from another app (at least Mail, Excel and Word), I get multiple cells highlighted and the pattern of highlights stays as I move up and down but disappears when I refresh the screen. This is currently happening all the time which is a pain. michael From sgallaghe at aol.com Mon Mar 14 15:34:46 2011 From: sgallaghe at aol.com (Steve Gallagher) Date: Mon, 14 Mar 2011 15:34:46 -0700 Subject: Multiple cells highlighted In-Reply-To: References: Message-ID: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> I've reported this several times and all I get from ProVue is that they can't reproduce the problem. It's a big pain and makes Pan look terrible when I show it off to other people. On Mar 14, 2011, at 3:24 PM, Michael Kellock wrote: > When I return to Panorama 6 (Build 94356) from another app (at least Mail, Excel and Word), I get multiple cells highlighted and the pattern of highlights stays as I move up and down but disappears when I refresh the screen. This is currently happening all the time which is a pain. > > michael > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From jaybees at jaybees.com.au Mon Mar 14 18:35:11 2011 From: jaybees at jaybees.com.au (Narrell Brown) Date: Tue, 15 Mar 2011 12:35:11 +1100 Subject: Multiple cells highlighted In-Reply-To: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> References: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> Message-ID: <4D7EC24F.6050105@jaybees.com.au> it happens to me too, but i didn't realise it was when returning from another app. I thought it was simply when i had made too many changes to a database so i quit and restart panorama. Narrell in Oz On 15/03/11 9:34 AM, Steve Gallagher wrote: > I've reported this several times and all I get from ProVue is that they can't reproduce the problem. > > It's a big pain and makes Pan look terrible when I show it off to other people. > > > On Mar 14, 2011, at 3:24 PM, Michael Kellock wrote: > >> When I return to Panorama 6 (Build 94356) from another app (at least Mail, Excel and Word), I get multiple cells highlighted and the pattern of highlights stays as I move up and down but disappears when I refresh the screen. This is currently happening all the time which is a pain. >> >> michael -- Narrell Brown L SKYPE NAME: jaybeesoz *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jaybee's Entertainment - check us out at http://www.jaybees.com.au *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Proudly running on a Mac - rejecting .exe files *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* -------------- next part -------------- An HTML attachment was scrubbed... URL: From jk at acaciasystems.com Mon Mar 14 19:13:40 2011 From: jk at acaciasystems.com (Jeff Kozuch) Date: Mon, 14 Mar 2011 19:13:40 -0700 Subject: Multiple cells highlighted In-Reply-To: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> References: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> Message-ID: >> When I return to Panorama 6 (Build 94356) from another app (at >> least Mail, Excel and Word), I get multiple cells highlighted It happens to one of my clients as well. It will happen to her after exiting a cell and clicking on another cell. I can't seem to make it stop, though I've never had it happen on one of my files. Jeff Jeff Kozuch Panorama programming and training Apple Certified Technical Coordinator Certified Member, Apple Consultants Network jk at acaciasystems.com http://www.acaciasystems.com 562-437-7690 -------------- next part -------------- An HTML attachment was scrubbed... URL: From audax at wideband.net.au Mon Mar 14 20:43:03 2011 From: audax at wideband.net.au (Michael Kellock) Date: Tue, 15 Mar 2011 14:43:03 +1100 Subject: Multiple cells highlighted In-Reply-To: References: <2D1CE7C0-4859-4803-8503-8336A57A31D6@aol.com> Message-ID: <8CBB58E2-1260-4921-90CF-F627D59AF34D@wideband.net.au> Is it likely that there is a common app that causes it - if so, probably one of the many helpful little apps that we all download by the dozen. m On 15/03/2011, at 1:13 PM, Jeff Kozuch wrote: >>> When I return to Panorama 6 (Build 94356) from another app (at least Mail, Excel and Word), I get multiple cells highlighted > > It happens to one of my clients as well. It will happen to her after exiting a cell and clicking on another cell. I can't seem to make it stop, though I've never had it happen on one of my files. > > Jeff > > Jeff Kozuch > Panorama programming and training > Apple Certified Technical Coordinator > Certified Member, Apple Consultants Network > jk at acaciasystems.com > http://www.acaciasystems.com > 562-437-7690 > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From audax at wideband.net.au Tue Mar 15 17:02:44 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 16 Mar 2011 11:02:44 +1100 Subject: Wish list - striptotherest Message-ID: It would be useful (to me at least) to round out the striptonum( and striptoalpha( functions with one which strips to all non-numeric and non-alpha characters - call it striptotherest(. Any good ideas on how best to do it in the interim? michael From JC at JamesCook.biz Tue Mar 15 18:57:22 2011 From: JC at JamesCook.biz (James Cook) Date: Tue, 15 Mar 2011 20:57:22 -0500 Subject: Wish list - striptotherest In-Reply-To: References: Message-ID: >It would be useful (to me at least) to round out the striptonum( and striptoalpha( functions with one which strips to all non-numeric and non-alpha characters - call it striptotherest(. > >Any good ideas on how best to do it in the interim? That's where stripchar( comes in. You can specify precisely what is and is not acceptable. stripchar( SomeText, "09AZaz" ) allows only letters and numbers stripchar( SomeText, " /:@[`{~" ) allows your everything else between ASCII characters 32 and 126. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From craigmcpherson at me.com Tue Mar 15 18:06:56 2011 From: craigmcpherson at me.com (Craig) Date: Tue, 15 Mar 2011 18:06:56 -0700 Subject: Wish list - striptotherest In-Reply-To: References: Message-ID: <00D5334B-A4D2-4813-8CA6-E3ED341A66F8@me.com> Pretty amazing app, with so many valuable features yet to appreciate! Sent from my iPhone On Mar 15, 2011, at 6:57 PM, James Cook wrote: >> It would be useful (to me at least) to round out the striptonum( and striptoalpha( functions with one which strips to all non-numeric and non-alpha characters - call it striptotherest(. >> >> Any good ideas on how best to do it in the interim? > > That's where stripchar( comes in. You can specify precisely what is and is not acceptable. > > stripchar( SomeText, "09AZaz" ) allows only letters and numbers > > > stripchar( SomeText, " /:@[`{~" ) allows your everything else between ASCII characters 32 and 126. > > > > -- > James Cook > JC at JamesCook.biz > > Founder of HindSight Ltd. > http://HSLtd.us > > Panorama Tutoring > Custom Panorama Applications > Specializing in Panorama Enterprise for the Web > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Tue Mar 15 21:47:32 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 16 Mar 2011 15:47:32 +1100 Subject: Wish list - striptotherest In-Reply-To: References: Message-ID: Actually, stripchar( removes the specified set, so stripchar( SomeText, "09AZaz" ) would remove all letters and numbers. But you're right - that's the easiest way to go - I just need to specify those three ranges and I've done a striptotherest(. michael On 16/03/2011, at 12:57 PM, James Cook wrote: >> It would be useful (to me at least) to round out the striptonum( and striptoalpha( functions with one which strips to all non-numeric and non-alpha characters - call it striptotherest(. >> >> Any good ideas on how best to do it in the interim? > > That's where stripchar( comes in. You can specify precisely what is and is not acceptable. > > stripchar( SomeText, "09AZaz" ) allows only letters and numbers > > > stripchar( SomeText, " /:@[`{~" ) allows your everything else between ASCII characters 32 and 126. > > > > -- > James Cook > JC at JamesCook.biz > > Founder of HindSight Ltd. > http://HSLtd.us > > Panorama Tutoring > Custom Panorama Applications > Specializing in Panorama Enterprise for the Web > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From audax at wideband.net.au Tue Mar 15 21:51:54 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 16 Mar 2011 15:51:54 +1100 Subject: Wish list - striptotherest In-Reply-To: References: Message-ID: Sorry James - you were correct - I misread the documentation. m On 16/03/2011, at 3:47 PM, Michael Kellock wrote: > Actually, stripchar( removes the specified set, so stripchar( SomeText, "09AZaz" ) would remove all letters and numbers. But you're right - that's the easiest way to go - I just need to specify those three ranges and I've done a striptotherest(. > > michael > > > > On 16/03/2011, at 12:57 PM, James Cook wrote: > >>> It would be useful (to me at least) to round out the striptonum( and striptoalpha( functions with one which strips to all non-numeric and non-alpha characters - call it striptotherest(. >>> >>> Any good ideas on how best to do it in the interim? >> >> That's where stripchar( comes in. You can specify precisely what is and is not acceptable. >> >> stripchar( SomeText, "09AZaz" ) allows only letters and numbers >> >> >> stripchar( SomeText, " /:@[`{~" ) allows your everything else between ASCII characters 32 and 126. >> >> >> >> -- >> James Cook >> JC at JamesCook.biz >> >> Founder of HindSight Ltd. >> http://HSLtd.us >> >> Panorama Tutoring >> Custom Panorama Applications >> Specializing in Panorama Enterprise for the Web >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From JC at JamesCook.biz Wed Mar 16 10:17:38 2011 From: JC at JamesCook.biz (James Cook) Date: Wed, 16 Mar 2011 12:17:38 -0500 Subject: Shared Data Exceeds 32K Message-ID: An HTML attachment was scrubbed... URL: From mark at abernackie.com Wed Mar 16 09:47:39 2011 From: mark at abernackie.com (Mark Terry) Date: Wed, 16 Mar 2011 12:47:39 -0400 Subject: Shared Data Exceeds 32K In-Reply-To: References: Message-ID: Seems like I've run into this, and ended up procedurally putting the date into a variable, fixing it, then onto the clipboard, and back into the cell(s). Worth a try. ;) I think it's still considered a feature, that cells can hold more than 32k, even though they can't edit over that amount. M On Mar 16, 2011, at 1:17 PM, James Cook wrote: > > I received the following from a customer on a shared system. It's > not a message I've seen before, though I've had records become > impossible to edit once they get a lot of information entered. > > The only solution I know of is to un-share, correct the issue, then > re-share the file. If anyone knows other cures, please share. > > But the real issue is how does a record get to this point in the > first place? If there's a 32K limit, why isn't it enforced before > it goes over rather than after? > >> I became locked out and a pop-up appeared that read "Sorry - you >> can not edit this data cell because it contains more than 32k of >> Data. The problem now is I can't add or delete to this record, and >> worse yet, I can't copy out all the notes I have in here for this >> very important client. > > > > -- > James Cook > JC at JamesCook.biz > > Founder of HindSight Ltd. > http://HSLtd.us > > Panorama Tutoring > Custom Panorama Applications > Specializing in Panorama Enterprise for the Web > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at provue.com Wed Mar 16 10:49:13 2011 From: jim at provue.com (James Rea) Date: Wed, 16 Mar 2011 10:49:13 -0700 Subject: Shared Data Exceeds 32K In-Reply-To: Message-ID: On 3/16/11 at 10:17 AM, JC at JamesCook.biz (James Cook) wrote: >If there's a 32K limit, why isn't it enforced before it goes >over rather than after? The text editor does enforce this limit. But it's quite possible (and sometimes useful) to put more text into a cell with a procedure. In fact, a cell can hold up to 4 megabytes of data. If you have a procedure that adds text to a field (for example a time stamp), you may want to add check code to make sure it doesn't make it too large for editing. The word processor does allow more than 32k of text. I'm not sure what the exact limit is, but it should be much larger than 32k. In some cases another way to display more than 32k of text in a cell is using a matrix superobject. This isn't too great for regular text but is good for structured text like log entries. >I can't copy out all the notes I have in here for this very important client. If the user has access to the data cell (in a data sheet or form) they can click once on the cell and copy. If the user only has TESO access to the data then you need to put in code to allow data > 32k to be copied. >The only solution I know of is to un-share, correct the issue, then re-share the file. If anyone knows other cures, please share. I don't know of any reason why this would resolve the issue. The cell would still have > 32k of text. The solution is to use a procedure to remove the extra text. If you wanted to you could copy the text to the clipboard, then edit it in a program like TextWrangler to get it below 32k, then paste it back in. Jim From conable.1 at osu.edu Wed Mar 16 13:46:33 2011 From: conable.1 at osu.edu (William Conable) Date: Wed, 16 Mar 2011 13:46:33 -0700 Subject: Refer to line item field in procedure Message-ID: <9C6ECFFD-9310-49D2-9984-FDDED1CEAE52@osu.edu> I have a series of line items, e.g. Services1, Services2 etc. I have a little chooser form that allows me to put a number into a variable gVCNumber. I want to put the contents of the line item field identified by that variable's number, e.g. Services 2, onto a form. How can I put the appropriate field name into a formula for display? If I say {Services+gVCNumber} or Services+str(gVCNumber) I get "field or variable does not exist." If I put {"Services"+str(gVCNumber)} I get "Services2" i.e. the name of the field rather than the contents of the field. So far no combination of quotes or parens or chevrons I have tried gets me what I want. Help, please? Thanks, Bill Conable From jim at provue.com Wed Mar 16 14:38:35 2011 From: jim at provue.com (James Rea) Date: Wed, 16 Mar 2011 14:38:35 -0700 Subject: Refer to line item field in procedure In-Reply-To: <9C6ECFFD-9310-49D2-9984-FDDED1CEAE52@osu.edu> Message-ID: On 3/16/11 at 1:46 PM, conable.1 at osu.edu (William Conable) wrote: >I have a series of line items, e.g. Services1, Services2 etc. I >have a little chooser form that allows me to put a number into >a variable gVCNumber. I want to put the contents of the line >item field identified by that variable's number, e.g. Services >2, onto a form. How can I put the appropriate field name into a >formula for display? If I say {Services+gVCNumber} or >Services+str(gVCNumber) I get "field or variable does not >exist." If I put {"Services"+str(gVCNumber)} I get "Services2" >i.e. the name of the field rather than the contents of the >field. So far no combination of quotes or parens or chevrons I >have tried gets me what I want. Help, please? Check out the grabdata( function. Jim From dthmpsn1 at illinois.edu Wed Mar 16 19:02:25 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Wed, 16 Mar 2011 21:02:25 -0500 (CDT) Subject: Refer to line item field in procedure In-Reply-To: References: <9C6ECFFD-9310-49D2-9984-FDDED1CEAE52@osu.edu> Message-ID: <20110316210225.CPA39654@expms1.cites.uiuc.edu> >>I have a series of line items, e.g. Services1, Services2 etc. I >>have a little chooser form that allows me to put a number into >>a variable gVCNumber. I want to put the contents of the line >>item field identified by that variable's number, e.g. Services >>2, onto a form. How can I put the appropriate field name into a >>formula for display? If I say {Services+gVCNumber} or >>Services+str(gVCNumber) I get "field or variable does not >>exist." If I put {"Services"+str(gVCNumber)} I get "Services2" >>i.e. the name of the field rather than the contents of the >>field. So far no combination of quotes or parens or chevrons I >>have tried gets me what I want. Help, please? > >Check out the grabdata( function. > >Jim > Or datavalue(. Either one will work. grabdata("", "Services"+str(gVCNumber)) or datavalue("Services"+str(gVCNumber)) Dave From peter.levitt at me.com Sat Mar 19 07:09:43 2011 From: peter.levitt at me.com (Peter Levitt) Date: Sat, 19 Mar 2011 10:09:43 -0400 Subject: Is there a filedelete( type statement? Message-ID: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> I'm sure I'm missing something here. There's a filetrash( and a filerename(. But I just want to delete a file and put it in the Trash, not erase it. What am I missing? Peter From bruce_de_benedictis at mac.com Sat Mar 19 08:40:14 2011 From: bruce_de_benedictis at mac.com (Bruce De Benedictis) Date: Sat, 19 Mar 2011 08:40:14 -0700 Subject: Is there a filedelete( type statement? In-Reply-To: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> Message-ID: You could use Movefile to do that. You could use it to define a custom function or statement. Bruce De Benedictis > I'm sure I'm missing something here. > > There's a filetrash( and a filerename(. But I just want to delete a file and > put it in the Trash, not erase it. > > What am I missing? > > Peter > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From kjmeyer at mac.com Sat Mar 19 08:34:32 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Sat, 19 Mar 2011 16:34:32 +0100 Subject: Is there a filedelete( type statement? In-Reply-To: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> Message-ID: <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> Am 19.03.2011 um 15:09 schrieb Peter Levitt: > But I just want to delete a file ? not erase it. That seems to be a contradiction, doesn't it? > and put it in the Trash You might want to check the movefile statement. Kurt From jetpuck04 at me.com Sat Mar 19 09:38:03 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Sat, 19 Mar 2011 12:38:03 -0400 Subject: Is there a filedelete( type statement? In-Reply-To: <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> Message-ID: Actually, movefile is what I could not find and what I was looking for. Ya think ya tink and you forget the obvious. Thanks. On Mar 19, 2011, at 11:34 AM, Kurt J. Meyer wrote: > > Am 19.03.2011 um 15:09 schrieb Peter Levitt: > >> But I just want to delete a file ? not erase it. > > That seems to be a contradiction, doesn't it? > >> and put it in the Trash > > You might want to check the movefile statement. > > Kurt > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From peter.levitt at me.com Sat Mar 19 09:46:22 2011 From: peter.levitt at me.com (Peter Levitt) Date: Sat, 19 Mar 2011 12:46:22 -0400 Subject: How to skip a record when using importusing formula statement Message-ID: <2D87A066-DB88-46EF-9B3B-D582B9997C29@me.com> The following procedure works: importusing strip(upperword(importcell(0))) + ? + // City strip(upper(importcell(1))) + ? + // State strip(importcell(2)) + ? + // Zipcode strip(upperword(importcell(3))) + ? + // Station ?(importcell(4)=chr(32)+ chr(202),?,strip(upperword(importcell(4)))) openfiledialog fileFolder,fileName,fileType,"TEXT" BUT. Some records in the middle of the file are blank. When I inspect the offending record, it is basically a blank record, ending in a cr() (carriage return, no line feed). Records after this offending record have a normal format. How do I skip that one record and let the importusing statement progress to the end of the file? Hope this makes sense. Peter From barryk at caravanbeads.net Sat Mar 19 11:11:54 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Sat, 19 Mar 2011 14:11:54 -0400 Subject: labels In-Reply-To: References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> Message-ID: <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> Can PAN control the finder to label a file (yellow, red, whatever) after saving output as a text file? bk Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From gary at yonaites.com Sat Mar 19 11:34:28 2011 From: gary at yonaites.com (Gary Yonaites) Date: Sat, 19 Mar 2011 11:34:28 -0700 Subject: labels In-Reply-To: <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> Message-ID: I found an applescript which can be run from Panorama that will allow you to change the label color: set myPath to (choose file with prompt "choose") tell application "Finder" set label index of myPath to 5 end tell The number 5 used in this script is for the color blue. Here are the list of color numbers to substitute as needed: 0=no label 1=red 2=orange 3=yellow 4=green 5=blue 6=purple 7=grey Gary gary at yonaites.com On Mar 19, 2011, at 11:11 AM, Barry Kahn wrote: > Can PAN control the finder to label a file (yellow, red, whatever) after saving output as a text file? > > bk > > > Barry Kahn > Caravan Beads, Inc. > 915 Forest Ave > Portland ME 04103 > 800-230-8941 > fax: 207-874-2664 > www.caravanbeads.net > barryk at caravanbeads.net > > *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ > > *** My daughter Heather's new business: http://www.chrononautmercantile.com/ > > > > > > > > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Sat Mar 19 11:58:27 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 19 Mar 2011 13:58:27 -0500 (CDT) Subject: labels In-Reply-To: References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> Message-ID: <20110319135827.CPC56384@expms1.cites.uiuc.edu> >I found an applescript which can be run from Panorama that will allow you to change the label color: > >set myPath to (choose file with prompt "choose") > >tell application "Finder" > set label index of myPath to 5 >end tell > >The number 5 used in this script is for the color blue. Here are the list of color numbers to substitute as needed: > >0=no label >1=red >2=orange >3=yellow >4=green >5=blue >6=purple >7=grey > While that's the order the colors appear in the Get Info... dialog, the index numbers don't seem to be assigned that way. In my test, the index number 5 produced purple. Here are the numbers according to my tests. 0=no label 1=orange 2=red 3=yellow 4=blue 5=purple 6=green 7=grey OS X 10.6.6 Dave From barryk at caravanbeads.net Sat Mar 19 12:20:48 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Sat, 19 Mar 2011 15:20:48 -0400 Subject: labels In-Reply-To: References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> Message-ID: <44E47523-C68D-4523-8FEA-4BFDDC9CD3C7@caravanbeads.net> Lost me quickly! Can you explain how the "set myPath" part works? For simplicity, let's say that the file I want to label is in the same folder as the DB that contains the labeling procedure. And let's call the text file "example.txt". I'm guessing "myPath" is a local variable? set myPath to (choose file with prompt "choose") thanks bk > I found an applescript which can be run from Panorama that will allow you to change the label color: > > set myPath to (choose file with prompt "choose") > > tell application "Finder" > set label index of myPath to 5 > end tell > > The number 5 used in this script is for the color blue. Here are the list of color numbers to substitute as needed: > > 0=no label > 1=red > 2=orange > 3=yellow > 4=green > 5=blue > 6=purple > 7=grey > > Gary > gary at yonaites.com > > On Mar 19, 2011, at 11:11 AM, Barry Kahn wrote: > >> Can PAN control the finder to label a file (yellow, red, whatever) after saving output as a text file? >> >> bk >> >> >> Barry Kahn >> Caravan Beads, Inc. >> 915 Forest Ave >> Portland ME 04103 >> 800-230-8941 >> fax: 207-874-2664 >> www.caravanbeads.net >> barryk at caravanbeads.net >> >> *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ >> >> *** My daughter Heather's new business: http://www.chrononautmercantile.com/ >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From dthmpsn1 at illinois.edu Sat Mar 19 12:44:21 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 19 Mar 2011 14:44:21 -0500 (CDT) Subject: labels In-Reply-To: <44E47523-C68D-4523-8FEA-4BFDDC9CD3C7@caravanbeads.net> References: <877B654E-920C-490F-AD8F-618B3EE1FFE2@me.com> <0DDED839-1557-4B33-90E3-8D60AA0FACD5@mac.com> <896F3BD8-9138-419E-9345-6389CD238191@caravanbeads.net> <44E47523-C68D-4523-8FEA-4BFDDC9CD3C7@caravanbeads.net> Message-ID: <20110319144421.CPC57284@expms1.cites.uiuc.edu> >Lost me quickly! Can you explain how the "set myPath" part works? > >For simplicity, let's say that the file I want to label is in the same folder as the DB that contains the labeling procedure. And let's call the text file "example.txt". I'm guessing "myPath" is a local variable? > > >set myPath to (choose file with prompt "choose") > That's the AppleScript programming language. set myPath to (choose file with prompt "choose") causes a dialog, similar to Panorama's OpenFileDialog to appear. You choose your file, and then the AppleScript variable myPath is set to an alias of the file you chose. In Panorama, this would be done with an ExecuteAppleScript or AppleScript statement. I'm more familiar with ExecuteAppleScript, so that's the one I'll be using here. ExecuteAppleScript {tell application "Finder" set theFile to alias "}+folderpath(folder(""))+{example.txt" set the label index of theFile to 5 end tell} The formula {tell application "Finder" set theFile to alias "}+folderpath(folder(""))+{example.txt" set the label index of theFile to 5 end tell} will be evaluated, and the resulting text will be given to AppleScript to be compiled and executed. If you replace ExecuteAppleScript with clipboard=, and then run it, you can open the clipboard and see the script that would have been run. Dave From dthmpsn1 at illinois.edu Sat Mar 19 12:57:22 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Sat, 19 Mar 2011 14:57:22 -0500 (CDT) Subject: How to skip a record when using importusing formula statement In-Reply-To: <2D87A066-DB88-46EF-9B3B-D582B9997C29@me.com> References: <2D87A066-DB88-46EF-9B3B-D582B9997C29@me.com> Message-ID: <20110319145722.CPC57565@expms1.cites.uiuc.edu> >The following procedure works: > >importusing > strip(upperword(importcell(0))) + ? + // City > strip(upper(importcell(1))) + ? + // State > strip(importcell(2)) + ? + // Zipcode > strip(upperword(importcell(3))) + ? + // Station > ?(importcell(4)=chr(32)+ chr(202),?,strip(upperword(importcell(4)))) > >openfiledialog fileFolder,fileName,fileType,"TEXT" > >BUT. Some records in the middle of the file are blank. When I inspect the offending record, it is basically a blank record, ending in a cr() (carriage return, no line feed). Records after this offending record have a normal format. > >How do I skip that one record and let the importusing statement progress to the end of the file? Hope this makes sense. > I don't think you can skip the empty records, but you can quickly delete them after the import. Select strip(exportline()) <> "" RemoveUnselected Dave From jetpuck04 at me.com Sat Mar 19 13:04:40 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Sat, 19 Mar 2011 16:04:40 -0400 Subject: How to skip a record when using importusing formula statement In-Reply-To: <20110319145722.CPC57565@expms1.cites.uiuc.edu> References: <2D87A066-DB88-46EF-9B3B-D582B9997C29@me.com> <20110319145722.CPC57565@expms1.cites.uiuc.edu> Message-ID: Thank you. Peter On Mar 19, 2011, at 3:57 PM, David Thompson wrote: >> The following procedure works: >> >> importusing >> strip(upperword(importcell(0))) + ? + // City >> strip(upper(importcell(1))) + ? + // State >> strip(importcell(2)) + ? + // Zipcode >> strip(upperword(importcell(3))) + ? + // Station >> ?(importcell(4)=chr(32)+ chr(202),?,strip(upperword(importcell(4)))) >> >> openfiledialog fileFolder,fileName,fileType,"TEXT" >> >> BUT. Some records in the middle of the file are blank. When I inspect the offending record, > it is basically a blank record, ending in a cr() (carriage return, no line feed). Records after > this offending record have a normal format. >> >> How do I skip that one record and let the importusing statement progress to the end of > the file? Hope this makes sense. >> > > I don't think you can skip the empty records, but you can quickly delete them after the > import. > > Select strip(exportline()) <> "" > RemoveUnselected > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From josh.davenport at myfairpoint.net Sat Mar 19 17:48:27 2011 From: josh.davenport at myfairpoint.net (Josh Davenport) Date: Sat, 19 Mar 2011 20:48:27 -0400 Subject: serverlookup "off" in rundialog TESO handler Message-ID: <94E8CF2F-3E8E-4A66-B98B-54F06EFAEA8F@myfairpoint.net> Pan 5.5 (I know) I'm having trouble getting serverlookup to the "off" state in a rundialog statement. My call stack looks like this: Calling procedure RunDialog (in a custom statement) TESO Handler It doesn't matter where in the stack I put the serverlookup "off" statement, the TESO handler runs as if its on. TESO has focus on and update variable every key, and execute most keys. The dialog is stored in a library file (as well as the code), if that makes any difference. The following first case works at the beginning of the TESO handler works, but the user has to click into the TESO twice, and therefore I can't get it to auto-open. case trig beginswith "focus" and info("serverlookup") local vJunk vJunk=vLabNum //hacky method requires this, or the TESO loses its variable. vLabNum is the TESO variable superobjectcloseplease //custom statement - just closes current TESO serverlookup "off" vLabNum=vJunk vGetLabNumLastEditor="vLabNum" case trig match "focus.vLabNum" vGetLabNumLastEditor="vLabNum" case trig match "focus.vHighLabNum" vGetLabNumLastEditor="vHighLabNum" case trig match "vLabNum" vGetLabNumLastEditor="vLabNum" vHighLabNum=vLabNum if lookup("Analysis","Master Lab #",val(vLabNum),"Master Lab #", 0,0)=0 vGetLabNumMessage=?(vLabNum="","Enter a lab#",vLabNum+" is not in database") else vGetLabNumMessage="" endif showvariables vHighLabNum,vGetLabNumMessage case trig match "vHighLabNum" vGetLabNumLastEditor="vHighLabNum" shortcall shortcase endcase Thanks, Josh From mylevelbest at gmail.com Mon Mar 21 05:47:06 2011 From: mylevelbest at gmail.com (David Groover) Date: Mon, 21 Mar 2011 08:47:06 -0400 Subject: Machine ID Message-ID: <4D8748CA.8000104@gmail.com> Folks, I am looking for a way to identify what machine a procedure is running on. Laptop has a small screen, MacPro two large screens. I could assess window rectangle size, but I am curious to learn a way to do this by ID-ing the machine name (or as much info as I can about the machine). The gestalt explanation says there are many 4 digit codes about various internal functions. I Googled Gestalt and got to an Apple Developer page, here: I didn't see an actual reference a table of four digit codes however. Also, is there any support for dual monitors in Pan code? Can I tell Pan to see if there are two monitors and if true, open a window on a specified monitor? Here is what I have, I would like to add more info to the list: local lvScreenwide,lvScreenTall lvScreenTall = str(rHeight(info("availablescreenrectangle"))) lvScreenwide = str(rWidth(info("availablescreenrectangle"))) giantmessage "Available Information: " +? +? + ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + " Pixels" + ? + ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") Thanks, David Groover -------------- next part -------------- An HTML attachment was scrubbed... URL: From mylevelbest at gmail.com Mon Mar 21 07:05:27 2011 From: mylevelbest at gmail.com (David Groover) Date: Mon, 21 Mar 2011 10:05:27 -0400 Subject: Machine ID In-Reply-To: <4D8748CA.8000104@gmail.com> References: <4D8748CA.8000104@gmail.com> Message-ID: <4D875B27.4080609@gmail.com> One added question if I may, sounds dumb but I can't recall how to do math in a formula. I have looked at as many formulas as I could and tried a couple. Simply put, I have screen dimensions, should be simple enough to multiply width to height and get screen area on the fly? Tried: // (lvScreenwide*lvScreenTall) // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) Please note, my earlier example has been modified as shown below. I left the conversion of str from val till the display in case that had any bearing on the math function (did not appear to matter). Still on the table, Multi-window support and finding a listing for where to find the many Gestalt codes, said to exist. local lvScreenwide,lvScreenTall,lvScreenTotalArea lvScreenTall = rHeight(info("availablescreenrectangle")) lvScreenwide = rWidth(info("availablescreenrectangle")) giantmessage "Available Information: " +? +? + ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + str(lvScreenTall) + " Pixels" + ? + ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + radixstr(16,gestalt("sysv"))[6;1] + "." + radixstr(16,gestalt("sysv"))[7;1] + "." + radixstr(16,gestalt("sysv"))[8;1] // + ? + // (lvScreenwide*lvScreenTall) // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) Thanks again, David Groover On 3/21/11 8:47 AM, David Groover wrote: > Folks, I am looking for a way to identify what machine a procedure is > running on. Laptop has a small screen, MacPro two large screens. I > could assess window rectangle size, but I am curious to learn a way to > do this by ID-ing the machine name (or as much info as I can about the > machine). > > The gestalt explanation says there are many 4 digit codes about > various internal functions. I Googled Gestalt and got to an Apple > Developer page, here: > > I didn't see an actual reference a table of four digit codes however. > > Also, is there any support for dual monitors in Pan code? Can I tell > Pan to see if there are two monitors and if true, open a window on a > specified monitor? > > Here is what I have, I would like to add more info to the list: > > local lvScreenwide,lvScreenTall > lvScreenTall = str(rHeight(info("availablescreenrectangle"))) > lvScreenwide = str(rWidth(info("availablescreenrectangle"))) > giantmessage "Available Information: " +? +? + > ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + " > Pixels" + ? + > ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") > > Thanks, > David Groover -------------- next part -------------- An HTML attachment was scrubbed... URL: From csw at me.com Mon Mar 21 07:45:57 2011 From: csw at me.com (Watts Chris) Date: Mon, 21 Mar 2011 07:45:57 -0700 Subject: Machine ID In-Reply-To: <4D875B27.4080609@gmail.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> Message-ID: <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> So what was the question? On Mar 21, 2011, at 7:05 AM, David Groover wrote: > One added question if I may, sounds dumb but I can?t recall how to do math in a formula. I have looked at as many formulas as I could and tried a couple. Simply put, I have screen dimensions, should be simple enough to multiply width to height and get screen area on the fly? > > Tried: > // (lvScreenwide*lvScreenTall) > // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall > // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) > > Please note, my earlier example has been modified as shown below. I left the conversion of str from val till the display in case that had any bearing on the math function (did not appear to matter). > > Still on the table, Multi-window support and finding a listing for where to find the many Gestalt codes, said to exist. > > local lvScreenwide,lvScreenTall,lvScreenTotalArea > lvScreenTall = rHeight(info("availablescreenrectangle")) > lvScreenwide = rWidth(info("availablescreenrectangle")) > giantmessage "Available Information: " +? +? + > ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + str(lvScreenTall) + " Pixels" + ? + > ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + > > ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + > radixstr(16,gestalt("sysv"))[6;1] + "." + > radixstr(16,gestalt("sysv"))[7;1] + "." + > radixstr(16,gestalt("sysv"))[8;1] > > // + ? + > // (lvScreenwide*lvScreenTall) > // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall > // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) > > Thanks again, > > David Groover > > On 3/21/11 8:47 AM, David Groover wrote: >> >> Folks, I am looking for a way to identify what machine a procedure is running on. Laptop has a small screen, MacPro two large screens. I could assess window rectangle size, but I am curious to learn a way to do this by ID-ing the machine name (or as much info as I can about the machine). >> >> The gestalt explanation says there are many 4 digit codes about various internal functions. I Googled Gestalt and got to an Apple Developer page, here: >> >> I didn?t see an actual reference a table of four digit codes however. >> >> Also, is there any support for dual monitors in Pan code? Can I tell Pan to see if there are two monitors and if true, open a window on a specified monitor? >> >> Here is what I have, I would like to add more info to the list: >> >> local lvScreenwide,lvScreenTall >> lvScreenTall = str(rHeight(info("availablescreenrectangle"))) >> lvScreenwide = str(rWidth(info("availablescreenrectangle"))) >> giantmessage "Available Information: " +? +? + >> ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + " Pixels" + ? + >> ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") >> >> Thanks, >> David Groover > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From mylevelbest at gmail.com Mon Mar 21 07:53:50 2011 From: mylevelbest at gmail.com (David Groover) Date: Mon, 21 Mar 2011 10:53:50 -0400 Subject: Machine ID In-Reply-To: <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> Message-ID: <4D87667E.2080805@gmail.com> Question Recap: A) Where can I find the many instances of Gestalt code as referenced in the Panorama Reference DB? B) How Can I do math "on the fly"? I gave two examples of trying (and failing) to get screen area multiplying length and width. C) Is there any reference in Panorama programming code to identify if there is more than one monitor (I.E. how to use the added screen dimensions in a formula)? David Groover On 3/21/11 10:45 AM, Watts Chris wrote: > So what was the question? > > > On Mar 21, 2011, at 7:05 AM, David Groover wrote: > >> One added question if I may, sounds dumb but I can't recall how to do >> math in a formula. I have looked at as many formulas as I could and >> tried a couple. Simply put, I have screen dimensions, should be >> simple enough to multiply width to height and get screen area on the >> fly? >> >> Tried: >> // (lvScreenwide*lvScreenTall) >> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >> >> Please note, my earlier example has been modified as shown below. I >> left the conversion of str from val till the display in case that had >> any bearing on the math function (did not appear to matter). >> >> Still on the table, Multi-window support and finding a listing for >> where to find the many Gestalt codes, said to exist. >> >> local lvScreenwide,lvScreenTall,lvScreenTotalArea >> lvScreenTall = rHeight(info("availablescreenrectangle")) >> lvScreenwide = rWidth(info("availablescreenrectangle")) >> giantmessage "Available Information: " +? +? + >> ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + >> str(lvScreenTall) + " Pixels" + ? + >> ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + >> >> ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + >> radixstr(16,gestalt("sysv"))[6;1] + "." + >> radixstr(16,gestalt("sysv"))[7;1] + "." + >> radixstr(16,gestalt("sysv"))[8;1] >> >> // + ? + >> // (lvScreenwide*lvScreenTall) >> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >> >> Thanks again, >> >> David Groover >> >> On 3/21/11 8:47 AM, David Groover wrote: >>> Folks, I am looking for a way to identify what machine a procedure >>> is running on. Laptop has a small screen, MacPro two large screens. >>> I could assess window rectangle size, but I am curious to learn a >>> way to do this by ID-ing the machine name (or as much info as I can >>> about the machine). >>> >>> The gestalt explanation says there are many 4 digit codes about >>> various internal functions. I Googled Gestalt and got to an Apple >>> Developer page, here: >>> >>> I didn't see an actual reference a table of four digit codes however. >>> >>> Also, is there any support for dual monitors in Pan code? Can I tell >>> Pan to see if there are two monitors and if true, open a window on a >>> specified monitor? >>> >>> Here is what I have, I would like to add more info to the list: >>> >>> local lvScreenwide,lvScreenTall >>> lvScreenTall = str(rHeight(info("availablescreenrectangle"))) >>> lvScreenwide = str(rWidth(info("availablescreenrectangle"))) >>> giantmessage "Available Information: " +? +? + >>> ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + >>> " Pixels" + ? + >>> ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") >>> >>> Thanks, >>> David Groover >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From csw at me.com Mon Mar 21 08:22:08 2011 From: csw at me.com (Watts Chris) Date: Mon, 21 Mar 2011 08:22:08 -0700 Subject: Machine ID In-Reply-To: <4D87667E.2080805@gmail.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> Message-ID: <84942718-506A-4500-9CF4-209814752B71@me.com> 1) No idea. But this is a system 9 holdover. I wouldn't use it. 2) Do the math: If MyFunction(X) works, and X is a numeric value, then any expression that resolves to a numeric value can replace X MyFunction(10*2000) MyFunction(val("129")*val(striptonum(3G))) are all valid if this did not work: lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) then your lvScreenwide and/or lvScreenTall variables did not contain numbers. Or you did not declare your lvScreenTotalArea area. If your screen is huge, you may have exceeded Panorama's integer limit. But that's not likely, unless you have a 2100 megapixel screen. 3) Regrettably, I have but one monitor today. But I wouldn't use info("availablescreenrect")- info("screenrectangle") will give more reliable results if you are trying to identify a computer. Why aren't you using info("computername")? chris On Mar 21, 2011, at 7:53 AM, David Groover wrote: > Question Recap: > > A) Where can I find the many instances of Gestalt code as referenced in the Panorama Reference DB? > B) How Can I do math ?on the fly?? I gave two examples of trying (and failing) to get screen area multiplying length and width. > C) Is there any reference in Panorama programming code to identify if there is more than one monitor (I.E. how to use the added screen dimensions in a formula)? > > David Groover > > > > On 3/21/11 10:45 AM, Watts Chris wrote: >> >> So what was the question? >> >> >> On Mar 21, 2011, at 7:05 AM, David Groover wrote: >> >>> One added question if I may, sounds dumb but I can?t recall how to do math in a formula. I have looked at as many formulas as I could and tried a couple. Simply put, I have screen dimensions, should be simple enough to multiply width to height and get screen area on the fly? >>> >>> Tried: >>> // (lvScreenwide*lvScreenTall) >>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>> >>> Please note, my earlier example has been modified as shown below. I left the conversion of str from val till the display in case that had any bearing on the math function (did not appear to matter). >>> >>> Still on the table, Multi-window support and finding a listing for where to find the many Gestalt codes, said to exist. >>> >>> local lvScreenwide,lvScreenTall,lvScreenTotalArea >>> lvScreenTall = rHeight(info("availablescreenrectangle")) >>> lvScreenwide = rWidth(info("availablescreenrectangle")) >>> giantmessage "Available Information: " +? +? + >>> ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + str(lvScreenTall) + " Pixels" + ? + >>> ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + >>> >>> ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + >>> radixstr(16,gestalt("sysv"))[6;1] + "." + >>> radixstr(16,gestalt("sysv"))[7;1] + "." + >>> radixstr(16,gestalt("sysv"))[8;1] >>> >>> // + ? + >>> // (lvScreenwide*lvScreenTall) >>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>> >>> Thanks again, >>> >>> David Groover >>> >>> On 3/21/11 8:47 AM, David Groover wrote: >>>> >>>> Folks, I am looking for a way to identify what machine a procedure is running on. Laptop has a small screen, MacPro two large screens. I could assess window rectangle size, but I am curious to learn a way to do this by ID-ing the machine name (or as much info as I can about the machine). >>>> >>>> The gestalt explanation says there are many 4 digit codes about various internal functions. I Googled Gestalt and got to an Apple Developer page, here: >>>> >>>> I didn?t see an actual reference a table of four digit codes however. >>>> >>>> Also, is there any support for dual monitors in Pan code? Can I tell Pan to see if there are two monitors and if true, open a window on a specified monitor? >>>> >>>> Here is what I have, I would like to add more info to the list: >>>> >>>> local lvScreenwide,lvScreenTall >>>> lvScreenTall = str(rHeight(info("availablescreenrectangle"))) >>>> lvScreenwide = str(rWidth(info("availablescreenrectangle"))) >>>> giantmessage "Available Information: " +? +? + >>>> ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + " Pixels" + ? + >>>> ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") >>>> >>>> Thanks, >>>> David Groover >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From mylevelbest at gmail.com Mon Mar 21 09:16:29 2011 From: mylevelbest at gmail.com (David Groover) Date: Mon, 21 Mar 2011 12:16:29 -0400 Subject: Machine ID In-Reply-To: <84942718-506A-4500-9CF4-209814752B71@me.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> Message-ID: <4D8779DD.7070007@gmail.com> OK, thanks. You must have a more recent version of the Programming Reference than I do. I am not finding any references for MyFunction or for info("computername") I thought that info("username") would do the same thing but it gives no results. I am not sure if you intended in saying: "If MyFunction(X) works, ..." that MyFunction(X) is a function or a variable, I have tried it both ways with no results. Example: (Trying to divide memory bytes to Megs then Gigs - trying megs first) lvRAM = gestalt("lram") giantmessage pattern(lvRAM,"#, bytes")+ ? + str(lvRAM/val("1024")) // "parameter contains an error" Thanks David G On 3/21/11 11:22 AM, Watts Chris wrote: > 1) No idea. But this is a system 9 holdover. I wouldn't use it. > 2) Do the math: > > If MyFunction(X) works, and X is a numeric value, then any expression > that resolves to a numeric value can replace X > MyFunction(10*2000) > MyFunction(val("129")*val(striptonum(3G))) > are all valid > > if this did not work: > lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) > then your lvScreenwide and/or lvScreenTall variables did not contain > numbers. Or you did not declare your lvScreenTotalArea area. If > your screen is huge, you may have exceeded Panorama's integer limit. > But that's not likely, unless you have a 2100 megapixel screen. > > > 3) Regrettably, I have but one monitor today. But I wouldn't > use info("availablescreenrect")- info("screenrectangle") will give > more reliable results if you are trying to identify a computer. Why > aren't you using info("computername")? > > > chris > On Mar 21, 2011, at 7:53 AM, David Groover wrote: > >> Question Recap: >> >> A) Where can I find the many instances of Gestalt code as referenced >> in the Panorama Reference DB? >> B) How Can I do math "on the fly"? I gave two examples of trying (and >> failing) to get screen area multiplying length and width. >> C) Is there any reference in Panorama programming code to identify if >> there is more than one monitor (I.E. how to use the added screen >> dimensions in a formula)? >> >> David Groover >> >> >> >> On 3/21/11 10:45 AM, Watts Chris wrote: >>> So what was the question? >>> >>> >>> On Mar 21, 2011, at 7:05 AM, David Groover wrote: >>> >>>> One added question if I may, sounds dumb but I can't recall how to >>>> do math in a formula. I have looked at as many formulas as I could >>>> and tried a couple. Simply put, I have screen dimensions, should be >>>> simple enough to multiply width to height and get screen area on >>>> the fly? >>>> >>>> Tried: >>>> // (lvScreenwide*lvScreenTall) >>>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>>> >>>> Please note, my earlier example has been modified as shown below. I >>>> left the conversion of str from val till the display in case that >>>> had any bearing on the math function (did not appear to matter). >>>> >>>> Still on the table, Multi-window support and finding a listing for >>>> where to find the many Gestalt codes, said to exist. >>>> >>>> local lvScreenwide,lvScreenTall,lvScreenTotalArea >>>> lvScreenTall = rHeight(info("availablescreenrectangle")) >>>> lvScreenwide = rWidth(info("availablescreenrectangle")) >>>> giantmessage "Available Information: " +? +? + >>>> ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + >>>> str(lvScreenTall) + " Pixels" + ? + >>>> ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + >>>> >>>> ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + >>>> radixstr(16,gestalt("sysv"))[6;1] + "." + >>>> radixstr(16,gestalt("sysv"))[7;1] + "." + >>>> radixstr(16,gestalt("sysv"))[8;1] >>>> >>>> // + ? + >>>> // (lvScreenwide*lvScreenTall) >>>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>>> >>>> Thanks again, >>>> >>>> David Groover >>>> >>>> On 3/21/11 8:47 AM, David Groover wrote: >>>>> Folks, I am looking for a way to identify what machine a procedure >>>>> is running on. Laptop has a small screen, MacPro two large >>>>> screens. I could assess window rectangle size, but I am curious to >>>>> learn a way to do this by ID-ing the machine name (or as much info >>>>> as I can about the machine). >>>>> >>>>> The gestalt explanation says there are many 4 digit codes about >>>>> various internal functions. I Googled Gestalt and got to an Apple >>>>> Developer page, here: >>>>> >>>>> I didn't see an actual reference a table of four digit codes however. >>>>> >>>>> Also, is there any support for dual monitors in Pan code? Can I >>>>> tell Pan to see if there are two monitors and if true, open a >>>>> window on a specified monitor? >>>>> >>>>> Here is what I have, I would like to add more info to the list: >>>>> >>>>> local lvScreenwide,lvScreenTall >>>>> lvScreenTall = str(rHeight(info("availablescreenrectangle"))) >>>>> lvScreenwide = str(rWidth(info("availablescreenrectangle"))) >>>>> giantmessage "Available Information: " +? +? + >>>>> ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall >>>>> + " Pixels" + ? + >>>>> ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") >>>>> >>>>> Thanks, >>>>> David Groover >>>> _______________________________________________ >>>> Qna mailing list >>>> Qna at provue.com >>>> http://provue.com/mailman/listinfo/qna >>> >>> >>> >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Mon Mar 21 10:05:32 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Mon, 21 Mar 2011 12:05:32 -0500 Subject: Machine ID In-Reply-To: <4D8779DD.7070007@gmail.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> <4D8779DD.7070007@gmail.com> Message-ID: >OK, thanks. You must have a more recent version >of the Programming Reference than I do. I am not >finding any references for MyFunction or for >info("computername") I thought that >info("username") would do the same thing but it >gives no results. I am not sure if you intended >in saying: ?If MyFunction(X) works, ...? that >MyFunction(X) is a function or a variable, I >have tried it both ways with no results. MyFunction isn't a real function. Chris was speaking in generalities. I can find info("ComputerName") in my copies of the Programming Reference for Panorama 5.0, 5.5.1, and 6.0. > >Example: (Trying to divide memory bytes to Megs then Gigs - trying megs first) >lvRAM = gestalt("lram") >giantmessage pattern(lvRAM,"#, bytes")+ ? + >str(lvRAM/val("1024")) // ?parameter contains an error? The result of the gestalt( function will be text, so change lvRAM = gestalt("lram") to lvRAM = val(gestalt("lram")) Dave From cdpublishing at qwestoffice.net Mon Mar 21 10:18:06 2011 From: cdpublishing at qwestoffice.net (Craig McPherson) Date: Mon, 21 Mar 2011 10:18:06 -0700 Subject: Machine ID In-Reply-To: References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> <4D8779DD.7070007@gmail.com> Message-ID: <968AF7FD-6B8B-47E9-96E8-93DF6F14FE9B@qwestoffice.net> AHA! I can see it from the programming reference wizard topics, but when I invoke the formula option when editing a text display with a formula (or a TDSO), and use the menubar option for Functions/Info/Dbinfo, the popup list does not include info("ComputerName") ;-( Pan 6 built 10.6.10 Craig McPherson On Mar 21, 2011, at 10:05 AM, David Thompson wrote: >> OK, thanks. You must have a more recent version of the Programming Reference than I do. I am not finding any references for MyFunction or for info("computername") I thought that info("username") would do the same thing but it gives no results. I am not sure if you intended in saying: ?If MyFunction(X) works, ...? that MyFunction(X) is a function or a variable, I have tried it both ways with no results. > > MyFunction isn't a real function. Chris was speaking in generalities. I can find info("ComputerName") in my copies of the Programming Reference for Panorama 5.0, 5.5.1, and 6.0. > >> >> Example: (Trying to divide memory bytes to Megs then Gigs - trying megs first) >> lvRAM = gestalt("lram") >> giantmessage pattern(lvRAM,"#, bytes")+ ? + >> str(lvRAM/val("1024")) // ?parameter contains an error? > > > The result of the gestalt( function will be text, so change > > lvRAM = gestalt("lram") > > to > > lvRAM = val(gestalt("lram")) > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dthmpsn1 at illinois.edu Mon Mar 21 10:24:18 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Mon, 21 Mar 2011 12:24:18 -0500 Subject: Machine ID In-Reply-To: References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> <4D8779DD.7070007@gmail.com> Message-ID: >The result of the gestalt( function will be text I take that back. I tried it, and it was an integer. The problem was that dividing by 1024 produced a fixed point overflow. Change str(lvRAM/val("1024")) to str(float(lvRAM)/1024) and it should work. Dave From michael.witbeck at oregonstate.edu Mon Mar 21 10:37:32 2011 From: michael.witbeck at oregonstate.edu (Witbeck, Michael) Date: Mon, 21 Mar 2011 10:37:32 -0700 Subject: Panorama file or unix executable In-Reply-To: <9B9823FF-D9FF-44D3-B29F-1DFB50E85ACB@mac.com> Message-ID: Problem solved, thanks. I had Panorama 6 already, but needed to upgrade the user's Mac OS from 10.5 to 10.6. Michael From: "Kurt J. Meyer" > Reply-To: "Panorama Questions & Answers (Discussion)" > Date: Sat, 5 Mar 2011 02:44:29 -0800 To: "Panorama Questions & Answers (Discussion)" > Subject: Re: Panorama file or unix executable Am 04.03.2011 um 21:00 schrieb Witbeck, Michael: The difficulty works in reverse as well. As a test I made a sample db on her machine and loaded it onto the server. Moving it over to the server changed it into a unix executable that no else can use. This is a problem of Panorama 5.x and Snow Leopard. But - as far as I remember - these files can be opened via the file menu in Panorama. (Maybe the Platform Converter wizard can help, too.) As Robert already told you, this problem is solved in Panorama 6. Kurt -------------- next part -------------- An HTML attachment was scrubbed... URL: From csw at me.com Mon Mar 21 10:23:30 2011 From: csw at me.com (Chris Watts) Date: Mon, 21 Mar 2011 10:23:30 -0700 Subject: Machine ID In-Reply-To: <4D8779DD.7070007@gmail.com> References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> <4D8779DD.7070007@gmail.com> Message-ID: It doesn't have to be a function. Any numeric value x can be replaced by any expression that resolves to a number. Sent from my iPhone On Mar 21, 2011, at 9:16 AM, David Groover wrote: > OK, thanks. You must have a more recent version of the Programming Reference than I do. I am not finding any references for MyFunction or for info("computername") I thought that info("username") would do the same thing but it gives no results. I am not sure if you intended in saying: ?If MyFunction(X) works, ...? that MyFunction(X) is a function or a variable, I have tried it both ways with no results. > > Example: (Trying to divide memory bytes to Megs then Gigs - trying megs first) > lvRAM = gestalt("lram") > giantmessage pattern(lvRAM,"#, bytes")+ ? + > str(lvRAM/val("1024")) // ?parameter contains an error? > > Thanks > > David G > > > On 3/21/11 11:22 AM, Watts Chris wrote: >> >> 1) No idea. But this is a system 9 holdover. I wouldn't use it. >> 2) Do the math: >> >> If MyFunction(X) works, and X is a numeric value, then any expression that resolves to a numeric value can replace X >> MyFunction(10*2000) >> MyFunction(val("129")*val(striptonum(3G))) >> are all valid >> >> if this did not work: >> lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >> then your lvScreenwide and/or lvScreenTall variables did not contain numbers. Or you did not declare your lvScreenTotalArea area. If your screen is huge, you may have exceeded Panorama's integer limit. But that's not likely, unless you have a 2100 megapixel screen. >> >> >> 3) Regrettably, I have but one monitor today. But I wouldn't use info("availablescreenrect")- info("screenrectangle") will give more reliable results if you are trying to identify a computer. Why aren't you using info("computername")? >> >> >> chris >> >> >> On Mar 21, 2011, at 7:53 AM, David Groover wrote: >> >>> Question Recap: >>> >>> A) Where can I find the many instances of Gestalt code as referenced in the Panorama Reference DB? >>> B) How Can I do math ?on the fly?? I gave two examples of trying (and failing) to get screen area multiplying length and width. >>> C) Is there any reference in Panorama programming code to identify if there is more than one monitor (I.E. how to use the added screen dimensions in a formula)? >>> >>> David Groover >>> >>> >>> >>> On 3/21/11 10:45 AM, Watts Chris wrote: >>>> >>>> So what was the question? >>>> >>>> >>>> On Mar 21, 2011, at 7:05 AM, David Groover wrote: >>>> >>>>> One added question if I may, sounds dumb but I can?t recall how to do math in a formula. I have looked at as many formulas as I could and tried a couple. Simply put, I have screen dimensions, should be simple enough to multiply width to height and get screen area on the fly? >>>>> >>>>> Tried: >>>>> // (lvScreenwide*lvScreenTall) >>>>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>>>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>>>> >>>>> Please note, my earlier example has been modified as shown below. I left the conversion of str from val till the display in case that had any bearing on the math function (did not appear to matter). >>>>> >>>>> Still on the table, Multi-window support and finding a listing for where to find the many Gestalt codes, said to exist. >>>>> >>>>> local lvScreenwide,lvScreenTall,lvScreenTotalArea >>>>> lvScreenTall = rHeight(info("availablescreenrectangle")) >>>>> lvScreenwide = rWidth(info("availablescreenrectangle")) >>>>> giantmessage "Available Information: " +? +? + >>>>> ? +"- Screen Dimensions: " +? + str(lvScreenwide) + " by " + str(lvScreenTall) + " Pixels" + ? + >>>>> ? +"- Allocated RAM: " +? +? +pattern(gestalt("lram"),"#, bytes") + ? + >>>>> >>>>> ? +"- System Version: " + ? + radixstr(16,gestalt("sysv"))[5;1] + >>>>> radixstr(16,gestalt("sysv"))[6;1] + "." + >>>>> radixstr(16,gestalt("sysv"))[7;1] + "." + >>>>> radixstr(16,gestalt("sysv"))[8;1] >>>>> >>>>> // + ? + >>>>> // (lvScreenwide*lvScreenTall) >>>>> // formulacalc lvScreenTotalArea,lvScreenwide*lvScreenTall >>>>> // lvScreenTotalArea = zeroblank(lvScreenwide*lvScreenTall) >>>>> >>>>> Thanks again, >>>>> >>>>> David Groover >>>>> >>>>> On 3/21/11 8:47 AM, David Groover wrote: >>>>>> >>>>>> Folks, I am looking for a way to identify what machine a procedure is running on. Laptop has a small screen, MacPro two large screens. I could assess window rectangle size, but I am curious to learn a way to do this by ID-ing the machine name (or as much info as I can about the machine). >>>>>> >>>>>> The gestalt explanation says there are many 4 digit codes about various internal functions. I Googled Gestalt and got to an Apple Developer page, here: >>>>>> >>>>>> I didn?t see an actual reference a table of four digit codes however. >>>>>> >>>>>> Also, is there any support for dual monitors in Pan code? Can I tell Pan to see if there are two monitors and if true, open a window on a specified monitor? >>>>>> >>>>>> Here is what I have, I would like to add more info to the list: >>>>>> >>>>>> local lvScreenwide,lvScreenTall >>>>>> lvScreenTall = str(rHeight(info("availablescreenrectangle"))) >>>>>> lvScreenwide = str(rWidth(info("availablescreenrectangle"))) >>>>>> giantmessage "Available Information: " +? +? + >>>>>> ? +"- Screen Dimensions: " + lvScreenwide + " by " + lvScreenTall + " Pixels" + ? + >>>>>> ? +"- Allocated RAM: " + pattern(gestalt("lram"),"#, bytes") >>>>>> >>>>>> Thanks, >>>>>> David Groover >>>>> _______________________________________________ >>>>> Qna mailing list >>>>> Qna at provue.com >>>>> http://provue.com/mailman/listinfo/qna >>>> >>>> >>>> >>>> _______________________________________________ >>>> Qna mailing list >>>> Qna at provue.com >>>> http://provue.com/mailman/listinfo/qna >>> >>> _______________________________________________ >>> Qna mailing list >>> Qna at provue.com >>> http://provue.com/mailman/listinfo/qna >> >> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From gary at yonaites.com Mon Mar 21 12:47:37 2011 From: gary at yonaites.com (Gary Yonaites) Date: Mon, 21 Mar 2011 12:47:37 -0700 Subject: Machine ID In-Reply-To: References: <4D8748CA.8000104@gmail.com> <4D875B27.4080609@gmail.com> <9421E46F-FA37-43F8-9E2D-AA0588AE26B9@me.com> <4D87667E.2080805@gmail.com> <84942718-506A-4500-9CF4-209814752B71@me.com> <4D8779DD.7070007@gmail.com> Message-ID: <6A733C7B-CA0C-4756-9C79-EE4DCB2B375C@yonaites.com> You could use executeunix and a variation of the system_profiler command to get info about the machine , processor, memory and serial number: executeunix {system_profiler [-xml] SPHardwareDataType},myvariable Gary gary at yonaites.com >> Example: (Trying to divide memory bytes to Megs then Gigs - trying megs first) >> lvRAM = gestalt("lram") >> giantmessage pattern(lvRAM,"#, bytes")+ ? + >> str(lvRAM/val("1024")) // ?parameter contains an error? From jim at provue.com Mon Mar 21 14:36:30 2011 From: jim at provue.com (James Rea) Date: Mon, 21 Mar 2011 14:36:30 -0700 Subject: Machine ID In-Reply-To: <4D8748CA.8000104@gmail.com> Message-ID: On 3/21/11 at 5:47 AM, mylevelbest at gmail.com (David Groover) wrote: >Folks, I am looking for a way to identify what machine a >procedure is running on The computermacid() function returns a unique value (the Ethernet address) for any computer. This number will not change unless you swap out the logic board of the computer. Jim From steve at goMiddleton.com Tue Mar 22 03:25:20 2011 From: steve at goMiddleton.com (Steve Middleton) Date: Tue, 22 Mar 2011 06:25:20 -0400 Subject: HTTPS and Panorama Enterprise Server Message-ID: Good Morning, How do I set up Panorama Enterprise web publishing to HTTPS? The only apparent option is HTTP for internet web publishing. Thanks Steve Middleton Middleton Label If It Sticks...We Do It! ? http://www.goMiddleton.com From mylevelbest at gmail.com Tue Mar 22 06:36:24 2011 From: mylevelbest at gmail.com (David Groover) Date: Tue, 22 Mar 2011 09:36:24 -0400 Subject: Machine ID In-Reply-To: References: Message-ID: <4D88A5D8.7000308@gmail.com> Thanks to all. I appreciate the responses and the feedback. I was getting stack overflow as well and, it is always good to know how to get more info out of my machine. Suggestion: What if the Panorama Reference DB had a version number right at the top so that you can tell if you have the latest version? In this discussion it seems that not all procedures are in all versions. Example: Jim's suggested computermacid is not showing in the copy I am now looking at. David Groover On 3/21/11 5:36 PM, James Rea wrote: > On 3/21/11 at 5:47 AM, mylevelbest at gmail.com (David Groover) wrote: > >> Folks, I am looking for a way to identify what machine a procedure is >> running on > > The computermacid() function returns a unique value (the Ethernet > address) for any computer. This number will not change unless you swap > out the logic board of the computer. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kjmeyer at mac.com Tue Mar 22 07:12:00 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Tue, 22 Mar 2011 15:12:00 +0100 Subject: Machine ID In-Reply-To: <4D88A5D8.7000308@gmail.com> References: <4D88A5D8.7000308@gmail.com> Message-ID: <1E2111C7-30E4-4B1C-A356-11A83957348D@mac.com> Am 22.03.2011 um 14:36 schrieb David Groover: > Example: Jim?s suggested computermacid is not showing in the copy I am now looking at. Then your copy must be older than Panorama 5.5.1, because that is the version number of this function in my Panorama Reference. Kurt From steve at gomiddleton.com Tue Mar 22 12:19:54 2011 From: steve at gomiddleton.com (Steve Middleton) Date: Tue, 22 Mar 2011 15:19:54 -0400 Subject: HTTPS and Panorama Enterprise Server Message-ID: Good Afternoon, How do I set up Panorama Enterprise web publishing to HTTPS? The only apparent option is HTTP for internet web publishing. Thanks Steve Middleton Middleton Label If It Sticks...We Do It! ? http://www.goMiddleton.com From jim at provue.com Tue Mar 22 12:37:39 2011 From: jim at provue.com (James Rea) Date: Tue, 22 Mar 2011 12:37:39 -0700 Subject: HTTPS and Panorama Enterprise Server In-Reply-To: Message-ID: On 3/22/11 at 12:19 PM, steve at gomiddleton.com (Steve Middleton) wrote: >How do I set up Panorama Enterprise web publishing to HTTPS? >The only apparent option is HTTP for internet web publishing. You have to set up Apache for HTTPS, there is no separate configuration for Panorama Server. If you are using OS X Server the Server Admin software has GUI tools for installing your SSL certificate. This can also be done with regular OS X but I think requires command line tools. Hopefully whomever you purchase your certificate from will have instructions on how the certificate should be installed. (There are many companies online that offer SSL certificates for sale, unfortunately it usually runs a couple hundred dollars per year. I used to know of a company that did it for $35, but they no longer offer that service.) Jim From steve at gomiddleton.com Tue Mar 22 12:41:39 2011 From: steve at gomiddleton.com (Steve Middleton) Date: Tue, 22 Mar 2011 15:41:39 -0400 Subject: HTTPS and Panorama Enterprise Server In-Reply-To: References: Message-ID: <48FAA63A-88F7-454D-B3D2-C1128E77CCB0@gomiddleton.com> Thanks Jim, I did set up apache. I have the SSL installed. I bought mine from goDaddy. I now want panorama to return links with https in it. I do not see how to do that with out custom web programming unless I am missing something. Thanks Steve Middleton Middleton Label If It Sticks...We Do It! ? http://www.goMiddleton.com On Mar 22, 2011, at 3:37 PM, James Rea wrote: > On 3/22/11 at 12:19 PM, steve at gomiddleton.com (Steve Middleton) wrote: > >> How do I set up Panorama Enterprise web publishing to HTTPS? The only apparent option is HTTP for internet web publishing. > > You have to set up Apache for HTTPS, there is no separate configuration for Panorama Server. If you are using OS X Server the Server Admin software has GUI tools for installing your SSL certificate. This can also be done with regular OS X but I think requires command line tools. Hopefully whomever you purchase your certificate from will have instructions on how the certificate should be installed. (There are many companies online that offer SSL certificates for sale, unfortunately it usually runs a couple hundred dollars per year. I used to know of a company that did it for $35, but they no longer offer that service.) > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Tue Mar 22 17:45:51 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 23 Mar 2011 11:45:51 +1100 Subject: Big bad bug in lookupselected( ? Message-ID: <212CC3E7-81CE-4AD5-892C-50A39B5AEF5B@wideband.net.au> I have a large d/b of 240,000 records and a small d/b of 160,000 records, all of which match records in the large d/b (so a lookup gets a 100% hit). I want to find matches between fields called IDN in each d/b - IDN contains numeric data as a text field. In each d/b, I select those records in which IDN ends with "4", about 10% of each. In the small d/b, a lookupselected( takes 1 min 27 sec, exactly the same time as a lookup(. If I select no records in the large d/b, the time is unchanged. If, in the large d/b, I delete those records not ending with "4", the lookup time is 9 sec. This suggests to me that the lookupselected( is not doing what it should. Can somebody please check this out for me? I'm running v6.0 in OS 10.6.6. michael From audax at wideband.net.au Tue Mar 22 21:27:42 2011 From: audax at wideband.net.au (Michael Kellock) Date: Wed, 23 Mar 2011 15:27:42 +1100 Subject: Big bad bug in lookupselected( ? In-Reply-To: <212CC3E7-81CE-4AD5-892C-50A39B5AEF5B@wideband.net.au> References: <212CC3E7-81CE-4AD5-892C-50A39B5AEF5B@wideband.net.au> Message-ID: Further to this, I have modified the procedure to remove the unselected data from the large d/b for each of the ten selections, do the lookup, reverttosaved and move on to the next digit. The time taken to look up all 240,000 records is then 2 min 6 sec, compared with a single lookup without subdividing the large d/b which takes 13 minutes. michael On 23/03/2011, at 11:45 AM, Michael Kellock wrote: > I have a large d/b of 240,000 records and a small d/b of 160,000 records, all of which match records in the large d/b (so a lookup gets a 100% hit). I want to find matches between fields called IDN in each d/b - IDN contains numeric data as a text field. > > In each d/b, I select those records in which IDN ends with "4", about 10% of each. > > In the small d/b, a lookupselected( takes 1 min 27 sec, exactly the same time as a lookup(. If I select no records in the large d/b, the time is unchanged. If, in the large d/b, I delete those records not ending with "4", the lookup time is 9 sec. > > This suggests to me that the lookupselected( is not doing what it should. > > Can somebody please check this out for me? I'm running v6.0 in OS 10.6.6. > > michael > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From steve at gomiddleton.com Wed Mar 23 08:15:22 2011 From: steve at gomiddleton.com (Steve Middleton) Date: Wed, 23 Mar 2011 11:15:22 -0400 Subject: HTTPS and Panorama Enterprise Server In-Reply-To: References: Message-ID: It is my understanding that Panorama will automatically create web links to records and will use the web address that is set up for Panorama Enterprise. The options that Enterprise gives for this are IP addresses or Domain names with http. I would like to set this up with Https but I do not see where that is possible. Am I missing something? Thanks Steve Middleton Middleton Label If It Sticks...We Do It! ? http://www.goMiddleton.com On Mar 22, 2011, at 3:37 PM, James Rea wrote: > On 3/22/11 at 12:19 PM, steve at gomiddleton.com (Steve Middleton) wrote: > >> How do I set up Panorama Enterprise web publishing to HTTPS? The only apparent option is HTTP for internet web publishing. > > You have to set up Apache for HTTPS, there is no separate configuration for Panorama Server. If you are using OS X Server the Server Admin software has GUI tools for installing your SSL certificate. This can also be done with regular OS X but I think requires command line tools. Hopefully whomever you purchase your certificate from will have instructions on how the certificate should be installed. (There are many companies online that offer SSL certificates for sale, unfortunately it usually runs a couple hundred dollars per year. I used to know of a company that did it for $35, but they no longer offer that service.) > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dewdawg2 at aol.com Wed Mar 23 09:33:01 2011 From: dewdawg2 at aol.com (dewdawg2) Date: Wed, 23 Mar 2011 11:33:01 -0500 Subject: PageCount In-Reply-To: Message-ID: I have a TDSO with the following formula: "Page "+str(info("pagenumber"))+" of "+str(info("pagecount")) My printed report is 1,367 pages long. However, the last 2 pages are blank - I'm assuming because of the summary records used during the preparation of the report for printing - so my total number of pages is off by 2. Is there a way I can minus 2 pages from the "pagecount"? I am printing a legal document and the number of pages must be correct. Thanks, Dusty -------------- next part -------------- An HTML attachment was scrubbed... URL: From dthmpsn1 at illinois.edu Wed Mar 23 09:46:43 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Wed, 23 Mar 2011 11:46:43 -0500 (CDT) Subject: PageCount In-Reply-To: References: Message-ID: <20110323114643.CPF42431@expms1.cites.uiuc.edu> > I have a TDSO with the following formula: "Page > "+str(info("pagenumber"))+" of "+str(info("pagecount")) > My printed report is 1,367 pages long. However, the last 2 > pages are blank - I'm assuming because of the summary records > used during the preparation of the report for printing - so my > total number of pages is off by 2. Is there a way I can minus > 2 pages from the "pagecount"? I am printing a legal document > and the number of pages must be correct. Thanks, Dusty >________________ Change str(info("pagecount")) to str(info("pagecount")-2) Dave From craigmcpherson at me.com Wed Mar 23 09:49:17 2011 From: craigmcpherson at me.com (Craig) Date: Wed, 23 Mar 2011 09:49:17 -0700 Subject: PageCount In-Reply-To: References: Message-ID: <0960F55C-D3A1-4C3F-A09A-A6731A4EBC31@me.com> Set a variable which subtracts two instead of displaying pagecount or pagenum? Sent from my iPhone On Mar 23, 2011, at 9:33 AM, dewdawg2 wrote: > I have a TDSO with the following formula: "Page "+str(info("pagenumber"))+" of "+str(info("pagecount")) > > My printed report is 1,367 pages long. However, the last 2 pages are blank - I'm assuming because of the summary records used during the preparation of the report for printing - so my total number of pages is off by 2. Is there a way I can minus 2 pages from the "pagecount"? I am printing a legal document and the number of pages must be correct. Thanks, Dusty > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From mark at abernackie.com Wed Mar 23 11:45:30 2011 From: mark at abernackie.com (Mark Terry) Date: Wed, 23 Mar 2011 14:45:30 -0400 Subject: Machine ID In-Reply-To: References: Message-ID: <83389740-D802-4398-9781-388669C2FF9E@abernackie.com> Be aware that computermacid( returns the primary ethernet address, through a unix command, and those results can vary on a single computer (between Airport Address and ethernet address, for example). There was a thread in 2009 regarding this, I think. M On Mar 21, 2011, at 5:36 PM, James Rea wrote: > On 3/21/11 at 5:47 AM, mylevelbest at gmail.com (David Groover) wrote: > >> Folks, I am looking for a way to identify what machine a procedure >> is running on > > The computermacid() function returns a unique value (the Ethernet > address) for any computer. This number will not change unless you > swap out the logic board of the computer. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From dewdawg2 at aol.com Wed Mar 23 11:45:28 2011 From: dewdawg2 at aol.com (dewdawg2) Date: Wed, 23 Mar 2011 13:45:28 -0500 Subject: PageCount In-Reply-To: <20110323114643.CPF42431@expms1.cites.uiuc.edu> Message-ID: Perfect, thanks Dave and Craig On Mar 23, 2011, at 11:46:43 AM, "David Thompson" wrote: From: "David Thompson" Subject: Re: PageCount Date: March 23, 2011 11:46:43 AM CDT To: "Panorama Questions & Answers (Discussion)" > I have a TDSO with the following formula: "Page > "+str(info("pagenumber"))+" of "+str(info("pagecount")) > My printed report is 1,367 pages long. However, the last 2 > pages are blank - I'm assuming because of the summary records > used during the preparation of the report for printing - so my > total number of pages is off by 2. Is there a way I can minus > 2 pages from the "pagecount"? I am printing a legal document > and the number of pages must be correct. Thanks, Dusty > ________________ Change str(info("pagecount")) to str(info("pagecount")-2) Dave _______________________________________________ Qna mailing list Qna at provue.com http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From audax at wideband.net.au Wed Mar 23 16:40:45 2011 From: audax at wideband.net.au (Michael Kellock) Date: Thu, 24 Mar 2011 10:40:45 +1100 Subject: Big bad bug in lookupselected( ? In-Reply-To: References: <212CC3E7-81CE-4AD5-892C-50A39B5AEF5B@wideband.net.au> Message-ID: <6871B66C-4C3C-4C4D-8812-3E18B0C53DCF@wideband.net.au> Looking back over previous posts, I see that Dave Thompson addressed this issue on 5 March: "The lookupselected( would do a lot fewer comparisons, but it would still have to step over all those invisible records to get to the next visible one. It would be quicker if the next visible record were also the next record. Even if you ignored the time needed to do the Select, the lookup is still going to be faster if the visible records are the only records." So presumably, the lookupselected( function is working as designed. michael On 23/03/2011, at 3:27 PM, Michael Kellock wrote: > Further to this, I have modified the procedure to remove the unselected data from the large d/b for each of the ten selections, do the lookup, reverttosaved and move on to the next digit. The time taken to look up all 240,000 records is then 2 min 6 sec, compared with a single lookup without subdividing the large d/b which takes 13 minutes. > > michael > > > On 23/03/2011, at 11:45 AM, Michael Kellock wrote: > >> I have a large d/b of 240,000 records and a small d/b of 160,000 records, all of which match records in the large d/b (so a lookup gets a 100% hit). I want to find matches between fields called IDN in each d/b - IDN contains numeric data as a text field. >> >> In each d/b, I select those records in which IDN ends with "4", about 10% of each. >> >> In the small d/b, a lookupselected( takes 1 min 27 sec, exactly the same time as a lookup(. If I select no records in the large d/b, the time is unchanged. If, in the large d/b, I delete those records not ending with "4", the lookup time is 9 sec. >> >> This suggests to me that the lookupselected( is not doing what it should. >> >> Can somebody please check this out for me? I'm running v6.0 in OS 10.6.6. >> >> michael >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Wed Mar 23 22:49:52 2011 From: audax at wideband.net.au (Michael Kellock) Date: Thu, 24 Mar 2011 16:49:52 +1100 Subject: Variables in the lookup( function Message-ID: This statement causes Panorama to freeze: Field A FormulaFill lookup(FileName,FieldName2,FieldName1,FieldName2,"",0) but this is OK: Field A FormulaFill lookup(FileName,FieldName2,IDN1,FieldName2,"",0) where FieldName1 has previously been set to "IDN1" and FieldName2 has previously been set to "IDN2". Is a variable not allowed for this parameter? michael From dthmpsn1 at illinois.edu Thu Mar 24 05:18:11 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 24 Mar 2011 07:18:11 -0500 (CDT) Subject: Variables in the lookup( function In-Reply-To: References: Message-ID: <20110324071811.CPG50295@expms1.cites.uiuc.edu> >This statement causes Panorama to freeze: > >Field A FormulaFill lookup(FileName,FieldName2,FieldName1,FieldName2,"",0) > >but this is OK: > >Field A FormulaFill lookup(FileName,FieldName2,IDN1,FieldName2,"",0) > >where FieldName1 has previously been set to "IDN1" and FieldName2 has previously been set to "IDN2". > >Is a variable not allowed for this parameter? > It shouldn't be freezing, but it shouldn't be finding a match either, which would probably increase the time spent looking. In your first example, "IDN1" isn't the name of the field where it will find the key value. It's the key value itself. You could change that to FormulaFill lookup(FileName,FieldName2,FieldName1,datavalue(FieldName2),"",0) and it should work. Dave From dthmpsn1 at illinois.edu Thu Mar 24 08:29:58 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 24 Mar 2011 10:29:58 -0500 (CDT) Subject: Variables in the lookup( function In-Reply-To: <20110324071811.CPG50295@expms1.cites.uiuc.edu> References: <20110324071811.CPG50295@expms1.cites.uiuc.edu> Message-ID: <20110324102958.CPG66519@expms1.cites.uiuc.edu> >>This statement causes Panorama to freeze: >> >>Field A FormulaFill lookup(FileName,FieldName2,FieldName1,FieldName2,"",0) >> >>but this is OK: >> >>Field A FormulaFill lookup(FileName,FieldName2,IDN1,FieldName2,"",0) >> >>where FieldName1 has previously been set to "IDN1" and FieldName2 has previously been set to "IDN2". >> >>Is a variable not allowed for this parameter? >> > >It shouldn't be freezing, but it shouldn't be finding a match either, which would probably increase the time spent looking. In your first example, "IDN1" isn't the name of the field where it will find the key value. It's the key value itself. You could change that to > >FormulaFill lookup(FileName,FieldName2,FieldName1,datavalue(FieldName2),"",0) > >and it should work. > I just noticed, I put the datavalue( function in the wrong parameter. It should be FormulaFill lookup(FileName,FieldName2,datavalue(FieldName1),FieldName2,"",0) Dave From jeff_gold at state.ga.weo.us Thu Mar 24 10:54:20 2011 From: jeff_gold at state.ga.weo.us (Jeff Gold) Date: Thu, 24 Mar 2011 13:54:20 -0400 Subject: Canceling a .Initialize procedure. In-Reply-To: References: Message-ID: Hello, I've got a .Initialize procedure I'm working on which is meant for another computer. Is there a way to keep it from executing when I open the database from my development computer? Best wishes, - Jeff From JC at JamesCook.biz Thu Mar 24 11:02:15 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 24 Mar 2011 14:02:15 -0400 Subject: Canceling a .Initialize procedure. In-Reply-To: References: Message-ID: At 1:54 PM -0400 3/24/11, Jeff Gold wrote: >I've got a .Initialize procedure I'm working on which is meant for another computer. Is there a way to keep it from executing when I open the database from my development computer? Use something that identifies the computer at the start of the Initialize procedure: If info("ComputerName") = "Mine" Rtn EndIf -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From gary at yonaites.com Thu Mar 24 11:10:40 2011 From: gary at yonaites.com (Gary Yonaites) Date: Thu, 24 Mar 2011 11:10:40 -0700 Subject: Canceling a .Initialize procedure. In-Reply-To: References: Message-ID: Change the name by removing the leading dot until it is transferred to the right computer. Gary gary at yonaites.com On Mar 24, 2011, at 10:54 AM, Jeff Gold wrote: > Hello, > > I've got a .Initialize procedure I'm working on which is meant for another computer. Is there a way to keep it from executing when I open the database from my development computer? > > Best wishes, > > - Jeff > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From barryk at caravanbeads.net Thu Mar 24 11:10:56 2011 From: barryk at caravanbeads.net (Barry Kahn) Date: Thu, 24 Mar 2011 14:10:56 -0400 Subject: Canceling a .Initialize procedure. In-Reply-To: References: Message-ID: Put a noyes or alertnoyes as the first part of the .initialize so you can choose whether or not you want it to run when the database opens. bk > Hello, > > I've got a .Initialize procedure I'm working on which is meant for another computer. Is there a way to keep it from executing when I open the database from my development computer? > > Best wishes, > > - Jeff > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna Barry Kahn Caravan Beads, Inc. 915 Forest Ave Portland ME 04103 800-230-8941 fax: 207-874-2664 www.caravanbeads.net barryk at caravanbeads.net *** Bead store owners and designers: Please visit our new bead blog: http://caravanbeads.biz/beadblog/ *** My daughter Heather's new business: http://www.chrononautmercantile.com/ From scott at prototek.net Thu Mar 24 11:23:14 2011 From: scott at prototek.net (Scott Taylor) Date: Thu, 24 Mar 2011 11:23:14 -0700 Subject: Canceling a .Initialize procedure. In-Reply-To: Message-ID: Use the Open Database wizard and choose ?data sheet only.? It will open without running .Initialize. This method will work no matter which computer you are using, and doesn?t require your intended user to answer odd questions. > > From: Jeff Gold > Reply-To: "Panorama Questions & Answers \(Discussion\)" > Date: Thu, 24 Mar 2011 13:54:20 -0400 > To: "Panorama Questions & Answers \(Discussion\)" > Subject: Re: Canceling a .Initialize procedure. > > Hello, > > I've got a .Initialize procedure I'm working on which is meant for another > computer. Is there a way to keep it from executing when I open the database > from my development computer? > > Best wishes, > > - Jeff > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at provue.com Thu Mar 24 12:06:58 2011 From: jim at provue.com (James Rea) Date: Thu, 24 Mar 2011 12:06:58 -0700 Subject: Panorama and 10.6.7 Message-ID: Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. Jim From gary at yonaites.com Thu Mar 24 12:26:56 2011 From: gary at yonaites.com (Gary Yonaites) Date: Thu, 24 Mar 2011 12:26:56 -0700 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: I have had 10.6.7 for a couple of days now and have not noticed any change or problem with Panorama. I have not had much time to do anything extreme with Panorama in that time, but just normal use seems as stable as before. Gary gary at yonaites.com On Mar 24, 2011, at 12:06 PM, James Rea wrote: > Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From conable.1 at osu.edu Thu Mar 24 12:24:14 2011 From: conable.1 at osu.edu (William Conable) Date: Thu, 24 Mar 2011 12:24:14 -0700 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: <4D8B9A5E.3080503@osu.edu> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compose-unknown-contact.jpg Type: image/jpeg Size: 1421 bytes Desc: not available URL: From jim at provue.com Thu Mar 24 12:34:26 2011 From: jim at provue.com (James Rea) Date: Thu, 24 Mar 2011 12:34:26 -0700 Subject: Panorama and 10.6.7 In-Reply-To: Message-ID: On 3/24/11 at 12:26 PM, gary at yonaites.com (Gary Yonaites) wrote: >I have had 10.6.7 for a couple of days now and have not noticed >any change or problem with Panorama. I have not had much time >to do anything extreme with Panorama in that time, but just >normal use seems as stable as before. >Nothing obvious so far, what sort of problems? Ok, good -- probably installation or permission problems, then. Both users were reporting immediate obvious problems, and 10.6.7 was an unknown variable I couldn't immediately rule out. Jim From kjmeyer at mac.com Thu Mar 24 12:36:07 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 24 Mar 2011 20:36:07 +0100 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: <8D2FDFFB-1895-4E35-9D3F-B213EF485E2C@mac.com> Am 24.03.2011 um 20:06 schrieb James Rea: > Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. No problem with Panorama and 10.6.7; only the internal SD card reader of my MBP stopped working. Kurt From JC at JamesCook.biz Thu Mar 24 12:35:42 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 24 Mar 2011 15:35:42 -0400 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: At 12:06 PM -0700 3/24/11, James Rea wrote: >Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. I was doing the support on one of those two, trying to help with the installation. After two restarts we got it to install without errors and it's now running fine for him. I have two machines on 10.6.7 and they're both doing fine with Panorama. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From thomas.hidderley at sympatico.ca Thu Mar 24 13:20:47 2011 From: thomas.hidderley at sympatico.ca (Thomas Hidderley) Date: Thu, 24 Mar 2011 16:20:47 -0400 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: I've been running 10.6.7 for a couple of days and so far no abnormalities with Panorama. It seems to be behaving as usual. Tom On Mar 24, 2011, at 3:06 PM, James Rea wrote: > Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna > From wiedemag at me.com Thu Mar 24 12:28:36 2011 From: wiedemag at me.com (Geoffrey P Wiedeman Jr) Date: Thu, 24 Mar 2011 12:28:36 -0700 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: No problem for me so far either wiedemag On Mar 24, 2011, at 12:06 , James Rea wrote: > Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna -------------- next part -------------- An HTML attachment was scrubbed... URL: From csw at me.com Thu Mar 24 14:08:13 2011 From: csw at me.com (Watts Chris) Date: Thu, 24 Mar 2011 14:08:13 -0700 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: So far so good? On Mar 24, 2011, at 12:06 PM, James Rea wrote: > Has anyone here installed 10.6.7 yet? We've heard from two customers today that are having problems with Panorama on this new OS version -- I don't know if it's a coincidence or if there really is a problem. > > Jim > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From audax at wideband.net.au Thu Mar 24 16:07:46 2011 From: audax at wideband.net.au (Michael Kellock) Date: Fri, 25 Mar 2011 10:07:46 +1100 Subject: Variables in the lookup( function In-Reply-To: <20110324102958.CPG66519@expms1.cites.uiuc.edu> References: <20110324071811.CPG50295@expms1.cites.uiuc.edu> <20110324102958.CPG66519@expms1.cites.uiuc.edu> Message-ID: <53F55C0B-7C26-483C-A86A-FB5500741A2E@wideband.net.au> Thanks Dave - that works fine. m On 25/03/2011, at 2:29 AM, David Thompson wrote: >>> This statement causes Panorama to freeze: >>> >>> Field A FormulaFill lookup(FileName,FieldName2,FieldName1,FieldName2,"",0) >>> >>> but this is OK: >>> >>> Field A FormulaFill lookup(FileName,FieldName2,IDN1,FieldName2,"",0) >>> >>> where FieldName1 has previously been set to "IDN1" and FieldName2 has previously been > set to "IDN2". >>> >>> Is a variable not allowed for this parameter? >>> >> >> It shouldn't be freezing, but it shouldn't be finding a match either, which would probably > increase the time spent looking. In your first example, "IDN1" isn't the name of the field > where it will find the key value. It's the key value itself. You could change that to >> >> FormulaFill lookup(FileName,FieldName2,FieldName1,datavalue(FieldName2),"",0) >> >> and it should work. >> > > I just noticed, I put the datavalue( function in the wrong parameter. It should be > > FormulaFill lookup(FileName,FieldName2,datavalue(FieldName1),FieldName2,"",0) > > Dave > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From JC at JamesCook.biz Thu Mar 24 16:46:43 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 24 Mar 2011 19:46:43 -0400 Subject: PrintPDF Message-ID: What would cause a Type Mismatch on PrintPDF? I get it with all of these: printpdf {file="Report"} printpdf {file="Report" onerecord=false} printpdf {path="" file="Report" onerecord=false} The progress bar appears and counts out the pages before the error occurs. No PDF is saved. There is nothing else following the command so it's not a later error in my procedure. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From robert at ameeti.net Thu Mar 24 16:53:58 2011 From: robert at ameeti.net (Robert Ameeti) Date: Thu, 24 Mar 2011 16:53:58 -0700 Subject: PrintPDF In-Reply-To: References: Message-ID: Are you running Growl? At 7:46 PM -0400, 3/24/11, James Cook wrote: >What would cause a Type Mismatch on PrintPDF? > >I get it with all of these: > >printpdf {file="Report"} > >printpdf {file="Report" onerecord=false} > >printpdf {path="" file="Report" onerecord=false} > > >The progress bar appears and counts out the >pages before the error occurs. No PDF is saved. >There is nothing else following the command so >it's not a later error in my procedure. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist I have this nagging fear that everyone is out to make me paranoid <><><><><><><><><><><><> From dthmpsn1 at illinois.edu Thu Mar 24 17:07:12 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 24 Mar 2011 19:07:12 -0500 (CDT) Subject: PrintPDF In-Reply-To: References: Message-ID: <20110324190712.CPH56330@expms1.cites.uiuc.edu> >What would cause a Type Mismatch on PrintPDF? > >I get it with all of these: > >printpdf {file="Report"} > >printpdf {file="Report" onerecord=false} > >printpdf {path="" file="Report" onerecord=false} > > > >The progress bar appears and counts out the pages before the error occurs. No PDF is saved. There is nothing else following the command so it's not a later error in my procedure. PrintPDF saves the PDF to a standard folder, with a name that is chosen by the virtual printer. Once that is completed, the PrintPDF custom statement copies the file to your chosen folder, and gives it your chosen name. It sounds like the initial save may have taken place, but the error occurred during the copy and rename phase. Do you have error detail turned on? That could help you narrow it down to the statement in the PRINTPDF procedure, where the error occurred. Dave From JC at JamesCook.biz Thu Mar 24 19:12:08 2011 From: JC at JamesCook.biz (James Cook) Date: Thu, 24 Mar 2011 22:12:08 -0400 Subject: PrintPDF In-Reply-To: <20110324190712.CPH56330@expms1.cites.uiuc.edu> References: <20110324190712.CPH56330@expms1.cites.uiuc.edu> Message-ID: Robert, I do have Growl running. Why do you ask? It's not offering any notices. At 7:07 PM -0500 3/24/11, David Thompson wrote: >PrintPDF saves the PDF to a standard folder, with a name that is chosen by the virtual printer. Once that is completed, the PrintPDF custom statement copies the file to your chosen folder, and gives it your chosen name. It sounds like the initial save may have taken place, but the error occurred during the copy and rename phase. > >Do you have error detail turned on? That could help you narrow it down to the statement in the PRINTPDF procedure, where the error occurred. Thanks David. That's all good info. Error Detail doesn't seem to be picking up anything other than an execute error every minute; Time Lapse perhaps? -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From robert at ameeti.net Thu Mar 24 20:55:36 2011 From: robert at ameeti.net (Robert Ameeti) Date: Thu, 24 Mar 2011 20:55:36 -0700 Subject: PrintPDF In-Reply-To: References: <20110324190712.CPH56330@expms1.cites.uiuc.edu> Message-ID: I think this might be an error in the way the Growl command within Panorama was originally written. David Thompson has offered an update to the Growl extension and it was to be rolled into the next release but if my memory serves us correctly, that never happened. You may still need to manually update the extension. At 10:12 PM -0400, 3/24/11, James Cook wrote: >Robert, I do have Growl running. Why do you ask? >It's not offering any notices. > >At 7:07 PM -0500 3/24/11, David Thompson wrote: >>PrintPDF saves the PDF to a standard folder, >>with a name that is chosen by the virtual >>printer. Once that is completed, the PrintPDF >>custom statement copies the file to your chosen >>folder, and gives it your chosen name. It >>sounds like the initial save may have taken >>place, but the error occurred during the copy >>and rename phase. >> >>Do you have error detail turned on? That could >>help you narrow it down to the statement in the >>PRINTPDF procedure, where the error occurred. > >Thanks David. That's all good info. > >Error Detail doesn't seem to be picking up >anything other than an execute error every >minute; Time Lapse perhaps? -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Why is "abbreviation" such a long word? <><><><><><><><><><><><> From jim at provue.com Fri Mar 25 09:29:27 2011 From: jim at provue.com (James Rea) Date: Fri, 25 Mar 2011 09:29:27 -0700 Subject: PrintPDF In-Reply-To: Message-ID: On 3/24/11 at 8:55 PM, robert at ameeti.net (Robert Ameeti) wrote: >I think this might be an error in the way the Growl command >within Panorama was originally written. David Thompson has >offered an update to the Growl extension and it was to be >rolled into the next release but if my memory serves us >correctly, that never happened. There are no unreleased patches to growl. I use growl all the time and it works fine. In any case, I don't see any use of growl in PrintPDF. Jim -- the PrintPDF source code is included with so perhaps you can step thru it and see where the problem is occurring. Perhaps your CUPS virtual printer is not installed properly. Though in that case it is supposed to display a message to that effect, not get a type mismatch error. Jim From robert at ameeti.net Fri Mar 25 18:17:53 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 25 Mar 2011 18:17:53 -0700 Subject: Searching the Qna Archives Message-ID: I see a QNA Archive page but it just separates by month. Is there a way to search the archives? -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist I pretend to work. They pretend to pay me. <><><><><><><><><><><><> From dthmpsn1 at illinois.edu Fri Mar 25 18:29:08 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 25 Mar 2011 20:29:08 -0500 (CDT) Subject: Searching the Qna Archives In-Reply-To: References: Message-ID: <20110325202908.CPI36812@expms1.cites.uiuc.edu> >I see a QNA Archive page but it just separates by >month. Is there a way to search the archives? >-- It sounds like you are looking at the "raw archives." There is a searchable version at . Dave From robert at ameeti.net Fri Mar 25 19:58:40 2011 From: robert at ameeti.net (Robert Ameeti) Date: Fri, 25 Mar 2011 19:58:40 -0700 Subject: Searching the Qna Archives In-Reply-To: <20110325202908.CPI36812@expms1.cites.uiuc.edu> References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> Message-ID: Thanks Dave. I saw the link at the bottom of the list email, thinking it would take me to the searchable one and I didn't see one when I did get to the 'raw' version but link to this searchable one. After doing a search, I got the Panorama QNA Search Results. The problem was that the hyperlinks to move to pages 2,3,4, NEXT caused no change in the listings of messages. Is there a trick to going beyond the first page of search results. At 8:29 PM -0500, 3/25/11, David Thompson wrote: > >I see a QNA Archive page but it just separates by >>month. Is there a way to search the archives? >>-- > >It sounds like you are looking at the "raw >archives." There is a searchable version at >. > >Dave >_______________________________________________ >Qna mailing list >Qna at provue.com >http://provue.com/mailman/listinfo/qna -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist How does the guy who drives the snow plow get to work in the mornings? <><><><><><><><><><><><> From dthmpsn1 at illinois.edu Fri Mar 25 21:15:36 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Fri, 25 Mar 2011 23:15:36 -0500 (CDT) Subject: Searching the Qna Archives In-Reply-To: References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> Message-ID: <20110325231536.CPI40053@expms1.cites.uiuc.edu> >Thanks Dave. I saw the link at the bottom of the >list email, thinking it would take me to the >searchable one and I didn't see one when I did >get to the 'raw' version but link to this >searchable one. > > > >After doing a search, I got the Panorama QNA >Search Results. The problem was that the >hyperlinks to move to pages 2,3,4, NEXT caused no >change in the listings of messages. Is there a >trick to going beyond the first page of search >results. No trick that I know of. I just tried a search for "array" which produced 124 pages of results, and had no problem moving from page to page. Dave From audax at wideband.net.au Sat Mar 26 02:23:01 2011 From: audax at wideband.net.au (Michael Kellock) Date: Sat, 26 Mar 2011 20:23:01 +1100 Subject: Searching the Qna Archives In-Reply-To: <20110325231536.CPI40053@expms1.cites.uiuc.edu> References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> <20110325231536.CPI40053@expms1.cites.uiuc.edu> Message-ID: Which clearly demonstrates the benefits of giving one's posts a meaningful subject name. michael On 26/03/2011, at 3:15 PM, David Thompson wrote: > No trick that I know of. I just tried a search for "array" which produced 124 pages of results, and had no problem moving from page to page. > From jetpuck04 at me.com Sat Mar 26 14:31:12 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Sat, 26 Mar 2011 17:31:12 -0400 Subject: Searching the Qna Archives In-Reply-To: References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> <20110325231536.CPI40053@expms1.cites.uiuc.edu> Message-ID: <16C4B06D-1DF6-4262-8D60-6BD783914518@me.com> But this isn't addressing Robert's question. Searching QNA, and clicking on a answer, and then trying to use the 'links' at the top of the screen do not produce what one would say are consistent results. Short of manually clicking on different answers?the links don't produce consistent results. Seems a pity. Peter On Mar 26, 2011, at 5:23 AM, Michael Kellock wrote: > Which clearly demonstrates the benefits of giving one's posts a meaningful subject name. > > michael > > > On 26/03/2011, at 3:15 PM, David Thompson wrote: > >> No trick that I know of. I just tried a search for "array" which produced 124 pages of results, and had no problem moving from page to page. >> > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From barlee at amnet.net.au Sat Mar 26 19:55:38 2011 From: barlee at amnet.net.au (Barry & Leith Johnston) Date: Sun, 27 Mar 2011 10:55:38 +0800 Subject: Searching the Qna Archives In-Reply-To: <16C4B06D-1DF6-4262-8D60-6BD783914518@me.com> References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> <20110325231536.CPI40053@expms1.cites.uiuc.edu> <16C4B06D-1DF6-4262-8D60-6BD783914518@me.com> Message-ID: <5432B47A-1FDA-44BC-BE68-F84D80DCB3E0@amnet.net.au> I have tried to search for a topic which produced a summary with a lot of pages. The initial page was shown, but when I tried to access page 2 or any other page it produced a blank page. This was tried using Firefox. However when I tried Safari page 2 or any other pages showed up. Regards Barry Johnston On 27/03/2011, at 5:31 AM, Peter Levitt wrote: > But this isn't addressing Robert's question. > > Searching QNA, and clicking on a answer, and then trying to use the > 'links' at the top of the screen do not produce what one would say > are consistent results. > > Short of manually clicking on different answers?the links don't > produce consistent results. Seems a pity. > Peter > > > On Mar 26, 2011, at 5:23 AM, Michael Kellock wrote: > >> Which clearly demonstrates the benefits of giving one's posts a >> meaningful subject name. >> >> michael >> >> >> On 26/03/2011, at 3:15 PM, David Thompson wrote: >> >>> No trick that I know of. I just tried a search for "array" which >>> produced 124 pages of results, and had no problem moving from >>> page to page. >>> >> >> _______________________________________________ >> Qna mailing list >> Qna at provue.com >> http://provue.com/mailman/listinfo/qna > > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From robert at ameeti.net Sat Mar 26 23:55:47 2011 From: robert at ameeti.net (Robert Ameeti) Date: Sat, 26 Mar 2011 23:55:47 -0700 Subject: Searching the Qna Archives In-Reply-To: <5432B47A-1FDA-44BC-BE68-F84D80DCB3E0@amnet.net.au> References: <20110325202908.CPI36812@expms1.cites.uiuc.edu> <20110325231536.CPI40053@expms1.cites.uiuc.edu> <16C4B06D-1DF6-4262-8D60-6BD783914518@me.com> <5432B47A-1FDA-44BC-BE68-F84D80DCB3E0@amnet.net.au> Message-ID: I did not realize we would have different results but that may be due to different versions of the browsers. On my system, Safari 5.0.4, a results from a search that had multiple pages, would only show the first page. Attempting to advance to another page would only cause a refresh of the same 1st page with no advanced results displaying. On FireFox 4.0, the table would disappear and there would be blank space where the table was. At 10:55 AM +0800, 3/27/11, Barry & Leith Johnston wrote: >I have tried to search for a topic which >produced a summary with a lot of pages. The >initial page was shown, but when I tried to >access page 2 or any other page it produced a >blank page. This was tried using Firefox. >However when I tried Safari page 2 or any other >pages showed up. > >Regards Barry Johnston > > >On 27/03/2011, at 5:31 AM, Peter Levitt wrote: > >>But this isn't addressing Robert's question. >> >>Searching QNA, and clicking on a answer, and >>then trying to use the 'links' at the top of >>the screen do not produce what one would say >>are consistent results. >> >>Short of manually clicking on different >>answers?the links don't produce consistent >>results. Seems a pity. >>Peter >> >> >>On Mar 26, 2011, at 5:23 AM, Michael Kellock wrote: >> >>>Which clearly demonstrates the benefits of >>>giving one's posts a meaningful subject name. >>> >>>michael >>> >>> >>>On 26/03/2011, at 3:15 PM, David Thompson wrote: >>> >>>>No trick that I know of. I just tried a >>>>search for "array" which produced 124 pages >>>>of results, and had no problem moving from >>>>page to page. -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist Hard work has a future payoff. Laziness pays off now. <><><><><><><><><><><><> From conable.1 at osu.edu Mon Mar 28 21:46:12 2011 From: conable.1 at osu.edu (William Conable) Date: Mon, 28 Mar 2011 21:46:12 -0700 Subject: Panorama and 10.6.7 In-Reply-To: References: Message-ID: <4D916414.6030604@osu.edu> An HTML attachment was scrubbed... URL: From kjmeyer at mac.com Mon Mar 28 22:16:12 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Tue, 29 Mar 2011 07:16:12 +0200 Subject: Panorama and 10.6.7 In-Reply-To: <4D916414.6030604@osu.edu> References: <4D916414.6030604@osu.edu> Message-ID: <6E6402BC-743E-421F-9AEB-F3E9283D4DAA@mac.com> Am 29.03.2011 um 06:46 schrieb William Conable: > It turns out there is a problem with 10.6.7: it has to do with Open Face Postscript fonts. If you don't get TidBITS, here's the URL where it's discussed: > > > > Don't know if it has any application to Panorama.... If I understand it correctly: Only, if you are creating PDFs (of forms) containing .otf fonts. This problem would not show up on your Mac (in Preview.app), but when your PDF files are read with Adobe Reader. Kurt -------------- next part -------------- An HTML attachment was scrubbed... URL: From conable.1 at osu.edu Mon Mar 28 22:22:57 2011 From: conable.1 at osu.edu (William Conable) Date: Mon, 28 Mar 2011 22:22:57 -0700 Subject: Panorama and 10.6.7 In-Reply-To: <6E6402BC-743E-421F-9AEB-F3E9283D4DAA@mac.com> References: <4D916414.6030604@osu.edu> <6E6402BC-743E-421F-9AEB-F3E9283D4DAA@mac.com> Message-ID: <4D916CB1.8060309@osu.edu> An HTML attachment was scrubbed... URL: From peter.levitt at me.com Tue Mar 29 07:50:56 2011 From: peter.levitt at me.com (Peter Levitt) Date: Tue, 29 Mar 2011 10:50:56 -0400 Subject: Best technique for moving a lot of data from one database to another Message-ID: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> I have a file called Activity (250meg and about 375k records). I'm going to split it up into smaller files to make searching and handling faster and easier. Two questions; Is the lookup( and speedcopy technique as outlined in the handbook the best technique for moving records from the old database to the new database? I'm guessing I will move about 30k - 50k records at a time. Next, based upon the group's collective wisdom, at what size (# of records or sheer size in megs) does PAN slow down and the 'pinwheel' start to become common? Based upon the 'Big Lookup' thread a few weeks ago, this topic is touched on. But I'm looking for more information. Thanks as always. Peter From kjmeyer at mac.com Tue Mar 29 08:01:11 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Tue, 29 Mar 2011 17:01:11 +0200 Subject: Best technique for moving a lot of data from one database to another In-Reply-To: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> References: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> Message-ID: <34345DC8-BE7F-45F9-A127-A1392563803C@mac.com> Am 29.03.2011 um 16:50 schrieb Peter Levitt: > Is the lookup( and speedcopy technique as outlined in the handbook the best technique for moving records from the old database to the new database? I'm guessing I will move about 30k - 50k records at a time. I do not think so. In spreadsheet terms, I think the speedcopy technique is made to add columns of data to existing records in your database. Your goal, however, if I understand it correctly, is to divide your database into selections of rows/records. Then I would make a selection, delete unselected records and save the remaining records as a new smaller database. Kurt From JC at JamesCook.biz Tue Mar 29 08:17:37 2011 From: JC at JamesCook.biz (James Cook) Date: Tue, 29 Mar 2011 11:17:37 -0400 Subject: Best technique for moving a lot of data from one database to another In-Reply-To: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> References: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> Message-ID: At 10:50 AM -0400 3/29/11, Peter Levitt wrote: >Is the lookup( and speedcopy technique as outlined in the handbook the best technique for moving records from the old database to the new database? I'm guessing I will move about 30k - 50k records at a time. It depends. If your DBs are identical or have the same field names, it's faster to simply use Append or Replace. A lookup only works if you have records in the second database that are to be matched with records in the first. Rather than updating records, you said you're "moving records" so that wouldn't involve a lookup. An arraybuild is a quick way to move records if the database structures are different. You can build the array to match the new database order then use Append or Replace to load the array into the second database. -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From jetpuck04 at me.com Tue Mar 29 16:38:48 2011 From: jetpuck04 at me.com (Peter Levitt) Date: Tue, 29 Mar 2011 19:38:48 -0400 Subject: Best technique for moving a lot of data from one database to another In-Reply-To: <34345DC8-BE7F-45F9-A127-A1392563803C@mac.com> References: <26B81A7A-433A-4A56-8AD9-6D7EBA404436@me.com> <34345DC8-BE7F-45F9-A127-A1392563803C@mac.com> Message-ID: <012D5CCB-07F9-48AE-A684-BE3E4007C7C5@me.com> Some day I will realize the simplest, most obvious approach?is the approach. Thank you. Peter On Mar 29, 2011, at 11:01 AM, Kurt J. Meyer wrote: > > Am 29.03.2011 um 16:50 schrieb Peter Levitt: > >> Is the lookup( and speedcopy technique as outlined in the handbook the best technique for moving records from the old database to the new database? I'm guessing I will move about 30k - 50k records at a time. > > I do not think so. In spreadsheet terms, I think the speedcopy technique is made to add columns of data to existing records in your database. > > Your goal, however, if I understand it correctly, is to divide your database into selections of rows/records. Then I would make a selection, delete unselected records and save the remaining records as a new smaller database. > > Kurt > _______________________________________________ > Qna mailing list > Qna at provue.com > http://provue.com/mailman/listinfo/qna From qnaweb at provue.com Wed Mar 30 12:21:49 2011 From: qnaweb at provue.com (Eric Pearson) Date: Wed, 30 Mar 2011 12:21:49 -0700 (PDT) Subject: How To: Massage import from "cheshire" format into something useful... Message-ID: <20110330192149.9C28517DF60@provue.com> I've got a long list of pseudo "cheshire" labels in a word file. I can take this into Excel to get into a .csv file for Pano import, but am kind of lost from there... Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 How can I get this converted into a columnar format in Panorama in order to export to ordering system without manually dragging all the items into position in Excel? Eric From kjmeyer at mac.com Wed Mar 30 13:10:00 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Wed, 30 Mar 2011 22:10:00 +0200 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: <20110330192149.9C28517DF60@provue.com> References: <20110330192149.9C28517DF60@provue.com> Message-ID: Find a way you can identify where a new record begins. It looks like every new record starts with "Store # - ". The following applies if Store # means "Store 1234", not a number only. Open your data with a text editor and replace the carriage return in front of "Store " and that text string with a unusual character (e.g. the bullet character) followed by "Store ". Then you can replace all remaining carriage returns with tabs. At last you replace the bullet character with a carriage return. An Apple script that would do that in Tex-Edit plus would read like this: tell application "Tex-Edit Plus" activate replace window 1 looking for " Store " replacing with "?Store " set position of window 1 to {0, 44} replace window 1 looking for "^c" replacing with "^t" replace window 1 looking for "?" replacing with "^c" end tell Kurt Am 30.03.2011 um 21:21 schrieb Eric Pearson: > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 From warren_rekow at speedyquick.net Wed Mar 30 14:08:45 2011 From: warren_rekow at speedyquick.net (Rekow Warren) Date: Wed, 30 Mar 2011 15:08:45 -0600 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: <20110330192149.9C28517DF60@provue.com> References: <20110330192149.9C28517DF60@provue.com> Message-ID: <5FD4565A-0EBE-417A-8DDF-9426D7138296@speedyquick.net> Eric, I had a similar task recently. It was accomplished via scripts. Save your Word file formatted as a text file and create a new Panorama database having the following 7 text fields in sequence: "source", "store", "address", "city", "phone1", "phone2", "phone3". Add to this Panorama file the following 3 scripts, changed as noted in the script's comments. Put your text file in the same folder as the Panorama database. Then run the scripts, verify that the results are what you want, and change the scripts if needed. Give a holler if there is a problem. Warren ; 1) FILE LOADER SCRIPT ; run first, then verify that only the "source" field contains data ; commas must be replaced so that all data loads into "source" field ; assumes "~" character is not contained in the input file, change char if false local _file ; load & edit text file _file = fileload("","MyTextFile") ; NOTE: change name to match your file name _file = replace(_file,",","~") ; substitute for commas openfile "+ at _file" field source formulafill strip(source) ; remove leading and trailing spaces change " " " " ; truncate multiple sequential space chars change "~" "," ; restore the commas substituted above ----- ; 2) FIELD LOADER SCRIPT : run after File Loader script, then verify all fields loaded OK into every 6th record local _store, _address, _city, _phone1, _phone2, _phone3 select source ? "" ; select newly added records, ignore pre-existing records. firstrecord loop _store = source downrecord _address = source downrecord _city = source downrecord _phone1 = source downrecord _phone2 = source downrecord field store cell _store field address cell _address field city cell _city field phone1 cell _phone1 field phone2 cell _phone2 field phone3 cell source downrecord until info("EOF") ----- ; 3) CLEANUP SCRIPT ; run after Field Loader script, eliminates records no longer needed ; assumes every entry must have a value in "store" field select store ? "" ; only keep records where "store" field has a value removeunselected field source fill "" On Mar 30, 2011, at 1:21 PM, Eric Pearson wrote: I've got a long list of pseudo "cheshire" labels in a word file. I can take this into Excel to get into a .csv file for Pano import, but am kind of lost from there... Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 Store # - Name Address City, ST ZIP Phone 1 Phone 2 Phone 3 How can I get this converted into a columnar format in Panorama in order to export to ordering system without manually dragging all the items into position in Excel? Eric From jayschille at gmail.com Wed Mar 30 14:10:44 2011 From: jayschille at gmail.com (Jay Schille) Date: Wed, 30 Mar 2011 14:10:44 -0700 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: References: <20110330192149.9C28517DF60@provue.com> Message-ID: You can also use Panorama's fileload() function to put a text file's contents into a variable, manipulate the variable, and then import it into your target database. It would go something like this: local oCheshire oCheshire=fileload(folderID of the file to be converted, filename of that file) oCheshire=replace(oCheshire, ? (return character), ? (tab character)) oCheshire=replace(oCheshire, "Store #", ? (return character)+"Store #") openfile "+ at oCheshire" will then append this massaged file to your current database. This way, you don't need AppleScript or an intermediary application like Text-Edit. >Find a way you can identify where a new record begins. > >It looks like every new record starts with >"Store # - ". The following applies if Store # >means "Store 1234", not a number only. > >Open your data with a text editor and replace >the carriage return in front of "Store " and >that text string with a unusual character (e.g. >the bullet character) followed by "Store ". > >Then you can replace all remaining carriage returns with tabs. > >At last you replace the bullet character with a carriage return. > >An Apple script that would do that in Tex-Edit plus would read like this: > >tell application "Tex-Edit Plus" > activate > replace window 1 looking for " >Store " replacing with "*Store " > set position of window 1 to {0, 44} > replace window 1 looking for "^c" replacing with "^t" > replace window 1 looking for "*" replacing with "^c" >end tell > >Kurt > >Am 30.03.2011 um 21:21 schrieb Eric Pearson: > >> Store # - Name >> Address >> City, ST ZIP >> Phone 1 >> Phone 2 >> Phone 3 >> Store # - Name >> Address >> City, ST ZIP >> Phone 1 >> Phone 2 >> Phone 3 >> Store # - Name >> Address >> City, ST ZIP >> Phone 1 >> Phone 2 >> Phone 3 > >_______________________________________________ >Qna mailing list >Qna at provue.com >http://provue.com/mailman/listinfo/qna -- Jay Schille From JC at JamesCook.biz Wed Mar 30 15:04:12 2011 From: JC at JamesCook.biz (James Cook) Date: Wed, 30 Mar 2011 18:04:12 -0400 Subject: PrintPDF In-Reply-To: References: Message-ID: At 9:29 AM -0700 3/25/11, James Rea wrote: > the PrintPDF source code is included with so perhaps you can step thru it and see where the problem is occurring. The Type Mismatch is happening in _PrinterLib:PRINTPDF at: pdflist=listfiles(homesubfolder("Desktop:cups-pdf"),"") There was no such folder on my Desktop created by cups or Panorama and I see nothing in the documentation suggesting that I should have created one. The PRINTPDF procedure checks to see if such a folder exists and that it's empty, but it doesn't create it if it's not there. It seems then that this would be an error others should have been encountering too. Once I created the folder, that error ended, but now I get a failure to print within 30 seconds. Results are the same with all the variations I've tried on printpdf, including simply printpdf "" >Perhaps your CUPS virtual printer is not installed properly. Though in that case it is supposed to display a message to that effect, not get a type mismatch error. I've installed it and re-checked all the settings. It matches the documentation and is the default printer. OS X 10.6.7, Panorama 6.0.0 -- James Cook JC at JamesCook.biz Founder of HindSight Ltd. http://HSLtd.us Panorama Tutoring Custom Panorama Applications Specializing in Panorama Enterprise for the Web From robert at ameeti.net Wed Mar 30 15:53:24 2011 From: robert at ameeti.net (Robert Ameeti) Date: Wed, 30 Mar 2011 15:53:24 -0700 Subject: PrintPDF In-Reply-To: References: Message-ID: At 6:04 PM -0400, 3/30/11, James Cook wrote: >There was no such folder on my Desktop created >by cups or Panorama and I see nothing in the >documentation suggesting that I should have >created one. You are probably using Snow Leopard. That folder was automatically created in previous OSes. The internet posted work arounds for Snow Leopard speak of manually creating this folder. But alas, creating that folder is the not the cure all that you would hope it would be as you found. >The PRINTPDF procedure checks to see if such a >folder exists and that it's empty, but it >doesn't create it if it's not there. It seems >then that this would be an error others should >have been encountering too. > >Once I created the folder, that error ended, but >now I get a failure to print within 30 seconds. Ah yes. The infamous error that I just couldn't get around even with my extreme amount of patience. Due to this error, I've resorted to other awkward solutions as posted elsewhere. This error is due to the lock down and sand boxing of the OS by Apple. The creators of the CUPS pdf creator have just not yet accomplished an easy method to make all of this work in Snow Leopard. It would be nice if ProVUE could implement an easier method that we are currently needing to manipulate as it just isn't as easy as it should be to accomplish this common need. >Results are the same with all the variations >I've tried on printpdf, including simply >printpdf "" > >>Perhaps your CUPS virtual printer is not >>installed properly. Though in that case it is >>supposed to display a message to that effect, >>not get a type mismatch error. > >I've installed it and re-checked all the >settings. It matches the documentation and is >the default printer. > >OS X 10.6.7, Panorama 6.0.0 -- <><><><><><><><><><><><> Robert Ameeti - ePro? MailTo:robert at ameeti.net (949) 422-6866 FAX (267) 222-6866 PC & Mac computer specialist For the skeptic there remains only one consolation: if there should be such a thing as superhuman law it is administered with subhuman inefficiency. -- Eric Ambler <><><><><><><><><><><><> From kjmeyer at mac.com Thu Mar 31 00:40:33 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 31 Mar 2011 09:40:33 +0200 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: <20110330192149.9C28517DF60@provue.com> References: <20110330192149.9C28517DF60@provue.com> Message-ID: Am 30.03.2011 um 21:21 schrieb Eric Pearson: > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > > How can I get this converted into a columnar format in Panorama in order to export to ordering system without manually dragging all the items into position in Excel? Here is a procedure that makes a 6 column database out of any 1 column text file, as long as the line ending is a carriage return. You should have prepared a database with 6 fields; the "One Column Text File.txt" should be in the same folder as the database. The procedure loads the text file into an array (as variable) and replaces all carriage returns with tabs. Then it loops through the columns of the array and imports 6 of them per loop into one record that is appended to the database. - - - - - - - - - local lvArray , n , m lvArray = fileload("",""One Column Text File.txt") lvArray = replace(lvArray,chr(13),chr(9)) m = arraysize(fgArray,chr(9)) n = 0 loop importusing importcell(n)+chr(9)+ importcell(n+1)+chr(9)+ importcell(n+2)+chr(9)+ importcell(n+3)+chr(9)+ importcell(n+4)+chr(9)+ importcell(n+5)+chr(13) openfile "+ at lvArray" n = n + 6 until n = m - - - - - - - - - If you started with an empty database, you may need to delete the empty first record. Kurt From kjmeyer at mac.com Thu Mar 31 00:59:02 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 31 Mar 2011 09:59:02 +0200 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: <20110330192149.9C28517DF60@provue.com> References: <20110330192149.9C28517DF60@provue.com> Message-ID: Sorry, the name of one variable was misspelled in my last mail. "fgArray" should be "lvArray". Am 30.03.2011 um 21:21 schrieb Eric Pearson: > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > Store # - Name > Address > City, ST ZIP > Phone 1 > Phone 2 > Phone 3 > > How can I get this converted into a columnar format in Panorama in order to export to ordering system without manually dragging all the items into position in Excel? Here is a procedure that makes a 6 column database out of any 1 column text file, as long as the line ending is a carriage return. You should have prepared a database with 6 fields; the "One Column Text File.txt" should be in the same folder as the database. The procedure loads the text file into an array (as variable) and replaces all carriage returns with tabs. Then it loops through the columns of the array and imports 6 of them per loop into one record that is appended to the database. - - - - - - - - - local lvArray , n , m lvArray = fileload("",""One Column Text File.txt") lvArray = replace(lvArray,chr(13),chr(9)) m = arraysize(lvArray,chr(9)) n = 0 loop importusing importcell(n)+chr(9)+ importcell(n+1)+chr(9)+ importcell(n+2)+chr(9)+ importcell(n+3)+chr(9)+ importcell(n+4)+chr(9)+ importcell(n+5)+chr(13) openfile "+ at lvArray" n = n + 6 until n = m - - - - - - - - - If you started with an empty database, you may need to delete the empty first record. Kurt From dthmpsn1 at illinois.edu Thu Mar 31 04:54:14 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 31 Mar 2011 06:54:14 -0500 (CDT) Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: References: <20110330192149.9C28517DF60@provue.com> Message-ID: <20110331065414.CPM38366@expms1.cites.uiuc.edu> >local lvArray , n , m >lvArray = fileload("",""One Column Text File.txt") >lvArray = replace(lvArray,chr(13),chr(9)) >m = arraysize(lvArray,chr(9)) >n = 0 >loop >importusing > importcell(n)+chr(9)+ > importcell(n+1)+chr(9)+ > importcell(n+2)+chr(9)+ > importcell(n+3)+chr(9)+ > importcell(n+4)+chr(9)+ > importcell(n+5)+chr(13) >openfile "+ at lvArray" > n = n + 6 > until n = m > I haven't had a chance to test this, so I could be wrong, but I don't think you can use "" as the folder parameter in a fileload(, nor do I think you can use importusing when you are importing from a variable. Here is a version that avoids both of these potential problems. local lvArray lvArray = fileload(dbinfo("Folder",""), "One Column Text File.txt") lvArray =replace(lvArray,chr(13),chr(9)) arrayfilter lvArray,lvArray,chr(9),?(seq() mod 6 = 0, import()+chr(13), import()) lvArray = replace(lvArray, chr(13)+chr(9),chr(13)) openfile "&@lvArray" The arrayfilter places a carriage return after every 6th element of the array, and then the replace( that follows, gets rid of the tabs that followed those same elements. Then the entire array is imported all at once. Dave From kjmeyer at mac.com Thu Mar 31 05:40:33 2011 From: kjmeyer at mac.com (Kurt J. Meyer) Date: Thu, 31 Mar 2011 14:40:33 +0200 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: <20110331065414.CPM38366@expms1.cites.uiuc.edu> References: <20110330192149.9C28517DF60@provue.com> <20110331065414.CPM38366@expms1.cites.uiuc.edu> Message-ID: Am 31.03.2011 um 13:54 schrieb David Thompson: > I haven't had a chance to test this, so I could be wrong, but I don't think you can use "" as the folder parameter in a fileload(, nor do I think you can use importusing when you are importing from a variable. Please test it. I can confirm both methods work. 1. Panorama Reference wizard says: If this parameter (folder) is empty text (""), the folder containing the current database is assumed. 2. Importusing works with the openfile statement. And the documentation for openfile says: You can append data or replace data in the database, and you can use text files or variables. > Here is a version that avoids both of these potential problems. I am quite sure the arrayfilter method is faster than the loop with importusing. Another difference between our procedures: David's procedure replaces the data in the database (openfile "&@lvArray"), mine appends new data to the database (openfile "+ at lvArray"). Kurt From dthmpsn1 at illinois.edu Thu Mar 31 09:19:41 2011 From: dthmpsn1 at illinois.edu (David Thompson) Date: Thu, 31 Mar 2011 11:19:41 -0500 (CDT) Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: References: <20110330192149.9C28517DF60@provue.com> <20110331065414.CPM38366@expms1.cites.uiuc.edu> Message-ID: <20110331111941.CPM66046@expms1.cites.uiuc.edu> >Am 31.03.2011 um 13:54 schrieb David Thompson: > >> I haven't had a chance to test this, so I could be wrong, but I don't think you can use "" as the folder parameter in a fileload(, nor do I think you can use importusing when you are importing from a variable. > >Please test it. I can confirm both methods work. > Yes, you are right. They do. Dave From warren_rekow at speedyquick.net Thu Mar 31 18:05:49 2011 From: warren_rekow at speedyquick.net (Rekow Warren) Date: Thu, 31 Mar 2011 19:05:49 -0600 Subject: How To: Massage import from "cheshire" format into something useful... In-Reply-To: References: <20110330192149.9C28517DF60@provue.com> <20110331065414.CPM38366@expms1.cites.uiuc.edu> Message-ID: Kurt & Dave, Thanks for posting the arrayfilter scripts. Very nice! This approach is far better than the scripts I first posted to Eric. I rewrote some of my own text file importing scripts with arrayfilter statements containing conditionals and import() text funnels, thus reducing both the amount of code and execution time. Warren On Mar 31, 2011, at 6:40 AM, Kurt J. Meyer wrote: Am 31.03.2011 um 13:54 schrieb David Thompson: > I haven't had a chance to test this, so I could be wrong, but I don't think you can use "" as the folder parameter in a fileload(, nor do I think you can use importusing when you are importing from a variable. Please test it. I can confirm both methods work. 1. Panorama Reference wizard says: If this parameter (folder) is empty text (""), the folder containing the current database is assumed. 2. Importusing works with the openfile statement. And the documentation for openfile says: You can append data or replace data in the database, and you can use text files or variables. > Here is a version that avoids both of these potential problems. I am quite sure the arrayfilter method is faster than the loop with importusing. Another difference between our procedures: David's procedure replaces the data in the database (openfile "&@lvArray"), mine appends new data to the database (openfile "+ at lvArray"). Kurt