Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

LANDING PAGES - INSERTING DATA TO CR LINKED TO PROFILE

Avatar

Level 2

Dear Community,

 

I am trying to insert data into profile CR and also to CR linked to profile through landing page , for example the profile CR is linked to table1 with 0 or 1 cardinality link.

Configuration and everything seems to be legit but its throwing an error saying the unknown path as shown below.

 

[Error in landing page "LP122"] UnknowJpath: /context/profile/cusLinkTable1/tableTrips
{anonymous}("/context/profile/cusLinkTable1/tableTrips",false)@sirocco:so-mvc-metamodel.js:159
{anonymous}("/context/profile/cusLinkTable1/tableTrips")@sirocco:so-mvc-metamodel.js:170
NL_LandingPage_checkInputData([object Object])@/nms/landingPage.js:1254
NL_LandingPage_loadPage()@/nms/landingPage.js:162
_LPT_LP122([object HttpServletRequest],[object HttpServletResponse])@_LPT_LP122:244
{
  "pageHistory": [
    1
  ],
  "profile": {
    "lastName": "adobeUser",
    "email": "mop144@yop.com",
    "cusLinkTable1": {
      "tableTrips": "6"
    }
  }
}
 
ANY HELP WOULD BE GREAT
 
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi Sathees, I am pretty much aware of this, I wanted to know if there's a way to achieve either by using scriplet or java script something like mentioned below.

<%

NL.require('/nl/core/shared/xml.js');

NL.require('/nl/core/sql.js');

NL.require('/nl/core/shared/xtk.js');

xtk.session.Write(<table xtkschema="cus: table" _operation="insertOrUpdate" _key={@firstName} firstName={ NL.XML.escape(request.getParameter('first_name'))} />);

%>

PS: This worked for me, thanks for your response though

View solution in original post

2 Replies

Avatar

Community Advisor

Hi @shiva_kumarp498,

 

A landing page cannot display or update data from any other resource than Profile and Subscription. Take a look at this documentation page: 

Landing Pages 

 

Thanks, Sathees

Thanks, Sathees

Avatar

Correct answer by
Level 2

Hi Sathees, I am pretty much aware of this, I wanted to know if there's a way to achieve either by using scriplet or java script something like mentioned below.

<%

NL.require('/nl/core/shared/xml.js');

NL.require('/nl/core/sql.js');

NL.require('/nl/core/shared/xtk.js');

xtk.session.Write(<table xtkschema="cus: table" _operation="insertOrUpdate" _key={@firstName} firstName={ NL.XML.escape(request.getParameter('first_name'))} />);

%>

PS: This worked for me, thanks for your response though