How to set glide list variable value

Raghu9
Kilo Expert

Hi,

I am trying to set glide list field value. I am trying with this below script. please help me.

We have two types of group. Request and approval. If group type is approval i want set to one default value for that. 

find_real_file.png

 

1 ACCEPTED SOLUTION

rahulpandey
Kilo Sage
Hi, Where you have created type column ? On sys_user_group table ? If yes, I do not see you are inserting it in the code grp.insert().

View solution in original post

5 REPLIES 5

Naveen Sagar S1
Mega Guru

Hi Raghu,

 

I assume you are not getting the value in type field.

Is this the issue or correct me if I have misconcluded.

Hi Naveen,

Yes. "Type" field is list collector. I want to set its value to approval if user selected group type as approval.

Thank you. 

Hi Raghu,

 

After you assign the type field a value in the if condition.

Add grp.update(); and let us know if it works.

 

Or else cut and paste the "var sys_id = grp.insert();" statement after the if condition block.

Just above "var user = ........" line.

rahulpandey
Kilo Sage
Hi, Where you have created type column ? On sys_user_group table ? If yes, I do not see you are inserting it in the code grp.insert().