December 21, 200520 yr Hi, In earlier versions of FM, I used to define global field to facilitate search on a specific layout. For example if I have a database I wanted users to search customer name, I will create a global field for customer name and on the search layout, I will place this global field and after data is entered on the global field, user will click a button to search and in my script I will go to find mode and set customer name to this global field. How could I do something similar in FM 8. I understand that there are script variable but is there any way I can place them on layout? Thanks in advance
December 21, 200520 yr Hi, Adi! Is there reason to place variable to layout? Use global field. I think that after working script local variables lost.
December 21, 200520 yr You must expand on this!!! Why did you in the previous versions use a global field at all ...when all it takes is another more focused layout only containing the important field shown in find mode??? --sd
December 21, 200520 yr You cannot put variables on a layout. Variables perish with the script, or when the file is closed. Next time the file is opened, the variable might not exist - what should the layout show then? Why did you in the previous versions use a global field at all For one, it prevents users getting into Browse and overwriting actual data. It also helps when the request has to be re-formatted, e.g. user selects "this month" and the script enters the appropriate calculation into the Date field. Now, you must expand on this!!! Why so many exclamation and question marks???
December 21, 200520 yr Now, you must expand on this!!! Why so many exclamation and question marks??? Yeah, a bad habit - I ought to substitute it with scratching my head instead ...and I'd soon get bald-headed. --sd
December 21, 200520 yr For one, it prevents users getting into Browse and overwriting actual data. In FM7, you can set a field so that it only allows data entry in Find mode, but not when in Browse mode (Field Control / Behaviors).
December 27, 200520 yr Author Hi All, Thanks for the replies. Yes I agree that we should look forward for new improvements instead of sticking to old bad habits : BTW, I also realized that in FM Pro 8 we could use global fields in same old fashion. Just define a text field and under storage choose global field. Cheers,
Create an account or sign in to comment