LANDING PAGES - INSERTING DATA TO CR LINKED TO PROFILE | Community
Skip to main content
shiva_kumarp498
Level 2
September 1, 2020
Solved

LANDING PAGES - INSERTING DATA TO CR LINKED TO PROFILE

  • September 1, 2020
  • 1 reply
  • 1359 views

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
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by shiva_kumarp498

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

1 reply

SatheeskannaK
Community Advisor
Community Advisor
September 1, 2020

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
shiva_kumarp498
shiva_kumarp498AuthorAccepted solution
Level 2
September 2, 2020

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