![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all, i have asked a similar queston before, but let me try again. i have a few protals in a layout and they all have same field names. I would like to be ble to click on field A and have a script do something. And if i click in a different portal's field A i would like a similar script run, (as you might guess the only difference in the scripts is the fields referenced). So right now i have for each field in evey portal with a separate specific script. I was wondering if it would be possible for FMP7.0 to somehow know/calculate which field was clicked on? i would like something as the following to happen: IF (clicked_field = "portalA::fieldA" then....) ELSEIF (clicked_field = "portalB::fieldA" then...) ELSEIF (clicked_field = "portalC::fieldA" then...) is this possible? i am not familiar with the functions in FMP7 but how can i achieve the function of "knowing" what the clicked field is? |
|
second question: as a debugging feature i added a text field called INFO in my layout. everytime i run a script i am trying to fill INFO with particular information. i.e. Insert Text [Select;TableA::INFO;"Get (ActiveFieldName)"] when the script runs, all i get in the INFO field is Get (ActiveFieldName), instead of the actual name. can someone tell me how to fill that INFO field with the fieldname. |
#3
| |||
| |||
|
|
hi all, i have asked a similar queston before, but let me try again. i have a few protals in a layout and they all have same field names. I would like to be ble to click on field A and have a script do something. And if i click in a different portal's field A i would like a similar script run, (as you might guess the only difference in the scripts is the fields referenced). So right now i have for each field in evey portal with a separate specific script. I was wondering if it would be possible for FMP7.0 to somehow know/calculate which field was clicked on? i would like something as the following to happen: IF (clicked_field = "portalA::fieldA" then....) ELSEIF (clicked_field = "portalB::fieldA" then...) ELSEIF (clicked_field = "portalC::fieldA" then...) is this possible? i am not familiar with the functions in FMP7 but how can i achieve the function of "knowing" what the clicked field is? second question: as a debugging feature i added a text field called INFO in my layout. everytime i run a script i am trying to fill INFO with particular information. i.e. Insert Text [Select;TableA::INFO;"Get (ActiveFieldName)"] when the script runs, all i get in the INFO field is Get (ActiveFieldName), instead of the actual name. can someone tell me how to fill that INFO field with the fieldname. TIA |
#4
| |||
| |||
|
|
i have a few protals in a layout and they all have same field names. I would like to be ble to click on field A and have a script do something. And if i click in a different portal's field A i would like a similar script run, (as you might guess the only difference in the scripts is the fields referenced). So right now i have for each field in evey portal with a separate specific script. I was wondering if it would be possible for FMP7.0 to somehow know/calculate which field was clicked on? is this possible? i am not familiar with the functions in FMP7 but how can i achieve the function of "knowing" what the clicked field is? |
|
second question: as a debugging feature i added a text field called INFO in my layout. everytime i run a script i am trying to fill INFO with particular information. i.e. Insert Text [Select;TableA::INFO;"Get (ActiveFieldName)"] when the script runs, all i get in the INFO field is Get (ActiveFieldName), instead of the actual name. can someone tell me how to fill that INFO field with the fieldname. |
#5
| |||
| |||
|
|
But if you are using it to determine a field that you are clicking on as a button (see my solution above), then it will not know that whatever you are clicking on is active. In fact, any other field can still be active with the cursor inside it as you click on a button elsewhere on the layout (or in another window altogether). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Pro Solutions Los Angeles, California FileMaker 7 Certified Developer Associate Member, FileMaker Solutions Alliance |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |