I make interfaces separately one by one, then combine them all together at final interface, the rule!input value is exactly as each of interface did. But the final combining interface always report "
Interface Definition: Expression evaluation error [evaluation ID = 897ac:dbefb] in rule 'kone_development_deletefromuserrole_interface' : An error occurred while executing a save: Expression evaluation error at function 'length' [line 374]: A null parameter has been passed.". Which talks about the second one line 374 has error, length passed no parameters, but if run that interface individually there is no problems, any one know why?
a!localVariables( local!chooseValue:1, local!buttonChoice, a!formLayout( label:choose(local!chooseValue,"KONE Maintenanence System","New User Registration System","Update User System","Delete User System"), contents:{ a!radioButtonField( label: "Please Choose", labelPosition: "COLLAPSED", choiceLabels: {"Registration", "Update","Delete"}, choiceValues: {"Registration", "Update","Delete"}, value:local!buttonChoice, saveInto: {a!save(target:local!buttonChoice,value:save!value), if(local!buttonChoice="Registration", a!save(target:local!chooseValue,value:2), if(local!buttonChoice="Update", a!save(target:local!chooseValue,value:3), if(local!buttonChoice="Delete", a!save(target:local!chooseValue,value:4), {} ) ) ) }, choiceLayout: "STACKED", validations: {} ), a!imageField( label: "Image", labelPosition: "COLLAPSED", images: { a!documentImage( document: cons!KONE_IMAGE01 ) }, showWhen:local!chooseValue=1, size: "LARGE", isThumbnail: false, style: "STANDARD" ), choose(local!chooseValue,{}, rule!KONE_Development_Insert_Interface(backupuseraudit:ri!backupuseraudit, userrole:ri!userrole, submit:ri!submit ), rule!KONE_Development_UserUpdate_Interface(userrole:ri!userrole,backupuseraudit:ri!backupuseraudit), rule!KONE_Development_deletefromuserrole_Interface( userrole:ri!userrole, csetender:ri!csetender, cseservicecatalogue:ri!cseservicecatalogue, pricingaudit:ri!pricingaudit, csepriceapprovalphase:ri!csepriceapprovalphase, priceapproval:ri!priceapproval, csetenderphases:ri!csetenderphases, cseservicecataloguesubtaskphase:ri!cseservicecataloguesubtaskphase, backupuseraudit:ri!backupuseraudit, backupuserrole:ri!backupuserrole, deleteid:ri!deleteid,delete:ri!delete, backupuserauditvalid: ri!backupuserauditvalid, backupuserrolevalid: ri!backupuserrolevalid,csetenderphaseslistvalid:ri!csetenderphaseslistvalid, csepriceapprovalphaselistvalid:ri!csepriceapprovalphaselistvalid,pricingauditlistvalid:ri!pricingauditlistvalid, cseservicecataloguephaselistvalid:ri!cseservicecataloguephaselistvalid, cseservicecataloguesubtasklistvalid:ri!cseservicecataloguesubtasklistvalid, cseservicecataloguesubtaskphaselistvalid:ri!cseservicecataloguesubtaskphaselistvalid ) ) } ) )
a!localVariables( local!searchDeleteUserRole, local!newUser, local!backupuseraudit, local!backupuserrole, local!csetenderphaseslist, local!csepriceapprovalphaselist, local!pricingauditlist, local!cseservicecatalogphaselist, local!cseservicecataloguesubtasklist, local!cseservicecataloguesubtaskphaselist, local!userrole:a!refreshVariable(value:rule!KONE_Development_userrole_All()), { a!sectionLayout( label: "Delete User", contents: { a!textField( label: "USERNAME", labelPosition: "ABOVE", value:local!searchDeleteUserRole, saveInto: { a!save(target:local!searchDeleteUserRole,value:save!value), a!save(target:local!backupuseraudit,value:rule!KONE_Development_BACKUP_USER_AUDIT_Search_Rule(local!searchDeleteUserRole)), a!save(target:local!backupuserrole,value:rule!KONE_Development_BACKUP_USER_ROLE_Search_Rule(local!searchDeleteUserRole)) }, refreshAfter: "KEYPRESS", validations: {} ), a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Clear", saveInto:a!save(local!searchDeleteUserRole,null()), style: "NORMAL" ) }, align: "START" ), a!sectionLayout( contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!gridField( label: "User Info", labelPosition: "ABOVE", data: a!queryEntity( entity: cons!KONE_Development_userrole_Constant, query: a!query( selection: a!querySelection( columns: { a!queryColumn(field: "USER_ID"), a!queryColumn(field: "NAME"), a!queryColumn(field: "ROLE"), a!queryColumn(field: "BRANCH"), a!queryColumn(field: "REGION") } ), logicalExpression: a!queryLogicalExpression( operator: "AND", filters: { a!queryFilter( field: "NAME", operator: "includes", value: local!searchDeleteUserRole ) }, ignoreFiltersWithEmptyValues: true ), pagingInfo: fv!pagingInfo ), fetchTotalCount: true ), columns: { a!gridColumn( label: "USER_ID", sortField: "USER_ID", value: fv!row.USER_ID ), a!gridColumn( label: "NAME", sortField: "NAME", value: fv!row.NAME ), a!gridColumn( label: "ROLE", sortField: "ROLE", value: fv!row.ROLE ), a!gridColumn( label: "BRANCH", sortField: "BRANCH", value: fv!row.BRANCH ), a!gridColumn( label: "REGION", sortField: "REGION", value: fv!row.REGION ) }, pagesize: 5, initialsorts: a!sortInfo( field: "USER_ID", ascending: true ), refreshAlways:true() ) } ) } ) } ) } ), a!columnsLayout( columns: { a!columnLayout( contents: {} ), a!columnLayout( contents: { a!textField( label: "Please fill in succeed assignee(Manadatory Before Delete)", labelPosition: "ABOVE", value:local!newUser, saveInto: { a!save(target:local!newUser,value:save!value), a!save( target:local!csetenderphaseslist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_CSE_TENDER_PHASES_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!csetenderphases:fv!item, a!forEach( items:rule!KONE_Development_CSE_TENDER_Search_Rule(local!csetenderphases.tenderId), expression: if(and(local!csetenderphases.tenderId=fv!item.id,local!csetenderphases.active="true"), if(or(fv!item.statusId="3",fv!item.statusId="4"),{},{ a!update(data:local!csetenderphases,index:"user",value:local!newUser) }) ,{}) ) ) ) ) )), a!save( target:local!pricingauditlist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_PRICING_AUDIT_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!pricingaudit:fv!item, a!forEach( items:rule!KONE_Development_PRICE_APPROVAL_Search_Rule(local!pricingaudit.pricingReqId), expression: if(and(local!pricingaudit.pricingReqId=fv!item.pricingReqId,fv!item.isStrategicCustomer="false"), if(or(fv!item.status="3",fv!item.status="4"),{},{ a!update(data:local!pricingaudit,index:"user",value:local!newUser) }) ,{}) ) ) ) ) )), a!save( target:local!csepriceapprovalphaselist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_CSE_PRICE_APPROVAL_PHASE_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!csepriceapprovalphase:fv!item, a!forEach( items:rule!KONE_Development_PRICE_APPROVAL_Search_Rule(local!csepriceapprovalphase.priceApprovalId), expression: if(local!csepriceapprovalphase.active="true", if(or(fv!item.status="3",fv!item.status="4"),{},{ a!update(data:local!csepriceapprovalphase,index:"user",value:local!newUser) }) ,{}) ) ) ) ) )), a!save( target:local!cseservicecatalogphaselist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_PHASES_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!cseservicecatalogphase:fv!item, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_Search_Rule(local!cseservicecatalogphase.serviceCatalogueId), expression: if(local!cseservicecatalogphase.active="true", if(or(fv!item.status="3",fv!item.status="4"),{},{ a!update(data:local!cseservicecatalogphase,index:"user",value:local!newUser) }) ,{}) ) ) ) ) )), a!save(target:local!cseservicecataloguesubtasklist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!cseservicecatalogsubtask:fv!item, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_Search_Rule(local!cseservicecatalogsubtask.serviceCatalogueId), expression: if(local!cseservicecatalogsubtask.active="1", if(or(fv!item.statusId="3",fv!item.statusId="4"),{},{ a!update(data:local!cseservicecatalogsubtask,index:"subTaskAssignee",value:local!newUser) }) ,{}) ) ) ) ) )), a!save(target:local!cseservicecataloguesubtaskphaselist, value:a!flatten( if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),{}, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!cseservicecataloguesubtask:fv!item, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_PHASE_Search_Rule(local!searchDeleteUserRole), expression:a!localVariables( local!cseservicecataloguesubtaskphase:fv!item, a!forEach( items:rule!KONE_Development_CSE_SERVICE_CATALOGUE_Search_Rule(local!cseservicecataloguesubtask.serviceCatalogueId), expression: if(local!cseservicecataloguesubtaskphase.active="1", if(or(fv!item.statusId="3",fv!item.statusId="4"),{},{ if(local!cseservicecataloguesubtask.id=local!cseservicecataloguesubtaskphase.subtaskId, a!update(data:local!cseservicecataloguesubtaskphase,index:"user",value:local!newUser),{} ) }) ,{}) ) ) ) ) ) ))) /*a!save(target:ri!backupuseraudit.koneusername,value:local!backupuseraudit.koneusername),*/ /*a!save(target:ri!backupuseraudit.updatetime,value:todatetime(local!backupuseraudit.updatetime)),*/ /*a!save(target:ri!backupuseraudit.reason,value:"Delete"),*/ /*a!save(target:ri!backupuseraudit.backupby,value:loggedInUser()),*/ /*a!save(target:ri!backupuseraudit.backupon,value:now()),*/ /*a!save(target:ri!backupuserrole.userId,value:local!backupuserrole.USER_ID),*/ /*a!save(target:ri!backupuserrole.name,value:local!backupuserrole.NAME),*/ /*a!save(target:ri!backupuserrole.email,value:local!backupuserrole.EMAIL),*/ /*a!save(target:ri!backupuserrole.role,value:local!backupuserrole.ROLE),*/ /*a!save(target:ri!backupuserrole.roleId,value:local!backupuserrole.ROLE_ID),*/ /*a!save(target:ri!backupuserrole.phaseId,value:local!backupuserrole.PHASE_ID),*/ /*a!save(target:ri!backupuserrole.branch,value:local!backupuserrole.BRANCH),*/ /*a!save(target:ri!backupuserrole.region,value:local!backupuserrole.REGION),*/ /*a!save(target:ri!backupuserrole.subUnit,value:local!backupuserrole.SUB_UNIT),*/ /*a!save(target:ri!backupuserrole.unit,value:local!backupuserrole.UNIT),*/ /*a!save(target:ri!backupuserrole.area,value:local!backupuserrole.AREA),*/ /*a!save(target:ri!backupuserrole.managerRole,value:local!backupuserrole.MANAGER_ROLE),*/ /*a!save(target:ri!backupuserrole.branchId,value:local!backupuserrole.BRANCH_ID),*/ /*a!save(target:ri!backupuserrole.regionId,value:local!backupuserrole.REGION_ID),*/ /*a!save(target:ri!backupuserrole.subUnitId,value:local!backupuserrole.SUB_UNIT_ID),*/ /*a!save(target:ri!backupuserrole.unitId,value:local!backupuserrole.UNIT_ID),*/ /*a!save(target:ri!backupuserrole.areaId,value:local!backupuserrole.AREA_ID),*/ /*a!save(target:ri!backupuserrole.active,value:local!backupuserrole.ACTIVE),*/ /*a!save(target:ri!backupuserrole.delegate,value:local!backupuserrole.DELEGATE),*/ /*a!save(target:ri!backupuserrole.langId,value:local!backupuserrole.LANG_ID),*/ /*a!save(target:ri!backupuserrole.level,value:local!backupuserrole.LEVEL),*/ /*a!save(target:ri!backupuserrole.telephoneNumber,value:local!backupuserrole.TELEPHONE_NUMBER),*/ /*a!save(target:ri!backupuserrole.isException,value:local!backupuserrole.IS_EXCEPTION),*/ /*a!save(target:ri!backupuserrole.superUser,value:local!backupuserrole.SUPER_USER),*/ /*a!save(target:ri!backupuserrole.delegateforcse,value:local!backupuserrole.DELEGATEFORCSE),*/ /*a!save(target:ri!backupuserrole.backupby,value:loggedInUser()),*/ /*a!save(target:ri!backupuserrole.backupon,value:now()),*/ /*a!save(target:ri!csetenderphases,value:local!csetenderphaseslist),*/ /*a!save(target:ri!pricingaudit,value:local!pricingauditlist),*/ /*a!save(target:ri!csepriceapprovalphase,value:local!csepriceapprovalphaselist),*/ /*a!save(target:ri!cseservicecataloguephases,value:local!cseservicecatalogphaselist),*/ /*a!save(target:ri!cseservicecataloguesubtask,value:local!cseservicecataloguesubtasklist),*/ /*a!save(target:ri!cseservicecataloguesubtaskphase,value:local!cseservicecataloguesubtaskphaselist),*/ /*a!save(target:ri!userrole.USER_ID,value:*/ /*a!forEach(*/ /*items:local!userrole,*/ /*expression:*/ /*if(fv!item.NAME=local!searchDeleteUserRole,{*/ /*fv!item.USER_ID*/ /*},{})*/ /*)*/ /*),*/ /*a!save(target:local!csetenderphaseslistAll,value:a!forEach(*/ /*items:local!csetenderphaseslist,*/ /*expression:*/ /*a!map(id:fv!item.id,user:save!value),*/ /*))*/ }, refreshAfter:"KEYPRESS", validations: {} ), a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Delete with one button", icon: "hand-pointer-o", saveInto:{ if(length(local!backupuseraudit)=0,{},{ a!save(target:ri!backupuseraudit.koneusername,value:local!backupuseraudit.koneusername), a!save(target:ri!backupuseraudit.updatetime,value:now()), a!save(target:ri!backupuseraudit.reason,value:"Delete"), a!save(target:ri!backupuseraudit.backupby,value:loggedInUser()), a!save(target:ri!backupuseraudit.backupon,value:now()) }), if(length(local!backupuserrole)=0,{},{ a!save(target:ri!backupuserrole.userId,value:toInteger(local!backupuserrole.USER_ID)), a!save(target:ri!backupuserrole.name,value:local!backupuserrole.NAME), a!save(target:ri!backupuserrole.email,value:local!backupuserrole.EMAIL), a!save(target:ri!backupuserrole.role,value:local!backupuserrole.ROLE), a!save(target:ri!backupuserrole.roleId,value:local!backupuserrole.ROLE_ID), a!save(target:ri!backupuserrole.phaseId,value:local!backupuserrole.PHASE_ID), a!save(target:ri!backupuserrole.branch,value:local!backupuserrole.BRANCH), a!save(target:ri!backupuserrole.region,value:local!backupuserrole.REGION), a!save(target:ri!backupuserrole.subUnit,value:local!backupuserrole.SUB_UNIT), a!save(target:ri!backupuserrole.unit,value:local!backupuserrole.UNIT), a!save(target:ri!backupuserrole.area,value:local!backupuserrole.AREA), a!save(target:ri!backupuserrole.managerRole,value:local!backupuserrole.MANAGER_ROLE), a!save(target:ri!backupuserrole.branchId,value:local!backupuserrole.BRANCH_ID), a!save(target:ri!backupuserrole.regionId,value:local!backupuserrole.REGION_ID), a!save(target:ri!backupuserrole.subUnitId,value:local!backupuserrole.SUB_UNIT_ID), a!save(target:ri!backupuserrole.unitId,value:local!backupuserrole.UNIT_ID), a!save(target:ri!backupuserrole.areaId,value:local!backupuserrole.AREA_ID), a!save(target:ri!backupuserrole.active,value:local!backupuserrole.ACTIVE), a!save(target:ri!backupuserrole.delegate,value:local!backupuserrole.DELEGATE), a!save(target:ri!backupuserrole.langId,value:local!backupuserrole.LANG_ID), a!save(target:ri!backupuserrole.level,value:local!backupuserrole.LEVEL), a!save(target:ri!backupuserrole.telephoneNumber,value:local!backupuserrole.TELEPHONE_NUMBER), a!save(target:ri!backupuserrole.isException,value:local!backupuserrole.IS_EXCEPTION), a!save(target:ri!backupuserrole.superUser,value:local!backupuserrole.SUPER_USER), a!save(target:ri!backupuserrole.delegateforcse,value:local!backupuserrole.DELEGATEFORCSE), a!save(target:ri!backupuserrole.backupby,value:loggedInUser()), a!save(target:ri!backupuserrole.backupon,value:now()) }), a!save(target:ri!csetenderphases,value:local!csetenderphaseslist), a!save(target:ri!pricingaudit,value:local!pricingauditlist), a!save(target:ri!csepriceapprovalphase,value:local!csepriceapprovalphaselist), a!save(target:ri!cseservicecataloguephases,value:local!cseservicecatalogphaselist), a!save(target:ri!cseservicecataloguesubtask,value:local!cseservicecataloguesubtasklist), a!save(target:ri!cseservicecataloguesubtaskphase,value:local!cseservicecataloguesubtaskphaselist), a!save(target:ri!deleteid, value:a!forEach( items:local!userrole, expression: if(fv!item.NAME=local!searchDeleteUserRole, fv!item.USER_ID ,{}) )), a!save(target:ri!cseservicecataloguesubtaskphaselistvalid,value:if(length(ri!cseservicecataloguesubtaskphase)=0,false(),true())), a!save(target:ri!cseservicecataloguephaselistvalid,value:if(length(ri!cseservicecataloguephases)=0,false(),true())), a!save(target:ri!cseservicecataloguesubtasklistvalid,value:if(length(ri!cseservicecataloguesubtask)=0,false(),true())), a!save(target:ri!pricingauditlistvalid,value:if(or(isnull(ri!pricingaudit),length(ri!pricingaudit)=0),false(),true())), a!save(target:ri!csepriceapprovalphaselistvalid,value:if(length(ri!csepriceapprovalphase)=0,false(),true())), a!save(target:ri!csetenderphaseslistvalid,value:if(length(ri!csetenderphases)=0,false(),true())), a!save(target:ri!backupuserrolevalid,value:if(isnull(ri!backupuserrole),false(),true())), a!save(target:ri!backupuserauditvalid,value:if(isnull(ri!backupuseraudit),false(),true())), a!save(target:ri!delete,value:if(len(ri!deleteid)<>0,true(),false())), a!startProcess( processModel: cons!KONE_Development_UpdateDelete_PM_Constant, processParameters:{ csetenderphases:ri!csetenderphases, pricingaudit:ri!pricingaudit, csepriceapprovalphase:ri!csepriceapprovalphase, cseservicecataloguephases:ri!cseservicecataloguephases, cseservicecataloguesubtask:ri!cseservicecataloguesubtask, cseservicecataloguesubtaskphase:ri!cseservicecataloguesubtaskphase, backupuseraudit:ri!backupuseraudit, backupuserrole:ri!backupuserrole, delete:ri!delete, deleteid:ri!deleteid, cseservicecataloguephaselistvalid:ri!cseservicecataloguephaselistvalid, pricingauditlistvalid:ri!pricingauditlistvalid, csepriceapprovalphaselistvalid:ri!csepriceapprovalphaselistvalid, csetenderphaseslistvalid:ri!csetenderphaseslistvalid, backupuserrolevalid:ri!backupuserrolevalid, backupuserauditvalid:ri!backupuserauditvalid, cseservicecataloguesubtasklistvalid:ri!cseservicecataloguesubtasklistvalid, cseservicecataloguesubtaskphaselistvalid:ri!cseservicecataloguesubtaskphaselistvalid, } ) }, style: "NORMAL", disabled:if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),true(),false()) ) }, align: "START" ) } ), a!columnLayout( contents: {} ) }, showWhen:true ), a!columnsLayout( columns: { a!columnLayout( contents: {} ) /*a!columnLayout(*/ /*contents: {*/ /*a!buttonArrayLayout(*/ /*buttons: {*/ /*a!buttonWidget(*/ /*label: "update and saveInto backup",*/ /*icon: "arrow-circle-up",*/ /*saveInto:{*/ /*a!save(target:ri!backupuseraudit.koneusername,value:local!backupuseraudit.koneusername),*/ /*a!save(target:ri!backupuseraudit.updatetime,value:todatetime(local!backupuseraudit.updatetime)),*/ /*a!save(target:ri!backupuseraudit.reason,value:"Delete"),*/ /*a!save(target:ri!backupuseraudit.backupby,value:loggedInUser()),*/ /*a!save(target:ri!backupuseraudit.backupon,value:now()),*/ /*a!save(target:ri!backupuserrole.userId,value:tointeger(local!backupuserrole.USER_ID)),*/ /*a!save(target:ri!backupuserrole.name,value:local!backupuserrole.NAME),*/ /*a!save(target:ri!backupuserrole.email,value:local!backupuserrole.EMAIL),*/ /*a!save(target:ri!backupuserrole.role,value:local!backupuserrole.ROLE),*/ /*a!save(target:ri!backupuserrole.roleId,value:local!backupuserrole.ROLE_ID),*/ /*a!save(target:ri!backupuserrole.phaseId,value:local!backupuserrole.PHASE_ID),*/ /*a!save(target:ri!backupuserrole.branch,value:local!backupuserrole.BRANCH),*/ /*a!save(target:ri!backupuserrole.region,value:local!backupuserrole.REGION),*/ /*a!save(target:ri!backupuserrole.subUnit,value:local!backupuserrole.SUB_UNIT),*/ /*a!save(target:ri!backupuserrole.unit,value:local!backupuserrole.UNIT),*/ /*a!save(target:ri!backupuserrole.area,value:local!backupuserrole.AREA),*/ /*a!save(target:ri!backupuserrole.managerRole,value:local!backupuserrole.MANAGER_ROLE),*/ /*a!save(target:ri!backupuserrole.branchId,value:local!backupuserrole.BRANCH_ID),*/ /*a!save(target:ri!backupuserrole.regionId,value:local!backupuserrole.REGION_ID),*/ /*a!save(target:ri!backupuserrole.subUnitId,value:local!backupuserrole.SUB_UNIT_ID),*/ /*a!save(target:ri!backupuserrole.unitId,value:local!backupuserrole.UNIT_ID),*/ /*a!save(target:ri!backupuserrole.areaId,value:local!backupuserrole.AREA_ID),*/ /*a!save(target:ri!backupuserrole.active,value:local!backupuserrole.ACTIVE),*/ /*a!save(target:ri!backupuserrole.delegate,value:local!backupuserrole.DELEGATE),*/ /*a!save(target:ri!backupuserrole.langId,value:local!backupuserrole.LANG_ID),*/ /*a!save(target:ri!backupuserrole.level,value:local!backupuserrole.LEVEL),*/ /*a!save(target:ri!backupuserrole.telephoneNumber,value:local!backupuserrole.TELEPHONE_NUMBER),*/ /*a!save(target:ri!backupuserrole.isException,value:local!backupuserrole.IS_EXCEPTION),*/ /*a!save(target:ri!backupuserrole.superUser,value:local!backupuserrole.SUPER_USER),*/ /*a!save(target:ri!backupuserrole.delegateforcse,value:local!backupuserrole.DELEGATEFORCSE),*/ /*a!save(target:ri!backupuserrole.backupby,value:loggedInUser()),*/ /*a!save(target:ri!backupuserrole.backupon,value:now()),*/ /*a!save(target:ri!csetenderphases,value:local!csetenderphaseslist),*/ /*a!save(target:ri!pricingaudit,value:local!pricingauditlist),*/ /*a!save(target:ri!csepriceapprovalphase,value:local!csepriceapprovalphaselist),*/ /*a!save(target:ri!cseservicecataloguephases,value:local!cseservicecatalogphaselist),*/ /*a!save(target:ri!cseservicecataloguesubtask,value:local!cseservicecataloguesubtasklist),*/ /*a!save(target:ri!cseservicecataloguesubtaskphase,value:local!cseservicecataloguesubtaskphaselist),*/ /*a!writeToMultipleDataStoreEntities(*/ /*valuesToStore:{*/ /*a!entityData(entity:cons!KONE_Development_CSE_TENDER_PHASES_Constant,data:ri!csetenderphases),*/ /*a!entityData(entity:cons!KONE_Development_PRICING_AUDIT_Constant,data:ri!pricingaudit),*/ /*a!entityData(entity:cons!KONE_Development_CSE_PRICE_APPROVAL_PHASE_Constant,data:ri!csepriceapprovalphase),*/ /*a!entityData(entity:cons!KONE_Development_CSE_SERVICE_CATALOGUE_PHASES_Constant,data:ri!cseservicecataloguephases),*/ /*a!entityData(entity:cons!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_Constant,data:ri!cseservicecataloguesubtask),*/ /*a!entityData(entity:cons!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_PHASE_Constant,data:ri!cseservicecataloguesubtaskphase),*/ /*a!entityData(entity:cons!KONE_Development_BACKUP_USER_AUDIT_Constant,data:ri!backupuseraudit),*/ /*a!entityData(entity:cons!KONE_Development_BACKUP_USER_ROLE_Constant,data:ri!backupuserrole)*/ /*}*/ /*)*/ /*a!startProcess(*/ /*processModel: cons!KONE_Development_UpdateDelete_PM_Constant,*/ /*processParameters:{*/ /*csetenderphases:ri!csetenderphases,*/ /*pricingaudit:ri!pricingaudit,*/ /*csepriceapprovalphase:ri!csepriceapprovalphase,*/ /*cseservicecataloguephases:ri!cseservicecataloguephases,*/ /*cseservicecataloguesubtask:ri!cseservicecataloguesubtask,*/ /*cseservicecataloguesubtaskphase:ri!cseservicecataloguesubtaskphase,*/ /*backupuseraudit:ri!backupuseraudit,*/ /*backupuserrole:ri!backupuserrole,*/ /*deleteid:ri!deleteid,*/ /*}*/ /*)*/ /*},*/ /*style: "DESTRUCTIVE",*/ /*disabled:*/ /*if(or(isnull(local!searchDeleteUserRole),isnull(local!newUser)),true,*/ /*if(and(length(rule!KONE_Development_BACKUP_USER_ROLE_exist_Rule(local!searchDeleteUserRole))=0),*/ /*false(),true()))*/ /*)*/ /*},*/ /*align: "START"*/ /*),*/ /*a!textField(*/ /*label: "",*/ /*labelPosition: "COLLAPSED",*/ /*value:{"Saved to back up successfully"},*/ /*refreshAfter: "UNFOCUS",*/ /*showWhen:if(isnull(local!searchDeleteUserRole),false(),if(length(rule!KONE_Development_BACKUP_USER_ROLE_exist_Rule(local!searchDeleteUserRole))=0,false(),true())),*/ /*readonly:true,*/ /*validations: {}*/ /*)*/ /*}*/ /*),*/ /*a!columnLayout(*/ /*contents: {*/ /*a!buttonArrayLayout(*/ /*buttons: {*/ /*a!buttonWidget(*/ /*label: "Delete",*/ /*saveInto:{*/ /*a!forEach(*/ /*items:local!userrole,*/ /*expression:*/ /*if(fv!item.NAME=local!searchDeleteUserRole,{*/ /*a!deleteFromDataStoreEntities(*/ /*dataToDelete: {*/ /*a!entityDataIdentifiers(*/ /*entity: cons!KONE_Development_userrole_Constant,*/ /*identifiers:{fv!item.USER_ID}*/ /*)*/ /*}*/ /*)*/ /*},{})*/ /*)*/ /*},*/ /*style: "PRIMARY",*/ /*disabled:if(isnull(local!searchDeleteUserRole),true(),if(length(rule!KONE_Development_BACKUP_USER_ROLE_exist_Rule(local!searchDeleteUserRole))=0,true(),if(length(rule!KONE_Development_userroleexist_Rule(local!searchDeleteUserRole))=0,true(),false())))*/ /*)*/ /*},*/ /*align: "START"*/ /*),*/ /*a!textField(*/ /*label: "",*/ /*labelPosition: "ABOVE",*/ /*value:"Deleted successfully",*/ /*saveInto: {},*/ /*refreshAfter: "UNFOCUS",*/ /*showWhen:if(isnull(local!searchDeleteUserRole),false(),if(length(rule!KONE_Development_BACKUP_USER_ROLE_exist_Rule(local!searchDeleteUserRole))=0,false(),if(length(rule!KONE_Development_userroleexist_Rule(local!searchDeleteUserRole))=0,true(),false()))),*/ /*readonly:true*/ /*)*/ /*}*/ /*)*/ } ) })
Discussion posts and replies are publicly visible
Sure. You do not pass a value to the rule input "cseservicecataloguephases".
what is "do not pass a value to the rule input" mean?
Since the row of 373 and row of 374 both return 0 items if put into expression rule for testing?
In line 47 of your first expression, I do not see a value for that rule input.
row of 373 returns correct value, but why 374 doesn't since they almost same?
Because you pass a value in line 54 ?!?
Thank you so much, have a great day!
btw,do you know how to publish a interface without rule inputs? I don't know how to eliminate rule inputs to satisfy publish requirement
I can not follow. Please elaborate.
I wish to publish my interface on site, but i can't publish interface with too many rule inputs
On a site, you can directly only use interfaces without any rule inputs. You either need to turn all your rule inputs into local variables or create a wrapper interface without any rule inputs. This wrapper then has a bunch of local variables you then pass to your main interface.
what if a judgement boolean value need to be processed in the interface? Since it can't be avail by castType way?
???
haha, if a rule input value as a cdt, then i can change to castType process by expression Rule. But if it is a boolean value need to be judged whether it is valid, if it is valid then true or false. Such value has no way to be saved in local variable right?
I am confused. Are you saying that a local variable can not be of type boolean?