Very Hot Topic (More than 25 Replies) Table question. (Read 7361 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Table question.
Jun 14th, 2007 at 6:33am
Print Post Print Post  
Hi All,
     I have a table to the right, which is in a subform, which contains data that was inputted via a different part of the program, I want to show the data in the table within the sub form at this point it shows nothing but I know there is data in there.

Any help?

Paul D
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #1 - Jun 14th, 2007 at 2:21pm
Print Post Print Post  
Is the data in the subform naturaly or relationaly linked to the main / parent  record you are looking at when no data is in the subform?

Search the subform for everything just to see what comes up. In case your not sure how to do that put your curser in an element on the subform and press f7 for search mode then f10 to retrieve everything.

Keep us posted. Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #2 - Jun 14th, 2007 at 8:38pm
Print Post Print Post  
[quote author=BOBSCOTT link=1181802834/0#1 date=1181830862]Is the data in the subform naturaly or relationaly linked to the main / parent  record you are looking at when no data is in the subform?

[/quote]


It is naturaly linked.
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #3 - Jun 14th, 2007 at 9:05pm
Print Post Print Post  
If it is naturally linked, if you open your application go to a specific record enter new data in the subform then save the record, when you exit and return to that specific record the data should display in the subform.

try these steps and let us know if it works.

open app
go to specific record
add data to subform elements
save
exit
return to specific record
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #4 - Jun 14th, 2007 at 9:15pm
Print Post Print Post  
Hi BOBSCOTT
I under stand that, I think i might need to make myself a bit clearer, I want to enter data into a different Form (Merchant_Information), and not have to exit the app, and then go to another form (Plantrak) within the same database, and on that form contains the subform (Merchant_Information) which is in table form, and shows all of the data.


Thanks in advance.
Paul D
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #5 - Jun 14th, 2007 at 9:18pm
Print Post Print Post  
Sorry I misunderstood.

I will let the Lanticans answer this for sure, however my belief is you will need to use a relational method for that.

  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #6 - Jun 14th, 2007 at 9:23pm
Print Post Print Post  
BOBSCOTT wrote on Jun 14th, 2007 at 9:18pm:
Sorry I misunderstood.

I will let the Lanticans answer this for sure, however my belief is you will need to use a relational method for that.




Thats ok BOBSCOTT, thanks for the help I am going to read up on the "relational method" now

Paul D
  
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #7 - Jun 17th, 2007 at 11:36pm
Print Post Print Post  
Hummm still no closer to this, how ever I have taken it out of the tabs, and I now just have a subform, which I want the data to show.
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Table question.
Reply #8 - Jun 17th, 2007 at 11:59pm
Print Post Print Post  
drastixnz wrote on Jun 17th, 2007 at 11:36pm:
Hummm still no closer to this, how ever I have taken it out of the tabs, and I now just have a subform, which I want the data to show.


We'll need more information: are you naturally or relationally linked? In either case did you enter some records in the subform? If so, where did you enter the data - with the subform "standalone" or with the subform appearing on its parent?
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #9 - Jun 18th, 2007 at 12:41am
Print Post Print Post  
drastixnz wrote on Jun 17th, 2007 at 11:36pm:
Hummm still no closer to this, how ever I have taken it out of the tabs, and I now just have a subform, which I want the data to show.


Paul,

The tabs have nothing to do with the problem. I use tabs with linked subforms with great results.

 I think I might understand now of what you desire, you are entering data in one db form that you also want to display in another. Both databases are part of the same application. A relational link will work fine for what you want. You need to have a matching key in both databases that you will use when you set up the subform.

I originally only did things as described above because I did not feel totally comfortable with the natural linking. I now always use natural links, they work absolutely perfect every time.

Is there a particular reason you do not want to enter the data all from one form?

Keep us posted.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #10 - Jun 18th, 2007 at 1:09am
Print Post Print Post  
Yes there is Sad

I want all of the data to be shown, I have used Natural links but the data does not show.

I enter the data into a form called Plan Tracking Log, I save the information and scroll past into a blank record.

Then I open another form (Plan Tak V0.2) it has "Plan Tracking Log" as a subform table in it the data does not show there.

  
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #11 - Jun 18th, 2007 at 6:59am
Print Post Print Post  
Hi All,
I have created a subform that is relationally linked and I used a common field which is record number,

I now can "scroll" in search/update mode and I see records there but I want to display all records, thats how far I have got.

Regards Paul D




O when do i stop becoming a newbie
  
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #12 - Jun 18th, 2007 at 12:20pm
Print Post Print Post  
drastixnz wrote on Jun 18th, 2007 at 6:59am:
...I want to display all records...

You will need to use "/=" in the key field on the main (parent) form, to see all the relational subrecords in the subform.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #13 - Jun 18th, 2007 at 7:47pm
Print Post Print Post  
Quote:
drastixnz wrote on Jun 18th, 2007 at 6:59am:
...I want to display all records...

You will need to use "/=" in the key field on the main (parent) form, to see all the relational subrecords in the subform.



Hi Carl,
you mean something like this? Record # /= @GlobalValue("Record #")

Paul
  
Back to top
IP Logged
 
SirKitry
Member
*
Offline


No personal text

Posts: 13
Joined: Jul 2nd, 2005
Re: Table question.
Reply #14 - Jun 18th, 2007 at 11:36pm
Print Post Print Post  
Just some background on this query to give more of an overview about the overall purpose of what we're trying to achieve (Drastix & I collaborate on some work and this is one of them)

"The Table View on the RH side of the page will show a Merchant Name, Merchant Reference, Job Number, Job Name, Job Address, Job Street & Job City. Because it is easier to overview and interpret the information in a table and because of the variety of quick searches we do, we've chosen this type of view and there are only 2 types of activities that can occur on this Table.

1) Select/highlight a record (and the resulting data for editing purposes is shown in a tabbed layout for the Merchant, or the Job Details, etc, on the lower LH side so that pull-downs, combo boxes et al are available plus good control of the data entering the database(s) is exercised) and
2) command buttons are available immediately above the Table View that changes the sort order of the records shown. eg. Default sort is by Job Number but it is also possible to sort by the name of the Merchant or by the Merchants Reference, Street, City, etc etc and the columns will shift depending on which is the primary sort order.
At no stage do we want to allow the user any data editing capability in the Table View even though this possible. We will program to stop that so that any data changes can only be done on the tabbed forms that relate to the record selected in Table View.

