Marc H. Posted August 18, 2005 Posted August 18, 2005 I am a NEWBIE, so forgive me. I have two tables, tableone and tabletwo, they are joined by a relationship that can add new records to tabletwo from tableone. The relationship is joined at tableone::id and tabletwo::tableoneid. There are fields in tabletwo that contain text called for sake of discussion kitchenSummary. I am trying to make a text field in tableone that contains text from all the related kitchenSummary entries in tabletwo maintaining text formatting. Stumped, can anyone help?
RalphL Posted August 18, 2005 Posted August 18, 2005 Have you tried a portal? The portal would have to be sized so that the text box would be the same in both tables. Since you can enter the text in tableone the formatting could be done there. The user never needs to go to tabletwo.
Marc H. Posted August 18, 2005 Author Posted August 18, 2005 the problem is that the kitchenSummary field can contain anywhere from a sentence to several (10+) and there can be up to 10 related records with the same type of variable information. I am trying to put the "text sum" (for lack of a better word) in a report that can be printed leaving quite a bit of room for this variation.
RalphL Posted August 18, 2005 Posted August 18, 2005 If you are going to print a report, do it from tabletwo. You can use sliding set to reduce the enclosed part to get rid of the gaps.
Marc H. Posted August 18, 2005 Author Posted August 18, 2005 understand but the next problem with that is that tableone contains a master report that contains stuff from the master record as well as other related records from tables in tabletwo.
Marc H. Posted August 18, 2005 Author Posted August 18, 2005 still looking for help on a calculation to get the data
-Queue- Posted August 18, 2005 Posted August 18, 2005 You can put related fields from tableone in your report in tabletwo. Alternately, you could create a value list of the related text field, starting from tableone, including and sorting by tabletwo::id, and use an unstored calculation in tableone of ValueListItems( Get(FileName); "yourValueList" ) to retrieve a return-delimited list of the related items.
Marc H. Posted August 18, 2005 Author Posted August 18, 2005 B) THANKS!! that worked great, now, how can i maintain the text formatting aka colors? or put two carriage returns between list items?
-Queue- Posted August 18, 2005 Posted August 18, 2005 Are they all the same color? If so, TextColor( Substitute( ValueListItems( Get(FileName); "yourValueList" ); ¶; "¶¶" ); T ) where T is your color as RGB( x; y; z ) or its corresponding numeric value. If they are not all the same color, how do you determine which text has which color?
Marc H. Posted August 23, 2005 Author Posted August 23, 2005 Thanks for everyone's help on this, got it working with the valuelist option and talked customer into summary of this text being all same color. Had conditionals in text fields on originating table where if the text was something other than "acceptable" text would be red.
Recommended Posts
This topic is 7090 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