Skip to main content
Nintex Community Menu Bar

K2 Custom Control Property Update from Javascript

  • November 13, 2022
  • 2 replies
  • 69 views

Forum|alt.badge.img+2

Hi,

 

i created and deployed custom control with one property MaxValue.

 

<Prop ID="MaxValue" friendlyname="MaxValue" type="string" category="Detail" refreshdisplay="true" mappable="true">
<Value>100</Value>
</Prop>

 

how can i update that value from javascript so that after updating i can see that value from any k2 rule.

 

 

i have setproperty function in js but its not working. (after updating showing old value in k2 rule)

 

setProperty: function (objInfo) {
//console.log(objInfo);
if (objInfo.property == "Style") {
CustomControls.Guage.setStyles(null, objInfo.Value, $('#' + objInfo.CurrentControlID));
}

},

 

2 replies

Forum|alt.badge.img+2
  • Author
  • Rookie
  • November 14, 2022

Hi,

 

.cs, xml and css file you can see. i got this from nintex sample but its also not working with at least one property.

 

Regards,


Forum|alt.badge.img+2
  • Author
  • Rookie
  • November 15, 2022

script files also attached if anyone can help please.