Find more Examples here

Integrate Detail View on a Page (FlexView-API)

Version reduced to minimal set of HTML Read Example Description

Description

// get the first parameter out of the query string
// (excpecting parameter id as first get parameter...)
var keyValue = location.search.substr(1).split("=");

var id = "NaN";

// is the first get parameter named "id" ?
if (keyValue[0]=="id") {

    // parse parameter value to integer
    id = parseInt(keyValue[1]).toString();
}

// default id if no "id" parameter was set
if (id=="NaN") {
    id="1536393";
}

// the configuration of the FlexView API detail page only needs the id
var conf = { 
    id: id,
    actionOpenType: "in-page"
};

// instantiate FlexView API detail page
dp = oa.api.detailpage( conf );