Just so you're aware, in the middle LH side of the screen are command buttons that restrict or expand which records will be shown in the RH Table View.

Each button that restricts records will change to a different colour when in force so the user is aware of what restrictions are, or not, in operation. This will allow multiple types of record selection criteria. They will operate on a toggle basis so they need to be clicked a second time to deactivate."

SRKTRY

  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #15 - Jun 19th, 2007 at 3:31am
Print Post Print Post  
drastixnz wrote on Jun 18th, 2007 at 7:47pm:
you mean something like this? Record # /= @GlobalValue("Record #")

No. I mean that you should simply enter "/=" (without the quotes) into the primary key field on the parent form.

A forward slash, followed by an equal sign, stands for "not empty". Earlier, you wrote that you wanted all of the records to show in the subform, and "/=" will show all the records where the subrecord's key field is not empty.

Actually, I made an error. I was thinking of all records that had a value in the key field. But, if you really want ALL the records to show in the subform, you would be better to enter "=;/=" (without the quotes) in the parent record's key field. This would tell Sesame to populate the subform with all records where the key field is "empty" OR "not empty", effectively getting every last subrecord to show in the subform table.

EDIT: I had the restrict specs reversed like this "/=;=", but I corrected it to "=;/=".
« Last Edit: Jun 20th, 2007 at 1:15am by Carl Underwood »  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #16 - Jun 19th, 2007 at 7:21am
Print Post Print Post  
"primary key field " is there any way that I need to set the field up to be the primary key field?
  
Back to top
IP Logged
 
SirKitry
Member
*
Offline


No personal text

