Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi,

Does someone know if there is a custom function that can copy a field from a child table to a repeating field? The child table field is a container.

I need this because it's not possible to put a portal in a portal...

Maybe I could create a recursive custom function using GetNthRecord, but does this function works on containers?

Thanks

Posted

That is exactly what I just tried and it doesn't work. The result only shows me the first record in the repeating field.

Does not work, only shows the first record in the first repeating field.

GetNthRecord ( comp_sale_PHOTOS__generals::photo; Get ( CalculationRepetitionNumber ))

Does work and shows the 4th record in the first repetition

GetNthRecord ( comp_sale_PHOTOS__generals::photo; 4)

From the comparables table, the relations are Comparables >-- Sales --< Photos

I don't know and really use repetitions, only in special cases...

Posted

As with any repeating field calculation, you must use Extend() with non-repeating fields referenced in the formula:

GetNthRecord ( Extend ( Photos::ContainerField ) ; Get ( CalculationRepetitionNumber ) )


 

Or, even better:

 


Let ( [

n = Count ( Photos::PhotoID ) ;

i = Get ( CalculationRepetitionNumber )

] ;

Case ( i <= n ; GetNthRecord ( Extend ( Photos::ContainerField ) ; i ) )

)

This topic is 4883 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.