If you right-click anywhere in the grid headings you get an option for 'Field Chooser' and 'Restore Layout'. Selecting 'Field Chooser' displays a box with nothing in it. What's this option for? Is it supposed to be another away of moving columns?
If you right-click anywhere in the grid headings you get an option for 'Field Chooser' and 'Restore Layout'. Selecting 'Field Chooser' displays a box with nothing in it. What's this option for? Is it supposed to be another away of moving columns?
Clive,
When you moved columns from the grid - try it by dragging a header item so that a BIG X shows you remove one - the field chooser will show you the removed columns. You can add one or more again.
Regards,
Data Access Worldwide
Vincent Oorsprong
Hi Vincent,
Ok thanks. I see how this feature now works. Suggestion:
- If there are no columns to select then this option in the floating pop-up menu should be disabled.
- 'Field Chooser'. Would this not be better if it read 'Column Chooser'?
[edit]
Can you prevent a column from being removed? Is it all in or nothing?
Last edited by Clive Richmond; 2-May-2010 at 04:39 AM.
Hi Clive,
Field Chooser is what Codejock calls this and we left it this way because it's an end user tool rather than a developer tool. It's also used by Microsoft in Outlook, also for end users.
Hi Clive,
There is a cCJGrid property that disables removing all columns (pbAllowColumnRemove)
There is also a cCJGridColumn property that can be used to disable removal on a column by column basis (pbAllowRemove).... whoops! I just noticed that this property is missing from the class interface. We'll get that fixed.
There is another grid property you can set to display a message in the Field Chooser when there are no columns to select "psNoFieldsAvailableText"
regards John van Houten
And there is yet another one, pbShowInFieldChooser, that allows you to choose whether to show or not certain columns in the Field Chooser dialog.
Regards,
Marcia Booth (DAW)
Hi John / Marcia,
Thanks for the pointers with regards to columns removal. I'll have a play.
With the display text I noticed that psNoFieldsAvailableText is function. However there is a private property which could be set as a default and if used with the language file would be easy to change: private_psNoFieldsAvailableText
Also 'Field Chooser' text is being set in two places, cCJGridFieldChooserMenuItem.pkg and cCJGrid.pkg, with former marked to be added to the language file but not the later.
In the cCJGrid.pkg the method has an extra line which makes no sense unless it was supposed to get the label from the cCJGridFieldChooserMenuItem, which would make sense.
Code:// ActivateFieldChooser: // Send this message to popup a field chooser object. // Procedure ActivateFieldChooser Handle hoFieldChooserPanel String sLabel // Set the tool panel's caption.... Get phoFieldChooserPanel to hoFieldChooserPanel Get psNoFieldsAvailableText to sLabel Set Label of hoFieldChooserPanel to "Field Chooser" // Activate the field chooser.... Send Popup to hoFieldChooserPanel End_Procedure // ActivateFieldChooser
Clive,
The class default for this property is "", which does not need translation.With the display text I noticed that psNoFieldsAvailableText is function. However there is a private property which could be set as a default and if used with the language file would be easy to change: private_psNoFieldsAvailableText
Thanks, I'll tidy these up.Also 'Field Chooser' text is being set in two places, cCJGridFieldChooserMenuItem.pkg and cCJGrid.pkg, with former marked to be added to the language file but not the later.
In the cCJGrid.pkg the method has an extra line which makes no sense unless it was supposed to get the label from the cCJGridFieldChooserMenuItem, which would make sense.
regards John van Houten
Hi,
And how I might save the selection realized by the end user, in order that the next time that when he ran the application, I could load the above mentioned selection?
Regards,
Antonio Jiménez
Granada (Spain)