Jump to content
Server Maintenance This Week. ×

two "shared" portals; different fields - strange display


This topic is 1084 days old. Please don't post here. Open a new topic instead.

Recommended Posts

My FPro 18 advanced database is music contents. Table 1 is artist s. Table 2 is music (title of recording and other details) along with 2 portals. Table 3 which is track list and timing.

Table 2 relationship Table 2 recNoID to Table 1 FK_recNoID.

portal 1 has sideA fields; portal 2 has sideB fields. There is a gap equivalent to the number of portal 1 entries when viewing portal 2. Can't see option to upload image so hope I explained well enough.

Link to comment
Share on other sites

3 hours ago, Raizel said:

hope I explained well enough

I don't think so. I am purely guessing here. By default, a portal shows ALL related records. If an artist has 10 related records in the Music table, and only 5 of those records have data in sideB fields, then a portal showing only sideB fields will display 5 empty rows representing the other 5 records. You can apply portal filtering to remove those rows.

--
P.S. Having separate fields (or sets of fields) for sideA or sideB is probably not a good idea.

 

 

Edited by comment
Link to comment
Share on other sites

Quote

P.S. Having separate fields (or sets of fields) for sideA or sideB is probably not a good idea.

Should I be relying strictly on using a radio button that designates side? I know attempt at report meant creating another field "sideC" that combined the two sets of fields respectively.

Found drag n' drop to add image so here's what I have. The selection has 3 titles on sideA (left) and 3 on sideB (right) except there are 3 blanks (right).

Screen Shot 2021-05-06 at 06.08.44 PM.png

Edited by Raizel
clarify
Link to comment
Share on other sites

53 minutes ago, Raizel said:

Should I be relying strictly on using a radio button that designates side?

Yes. It doesn't have to be a radio button but yes, there should be a single field for Title and a field for Side. Otherwise even a simple task like finding a recording by its title becomes overcomplex.

 

Link to comment
Share on other sites

I'm stumped how to merge the 4,600+ records, each with sideA or sideB for time, title, artist, into one field each, respectively. And still be able to achieve same layout.

Link to comment
Share on other sites

28 minutes ago, Raizel said:

how to merge the 4,600+ records

1. Create fields for Title, Artist, Time and Side.

2. Show all records.

3. Click into the Title field and do Replace Field Contents… -> Replace with calculated result:

SideA_Title & SideB_Title

4. Click into the Artist field and do Replace Field Contents… -> Replace with calculated result:

SideA_Artist & SideB_Artist

5. Click into the Time field and do Replace Field Contents… -> Replace with calculated result:

SideA_Time + SideB_Time

6. Click into the Side field and do Replace Field Contents… -> Replace with calculated result:

If ( IsEmpty ( SideA_Title ) ; "B" ; "A" )

Examine the results, and if they check out you can delete the SideX fields.

Make sure you have a backup before you try this, as there is no undo in case you make a mistake.

 

28 minutes ago, Raizel said:

And still be able to achieve same layout.

Filter the left-side portal by:

Side = "A"

and likewise for the opposite side.

 

Edited by comment
  • Like 1
Link to comment
Share on other sites

I performed all the steps for the "sideD replacement main fields" - artist, title, time, comments (forgot). (How much easier it was to my effort of creating calc fields which had limited purpose and terrible results).

All the new sideD fields are on Layout 2 (Table: sideAB). Now I need to be able to display these on Layout 1 (Table: Music) which are the portals. Do I create the portal using sideD fields  with sortbeingby the new side field? I would like the display side-by-side as image shows, not list by each side.

Link to comment
Share on other sites

Apologies for repeating. I know these steps have been around for ages but are new to me. I've implemented such.

Thank you -- it's working! Will start new topic for next question.

Edited by Raizel
add
Link to comment
Share on other sites

This topic is 1084 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.