Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

LANDING PAGES - INSERTING DATA TO CR LINKED TO PROFILE

shiva_kumarp498
Level 2
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
 
Adobe Campaign Standard
1 Accepted Solution
shiva_kumarp498
Correct answer by
Level 2
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
SatheeskannaK
Community Advisor
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

shiva_kumarp498
Correct answer by
Level 2
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