Custom html application variable

Hi !

I created an application to test making a progress bar during process execution.

image

I have my variable which updates automatically using the “Send Interim Result” activity.

Using this variable, I would like to create a progress bar that “fills” using this value but I don’t know how to put my variable in the “Javascript” tab.

Can you help me please ?

@DimitriLYR

A small sample implementation

javscript

appVar1 - is the app variable name which I linked to text filed …so on change of text the value changes

App.onVariableChange('appVar1', value => {
  document.getElementById("abc").innerText = value;
});

HTML

<div id='abc' class="textContainer">
  This is the HTML control content
</div>

How it works
image

Hope this helps

cheers

1 Like

Hi @DimitriLYR

Check the below thread:

Regards

Hello, i’m trying ! Thanks !

@vrdabberu thanks but this is not for “Apps” :slight_smile:

2 Likes

It’s works ! Do you know how I can refresh my value every time it changes automatically without pressing “Enter”?

@DimitriLYR

How is the value changing?

check on the events you have and see which event helps you trigger that change of variable value

for example in the video I shared once the control moves output of text field the value changes

cheers

This is an argument that my process returns every 10 seconds from “Studio” in order to update it in my apps.


image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.