Using a RedyBloc in a document where the PC is {{Ledger.}}

Discussions related to ReadyDoc development.
Post Reply
tzinib
Posts: 6
Joined: Mon Oct 26, 2009 6:50 am

Using a RedyBloc in a document where the PC is {{Ledger.}}

Post by tzinib »

I have a document where the PC is {{Ledger.Transaction}}, however when I put in rdyblocs that are based on {{Order.}}, it doesn't pull in, is there a way to pull it in to the document besides for creating a new rdybloc based on {{Ledger.}}?
Mark McKenna

Re: Using a RedyBloc in a document where the PC is {{Ledger.}}

Post by Mark McKenna »

The content of the ReadyBloc is pulled in to the main document, on the fly, as though it was there all along. If you are using relative fieldcodes in your ReadyBloc, then each will be processed as relative to whatever order object is "current" at the time that the ReadyBloc is pulled in. If the fieldcodes in the ReadyBloc are absolute, however, then they would be interpreted as such regardless of the current order object context. This feature allows you to create reusable ReadyBloc snippets that contain relative fielodcodes applicable across many different order object types (e.g. buyers, sellers, lenders, and attorneys), while also supporting absolute fieldcodes in cases like yours where the data is only valid under one particular context.

Generally speaking, in your example, if the fieldcodes in the ReadyBloc are relative, the only fields that would "work" are the ones that exist on both the Order object and the Transaction object - and there aren't many of those. If the fieldcodes were all absolute, however, then the primary context of your document would be irrelevant.

Hope that helps.
Post Reply