Posts: 13
Joined: Jul 2nd, 2005
Re: Table question.
Reply #17 - Jun 19th, 2007 at 8:52am
Print Post Print Post  
In actual fact, "ALL" _is_ a bit excessive when you consider the potential number of records available in a well used database.
We will have a pull-down that limits records by current month, 2 months, 6 months and 12 months.
The default will be '2 months' and can be extended or reduced as necessary.
(After 12 months the jobs that this system is keeping a track of are archived to a separate directory anyway)
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #18 - Jun 19th, 2007 at 12:03pm
Print Post Print Post  
drastixnz wrote on Jun 19th, 2007 at 7:21am:
"primary key field " is there any way that I need to set the field up to be the primary key field?

Based on your previous post where you wrote "I have created a subform that is relationally linked and I used a common field which is record number", it sounds like you have already set it up. It's something that is done when you first create the subform in Designer. If you built it as a relational subform, you were required to specify the "Parent Record Field" in the Subform Settings dialogue box. You can view it now by opening the parent form in Designer, right-clicking on the subform and selecting "Subform Settings" from the mini popup menu.
  


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



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #19 - Jun 19th, 2007 at 12:13pm
Print Post Print Post  
SirKitry wrote on Jun 19th, 2007 at 8:52am:
In actual fact, "ALL" _is_ a bit excessive...

Well that wasn't my idea, Paul said he wanted to display all records. I was letting him know how to do what he asked. Wink

Quote:
We will have a pull-down that limits records by current month, 2 months, 6 months and 12 months.

Might that be the reason he wasn't seeing all the records? Smiley

An easy way to see only the most recent records in the subform, is to set up a default sort for the subform, sorted by descending date.

BTW, what method are you using to limit the subform to only show a limited number of relationally linked records. If you are using the record number as the key, it should be showing all the matching records, regardless of the date.

When Paul wrote "I see records there but I want to display all records", it sounded to me like he was seeing all the records that matched the key (record number), but that he wanted to see all the records that were in the database. That's what lead to the suggestion to use "/=;=" in the parent's key field. But, now I'm not sure that this is what you guys are asking for. You'll need to clarify exactly which records you are wanting to display in the subform.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #20 - Jun 19th, 2007 at 8:01pm
Print Post Print Post  
Hello Carl,
I am sorry for the muck up, this is what I want.


I have a form called "Plan Track V0.2" within that form is a subform (Plan Tracking Log) which contains a table called "Plan Tracking Log".

I do enter the data into "Plan Tracking Log" via the Subform I enter it in at a different place, in the program.

When I open the form "Plan Track V0.2" I want the subfrom to show all of the data, that has been entered.

I am sorry for the misunderstading

Paul D
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #21 - Jun 19th, 2007 at 8:50pm
Print Post Print Post  
Let me try to muck this up even more.

Am I understanding you correctly when I say you have an application with 2 databases.

1 database is called "Plan Track V0.2”
1 database is called  Plan Tracking Log

On the form of Plan Track V0.2 you have a subform that is made of  the Plan Tracking Log.

If this interpretation is correct there is 2 methods to use this.

One method is you open your application go to Plan Tracking Log database and enter or update records.
You then leave that database and open "Plan Track V0.2”

When you go to a specific record you want the records associated with it that is in Plan Tracking Log to display in the subform.

This first method would use a relational link

The other method is
You open your application and it takes you to  "Plan Track V0. You either enter a new record or search to find an existing record. Once on the specific record, you enter data into a subform created of the Plan Tracking Log database.

Every time you return to the specific record in "Plan Track V0 it displays the associated data in Plan Tracking Log subform.

This second method would use a natural link (or a relational link with some sbasic programming)

Both of these are easy to create. If you can tell us what method as explained above you are attempting to use, we can help you reach your goal.

I hope I am on the right track this time  Smiley

Robert
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
SirKitry
Member
*
Offline


No personal text

