Enable Variables from item_option_new table in Release Management

Satanik1
Giga Guru

Hello experts,

 

In my existing system, I have to use variables in Release management and make them visible/hidden or editable/read-only using client scripts. How can make it possible? any help would be much appreciated.

 

Thanks
Satanik

7 REPLIES 7

Mike_R
Kilo Patron
Kilo Patron

To make read only:

g_form.setReadOnly('VARIABLENAME',true);

 

Editable:

g_form.setReadOnly('VARIABLENAME',false);

 

To Hide:

g_form.setDisplay('VARIABLENAME',false);

 

 

To Show:

g_form.setDisplay('VARIABLENAME',true);

Hello Mike,

 

Thanks for your response.

But how can I make the variables available in rm_release client script ? Because I created a variable in item_option_new, and tried the client script. but this is not becoming available.

 

Thanks,

Satanik.

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

To show the variable editor in release Management do the below:-

 

Go to Formatters from Navigation:-

 

Saurav11_0-1665467353949.png

 

Then once the list view opens find this formatter:- "com_glideapp_questionset_default_question_editor"

 

Saurav11_2-1665467411747.png

Then if there is no formatter for release table just click on new and create one

 

Saurav11_3-1665467507110.png

 

Once it is done go to the release form and configure form layout and bring the release variable editor which you created on the form

 

Saurav11_4-1665467706935.png

 

Now to populate the variables in the variable editor yo will have to create a record producer on release table

 

Please mark my answer as correct based on Impact.

Hi Saurav,

 

Thank you so much for the detailing.

First of all, they are actually using it in rm_task and not in rm_release. Sorry for the confusion.

In my client system they already have the variable editor in rm_task. But I do not see any such entry in record producer.

Instead, I guess they are doing it through macro from the variable table. 

 

Here is the screenshot.

Satanik1_0-1665468549808.png

 

But I am not able to go deeper into this since, I am not able to find the relationship on how they are doing it.

 

Can you help me to understand please?

 

Thanks,

Satanik