toggling formats on and off?

Reply
Occasional Contributor
Posts: 16

toggling formats on and off?

I´m sure I´m not the only person who has wished for a way to toggle formats on and off in viewtables, like you can with labels!

Is there a way to do that?

Super Contributor
Posts: 297

Re: toggling formats on and off?

Posted in reply to gusfryk01

I believe that by having FORMAT _ALL_; in a datastep all formats will be turned off and the underlying data becomes visible..

Super Contributor
Posts: 644

Re: toggling formats on and off?

Posted in reply to Scott_Mitchell

Scott, I think the O/P wanted to be able to switch off formats dynamically when viewing the data in the Viewtable application, wishing it were possible.  However, your reply does suggest a workaround which would be to create a view of the data using FORMAT _ALL_ if that works.  A few simple lines of code: then in Viewtable the user could switch from the dataset to the view and back again.

Richard

Super User
Posts: 19,770

Re: toggling formats on and off?

Posted in reply to gusfryk01

You can change the format of one variable at a time, but not all at once.

What were you trying to accomplish with this?

Respected Advisor
Posts: 3,799

Re: toggling formats on and off?

Reeza wrote:

You can change the format of one variable at a time, but not all at once.

Are you sure about that?

Super User
Posts: 19,770

Re: toggling formats on and off?

Posted in reply to data_null__

I was referring to in the viewtables, not in code, in code you can change multiple at once.

And I've been wrong before though Smiley Happy

Super User
Posts: 11,343

Re: toggling formats on and off?

Posted in reply to data_null__

In Viewtable, double click on the column heading and change the format in the dialog, then click on apply.

Occasional Contributor
Posts: 16

Re: toggling formats on and off?

I think this is as close to what I wanted as is possible to get. The feature I´m missing is being able to switch between viewing variables in viewtables with and without formats by clicking a button. At present you can only switch labels on an off in this way.

So I will simply copy the viewtable in question, choose edit mode in the copied table, double click on the variable in question and change the format to something like best.

Thanks all who replied!

Super User
Posts: 19,770

Re: toggling formats on and off?

Posted in reply to gusfryk01

You don't need to copy the viewtable or switch to edit mode. Try it.

Occasional Contributor
Posts: 16

Re: toggling formats on and off?

You are right, thank you!

Ask a Question
Discussion stats
  • 9 replies
  • 416 views
  • 6 likes
  • 6 in conversation