dbTalk Databases Forums  

GTRR script step & windows question

comp.databases.filemaker comp.databases.filemaker


Discuss GTRR script step & windows question in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lansingoogle
 
Posts: n/a

Default GTRR script step & windows question - 01-02-2007 , 08:35 PM






FM 8 Adv., Macs.
Is there any way to select an existing window in which to display
related records with the GTRR script step? I have a navigation layout
that pops up, the user selects a record from a dynamic table, and that
triggers the GTRR step. But then my only options seem to be to display
the result in the window holding the navigation table or to open a NEW
window, neither of which is desirable. I'd like to return the user to
the original window that spawned the navigation window, but now focused
on the related record.

Any help gratefully welcomed...


Reply With Quote
  #2  
Old   
Grip
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-02-2007 , 09:33 PM






Why isn't a new window desirable? Is it the name? Or having an extra
window? Or the status area? All those can be changed. What qualities
does the old window have that you want to preseve?

G



lansingoogle wrote:
Quote:
FM 8 Adv., Macs.
Is there any way to select an existing window in which to display
related records with the GTRR script step? I have a navigation layout
that pops up, the user selects a record from a dynamic table, and that
triggers the GTRR step. But then my only options seem to be to display
the result in the window holding the navigation table or to open a NEW
window, neither of which is desirable. I'd like to return the user to
the original window that spawned the navigation window, but now focused
on the related record.

Any help gratefully welcomed...


Reply With Quote
  #3  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 12:34 AM



It's hard to visualise what you are driving at. It is in your mind, but you
didn't pass it in mine.
Grip asked you questions that relate to that too.
The only thing at this stage I can think of is the followong - if I am right
- : when in your present layout - the one you like - you are in a table
say TableAA which is related to TableBB from which you want to see some
fields of a related record. If so, you may create in TablAA new fields that
would call by calculation the related fields of BB. To be concrete, if your
mysterious GTTR would had led you to show a 'Name' field and an Address'
field of TableBB, when in layout-TableAA, you may create two new fields :
'NameFromBB (calc) = TableBBRelationship::Name
and
'AddressFromBB (calc) = TableBBRelationship::Address
Or else, directly in layout-TableAA, put two fields that are simply
'TableBBRelationship::Name' and 'TableBBRelationship::Address'.
It is so elementary that it is most probably not the answer you were
expecting.
I would advise you to tell more about your application and give details on
what you really want to achieve.
Remi-Noel

"lansingoogle" <filemaker (AT) jillo (DOT) com> a écrit dans le message de news:
1167791725.537935.112030 (AT) v33g20...oglegroups.com...
Quote:
FM 8 Adv., Macs.
Is there any way to select an existing window in which to display
related records with the GTRR script step? I have a navigation layout
that pops up, the user selects a record from a dynamic table, and that
triggers the GTRR step. But then my only options seem to be to display
the result in the window holding the navigation table or to open a NEW
window, neither of which is desirable. I'd like to return the user to
the original window that spawned the navigation window, but now focused
on the related record.

Any help gratefully welcomed...




Reply With Quote
  #4  
Old   
lansingoogle
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 09:48 AM



First, apologies for the imprecise description of my dilemma...
I'll try to be more helpful:

I am starting from a layout that shows records from a large table of
names/addresses etc. The user can click a "Find" button that produces
a pop-up window that contains a global "name" field which is related to
the originating table (using an exploded-text calculation of the last
name: i.e., they type the first couple of letters of the name into the
global field, <tab>, and names starting with those letters appear in a
list in the same pop-up window). Once the name they're looking for
appears, they click on it and GTRR takes them to that related record in
the table of names/addresses. I don't want the original layout to
morph into the nav layout then back into the original layout... that's
too busy. I just want the user to see the pop-up, click on the name,
and go BACK to the original layout focused on the correct record. If I
could use "Select Window" as part of the GTRR script step, it would
solve my problem, but I don't think I can.

If there's an easier way of doing all this, I'd be interested...

thanks again.


Reply With Quote
  #5  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 10:26 AM



The key is your sentence 'they click on it and GTRR takes them to..'. In any
case, that action of 'clicking on it' launches something. If that
'something' is only the line 'Go to Related Record', you can't help it as it
will go to that record and that's it. But if you change that 'something'
into 'Perform Script', in that script you have full control. ie you may put
first the line go to GTTR, then add 'Go to your previous layout' followed
may be with a 'halt'.
Does this work this time ?
Remi-Noel


"lansingoogle" <filemaker (AT) jillo (DOT) com> a écrit dans le message de news:
1167839300.605365.50610 (AT) a3g2000...oglegroups.com...
Quote:
First, apologies for the imprecise description of my dilemma...
I'll try to be more helpful:

I am starting from a layout that shows records from a large table of
names/addresses etc. The user can click a "Find" button that produces
a pop-up window that contains a global "name" field which is related to
the originating table (using an exploded-text calculation of the last
name: i.e., they type the first couple of letters of the name into the
global field, <tab>, and names starting with those letters appear in a
list in the same pop-up window). Once the name they're looking for
appears, they click on it and GTRR takes them to that related record in
the table of names/addresses. I don't want the original layout to
morph into the nav layout then back into the original layout... that's
too busy. I just want the user to see the pop-up, click on the name,
and go BACK to the original layout focused on the correct record. If I
could use "Select Window" as part of the GTRR script step, it would
solve my problem, but I don't think I can.

If there's an easier way of doing all this, I'd be interested...

thanks again.




Reply With Quote
  #6  
Old   
lansingoogle
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 07:26 PM



Oh. Of course. I can't believe I was so dense. Thanks for your
gracious reply and solution. I owe you one.
Thanks,
Lanse Stover

