We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

Export functionality

Customer service has by default an export functionality to export data to excel. Can this be deacivated/hidden for certain users?

RE: Export functionality

Like this (where "grid" is the Grid instance):

grid.setFieldValue("deleteCommandMenu", Map("idString=export"));

Sverre

Av: Sverre Hjelm 2. maj 2012

RE: Export functionality

The code above works for both DataTable and for Static Table v2 - but you cannot copy-paste the code from DevNet. The code contains a hidden Soft hyphen character which CS doesn't understand. You need to type the codeline yourself.

Sverre, do you have the idString for the Show Preview button as well?

Av: Frode Lillerud 3. maj 2012

RE: Export functionality

Sorry, it has no idString, so it cannot be disabled. Wish for future versions....

Sverre

Av: Sverre Hjelm 3. maj 2012

RE: Export functionality

Just to put this out...

DevNet used to put a soft-hyphen in any line that contains a string of text that was longer than 35 characters without a space.

For example, the code above is 65 characters total, and contains a string of characters that is 39 characters in length. Therefore, you could expect that a soft hyphen would be placed after the 35th character.

I've updated the website so that soft hyphens will only be placed after every 100th character without a space. This should be fine for all exiting code snippets.

If your code snippets contain more than 100 characters without a space, perhaps that's a sign you should shorten your method names ;-)


Hope this helps.

Av: Tony Yates 20. jun 2013

RE: Export functionality

From now on, I will code like this:

main(v,c)char**c;{for(v[c++]="Hello, world!\n)";
(!!c)[*c]&&(v--||--c&&execlp(*c,*c,c!!c+!!c,!c));
**c=!c)write(!!*c,*c,!!**c);}

;-)

Av: Sverre Hjelm 20. jun 2013

RE: Export functionality

Note: you can use registry setting 282 'Hide Export button from grids (Hide = 1)' for this.

Av: David Hollegien 3. jan 2020