Passing parameter to web block

  

Hi all!


I have one web block with button save, two webs screen working on two table.

I want to add web block to two webs screen to insert into database.

I know I have to setup input parameter for web block, but I can not know type for it is what.


Other case, I want to convert Json to Entity type at run time, how can I do this task?


Thanks

Hi Pham,

Are two web screens points to two different tables? 


Suraj Borade wrote:

Hi Pham,

Are two web screens points to two different tables? 


Hi Suraj!

Yes, they are.

My task is create function save on web block to save data to any table.

Let me think about it.

I created two input parameter in web block.

Parameter 1: data type is text use to store Json(I was serialize on web screen)

Parameter 2: data type is text use to store table name in which I want to save data.

Now, With its name how can I identify the actions of that table?