Data Source Path Syntax

Previous Next

In page stacking situations, you can refer to data sources in underlying pages by using data source path syntax.

Using this syntax, you have read-only access to data sources on previous pages and full read-write access to data sources on the current page.

Examples of valid references to data sources in underlying pages are:

Data source path

Refers to

DataSource1

DataSource1 on the current page

../DataSource1

DataSource1 on the previous page

../Page1/DataSource1

DataSource1 on the Page1 page that is embedded in the previous page

//DataSource1

DataSource1 anywhere in the current page, including on embedded pages (if any)

Each occurrence of the combination ../ refers back one level deeper into the stack.

Each occurrence of / (forward slash not preceded by two period characters) refers forward to an embedded page or data source.

Name strings for pages and data sources are alphanumerical. They are case-sensitive. They may NOT be surrounded by single or double quotes. Name strings must appear EXACTLY as they appear in the Web Designer object tree views.

Spaces are allowed inside a name string (i.e., surrounded by alphanumeric characters). In this position they are a meaningful part of the name.

Spaces are allowed (but meaningless and never necessary) between delimiters (that is, ../ and / ) on the one hand, and name strings on the other.

To display in an alert box the value of the column C1 of the current record of data source DS on the previous page, write:

alert( $.udb("../DS").rows("current").cols("C1").val() )

 

To get the value of a column C1 in datasource DS on page E embedded in the same page as the current page, write:

alert( $.udb("E/DS").rows("current").cols("C1").val() )

 

For a tabular overview of syntax possibilities please go to Data Source Path Syntax Reference.

Example

$.udb("../RelatedScheduledTours1/SCHEDTOUR").rows("current").cols("GUIDE").val(
    $.udb("GUIDE").rows("current").cols("PERSON_ID").val()

);

 

See Also

Data Source Path Syntax Reference

Data Sources

Embedded Data Sources

Life Time Data Source Property

Page and Data Source Constructs