Posts: 13
Joined: Jul 2nd, 2005
Re: Table question.
Reply #22 - Jun 19th, 2007 at 8:54pm
Print Post Print Post  
Carl Underwood quoted : Quote:
Might that be the reason he wasn't seeing all the records? Smiley


Paul hasn't coded for the restriction by months yet. He's working on just seeing the table filled up first, then will code for limiting whats seen Smiley
  
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #23 - Jun 19th, 2007 at 9:17pm
Print Post Print Post  
1 database is called "Plan Track V0.2”
1 database is called  Plan Tracking Log
* drastixnz Yes I have

On the form of Plan Track V0.2 you have a subform that is made of  the Plan Tracking Log.
/me Yes I have


One method is you open your application go to Plan Tracking Log database and enter or update records.
You then leave that database and open "Plan Track V0.2”
/me This is the way I am wanting to do it

When you go to a specific record you want the records associated with it that is in Plan Tracking Log to display in the subform.
/me No I want all of the records displayed in the subform, when i click on the record in the subform, it will display in the "Plan Track V0.2" form

I hope this is clearer, Thanks once again drastixnz
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #24 - Jun 19th, 2007 at 9:42pm
Print Post Print Post  
drastixnz wrote on Jun 19th, 2007 at 9:17pm:
* drastixnz No I want all of the records displayed in the subform, when i click on the record in the subform, it will display in the "Plan Track V0.2" form