Remi-Noel Menegaux wrote:
Quote:
The key is your sentence 'they click on it and GTRR takes them to..'. In any
case, that action of 'clicking on it' launches something. If that
'something' is only the line 'Go to Related Record', you can't help it asit
will go to that record and that's it. But if you change that 'something'
into 'Perform Script', in that script you have full control. ie you may put
first the line go to GTTR, then add 'Go to your previous layout' followed
may be with a 'halt'.
Does this work this time ?
Remi-Noel


"lansingoogle" <filemaker (AT) jillo (DOT) com> a écrit dans le message de news:
1167839300.605365.50610 (AT) a3g2000...oglegroups.com...
First, apologies for the imprecise description of my dilemma...
I'll try to be more helpful:

I am starting from a layout that shows records from a large table of
names/addresses etc. The user can click a "Find" button that produces
a pop-up window that contains a global "name" field which is related to
the originating table (using an exploded-text calculation of the last
name: i.e., they type the first couple of letters of the name into the
global field, <tab>, and names starting with those letters appear in a
list in the same pop-up window). Once the name they're looking for
appears, they click on it and GTRR takes them to that related record in
the table of names/addresses. I don't want the original layout to
morph into the nav layout then back into the original layout... that's
too busy. I just want the user to see the pop-up, click on the name,
and go BACK to the original layout focused on the correct record. If I
could use "Select Window" as part of the GTRR script step, it would
solve my problem, but I don't think I can.

If there's an easier way of doing all this, I'd be interested...

thanks again.



Reply With Quote
  #7  
Old   
lansingoogle
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 08:03 PM



I expressed my comprehension a little too quickly. Still confused.
Because the GTRR script step requires either Current Layout or a New
Layout to display the result of the step. It doesn't allow you to
specify an already existing window. So I can't have the selected
record displayed in my original window, unless I do a somewhat involved
Find process (which still wouldn't give me my desired result: the
original SET of records, in the original window, with the focus shifted
to the user's selected record).

My goal was to have the user start from the main window, pop up the
navigation window, and then return to the main window with focus on the
selected record. I guess I could do this with a bunch of "Freeze
window" steps in the script, and simulate the return to the original
window by viewing the related record in a window that's identical to
the original and closing the original, but that's an awkward way of
doing something that seems as if it should be simple.

I guess I'm still searching for an answer.

thanks,
Lanse Stover


Reply With Quote
  #8  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 10:25 PM




Lanse,
As long as you've got full control when in your script, you do what you
want.
So it's only a question of 'script 'massaging''.
As I don't know how your tables are set, what they contain as fields and
records, how they are related, etc., and what for - what kind of application
is it ? why do you want what you asked ? -, I really can't tell. All I can
say is that is seems doable and even more, easily doable.
Now, either you struggle a bit and manage to find the right way to write
your script in order to reach your goal, or you wait somebody else than me
to see the point clearer and then provide the one or two script steps to
add - presently I can't do that because of the reasons stated above, but
also because I am still basically an FMP6 man ie not yet 100% up to speed in
FM8 - or else you send me privately (in changing the ' AT ' into '@' in my
address) a copy of your file with just a bunch a records with appropriate
data so I can understand, and I'll have a look at it and most probably I'll
be able to provide you with a solution.
The easiest, though, would be somebody else of this NG, willing to intervene
and help in providing us with an outline of how your script should look
like. But if no one comes, then look at my offer...
Remi-Noel

--------------Original message-----------------
"lansingoogle" <filemaker (AT) jillo (DOT) com> a écrit dans le message de news:
1167876217.194898.23490 (AT) q40g200...oglegroups.com...
Quote:
I expressed my comprehension a little too quickly. Still confused.
Because the GTRR script step requires either Current Layout or a New
Layout to display the result of the step. It doesn't allow you to
specify an already existing window. So I can't have the selected
record displayed in my original window, unless I do a somewhat involved
Find process (which still wouldn't give me my desired result: the
original SET of records, in the original window, with the focus shifted
to the user's selected record).

My goal was to have the user start from the main window, pop up the
navigation window, and then return to the main window with focus on the
selected record. I guess I could do this with a bunch of "Freeze
window" steps in the script, and simulate the return to the original
window by viewing the related record in a window that's identical to
the original and closing the original, but that's an awkward way of
doing something that seems as if it should be simple.

I guess I'm still searching for an answer.

thanks,
Lanse Stover




Reply With Quote
  #9  
Old   
Grip
 
Posts: n/a

Default Re: GTRR script step & windows question - 01-03-2007 , 10:45 PM



A window is just a box that displays a layout. Two windows that
display the same layout with the same title are, in essence, the same
window.

So, upon clicking your button, you GTRR to your main layout in a new
window, then close the original. You can rename your new window to
match that of the old, resize it, etc.

Or if you're stuck on this "same window" concept, you could drop the
GTRR altogether and script a find (which is really what GTRR is a
shortcut of).


G

lansingoogle wrote:
Quote:
I expressed my comprehension a little too quickly. Still confused.
Because the GTRR script step requires either Current Layout or a New
Layout to display the result of the step. It doesn't allow you to
specify an already existing window. So I can't have the selected
record displayed in my original window, unless I do a somewhat involved
Find process (which still wouldn't give me my desired result: the
original SET of records, in the original window, with the focus shifted
to the user's selected record).

My goal was to have the user start from the main window, pop up the
navigation window, and then return to the main window with focus on the
selected record. I guess I could do this with a bunch of "Freeze
window" steps in the script, and simulate the return to the original
window by viewing the related record in a window that's identical to
the original and closing the original, but that's an awkward way of
doing something that seems as if it should be simple.

I guess I'm still searching for an answer.

thanks,
Lanse Stover


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.