
status(currentfieldname) not working in portals?
[resending this message since it dit not show up after some 8 hours in the
list]
Dear Howard
Aaahh!
Got it working inside and outside the portal with your help:
The copying (of 1 accented character from a value list)
Copy["g.accentcharacterdepot"]
Go to Field
And then the pasting anywhere in any text field:
Set Field ["g.fieldnamestatus";"Status(CurrentFieldName)"]
If [isempty("g.fieldnamestatus")
ShowMessage["In order to paste an accented character the cursor must be in a
text field."]
Exit Script
Go to Field[]
Else
Paste[]
End If
Thanks!
--
Met vriendelijke groet / Mit freundlichen Gruessen / With kind regards
Christoph Bouthillier
post (at) no-no-spamtekstotaal.com
Please remove "no-no-spam" when e-mailing me directly - Thanks
------
Quote:
> Hi Chris--
> I just tried it in Windows with FMP 5.5 and it works fine. I created a
script
> with one step: Set Field[gText, status(currentfieldname). Put a button on
the
> layout (not in the portal) that calls that script. Works when the cursor
is in
> any field, including portal fields.
> I did a similar test script that starts with
> If[isempty(status(currentfieldname))] to either shoe me an error message
or
> not. This also worked fine from portal fields.
> Perhaps there is another step in your script before the test that is gtrr
or
> somehow otherwise exiting the portal before your test?
> > Dear Howard:
> > The status checking works fine in the non-portal portion of the layout,
but
> > not in the portal, alas ... but why?
> > > Unless you must check for the cursor being in certain fields for your
> > > particular solution, how about:
> > > If[isempty(status(currentfieldname))]
> > > > Dear Listeners:
> > > > I have a little problem with the above-mentioned feature.
> > > > In a multilingual database I have set up a pop-up global field to
hold 1
> > > > special character. Behind that is a value list that holds all
special
> > > > characters that are recognized by FMP (BTW these are only:
> > > > ?a??????????De?????????????????Tt??Yy? which
is
> > > > strangely enough somewhat less than is available via
> > c:\windows\charmap.exe)
> > > > I let the user choose 1 character and copy it with a button beside
it.
> > Then
> > > > there is another button that does a Paste (not selecting the whole
> > field).
> > > > It works fine.
> > > > But I wanted to make it more user-friendly by telling the user if
the
> > cursor
> > > > is "nowhere" and that he has to put it into one of the fields. So I
use
> > an
> > > > If-statement to check for all relevant field names. That works fine,
> > too -
> > > > BUT it does not work in portals in the same layout. Then the error
> > message
> > > > comes up, although the cursor is active in a portal field, and a
manual
> > > > Paste works fine, too.
> > > > Is there a trick to circumvent this?
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Howard Schlossberg (818) 321-5176
> FM Pro Solutions Los Angeles, California
> Associate Member, FileMaker Solutions Alliance
--
Met vriendelijke groet / Mit freundlichen Gruessen / With kind regards
Christoph Bouthillier
post (at) no-no-spamtekstotaal.com
Please remove "no-no-spam" when e-mailing me directly - Thanks
------
Quote:
> Hi Chris--
> I just tried it in Windows with FMP 5.5 and it works fine. I created a
script
> with one step: Set Field[gText, status(currentfieldname). Put a button on
the
> layout (not in the portal) that calls that script. Works when the cursor
is in
> any field, including portal fields.
> I did a similar test script that starts with
> If[isempty(status(currentfieldname))] to either shoe me an error message
or
> not. This also worked fine from portal fields.
> Perhaps there is another step in your script before the test that is gtrr
or
> somehow otherwise exiting the portal before your test?
> > Dear Howard:
> > The status checking works fine in the non-portal portion of the layout,
but
> > not in the portal, alas ... but why?
> > > Unless you must check for the cursor being in certain fields for your
> > > particular solution, how about:
> > > If[isempty(status(currentfieldname))]
> > > > Dear Listeners:
> > > > I have a little problem with the above-mentioned feature.
> > > > In a multilingual database I have set up a pop-up global field to
hold 1
> > > > special character. Behind that is a value list that holds all
special
> > > > characters that are recognized by FMP (BTW these are only:
> > > > ?a??????????De?????????????????Tt??Yy? which
is
> > > > strangely enough somewhat less than is available via
> > c:\windows\charmap.exe)
> > > > I let the user choose 1 character and copy it with a button beside
it.
> > Then
> > > > there is another button that does a Paste (not selecting the whole
> > field).
> > > > It works fine.
> > > > But I wanted to make it more user-friendly by telling the user if
the
> > cursor
> > > > is "nowhere" and that he has to put it into one of the fields. So I
use
> > an
> > > > If-statement to check for all relevant field names. That works fine,
> > too -
> > > > BUT it does not work in portals in the same layout. Then the error
> > message
> > > > comes up, although the cursor is active in a portal field, and a
manual
> > > > Paste works fine, too.
> > > > Is there a trick to circumvent this?
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Howard Schlossberg (818) 321-5176
> FM Pro Solutions Los Angeles, California
> Associate Member, FileMaker Solutions Alliance