[color=#ff0000][/color]


OK I believe you are saying you want every record to show from Plan Tracking Log in the subform no matter what record is showing in “Plan Track V0.2”

There is probably better and smarter ways to do this, I am sure the Lanticans or others will also chime in, but this should work for you.

Ad an element to Plan Tracking Log  named something like logKey.  Use logic to fill it with an X whenever a record is created. (one time mass updatate all existing records to have an X in this element)

Now

Ad an element to “Plan Track V0.2”    named PlanTracklogKey.  Use logic to fill it with an X whenever a record is created. (one time mass updatate all existing records to have an X in this element)

Open  “Plan Track V0.2”  and create a subform selecting Plan Tracking Log for the subform and select element PlanTracklogKey for parent record field and select logKey for child record field.

Now whenever you work with a record in “Plan Track V0.2” a match of the records will be found with every record in Plan Tracking Log and they will appear in your table view subform.

If you need any assistance in creating, updating or logic to fill the keys in the records let us know.

With Sesame there is always many ways to accomplish a task, this is just one method. I am not sure it’s a great method but until others chime in, it is an option.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #25 - Jun 21st, 2007 at 1:33am
Print Post Print Post  
Yes i will need help with the code for this.
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #26 - Jun 21st, 2007 at 4:53am
Print Post Print Post  
To mass update existing records open the Plan Track V0.2”  Database in search / update mode with the command tree open. (Open the actual application not Sdesigner)

Press f7 f10 to select all the records

On the left hand side of screen on the bottom half of the command tree (I think it opens in default as sort) click the third arrow until it is on Mass update property.

click on PlanTracklogKey (or any element it really does not matter) to open the mass update editor.

Enter:  
PlanTracklogKey = “X”
Click on test to check logic
Exit editor

Click on the first down arrow and select run.
Select continue to have it all run or select interactive to do 1 at a time

Do the same thing for Plan Tracking log database using element log key.

This now set both key fields in all the records to be X

Your relational table subform will now work if it is set up correctly.

Now open Sdesigner to make all future record key elements  be x you will need to put logic like (example below) in both databases. (just switch PlanTracklogKey with log key)

If Not @isblank(your element name that proves you want to save this record goes here)

Then
     {
     PlanTracklogKey = “x”
     }


Hope this is somewhat clear. Let me know if I lost you somewhere.

Robert
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #27 - Jun 21st, 2007 at 12:22pm
Print Post Print Post  
Bob,

They could avoid the need for another field in the child form, by building the subform to link the parent key to any field in the child, then mass updating the parent key field with "=;/=". This will retrieve all records in the subform. Sesame understands retrieve specs in a parent key field. You could event use wildcards in the key field, such as "B..".

What's really neat, is that you can even link a text field in the parent, to a date field in the child. This gives you the ability to use stuff like: "2007/02/01..2007/04/30", "2007/01/01..", or ">2007/05/31" in the parent key. That produces a table of subrecords within that date range. The only catch is that the rertrieve criteria in the key must be in the format that Sesame stores dates in on the disk (YYYY/MM/DD format).
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Table question.
Reply #28 - Jun 21st, 2007 at 12:59pm
Print Post Print Post  
Quote:
Sesame understands retrieve specs in a parent key field.


Just wanted to expand a little bit on what Carl said. Yes, Sesame does understand retrieve specs in the Parent key but the full family of retrieve spec options is not available to the Relational Link, i.e. functions like Min and Max will not work. The Relational Link does understand everything that is valid to put into a restriction spec. So if you just think of the Parent Key as a restriction spec as to what children it can display, you're gonna be on the right track. Restrictions are covered on pages 120-122 of the Sesame 1.1 User Guide in case anyone needs a reference.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Table question.
Reply #29 - Jun 21st, 2007 at 1:51pm
Print Post Print Post  
Thanks Carl & Ray for the good info. As I keep learning, there are always lots of ways to accomplish a task with Sesame!

I really think that after Drastixnz plays with Sesame and Sdesigner for a while he will find better ways to accomplish his goals. I figured keep all the steps in this first relational subform as clean and vanilla as possible so it is easy to see what’s going on under the hood.

The few things I am sure of is that Sesame can do what Drastixnz needs and wants and that people here on the forum will help and guide as much as he needs.

Keep us posted Drastixnz, we are all learning with you.  Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #30 - Jun 25th, 2007 at 3:25am
Print Post Print Post  
Paul D & SRKTRY,

If I correctly understood SRKTRY's explanation of what it is that you want to accomplish, your answer is in Sesame 2.0, which was just released over the weekend at the Sesame Users Conference.

My understanding is that you want a Table View subform AND a Form View subform of the same records, so that you can select the records you want to work with in the Table View subform, then have the Form View subform display that same record in order to take advantage of the more advanced layout elements. This approach has problems, like the fact that the record will be locked in the Form View subform, because the Table View subform will already have been the first to open that record. (And there are other issues which I won't get into now.)

In any case, I believe you may want to use the new Table View of your primary form (which can be activated automatically by programming) to display the list of records in a spreadsheet-type view. From there, you can click on a record, and then have a custom Menu Bar item that you can select to take you to the Form View of that record. From there, you can have a Command Button located on the form that would take you back to the Table View, if you wanted.

Both version 1.x and 2.x have Form View and Table View, but the Table View has been completely redesigned for version 2. It now shows the data in Table View formatted exactly the same as you have designed it to look Form View. That includes fonts, font sizes, foreground and background colors, formatting and alignment. Table View now also doesn't need to show ALL the fields/elements that exist on the form, you can have any subset OR all of them displayed in the table -- it's up to you. You can even save many various table layouts in saved Table Specs.

Version 2.0 has an additional 200 new SBasic Programming Commands! Sesame has taken an incredible leap in what can now be done with it.
  


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



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #31 - Jun 26th, 2007 at 12:57am
Print Post Print Post  
Paul D & SRKTRY,

You may want to take a look at this link regarding a custom "Toggle Table View" command on the menu bar.
http://www.lantica.com/Forum3/cgi-bin/yabb2/YaBB.pl?num=1182783981
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #32 - Jul 4th, 2007 at 10:50pm
Print Post Print Post  
Hello, people we both would dearly love to be in Baltimore to get version 2.0 and to meet every one, but being on the other side of the planet, it would cost a bit too much for us.

I am still working on this issue.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Table question.
Reply #33 - Jul 4th, 2007 at 10:54pm
Print Post Print Post  
drastixnz wrote on Jul 4th, 2007 at 10:50pm:
Hello, people we both would dearly love to be in Baltimore to get version 2.0 and to meet every one, but being on the other side of the planet, it would cost a bit too much for us.

I am still working on this issue.

2.0 will be available for everyone soon.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #34 - Jul 4th, 2007 at 11:15pm
Print Post Print Post  
Quote:
Paul D & SRKTRY,

If I correctly understood SRKTRY's explanation of what it is that you want to accomplish, your answer is in Sesame 2.0, which was just released over the weekend at the Sesame Users Conference.

My understanding is that you want a Table View subform AND a Form View subform of the same records, so that you can select the records you want to work with in the Table View subform, then have the Form View subform display that same record in order to take advantage of the more advanced layout elements. This approach has problems, like the fact that the record will be locked in the Form View subform, because the Table View subform will already have been the first to open that record. (And there are other issues which I won't get into now.)

In any case, I believe you may want to use the new Table View of your primary form (which can be activated automatically by programming) to display the list of records in a spreadsheet-type view. From there, you can click on a record, and then have a custom Menu Bar item that you can select to take you to the Form View of that record. From there, you can have a Command Button located on the form that would take you back to the Table View, if you wanted.

Both version 1.x and 2.x have Form View and Table View, but the Table View has been completely redesigned for version 2. It now shows the data in Table View formatted exactly the same as you have designed it to look Form View. That includes fonts, font sizes, foreground and background colors, formatting and alignment. Table View now also doesn't need to show ALL the fields/elements that exist on the form, you can have any subset OR all of them displayed in the table -- it's up to you. You can even save many various table layouts in saved Table Specs.

Version 2.0 has an additional 200 new SBasic Programming Commands! Sesame has taken an incredible leap in what can now be done with it.


Thanks Carl... Paul & I were not aware of the restriction with displaying the same data in both Table View _and_ Form View simultaneously but what we'd like to achieve still fits perfectly within that restriction.
Previously I mentioned that we do not want users to edit records directly in the Table View, only in the Form View so...

Do you have any code suggestions that will allow us to read the records in, based on the filters that may restrict what records will be visible (and refresh if any data changes, including new records) and display only in a table view (note the reduction in capitalised words to denote that this is a view that looks like a table but it is NOT Sesame's Table View) and have a button next to each visible record (lets say the max number of records visible in the tabled view is set at 20 ?) and when the button next to the record to be edited in the table view is clicked, that is the data that presents itself in the active Form View ?
At no stage do we want the user to even think that they can edit data within a tabled view but we do want them to be able to select, from that tabled view which record to edit in the Form data showing in the lower left of the screen.
To summarise... I think we only need to have the records in the tabled view as a "Read Only" per se.
  
Back to top
IP Logged
 
SirKitry
Member
*
Offline


No personal text

Posts: 13
Joined: Jul 2nd, 2005
Re: Table question.
Reply #35 - Jul 5th, 2007 at 1:26am
Print Post Print Post  
drastixnz wrote on Jul 4th, 2007 at 11:15pm:
Thanks Carl...
Paul & I were not aware of the restriction with displaying the same data in both Table View _and_ Form View simultaneously but what we'd like to achieve still fits perfectly within that restriction.
Previously I mentioned that we do not want users to edit records directly in the Table View, only in the Form View so...
Do you have any code suggestions that will allow us to read the records in, based on the filters that may restrict what records will be visible (and refresh if any data changes, including new records) and display only in a table view (note the reduction in capitalised words to denote that this is a view that looks like a table but it is NOT Sesame's Table View) and have a button next to each visible record (lets say the max number of records visible in the tabled view is set at 20 ?) and when the button next to the record to be edited in the table view is clicked, that is the data that presents itself in the active Form View ?
At no stage do we want the user to even think that they can edit data within a tabled view but we do want them to be able to select, from that tabled view which record to edit in the Form data showing in the lower left of the screen.
To summarise... I think we only need to have the records in the tabled view as a "Read Only" per se.


Carl,
What we're working through is an adaptation of what Tom suggested in his May InsideSesame article on "Managing Table View Subforms".

We don't want our users being given any indication they could edit within the tabled view (ie. the cursor simply cannot be positioned anywhere in the tabled view) but they do need to select from the tabled view "somehow" which record they want to edit in the Form data which resides on the same page.

There are 3 primary sets of buttons - 1 set for limiting which records will be shown in the tabled view, 1 set for changing the sort order of the records being shown (and code to swap the sort column to be the leftmost column of the tabled view), and the last a set of buttons - 1 per record in the tabled view that allow selection of the record to be edited.

How appropriate is a "Mass Update" routine on the form to produce a filtered/re-filtered & sorted/re-sorted read-only tabled view ? Simply by clicking a button the user can drop or include what they need to see and the ability to do this quickly is important. Same for sort order.

We took to heart Tom's suggestion that a) data being entered is much more controllable for data-typing and b) facilities such as combo and drop-down boxes are available to a Form that are not available to a Sesame Table View to assist users by presenting to them only the entry types permitted for any given field.

Thanks for all the help given so far. What we're attempting is ambitious given our present knowledge of Sesame but fully within even the current Sesames (v1.x) capabilities. The more we learn the better we code !

Would a screenie of the present forms' layout give a better indication of what we're aiming for ?

SRKTRY
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #36 - Jul 5th, 2007 at 3:10am
Print Post Print Post  
drastixnz wrote on Jul 4th, 2007 at 11:15pm:
Previously I mentioned that we do not want users to edit records directly in the Table View, only in the Form View so...

To summarise... I think we only need to have the records in the tabled view as a "Read Only" per se.

Yes, there is a new programming commad called "@FormViewType", which will allow Sesame to know if the Table View is being viewed. If it is, programming could set all the elements to Read-Only. The user could then click on a custom menu bar command that will change the view to Form View, and programming could change all the elements to Writable.
  


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



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Table question.
Reply #37 - Jul 5th, 2007 at 4:02am
Print Post Print Post  
SirKitry wrote on Jul 5th, 2007 at 1:26am:
(ie. the cursor simply cannot be positioned anywhere in the tabled view) but they do need to select from the tabled view "somehow"...
...and the last a set of buttons - 1 per record in the tabled view that allow selection of the record to be edited.

Rather than a separate button for each subrecord, I would suggest using some type of popup menu from which you could pick from.
BOBSCOTT is doing something somewhat like that in this thread: http://www.lantica.com/Forum3/cgi-bin/yabb2/YaBB.pl?num=1182967389

Quote:
How appropriate is a "Mass Update" routine on the form to produce a filtered/re-filtered & sorted/re-sorted read-only tabled view ? Simply by clicking a button the user can drop or include what they need to see and the ability to do this quickly is important. Same for sort order.

You wouldn't use Mass Update. Sesame has a another great feature, in that you can place most search specs into the parent key field. For instance, if the child (subform) key field contains last names, you can enter "Alb.." to retreive all subrecords where the last name begins with "Alb". You can use multiple specs like "Alb..;Bar..;Jon..;Smith..". You can even use things like "<G", and so on. This is how you would acheive the filtered list of subrecords.

The sorting is just as easy. Sesame has a command named "@LoadSortSpec", which can load a saved sort spec. Then you use "Formcommit("YourSubformName")" to trigger the re-sort.
EDIT: I've got subforms on the brain. The above should read "Formcommit("YourMainformName")"

Quote:
Would a screenie of the present forms' layout give a better indication of what we're aiming for ?

Yes.
« Last Edit: Jul 6th, 2007 at 3:22am by Carl Underwood »  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #38 - Jul 5th, 2007 at 5:52am
Print Post Print Post  



Here is screen shot
  
Back to top
IP Logged
 
SirKitry
Member
*
Offline


No personal text

Posts: 13
Joined: Jul 2nd, 2005
Re: Table question.
Reply #39 - Jul 5th, 2007 at 6:50am
Print Post Print Post  
In the previous screenie, everything in the top left above and including the A-M/N-Z buttons are the filters that select which records are shown. As filters become active they change colour. Multiple filters may be in operation at once.

In the lower left is the Form View and the only place where data can be changed.

On the right is the table view with buttons at the bottom to change the sort order.

This is where we're presently at but expect that many changes to the layout will be required before letting our users loose on it.
(Effectively we do not need Next, Previous, First, Last, etc as the filters will reduce the records shown and the sort order will produce the desired records in a recognisable order that can be scrolled until the desired record to be edited is in view). We will not program the form with the default "Last 2 months jobs" filter until we are sure we're getting the right records).

The application is designed to track plans being handled by the company that may be in several different locations including oversea's.
  
Back to top
 
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #40 - Jul 5th, 2007 at 10:42pm
Print Post Print Post  
Thanks for explaining, dave
  
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #41 - Jul 9th, 2007 at 1:00am
Print Post Print Post  
I have made a screen shot
  
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #42 - Jul 11th, 2007 at 10:40pm
Print Post Print Post  
YAAAA FIXED!!!!!


Thank you so much to the following people

SirKitry
Ray the Reaper
Hammer
BOBSCOTT
An Carl Underwood


Thank you so much for the help, each time I use this i learn more and more and more, i dont think I will stop learning,

Kind Regards
  Paul
  
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Table question.
Reply #43 - Jul 16th, 2007 at 11:35pm
Print Post Print Post  
What i did i followed BOB SCOTT's information and instead of the code he said I placed

If @isBlank(Record #) Then
Record # = "x"

And it now works in update mode perfectly once again thanks.
  
Back to top
IP Logged
 
charliebrown
Junior Member
Members
**
Offline


Beware...novice at large

Posts: 97
Location: Sacramento, CA
Joined: Apr 19th, 2006
Re: Table question.
Reply #44 - Oct 16th, 2007 at 9:14pm
Print Post Print Post  
Quote:
drastixnz wrote on Jun 17th, 2007 at 11:36pm:
Hummm still no closer to this, how ever I have taken it out of the tabs, and I now just have a subform, which I want the data to show.


We'll need more information: are you naturally or relationally linked? In either case did you enter some records in the subform? If so, where did you enter the data - with the subform "standalone" or with the subform appearing on its parent?


I know this is an old post...I'm curious about this too.  Is there a probelm, depending on what type of linking you have between  the parent and subforms whether you add or update data on the subform in standalone or with the subform appearing on the parent form?
I'm designing/redesigning a couple of appliocations and it would be wonderful to be able to enter/modify data with the subform on the parent form.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Table question.
Reply #45 - Oct 16th, 2007 at 9:43pm
Print Post Print Post  
charliebrown wrote on Oct 16th, 2007 at 9:14pm:
I know this is an old post...I'm curious about this too.  Is there a probelm, depending on what type of linking you have between  the parent and subforms whether you add or update data on the subform in standalone or with the subform appearing on the parent form?
I'm designing/redesigning a couple of appliocations and it would be wonderful to be able to enter/modify data with the subform on the parent form.

Charlie,

The app being described here is trying to stand on it's head a bit. Your requirements are probably much more standard. Why don't you start a new thread with what you want to do with your subforms and we'll try to help you out.

  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
charliebrown
Junior Member
Members
**
Offline


Beware...novice at large

Posts: 97
Location: Sacramento, CA
Joined: Apr 19th, 2006
Re: Table question.
Reply #46 - Oct 16th, 2007 at 9:47pm
Print Post Print Post  
Hammer wrote on Oct 16th, 2007 at 9:43pm:
charliebrown wrote on Oct 16th, 2007 at 9:14pm:
I know this is an old post...I'm curious about this too.  Is there a probelm, depending on what type of linking you have between  the parent and subforms whether you add or update data on the subform in standalone or with the subform appearing on the parent form?
I'm designing/redesigning a couple of appliocations and it would be wonderful to be able to enter/modify data with the subform on the parent form.

Charlie,

The app being described here is trying to stand on it's head a bit. Your requirements are probably much more standard. Why don't you start a new thread with what you want to do with your subforms and we'll try to help you out.



I agree...better to take the direct route  Embarrassed  Ok...let's "GOTO..."ummm...maybe not
  
Back to top
 
IP Logged