⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to add new column in Existing table with click of add column action



Rohan_mann11111

Rohan_mann11111
  • profile picture
  • Member

Posted 26 February 2018 - 08:49 AM

Hello Experts,

 

I want to add an action that can insert a new column to my table. where  I can customize Column on the basis of Name, Type and Size. 

 

Kindly Help me with your suggestions.

 

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 26 February 2018 - 09:39 AM

well u can achieve the same using add_action method. 

with the add_action method - u will get the row id with the function call - and from there - in the action - u can write code to perform your request as required.

 

Happy GCing :)


Rohan_mann11111

Rohan_mann11111
  • profile picture
  • Member

Posted 26 February 2018 - 12:54 PM

Sir,

 

I want to add  New columns. add action can only work on rows as  i guess. how can i increase table columns?


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 27 February 2018 - 04:02 AM

Well for columns - what you can do - you may set the columns u have been working on with in a session - and always retrieve the columns from session and set.

 

Now - outside the GC view - u can add your own set of buttons on the click of which it can add / remove a certain column from the list .. and once done - u just need to refresh the page ... that should work out for you.

 

Happy GCing :)