Table Column Variables not Visible on Report

Raza156
Kilo Contributor

Hey guys,

I made a table that gets certain variables from a form once the form is submitted. The table is as follows:

find_real_file.png

 

This table gets User Names, the RITMs and the Date variable from the form.
I wanted to create a report with all three of these variables but in the report, only the User name and the RITM is being displayed and the Date appears blank:

find_real_file.png

What can be the reason for this and how do I fix this?
Thank you!

 

1 ACCEPTED SOLUTION

I'm glad you figured it out. I did mention a few times to check the fields (like the type) themselves, but you seemed pretty adamant against that.

Please mark any other reply as Helpful, since you've marked your own as correct.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

11 REPLIES 11

I'm unclear by what you mean when you say "everything appears the same except the date"...

The same as what?

I'm just guessing, but I'm assuming you are pulling in the wrong date field then. You'd need to go to your form, right click and then choose "Show" for that field and see the exact field name, then go to your report and put that correct field in there.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hey Allen, 

 

I meant to say that everything displays the same way in the Report as it does in the table except that the Date Column in the report has no variables in it, like the table does.

I did as you said and changed the name of the Date variable to OfficeDates to see if I was pulling the right date variable.find_real_file.png

 

It seems that I was but it is still not displaying under the Date Column in the Reports for some reason...:

find_real_file.png

 

As you can see, no dates appear under the OfficeDates Column in the Report 😞


Is there anything else I can try?

If it matters, I loop through the form and obtain the values of the variables in a workflow. Here is my workflow code: 

 

var array = (current.variables.officeListCAddUsers+'').split(','); //parse list collector
var len = array.length;
for(var i = 0; i < len; i++){
var grAddUser = new GlideRecord('u_office_365_users');
grAddUser.initialize();
grAddUser.setValue('u_add_user',array[i]);
grAddUser.setValue('u_requested_items',current.sys_id);
grAddUser.setValue('u_date', current.variables.needed_by);
grAddUser.insert();
}

 

u_date is the name of the Date Column in my table. needed_by is the name of the Date variable in the form.

Are both date fields set up the same way? Like as a date type field?

Have you tried to run a script to query and print what the value is? In the variable form? Something isn't crossing over right.

And I'm pretty sure it doesn't matter, but... you have a space in that line of code with the date (current.variables) after the ,


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Raza156
Kilo Contributor

Got it to work!

The problem was that the Date on the table should have been of type String instead of "Reference" 

Thank you for the comments!

I'm glad you figured it out. I did mention a few times to check the fields (like the type) themselves, but you seemed pretty adamant against that.

Please mark any other reply as Helpful, since you've marked your own as correct.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!