Hot Topic (More than 10 Replies) Identifying LE's (Read 1291 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Identifying LE's
Dec 28th, 2005 at 11:05pm
Print Post Print Post  
Hi -

I would like to know whether there is an "easier" way (than I am using) to identify "unknown" LE's.

For example, I was just working on a form that revealed an LE3 and I had abolutely no idea what it was.  The only way I could locate it was to go through (in the designer file) field by field until I finally found what field was bound to that element - thus allowing me to assign a more appropriate name to the LE.

Unfortunately, it was one of the last fields in my database, so it took considerable effort.

Is there an easier way for me to have done this?

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Identifying LE's
Reply #1 - Dec 29th, 2005 at 1:34am
Print Post Print Post  
I usually keep a runtime copy of the application open and use the spec handler. It highlights the LE if focus on is on the handler. If focus is on the form, the handler highlights (and scrolls to) the matching name.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Identifying LE's
Reply #2 - Dec 29th, 2005 at 1:39am
Print Post Print Post  
Mark

I am drawing a "complete blank" on this one.

What is a "run time" copy?  Do you mean the database itself as opposed to the DSR file?

What/where is the "spec handler?"  Perhaps I've seen and/or used it but am not sure what you are referring to.

If it's an easier way to identify LE's that I can't recognize, I would certainly want to know how to utilize it.
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Identifying LE's
Reply #3 - Dec 29th, 2005 at 1:55am
Print Post Print Post  
When I say "runtime" I mean sesame.exe as opposed to sdesigner.exe. I usually build my .dsr file from a .db file, then when I am working in SDesigner, I "save as a new db" as opposed to reconciling. If you are not on a client/server setup, there really isn't any need to ever reconcile - so long as your master file is a .db file (as opposed to a .dsr file).

Because I always have a new .db and a new .dsr - I can keep a copy of runtime running while I am working in SDesigner. I use it for reference purposes, to keep track of the changes I want to make, while I make them.

The spec handler is the frame in bottom left corner of the Sesame runtime. It lists all of the bound LEs on your form. If you click on any of them in the list, the LE on the form is highlighted and scrolled to. If you click on an LE on the form, the spec handler will highlight and scroll.

Here it is highlighted in purple:


As I posted a couple of weeks ago, Sesame 2.0 has an "attributes table", seen below - specifically for this very purpose:
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Identifying LE's
Reply #4 - Dec 29th, 2005 at 2:51am
Print Post Print Post  
Mark -

You're killing me!!!!

Every time I think I am progressing well with the use of Sesame you give me an answer that makes me feel like I am completely retarded and to such a significant degree that I am not even able to realize it.  lol

This is another situation where I thought I had an "understanding" of process/procedures and your answer raises many questions in my mind.



First, I always thought that all design work (forms, adding fields and/or layout elements - whichever is which), programming, reports, etc. HAD to be done in a DSR file.  I suppose - in my mind - it followed that the DSR file would always HAVE to be the "master."

Even though I am running these programs as a "stand-alone" application - without worrying about networking ... I do all my design work in the DSR file, save it, and then reconcile my DB file.

Now - if I understand some of what you are saying - I could use the DSR "program" to OPEN a DB file and do my design work right within the DB file itself.  Is that correct?  If so, it is a totally "new" concept for me and I 'll have to give it a lot of thought and experimentation.



As for the spec handler, I of course have used it - I simply never knew it had a name, because it doesn't appear anywhere on the form.



Now, continuing ....

Quote:
If you click on any of them in the list, the LE on the form is highlighted and scrolled to.


That's a bit of a help but here are two inherent problems with this.  First (at least in my forms, perhaps because of choice of color or whatever), it is very difficult to see the highlighting around the LE.   So, I still have to look from LE to LE - one by one - to "find" (if my eyesight is working properly) the highlighted field.

