How to hide a column on a children table

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
Celson Aquino
Posts: 27
Joined: 2017-08-26 15:40
Location: Salvador, Bahia - Brazil

How to hide a column on a children table

Post by Celson Aquino » 2017-12-14 22:31

Hello,

This is my first post on forum and I want to add a solution for a problem I had and Ahmed helped me to solve.

I was trying to hide a column of a children table. My master table is Vendas and the children table is Pagamentos. The lookup field that links these tables is Vendas.

The picture below shows the column I was trying to hide. I think the column of the lookup field is not necessary in this screen.

screenshot-localhost-2017-12-14-19-12-51.png
screenshot-localhost-2017-12-14-19-12-51.png (133.22 KiB) Viewed 2931 times

Here is the code Ahmed wrote to solve the problem. I must be added to hooks/footer-extras.php

Code: Select all

<style>
   #vendas-children .pagamentos-venda{ display: none; }
</style>
where pagamentos is the name of my children table and venda is the name of the lookup table.

Below is the screen after apply the code:

screenshot-localhost-2017-12-14-19-17-55.png
screenshot-localhost-2017-12-14-19-17-55.png (98.69 KiB) Viewed 2931 times

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: How to hide a column on a children table

Post by a.gneady » 2017-12-15 19:50

Thanks a lot for sharing :)
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply