Page 1 of 1

Hiding specific columns

Posted: Wed Dec 13, 2017 1:28 pm
by mjohnson62982
I have job that is gathering data on members of different locations within our corporation. For one location we do not need to have email field to show up. Is there a way to hide that field if the specific location is chosen from the list parameter before the job is run?

Posted: Wed Dec 13, 2017 5:13 pm
by chulett
Can you clarify for us what "hide" means here?

Posted: Wed Dec 13, 2017 5:50 pm
by mjohnson62982
I don't want the E-mail Address column to be seen for a specific location.

Posted: Wed Dec 13, 2017 6:06 pm
by chulett
Was hoping for a bit more information than that. By "seen" you mean not included in whatever your job is outputting, I assume, yes? And if that just means you want that column/field left empty/blank/null in the output, that should be pretty easy to accomplish. Leaving out the entire column could be another kettle of fish.

You should be able to setup a list parameter and based on which they choose, in the derivation for that output column you send spaces (or whatever) to that output column. Now, that will mean for every column in the list, you'll need to have a check in the matching column's derivation but they all will be very similar. Something like:

if #ListChoice# = <current column's name> then SPACES else <current value>

Hope that makes sense.

Posted: Thu Dec 14, 2017 11:21 am
by mjohnson62982
Yes. Sorry. I wanted to know if the customer chose a specific location then the column for the customers emails would no longer be visible, or not included in the output at all.

Posted: Thu Dec 14, 2017 11:45 am
by chulett
Okie dokie... if that doesn't help or you have any other questions, please let us know.

Posted: Mon Dec 18, 2017 4:30 pm
by ray.wurlod
If, instead of an empty email field, you require no email field at all, you need to use separate outputs, triggered by the relevant job parameter value.

Posted: Thu Dec 28, 2017 12:06 pm
by UCDI
sounds like a good place for a modify stage and RCP.
The final output can be RCP and you can drop the columns in the modify right before?