Second, it seems to me that the highlighting occurs only when a field (LE?) label matches what is in the list.  For example if I click on Cell the LE with a label of cell (bound to a field also called cell) is highlighted; HOWEVER if I click on CommentsCell  (in the list) the LE with a label of Comments (and there are several LE's with that Label) is NOT highlighted even though it is bound to a field with the name CommentsCell.

Likewise (and since I LOVE tabs, I use them in most of my databases), if I click on something in the list which is on a tab that does not have the focus, the corresponding LE is NOT highlighted even if I open the correct tab.



The attributes table looks like it "might" be a help although I'm not sure it would in the particular situation I described.  BUT, how on earth do I find it (without having to look through your earlier posts).  I could not find anything that would "obviously" lead me to it in the database and I could not find anything in either the User Guide or the Programming Guide that referred to it.

P.S. NEVER MIND THAT LAST QUESTION.  I just re-read your earlier reply and see that it WILL be available in 2.0.  So - when can I get my copy of 2.0  Huh?  Huh?  Huh?    lol
OK.  Let me have it!  lol
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Identifying LE's
Reply #5 - Dec 29th, 2005 at 3:21am
Print Post Print Post  
Quote:
I could use the DSR "program" to OPEN a DB file and do my design work right within the DB file itself.

When you attempt to open a DB file in SDesigner, it will prompt you for a DSR file to save it to, essentially making a copy of the application for you to work on. But, you are still modifying the DSR at this point. Since you are working in a copy (which contains the design AND all of the data) of the DB file, you can 'Save As New Application" after you modify it. This copies the modified DSR (with any data records it contains) to a DB (Application) file.

When using SDesigner, I always click on the DB file first, then select the corresponding DSR file. This has a couple benefits:
1) I get another backup copy of my data (in addition to my regular backup copy).
2) It brings any 'saved spec' changes in the DB file, over to the DSR file.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Identifying LE's
Reply #6 - Dec 29th, 2005 at 3:32am
Print Post Print Post  
Carl -

I follow some of what you are saying, and some I don't.  But I am "overwhelmed" with new information at present so I just can't explore all my questions.

There is one point, though, I would like to clarify.  If you open your DB file and then select the matching Designer file and then save it - are you Saving it to the same file name and thus overwriting your master database OR are you saving it with a different name?  If you are saving it with a different name (which I would think is "safer") then how on earth do you know the name of your MOST RECENT and MASTER file?

I believe Bob Hansen appends #'s to the name like Master1, Master2, etc. which would mean that the highest number would always be the most recent (master) file.  BUT, what if you are doing "lookups" to the database?  Do you not then have to go in and modify the lookup statements?  OR - do you copy your highest number database back to a "standard" name e.g. have Master be your master and then copy Master10 back to (and overwrite) Master ... and then copy Master11 back to Master, etc. etc.

Arrgghhhh!   

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Identifying LE's
Reply #7 - Dec 29th, 2005 at 3:50am
Print Post Print Post  
Quote:
First, I always thought that all design work (forms, adding fields and/or layout elements - whichever is which), programming, reports, etc. HAD to be done in a DSR file.  I suppose - in my mind - it followed that the DSR file would always HAVE to be the "master."

Even though I am running these programs as a "stand-alone" application - without worrying about networking ... I do all my design work in the DSR file, save it, and then reconcile my DB file.

Now - if I understand some of what you are saying - I could use the DSR "program" to OPEN a DB file and do my design work right within the DB file itself.  Is that correct?  If so, it is a totally "new" concept for me and I 'll have to give it a lot of thought and experimentation.


Spencer,
Not exactly. Carl's statements are more accurate. You decide which you prefer as the "master" file, either the .db or the .dsr. But, in either case, SDesigner edits .dsr files, and runtime can "run" either .dsr or .db files.

I almost always use the .db file as the "master". Whenever I need to change the design I use SDesigner to make a new .dsr file from that .db file. When I am done making changes, I save the results using the "Save as a New DB" command - creating a new .db file. At that point, I have just "automatically" made a backup. I usually number the .dsr files as I create them.

For example, when you sent me your application, it was named "MiddleVillagers.db". I opened that .db in SDesigner - saving it as "mv01.dsr". I worked on it for a while, and when I was done, I saved it as a new .db called "mv01.db". If I work on it again, I will open "mv01.db" in SDesigner and save it as "mv02.dsr", eventually saving the result as "mv02.db".

Note, because I am not running client/server (usually) - I know that no one has changed my .db file, while I was working on the .dsr file - so I have no reason to reconcile.

If you run from command line (which I prefer), you never really need the .db files at all. Sesame (runtime - "sesame.exe") can load and run a .dsr file right from the command line:
Code
Select All
C:\Sesame> Program\Sesame Customers.dsr
 


works just fine. The only difference between a .dsr and a .db (other than the extension) is a single internal flag. Otherwise they are structurally identical.

Quote:
You're killing me!!!!

Every time I think I am progressing well with the use of Sesame you give me an answer that makes me feel like I am completely retarded and to such a significant degree that I am not even able to realize it.  lol


