A “few fields from Details” as in a few fields from a single Details detail table record or as in a few fields from a number of Details detail table records?
I assume that you will have to add a placeholder to your Master Page and that you will have target this placeholder- and replace it by a Standard Script to which you can apply the following JavaScript code, for example:
[REMOVED]
For your information: Dragging and dropping a detail table record field from within the Data Model window into your Master Page will shown the following info message:
I just have few fields like “Date or Owner Number” which is extracted from each page (page by page) and have to display them on Master Page.
Because i have “Details” which are repeated over corresponding pages. This “Details” have few fields inside. Some of this fields I have to display on master page.
So Your script will display “fieldName” for each page of my document?
You might consider to add the following HTML code to your Master Page and use the following Standard Script settings instead:
HTML code:
<span id="fld-example">@example@</span>
Standard Script:
Name: Example
Selector: #fld-example
var field, result = "";
if ("Details" in record.tables) {
if (record.tables.Details.length > 0) {
field = record.tables.Details[0].fields.fieldName;
if (field !== "") result += field;
}
}
results.html(result);