Orchid28 Posted August 15, 2011 Posted August 15, 2011 These fields don't really need to be used in find mode because the data is so big (they are pretty large summaries). How can I create a script where I can hide certain fields in "find mode"?
efen Posted August 15, 2011 Posted August 15, 2011 Go to another dedicated layout when your script enters Find mode so that you need only use those fields that you want to show there. Do you really have version 10 certification?
Orchid28 Posted August 15, 2011 Author Posted August 15, 2011 No I am not certified. It was a mistake I have to fix that otherwise I wouldnt be on here But thanks! I will try that out and see how it works. I was also wondering rather than hiding those fields is there a way to make the fields "unusable"?
efen Posted August 15, 2011 Posted August 15, 2011 In Layout mode, in Field behaviour/Field control [or whatever it's called in version 10] allow entry to the fields in Browse mode but not in Find mode.
LaRetta Posted August 15, 2011 Posted August 15, 2011 These fields don't really need to be used in find mode because the data is so big (they are pretty large summaries). Even if the summaries were left on the layout, turning off entry to them (either in browse or find modes) wouldn't be necessary because you can't change summary fields nor can you search in them. But those summaries still use resources (screen redraw and server) so a dedicated Find layout is best. Next best would be colorizing those fields which a User can search. If this is a printable report then use conditional formatting to only display the 'search color' when in Find mode, something like: Get ( WindowMode ) = 1
Orchid28 Posted August 15, 2011 Author Posted August 15, 2011 Thank you all I will experiment with those options. And yeah turning off entry to them is unnecessary but its just a personal reference from my supervisor. I will see how it turns out! thanks!
David Jondreau Posted August 16, 2011 Posted August 16, 2011 Use a tab control panel and an OnModeEntry script trigger to go to the correct tab based on the mode. The tab panel can be made invisible by remove the border and seeding the label width to 0.
KellyMc Posted September 9, 2011 Posted September 9, 2011 Has anyone done this with a one-row portal set to filter when Get ( WindowMode ) ≠ 1 ? I'm trying something similar this way, but it doesn't seem to work -- nothing is hidden in find mode -- and I'm wondering why.
David Jondreau Posted September 9, 2011 Posted September 9, 2011 I don't think your idea will work. Portals show related records in Browse mode. In Find mode portals show fields to be found. Filtering only works on related records, but there are none in Find mode. Nice try though ;)
KellyMc Posted September 9, 2011 Posted September 9, 2011 Ah -- that also explains why buttons I've hidden from certain AccountPrivelegeSetNames using this technique still show up in find mode. I just did one using the tab panel method. Works great, thanks!
Recommended Posts
This topic is 4843 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now