Page 1 of 1

Is it possible to customise the grid view of a subform ?

Posted: Tue May 31, 2022 3:06 am
by damien
Hello,

I fell very stupid because I am not able to customize the content of the grid view of subform into a form.
The subform always display the "raw" columns of the 'table'.
I wonder to display some more usable data into the grid of that table as I do on a usual browse&edit form using the browsing menu with SQL Builder tool.
But it seems that in the subform it is not possible.
It is true, or do I miss some tricks ?

If it is not possible, I have add some "Display" fields to forge the expected data, it could works.
In that case, is it possible to disable the sorting of the grid column when clicking on the column title ?

I notice an other strange things into grid subform, the tab stop pass through the read only fields.
Do you think that i could be override to speedup the inputs of data ?

Thanks,
Damien

Re: Is it possible to customise the grid view of a subform ?

Posted: Tue May 31, 2022 6:57 am
by kev1n
Hi,

The easiest way to add a new column/object to a Subform is to clone an existing one.
add_sf_obj.gif
Disable sorting: onSubformTitleClick()

To remove disabled objects from the tabbing order, place the JavaScript in the form's Custom Code:

Code: Select all

$('[readonly]').attr("tabindex" , -1);
$("*:disabled").attr("tabindex" , -1);

PS: It's better not to ask multiple questions in the same thread, it's hard to follow and it makes it difficult to respond to each question.

Re: Is it possible to customise the grid view of a subform ?

Posted: Tue May 31, 2022 10:02 am
by damien
Wonderful, it works perfectly.
I understand why I was not able to find how to do it by my self ;-)
Thanks for your quick and accurate answer and sorry for multiple question into the thread.