Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Unstored Calculated Field on RHS of relationship


Tim Harris

Recommended Posts

I'm trying to create a portal that displays data from a relationship that has a unstored calculating field on the left had site.

 

On the layout I have the portal, and the calculated field. i can see the calculated field change as I change another field (and click in the calculated field box), but the data in the portal does not change.

 

When I change the relationship to a field that is normal indexed it is fine.

 

I see posts about it being OK to have unstored field on the left hand side, so it must be something silly that I'm doing.

Link to comment
Share on other sites

The left-hand, right-hand meanings are not so clear in this age of relationship graphs, where the relative positions of the TOs don't matter.

 

Basically, you can have unstored calcs as parent keys, but not as child (foreign) keys. In this context, think of the parent keys as fields in the current layout's table, and child keys as fields in related tables.

Link to comment
Share on other sites

Thanks.. I can confirm that that is how I have it.

 

My parent key is calculated and in the current layout. The child key is in another table from another file in fact. The calculated parent key is one of a small number of possibilities and when displayed on the screen I can see it change. The data is the portal is loaded is seems from the first time the parent key is calculated but never thereafter once it changes.

Link to comment
Share on other sites

I have had this problem fairly often when the parent-side ("left hand side") key field is an unstored calculated value. Portals don't always "wake up" and refresh properly. A quick Enter Find Mode [no pause], Enter Browse Mode can kick it, as can Refresh Screen [flush cached join whatsits], as can go to previous / go to next record; sometimes one such technique will work where the others do not (the Refresh Screen is probably the one to try first).

 

I've found it to be particularly a problem where the actual table in which the unstored calc field resides is not actually in the current file, i.e., the table occurrence native to the current layout is of an external file's table. See it annoyingly often in systems where data & structure have been separated.

Link to comment
Share on other sites

Sorry Tim,

 

I'm not visualizing it. I'd probably need to actually poke around in the file (or an example file with the same relationship setup) to understand what's going on.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

Terms of Use