August 15, 201114 yr 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"?
August 15, 201114 yr 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?
August 15, 201114 yr Author 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"?
August 15, 201114 yr 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.
August 15, 201114 yr 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
August 15, 201114 yr Author 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!
August 16, 201114 yr 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.
September 9, 201114 yr 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.
September 9, 201114 yr 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 ;)
September 9, 201114 yr 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!
Create an account or sign in to comment