Skip to main content
Nintex Community Menu Bar

Not sure why this js isn’t working on the page - it’s v2. Any ideas?


<skuid__page unsavedchangeswarning=“yes” personalizationmode=“server” showsidebar=“false” showheader=“false” uniqueId=“sk-3UPQ-1885” theme=“Clever”>




































<skuid__masthead uniqueid=“sk-3VF5-6918”>




<skuid__image source=“url” height=“custom” heightCustom=“100%” uniqueId=“sk-3VFh-7553” uniqueid=“sk-3VFh-7740” datasource=“salesforce” model=“Account” url=“https://app.cleveraccounts.com/assets/licence/clever/logo/logo-light-150.png”>;





</skuid__image>





<skuid__navigation uniqueId=“sk-3VGV-14136” uniqueid=“sk-3VGV-14651” type=“horizontal” overflowToMenu=“false” alternateFormat=“collapse”>































</skuid__navigation>





</skuid__masthead>

<skuid__grid uniqueid=“sk-3USz-3804” flexDirection=“row” justifyContent=“flex-start” alignItems=“flex-start” columnGutter=“0” rowGutter=“0”>




<skuid__wrapper uniqueid=“sk-3VNV-32936” heightStrategy=“fixed” height=“custom” heightCustom=“100vh”>


<skuid__list model=“Account” uniqueid=“sk-3VVI-49627” pageSize=“Infinity”>











































































































































var params = arguments>0];
var $ = skuid.$;

function strict() {

“use strict”;

var detailModel = skuid.model.getModel(‘AuditDetail’);

var detailCondition = detailModel.getConditionByName(‘AccountId’);

detailModel.setCondition(detailCondition,args.item.row.Id,true);

skuid.model.updateData(edetailModel]);


}


















</skuid__page>

This line won’t work in V2, one key API change in V2 is that there is no more concept of “Items”:

detailModel.setCondition(detailCondition,args.item.row.Id,true);

Switching to just args.row.Id should work though:

detailModel.setCondition(detailCondition,args.row.Id,true);