Please don't say that! I am very sorry if I ever make anyone ever feel like that. Please remember that the oldest original portion of Sesame is a little bit of code I wrote 22 years ago. I have been living, eating, and breathing Sesame for 10 to 16 hours a day, seven days a week, for six solid years. I have opportunities to "know" Sesame that are simply impossible for end users. That familiarity can make me appear "smart" (or at least well informed) about Sesame. But that you or anyone else does not know these things, is merely an indication that we still need to communicate better - it has nothing to do with being smart or not smart.

  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Identifying LE's
Reply #8 - Dec 29th, 2005 at 4:02am
Print Post Print Post  
Mark -

The comment about making me feel retarded was just a stab at tongue-in-cheek humor.

First of all, NO one can MAKE me feel anything.  Only I control that.  Secondly, I have too much self-esteem to ever feel retarded ... and, certainly, I mean no offense to anyone who is indeed retarded.  That's just another "condition" of life and we ALL have our own "conditions."

But, the truth is I am amazed at how I thought there was only one way to approach database design and that was via the .DSR file.  As I said earlier, I will have to give this a lot of thought and decide whether I want to understand it better and then play with it.

But, assuming I ever do work for someone on a network, wouldn't I then have to "revert" to the method I am currently using?  If so, I feel that I am better off with one, approach.

Also, as asked before, what if you have lookup statements to the MV01.db?
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Identifying LE's
Reply #9 - Dec 29th, 2005 at 4:27am
Print Post Print Post  
Quote:
But, assuming I ever do work for someone on a network, wouldn't I then have to "revert" to the method I am currently using?  If so, I feel that I am better off with one, approach.

Yup. As a matter of fact, Erika and Ray both use .dsr files as their "master files" and, even when working standalone - reconcile. Its really a matter of preference. The only reason not to reconcile is that reconciling does not create the "automatic" backup you get going to a new .db file.
Quote:

Also, as asked before, what if you have lookup statements to the MV01.db?


You mean, what do I do if the file is renamed and XLookups refer to the old name?

When I am being a good boy, I keep any strings that may need to be updated, in global variables that I set in the global code section. Most X commands refer to @fn, and don't need updated.

But remember that, usually when I am working on an application, its a work in progress for a customer and constantly changing - or I am debugging either Sesame or an application. In either case, updating a few XLookups when a filename changes usually isn't too much work. The XLookup are usually in subroutine or functions in global code - so there are usually only a few to do.

Or, if XLookups is not what I am testing, I just let the XLookups fail, and then set the filenames back to the original names when I am done.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Identifying LE's
Reply #10 - Dec 29th, 2005 at 4:53pm
Print Post Print Post  
Spencer,

[quote]There is one point, though, I would like to clarify.  If you open your DB file and then select the matching Designer file and then save it - are you Saving it to the same file name and thus overwriting your master database OR are you saving it with a different name?[/quote]
If I want to modify "MyApp.db", I almost always will:
1) Open SDesigner.
2) Select the 'Open Application' icon.
3) Click on "MyApp.db". (Note that this is the DB not the DSR.)
4) Click on "MyApp.dsr", then the 'Accept' button.
5) Select 'Yes', to replace the existing file named "MyApp.dsr".
6) Make any modifications I want.
7) 'Save As New Application'  to a test file named "_Test.db" (the underscore makes it stay at the top of the list, for quick & easy access in a large list).
8) Click on a desktop icon that I have set up just to launch the "_Test.db" file, and test the changes I just made.
9) Go back to SDesigner (which is still open) to tweak the code if needed.
10) Make any needed changes. (At this point, the test app is still open in Sesame runtime, so I can use it for reference purposes like the way Mark mentioned.)
11) Close the Sesame runtime session that had the "_Test.db" file open.
12) 'Save As New Application' -OR- 'Reconcile Existing Application' to the "_Test.db" file, depending on whether or not I want any test records I added the first time I tested it, to be there for the next testing.
13) Repeat step 8 above.
14) When everything is testing properly, I 'Reconcile Existing Application' to the original working application named "MyApp.db".
15) If I completely screw up the design or code, I can simply repeat steps 3 and 4 above, to get back to the previous design, and start over or leave well enough alone if the new idea wasn't as good as I had imagined. :)

I rarely use Preview Mode, because I have found in the past that (besides the X-Family of commands) there are some things that work slightly different in Preview Mode and runtime. I will use Preview Mode to "see how thing look" after layout changes, but I almost always test changes to code in runtime. Plus, I use a lot of X-Family commands. Hence, the reason for the "_Test.db" file and desktop icon to launch it.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged