Eric P Posted July 22, 2004 Posted July 22, 2004 Hi forum, I'm kind of a newbie, so bare with me.... The problem I'm having is that I need to underline a field value (between 0 and 9) whenever a certain condition occures. The closest I came (I think) to the solution was to create a dummy table, with 10 fields, with values from 0 to 9, which I underlined "manualy". They store fine, whenever I browse that table, the values are still underlined. But when I, within a script, use the Set Field function to paste the underlined value from the dummy table into the main table, the program does in fact execute the past, but the underline is gone...... Any clues ?
Lee Smith Posted July 22, 2004 Posted July 22, 2004 Paste without style tells FileMaker Pro to ignore all text style and formatting associated with the Clipboard contents.
Lee Smith Posted July 22, 2004 Posted July 22, 2004 Hi Eric, Sorry, I didn't give your post a good read. You can not use the Set Field and retain any formatting. FileMaker removes styles in a calculation. You can retain the styles though by using the Copy and paste. Just be sure you do *not* click on Pasting Without Styles, or you will lose your formatting. HTH Lee
Lee Smith Posted July 22, 2004 Posted July 22, 2004 Hi Eric, A little more thought on this, I think there is more here than what what I'm seeing. I just reread this again, and you have referred to the values as being between 0 and 9. You also said that you can manually underline the value, indicating they are numbers in a text field, because you shouldn't be able to manually underline a Number in a Number field, So, I'm guessing that these are numbers in a Text Fields here? The other thing that is confusing to me is, how is this action triggered? Lee
Eric P Posted July 22, 2004 Author Posted July 22, 2004 Thanks again, Lee, copying and pasting as we speak ;-). It works !
Eric P Posted July 22, 2004 Author Posted July 22, 2004 Sorry Lee, I didn't see your 2nd comment in time. You're right, these are text fields. In fact, at some point I must concatenate these 10 text fields into 1 text field. Ran into the next problem here..... But as I said, the first step is to underline the fields. The fields I must underline are actualy refering to other fields, and it's their value that will trigger the underlining. The fields to be underlined (or not) have a value from 1 till 0 (they represent scales, used in the MMPI test, used in psycology). A field must be underlined when the value of the field it refers to is equal or has a diference of 1 of the field that is next in line to. Are you still with me? This is one step in creating a code, called Hathaway, which is used to group the same kind of patients. Now, with your help, I'm now able to change a 1 into a "underlined" 1, etc. But, the next step is to put all the fields next to eachother, into a new text field. And here I ran into the next problem, because if I define this field as a calculation, and use something like field1 & field2 & field3... my underlines are gone again ! Any clues ? Thanks again !
-Queue- Posted July 22, 2004 Posted July 22, 2004 It will all need to be scripted, assuming you're not using version 7. Each field's data will need to be pasted into the main field. A calculation will not work.
Eric P Posted July 23, 2004 Author Posted July 23, 2004 Thanks, I'm using 5.5. Are you saying this would be easier in version 7 ?
Robert Kidd Posted July 26, 2004 Posted July 26, 2004 I would create two new calc fields:- Field1 Case ( Condition,OriginalField,"") Field2 Case ( Condition,"",OriginalField) Stack the two field over each other on the layout, but format one of the fields to display underlined. You will need to ensure you select a transparent background for the upper field. This method is fine for displaying data and finds but dosn't allow for data entry. If you need data entry place your original field underneath the two new fields and only allow entry into the original field.
iamthegrey Posted July 26, 2004 Posted July 26, 2004 I am not sure about in Filemaker 5.5 but in 7 you can just surround your whole concantenation field with a TextSyleAdd function. You can use this function to underline, bold, make all caps, etc. It seems to me that this is the easiest way to pull this off in any calculation field.
Newbies laxyourself Posted July 26, 2004 Newbies Posted July 26, 2004 how do you create a field w/ drop boxes? AHK I'm so confused! Does anyone want to create this database for me? I'm going crazy!
-Queue- Posted July 26, 2004 Posted July 26, 2004 Format your field in layout mode to be either a list or menu based on the value list you desire.
Eric P Posted July 27, 2004 Author Posted July 27, 2004 Thanks, I can't find this function in version 5.5, so I guess I've a very good reason to upgrade.....
Eric P Posted July 27, 2004 Author Posted July 27, 2004 Thanks Robert, this sure looks like a whole new approach ! I'll try this later today. Thanks again.
Recommended Posts
This topic is 7494 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now